2024-09-23 对出错的查询就行调整

This commit is contained in:
2024-09-23 08:35:39 +08:00
parent 563132273c
commit 055075a41d
4 changed files with 49 additions and 11 deletions

View File

@@ -1112,6 +1112,8 @@
<el-form-item label="买方名称" prop="买方名称">
<el-select
v-model="form.买方名称"
:remote-method="getCustomer"
remote
clearable
filterable
placeholder="买方名称"
@@ -2297,10 +2299,10 @@ export default {
}
} else {
var param1 = []
param[0] = ['项目流水号', this.projectValue]
param[1] = ['机床流水号', this.MachineToolNumber]
param[2] = ['修改人', this.id]
param[3] = ['合同备注', this.explain]
param1[0] = ['项目流水号', this.projectValue]
param1[1] = ['机床流水号', this.MachineToolNumber]
param1[2] = ['修改人', this.id]
param1[3] = ['合同备注', this.explain]
var Data1 = this.CreateData('12', 'PDM_组件名称_确认更改新', param1)
this.ExecDatabase(Data1).then(response => {
if (response.data[0].result === '1') {

View File

@@ -1144,7 +1144,7 @@ export default {
}
},
fetchData() {
this.getCustomer()
this.getCustomer('')
this.getConsigneePeople()
this.getPaymentMethod()
this.searchContract()
@@ -1647,6 +1647,21 @@ export default {
}
})
},
getCustomerById(queryId) {
this.customerName = []
var param = []
param[0] = ['客户流水号', queryId]
var Data = this.CreateData('11', '合同管理_客户信息_查询数据_通过ID_bak', param)
this.ExecDatabase(Data).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.customerName.push({
label: response.data[i].客户名称,
value: response.data[i].客户流水号
})
}
this.customerNameValue = queryId
})
},
getConsigneePeople() {
this.consigneePeople = []
var param = []
@@ -1714,7 +1729,7 @@ export default {
param[0] = ['项目流水号', this.contractNoValue]
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
this.ExecDatabase(Data).then(response => {
this.customerNameValue = response.data[0].客户流水号
this.getCustomerById(response.data[0].客户流水号)
this.signingDate = response.data[0].签订日期
this.consignee = response.data[0].收货人员
this.paymentMethodValue = response.data[0].付款方式流水号
@@ -1996,7 +2011,8 @@ export default {
this.dialogFormVisible = false
this.customerName = []
var param10 = []
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据', param10)
param10[0] = ['客户名称', this.form.客户名称]
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据_bak', param10)
this.ExecDatabase(Data10).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.customerName.push({

View File

@@ -1928,13 +1928,13 @@ export default {
}
},
async contractQueryJump(contractNo) {
await this.getOrder('')
await this.getOrder(contractNo)
if (contractNo) {
console.log('this.orderArray', this.orderArray)
let obj = {}
obj = this.orderArray.find((item) => {
return item.label === contractNo
})
if (!obj) return
this.orderValue = obj.value
await this.searchTable()
if (Number(this.tableData[0].订单类型) !== 3) {

View File

@@ -65,10 +65,12 @@
<span>*买方名称</span>
<el-select
v-model="customerNameValue"
:remote-method="getCustomer"
placeholder="选择买方"
size="small"
clearable
filterable
remote
style="width: 150px;margin: 10px 0 10px 2px"
@change="editContract">
<el-option
@@ -469,11 +471,13 @@
<el-col>
<el-select
v-model="customerNameValue1"
:remote-method="getCustomer"
style="width:150px"
placeholder="买方名称"
size="small"
filterable
clearable
remote
@change="searchOldContract()">
<el-option
v-for="(item, index) in customerName"
@@ -1773,6 +1777,21 @@ export default {
}
})
},
getCustomerById(queryId) {
this.customerName = []
var param = []
param[0] = ['客户流水号', queryId]
var Data = this.CreateData('11', '合同管理_客户信息_查询数据_通过ID_bak', param)
this.ExecDatabase(Data).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.customerName.push({
label: response.data[i].客户名称,
value: response.data[i].客户流水号
})
}
this.customerNameValue = queryId
})
},
getConsigneePeople() {
this.consigneePeople = []
var param = []
@@ -2009,7 +2028,8 @@ export default {
this.dialogFormVisible = false
this.customerName = []
var param10 = []
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据', param10)
param10[0] = ['客户名称', this.form.客户名称]
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据_bak', param10)
this.ExecDatabase(Data10).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.customerName.push({
@@ -2098,7 +2118,7 @@ export default {
param[0] = ['项目流水号', this.contractNoValue]
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
this.ExecDatabase(Data).then(response => {
this.customerNameValue = response.data[0].客户流水号
this.getCustomerById(response.data[0].客户流水号)
this.signingDate = response.data[0].签订日期
this.consignee = response.data[0].收货人员
this.paymentMethodValue = response.data[0].付款方式流水号