This commit is contained in:
psh
2024-05-06 09:11:11 +08:00
parent d2e51a44e0
commit fed9821279
7 changed files with 86 additions and 8 deletions

View File

@@ -11,22 +11,34 @@
label-suffix=":"
>
<el-form-item label="供应商名称">
<el-input
<el-select
v-model="query.supplierName"
clearable
size="mini"
placeholder="供应商名称"
@keyup.enter.native="crud.toQuery"
/>
class="filter-item"
>
<el-option
v-for="item in supplierNameList"
:label="item"
:value="item"
/>
</el-select>
</el-form-item>
<el-form-item label="物料名称">
<el-input
<el-select
v-model="query.productDescription"
clearable
size="mini"
placeholder="物料名称"
@keyup.enter.native="crud.toQuery"
/>
class="filter-item"
>
<el-option
v-for="item in productDescriptionList"
:label="item"
:value="item"
/>
</el-select>
</el-form-item>
<rrOperation />
</el-form>
@@ -274,6 +286,8 @@ export default {
workShopList: [],
pointList: [],
regionList: [],
supplierNameList: [],
productDescriptionList: [],
choose: '物料'
}
},
@@ -281,6 +295,8 @@ export default {
this.getWorkShopList()
this.getPointList()
this.getRegionList()
this.getSupplierNameList()
this.getProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -302,6 +318,16 @@ export default {
this.pointList = res
})
},
getSupplierNameList(){
crudMaterial.getSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList(){
crudMaterial.getProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
tableChanged(row) {
this.form.material_name = row.material_name
this.form.material_id = row.material_id

View File

@@ -32,4 +32,20 @@ export function getGroup(data) {
})
}
export default { add, edit, del, getGroup }
export function getSupplierNameList(data) {
return request({
url: 'api/report/getSupplierNameList',
method: 'get',
data
})
}
export function getProductDescriptionList(data) {
return request({
url: 'api/report/getProductDescriptionList',
method: 'get',
data
})
}
export default { add, edit, del, getGroup,getSupplierNameList,getProductDescriptionList }