图号名称规格

This commit is contained in:
chenjianan
2019-04-13 09:17:33 +08:00
parent 1477a7968c
commit 94ad62a142
2 changed files with 16 additions and 3 deletions

View File

@@ -14,14 +14,14 @@ export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2
})
}
// 查询分配后的基本件
export function searchPart(pageCurrent, pageSize, num1, person) {
export function searchPart(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_采购部采购_查询物料_基本件_分配后',
param: `物料状态编号=${num1}&人员编号=${person}`,
param: `物料状态编号=${num1}&零件图号_check=${check1}&零件图号=${val1}&零件名称_check=${check2}&零件名称=${val2}&零件规格_check=${check3}&零件规格=${val3}&人员编号=${person}`,
Pagination: pageCurrent + '&' + pageSize
}
})

View File

@@ -144,6 +144,12 @@
<el-row style="margin-bottom: 10px">
<span>物料状态:</span>
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select/>
<span>零件图号:</span>
<el-input v-model="partNum" placeholder="零件图号" size="small" clearable/>
<span>零件名称:</span>
<el-input v-model="partName" placeholder="零件名称" size="small" clearable/>
<span>零件规格:</span>
<el-input v-model="partSpec" placeholder="零件规格" size="small" clearable/>
<el-button
type="success"
size="small"
@@ -600,6 +606,9 @@ export default {
name: '', // 创建询价单
data() {
return {
partNum: '',
partName: '',
partSpec: '',
check3: 0, // 供应商
check4: 0, // 询价单号
materialStatusValue: [0], // 物料状态
@@ -798,7 +807,11 @@ export default {
this.searchTable11()
},
searchTable12() { // 查询基本件列表
searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], this.id).then(response => {
let check1, check2, check3
this.partNum ? check1 = 1 : check1 = 0
this.partName ? check2 = 1 : check2 = 0
this.partSpec ? check3 = 1 : check3 = 0
searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id).then(response => {
console.log(response.data.rows, 9999)
this.tableData12 = response.data.rows
this.total12 = response.data.total