2024-09-23 对出错的查询就行调整
This commit is contained in:
@@ -1112,6 +1112,8 @@
|
|||||||
<el-form-item label="买方名称" prop="买方名称">
|
<el-form-item label="买方名称" prop="买方名称">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.买方名称"
|
v-model="form.买方名称"
|
||||||
|
:remote-method="getCustomer"
|
||||||
|
remote
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
placeholder="买方名称"
|
placeholder="买方名称"
|
||||||
@@ -2297,10 +2299,10 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var param1 = []
|
var param1 = []
|
||||||
param[0] = ['项目流水号', this.projectValue]
|
param1[0] = ['项目流水号', this.projectValue]
|
||||||
param[1] = ['机床流水号', this.MachineToolNumber]
|
param1[1] = ['机床流水号', this.MachineToolNumber]
|
||||||
param[2] = ['修改人', this.id]
|
param1[2] = ['修改人', this.id]
|
||||||
param[3] = ['合同备注', this.explain]
|
param1[3] = ['合同备注', this.explain]
|
||||||
var Data1 = this.CreateData('12', 'PDM_组件名称_确认更改新', param1)
|
var Data1 = this.CreateData('12', 'PDM_组件名称_确认更改新', param1)
|
||||||
this.ExecDatabase(Data1).then(response => {
|
this.ExecDatabase(Data1).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
|
|||||||
@@ -1144,7 +1144,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchData() {
|
fetchData() {
|
||||||
this.getCustomer()
|
this.getCustomer('')
|
||||||
this.getConsigneePeople()
|
this.getConsigneePeople()
|
||||||
this.getPaymentMethod()
|
this.getPaymentMethod()
|
||||||
this.searchContract()
|
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() {
|
getConsigneePeople() {
|
||||||
this.consigneePeople = []
|
this.consigneePeople = []
|
||||||
var param = []
|
var param = []
|
||||||
@@ -1714,7 +1729,7 @@ export default {
|
|||||||
param[0] = ['项目流水号', this.contractNoValue]
|
param[0] = ['项目流水号', this.contractNoValue]
|
||||||
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
|
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
this.customerNameValue = response.data[0].客户流水号
|
this.getCustomerById(response.data[0].客户流水号)
|
||||||
this.signingDate = response.data[0].签订日期
|
this.signingDate = response.data[0].签订日期
|
||||||
this.consignee = response.data[0].收货人员
|
this.consignee = response.data[0].收货人员
|
||||||
this.paymentMethodValue = response.data[0].付款方式流水号
|
this.paymentMethodValue = response.data[0].付款方式流水号
|
||||||
@@ -1996,7 +2011,8 @@ export default {
|
|||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
this.customerName = []
|
this.customerName = []
|
||||||
var param10 = []
|
var param10 = []
|
||||||
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据', param10)
|
param10[0] = ['客户名称', this.form.客户名称]
|
||||||
|
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据_bak', param10)
|
||||||
this.ExecDatabase(Data10).then(response => {
|
this.ExecDatabase(Data10).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.customerName.push({
|
this.customerName.push({
|
||||||
|
|||||||
@@ -1928,13 +1928,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async contractQueryJump(contractNo) {
|
async contractQueryJump(contractNo) {
|
||||||
await this.getOrder('')
|
await this.getOrder(contractNo)
|
||||||
if (contractNo) {
|
if (contractNo) {
|
||||||
console.log('this.orderArray', this.orderArray)
|
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj = this.orderArray.find((item) => {
|
obj = this.orderArray.find((item) => {
|
||||||
return item.label === contractNo
|
return item.label === contractNo
|
||||||
})
|
})
|
||||||
|
if (!obj) return
|
||||||
this.orderValue = obj.value
|
this.orderValue = obj.value
|
||||||
await this.searchTable()
|
await this.searchTable()
|
||||||
if (Number(this.tableData[0].订单类型) !== 3) {
|
if (Number(this.tableData[0].订单类型) !== 3) {
|
||||||
|
|||||||
@@ -65,10 +65,12 @@
|
|||||||
<span>*买方名称:</span>
|
<span>*买方名称:</span>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="customerNameValue"
|
v-model="customerNameValue"
|
||||||
|
:remote-method="getCustomer"
|
||||||
placeholder="选择买方"
|
placeholder="选择买方"
|
||||||
size="small"
|
size="small"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
|
remote
|
||||||
style="width: 150px;margin: 10px 0 10px 2px"
|
style="width: 150px;margin: 10px 0 10px 2px"
|
||||||
@change="editContract">
|
@change="editContract">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -469,11 +471,13 @@
|
|||||||
<el-col>
|
<el-col>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="customerNameValue1"
|
v-model="customerNameValue1"
|
||||||
|
:remote-method="getCustomer"
|
||||||
style="width:150px"
|
style="width:150px"
|
||||||
placeholder="买方名称"
|
placeholder="买方名称"
|
||||||
size="small"
|
size="small"
|
||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
|
remote
|
||||||
@change="searchOldContract()">
|
@change="searchOldContract()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in customerName"
|
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() {
|
getConsigneePeople() {
|
||||||
this.consigneePeople = []
|
this.consigneePeople = []
|
||||||
var param = []
|
var param = []
|
||||||
@@ -2009,7 +2028,8 @@ export default {
|
|||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
this.customerName = []
|
this.customerName = []
|
||||||
var param10 = []
|
var param10 = []
|
||||||
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据', param10)
|
param10[0] = ['客户名称', this.form.客户名称]
|
||||||
|
var Data10 = this.CreateData('11', '合同管理_客户信息_查询数据_bak', param10)
|
||||||
this.ExecDatabase(Data10).then(response => {
|
this.ExecDatabase(Data10).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.customerName.push({
|
this.customerName.push({
|
||||||
@@ -2098,7 +2118,7 @@ export default {
|
|||||||
param[0] = ['项目流水号', this.contractNoValue]
|
param[0] = ['项目流水号', this.contractNoValue]
|
||||||
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
|
var Data = this.CreateData('11', 'PDM_项目名称_详情_查询数据', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
this.customerNameValue = response.data[0].客户流水号
|
this.getCustomerById(response.data[0].客户流水号)
|
||||||
this.signingDate = response.data[0].签订日期
|
this.signingDate = response.data[0].签订日期
|
||||||
this.consignee = response.data[0].收货人员
|
this.consignee = response.data[0].收货人员
|
||||||
this.paymentMethodValue = response.data[0].付款方式流水号
|
this.paymentMethodValue = response.data[0].付款方式流水号
|
||||||
|
|||||||
Reference in New Issue
Block a user