+
@@ -477,7 +469,7 @@
sortLv: 0,
status: true,
fixed: false,
- columnWidth: 80
+ columnWidth: 250
},
{
userId: this.$store.state.user.name,
@@ -495,7 +487,7 @@
sortLv: 0,
status: true,
fixed: false,
- columnWidth: 150
+ columnWidth: 250
},
{
userId: this.$store.state.user.name,
@@ -513,7 +505,7 @@
sortLv: 0,
status: true,
fixed: false,
- columnWidth: 100
+ columnWidth: 250
},
{
userId: this.$store.state.user.name,
@@ -531,7 +523,7 @@
sortLv: 0,
status: true,
fixed: false,
- columnWidth: 150
+ columnWidth: 249
}
],
columnList3: [
@@ -684,7 +676,7 @@
},
mounted() {
this.$nextTick(() => {
- this.height = window.innerHeight - 200;
+ this.height = window.innerHeight - 360;
})
},
methods: {
@@ -755,14 +747,87 @@
this.sum2 += newDate.allRollQty;
},
saveCRoll() {
- if (this.dataList1.length == 0) {
- this.$alert("没有待分卷信息!", '错误', {
- confirmButtonText: '确定'
- })
- return false;
+ let bool = false
+ let inData = {
+ site: this.dataForm.site,
+ partNo: this.dataForm.partNo
}
+ getPartNoDetail(inData).then(({data}) => {
+ if (data.total > 0) {
+ this.dataForm.partDescription=data.rows[0].partDescription;
+ //this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
+ let inData2={
+
+ site : this.dataForm.site,
+ supplierID : this.dataForm.supplierID
+ }
+ getSupplierDetail(inData2).then(({data}) => {
+ let outList = data.rows
+ if (outList.length>0){
+ this.dataForm.supplierName=outList[0].supplierName;
+ // this.$set(this.dataForm,'supplierName',outList[0].supplierName)
+ let inData3 = {
+ site: this.dataForm.site,
+ partNo: this.dataForm.fGPartNo
+ }
+ getPartNoDetail(inData3).then(({data}) => {
+ if (data.total > 0) {
+ } else {
+ bool = true;
+ }
+ })
+ if (bool){
+ this.dataForm.fGPartNo = '';
+ this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
+ this.$alert('该物料编码不存在', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ let inData4 = {
+ site: this.dataForm.site,
+ configurationTemplateID: this.dataForm.customerID,
+ }
+ checkCustomerID(inData4).then(({data}) => {
+ if (data.total > 0) {
+ if (this.dataList1.length == 0) {
+ this.$alert("没有待分卷信息!", '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }else {
+ this.doSaveCRoll()
+ }
+ } else {
+ this.dataForm.customerID = '';
+ this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
+ this.$alert('该客户编号不存在', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ })
+ }
+ else {
+ this.dataForm.supplierName='';
+ this.dataForm.supplierID='';
+ this.$alert('该供应商不存在', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ })
+ }
+ else {
+ this.dataForm.partNo = '';
+ this.$alert('该物料编码不存在', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ })
+
- this.doSaveCRoll()
},
doSaveCRoll() {
@@ -814,6 +879,7 @@
this.$alert('该物料编码不存在', '错误', {
confirmButtonText: '确定'
})
+ return false;
}
})
},
@@ -826,13 +892,13 @@
if (data.total > 0) {
this.dataForm.partDescription=data.rows[0].partDescription;
//this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
- } else {
- this.dataForm.partNo = '';
- // this.dataForm = JSON.parse(JSON.stringify(this.dataForm));
- this.$alert('该物料编码不存在', '错误', {
- confirmButtonText: '确定'
- })
}
+ // else {
+ // this.dataForm.partNo = '';
+ // this.$alert('该物料编码不存在', '错误', {
+ // confirmButtonText: '确定'
+ // })
+ // }
})
},
getCustomerID() {
@@ -848,6 +914,7 @@
this.$alert('该客户编号不存在', '错误', {
confirmButtonText: '确定'
})
+ return false;
}
})
},
@@ -861,13 +928,14 @@
if (outList.length>0){
this.dataForm.supplierName=outList[0].supplierName;
// this.$set(this.dataForm,'supplierName',outList[0].supplierName)
- }else {
- this.dataForm.supplierName='';
- this.dataForm.supplierID='';
- this.$alert('该供应商不存在', '错误', {
- confirmButtonText: '确定'
- })
}
+ // else {
+ // this.dataForm.supplierName='';
+ // this.dataForm.supplierID='';
+ // this.$alert('该供应商不存在', '错误', {
+ // confirmButtonText: '确定'
+ // })
+ // }
})
},
//供应商批号录入
diff --git a/src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue b/src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue
index 11629c6..116c940 100644
--- a/src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue
+++ b/src/views/modules/purchasingManagement/searchSAPPurchaseOrder.vue
@@ -912,7 +912,7 @@
let inData = {
site: row.site,
orderRef1: row.orderNo,
- orderRef2: row.orderItemNo,
+ orderRef3: row.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@@ -1018,7 +1018,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@@ -1076,7 +1076,7 @@
getAllThePartNo() {
let list = [];
for (let i = 0; i < this.dataList.length; i++) {
- if (this.dataList[i].partNo == this.dataForm.partNo) {
+ if (this.dataList[i].orderNo == this.dataForm.orderNo) {
list.push(this.dataList[i]);
}
}
@@ -1101,7 +1101,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@@ -1123,7 +1123,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
diff --git a/src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue b/src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue
index 66e267c..4d84ea3 100644
--- a/src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue
+++ b/src/views/modules/purchasingManagement/searchSAPSlittedOrder.vue
@@ -1195,7 +1195,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@@ -1253,7 +1253,7 @@
getAllThePartNo() {
let list = [];
for (let i = 0; i < this.dataList.length; i++) {
- if (this.dataList[i].partNo == this.dataForm.partNo) {
+ if (this.dataList[i].orderNo == this.dataForm.orderNo) {
list.push(this.dataList[i]);
}
}
@@ -1278,7 +1278,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows
@@ -1300,7 +1300,7 @@
let inData = {
site: this.dataForm.site,
orderRef1: this.dataForm.orderNo,
- orderRef2: this.dataForm.orderItemNo,
+ orderRef3: this.dataForm.orderItemNo,
}
searchCRollInfoDetail(inData).then(({data}) => {
this.dataList3 = data.rows