规格型号
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select/>
|
||||
<span>物料名称:</span>
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<span>物料规格:</span>
|
||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||
<span>物料型号:</span>
|
||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
@@ -620,6 +624,8 @@ export default {
|
||||
}
|
||||
], // 物料状态
|
||||
materialName: '',
|
||||
materialSpec: '',
|
||||
materialModel: '',
|
||||
tableData11: [], // 标准件和外购件列表
|
||||
total11: 0,
|
||||
pageCurrent11: 1,
|
||||
@@ -772,9 +778,11 @@ export default {
|
||||
return row['供货商'] === value
|
||||
},
|
||||
searchTable11() { // 查询标准件和外购件列表
|
||||
let check1
|
||||
let check1, check2, check3
|
||||
this.materialName ? check1 = 1 : check1 = 0
|
||||
searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, this.id).then(response => {
|
||||
this.materialSpec ? check2 = 1 : check2 = 0
|
||||
this.materialModel ? check3 = 1 : check3 = 0
|
||||
searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id).then(response => {
|
||||
console.log(response.data.rows)
|
||||
this.tableData11 = response.data.rows
|
||||
this.total11 = response.data.total
|
||||
|
||||
Reference in New Issue
Block a user