替换件到货:改查询条件无效
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
// 替换单查询
|
// 替换单查询
|
||||||
export function searchSubstitutedCard() {
|
export function searchSubstitutedCard(...params) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '库存管理_替换件_替换单查询'
|
name: '库存管理_替换件_替换单查询',
|
||||||
|
param: `替换单编号_check=${params[0]}&替换单编号=${params[1]}&替换件名称_check=${params[2]}&替换件名称=${params[3]}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<el-card>
|
<el-card>
|
||||||
<span style="margin: 5px">替换单编号</span>
|
<span style="margin: 5px">替换单编号</span>
|
||||||
<el-input v-model="substituteNumber" clearable size="small" style="width:200px" />
|
<el-input v-model="substituteNumber" clearable size="small" style="width:200px" />
|
||||||
<span style="margin: 5px">零件图号</span>
|
<span style="margin: 5px">替换件名称</span>
|
||||||
<el-input v-model="partNumber" clearable size="small" style="width:200px" />
|
<el-input v-model="subPartName" clearable size="small" style="width:200px" />
|
||||||
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="getSubstitutedCard()">查询</el-button>
|
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="getSubstitutedCard()">查询</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -65,8 +65,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableDataExchange: [],
|
tableDataExchange: [],
|
||||||
substituteNumber: '',
|
check1: 0,
|
||||||
partNumber: '',
|
check2: 0,
|
||||||
|
substituteNumber: '', // 替换单编号
|
||||||
|
subPartName: '', // 替换件名称
|
||||||
listLoading: '',
|
listLoading: '',
|
||||||
subList: '',
|
subList: '',
|
||||||
locateNumber: '',
|
locateNumber: '',
|
||||||
@@ -77,7 +79,9 @@ export default {
|
|||||||
// 替换单查询
|
// 替换单查询
|
||||||
getSubstitutedCard() {
|
getSubstitutedCard() {
|
||||||
this.listloading = true
|
this.listloading = true
|
||||||
searchSubstitutedCard().then(response => {
|
this.substituteNumber ? this.check1 = 1 : this.check1 = 0
|
||||||
|
this.subPartName ? this.check2 = 1 : this.check2 = 0
|
||||||
|
searchSubstitutedCard(this.check1, this.substituteNumber, this.check2, this.subPartName).then(response => {
|
||||||
this.tableDataExchange = response.data
|
this.tableDataExchange = response.data
|
||||||
this.listloading = false
|
this.listloading = false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user