|
@@ -70,8 +70,9 @@ export default {
|
|
"params.billType":{
|
|
"params.billType":{
|
|
handler(nVal, oVal){
|
|
handler(nVal, oVal){
|
|
|
|
|
|
- if((nVal === '21-Cxx-02' || nVal === '21-Cxx-04' || nVal === '21-Cxx-10' || nVal === '21-Cxx-14')){
|
|
|
|
-
|
|
|
|
|
|
+ let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10','21-Cxx-14','21-Cxx-09','21-Cxx-17','21-Cxx-18'];
|
|
|
|
+
|
|
|
|
+ if(billList.find(item => item === nVal)){
|
|
this.rules.warehouseName = [
|
|
this.rules.warehouseName = [
|
|
{ required: true, message: "WMS入库仓库不能为空", trigger: "change" },
|
|
{ required: true, message: "WMS入库仓库不能为空", trigger: "change" },
|
|
];
|
|
];
|
|
@@ -83,6 +84,7 @@ export default {
|
|
this.rules.warehouseName = null;
|
|
this.rules.warehouseName = null;
|
|
this.rules.goodsAllocationName = null;
|
|
this.rules.goodsAllocationName = null;
|
|
}
|
|
}
|
|
|
|
+
|
|
this.count++;
|
|
this.count++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -388,37 +390,37 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- // // 组织
|
|
|
|
- // if(type === 'ORG_PARAM'){
|
|
|
|
-
|
|
|
|
- // for (const key in this.params) {
|
|
|
|
-
|
|
|
|
- // // if (Array.isArray(this.params[key])) {
|
|
|
|
- // if (key === 'puOrderItemList' || key === 'puOrderExecuteList') {
|
|
|
|
-
|
|
|
|
- // this.params[key] = [];
|
|
|
|
-
|
|
|
|
- // }
|
|
|
|
- // else if(key === 'sysFileRecordList'){
|
|
|
|
- // this.params[key] = [];
|
|
|
|
- // }
|
|
|
|
- // else if (
|
|
|
|
- // key != "puOrg" &&
|
|
|
|
- // key != "puOrgName" &&
|
|
|
|
- // key != "buyer" &&
|
|
|
|
- // key != "buyerName" &&
|
|
|
|
- // key != "puDept" &&
|
|
|
|
- // key != "puDeptName" &&
|
|
|
|
- // key != "status" &&
|
|
|
|
- // key != "billDate"
|
|
|
|
- // ) {
|
|
|
|
- // this.params[key] = "";
|
|
|
|
- // } else {
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ // 组织
|
|
|
|
+ if(type === 'ORG_PARAM'){
|
|
|
|
+
|
|
|
|
+ for (const key in this.params) {
|
|
|
|
+
|
|
|
|
+ // if (Array.isArray(this.params[key])) {
|
|
|
|
+ if (key === 'puOrderItemList' || key === 'puOrderExecuteList') {
|
|
|
|
+
|
|
|
|
+ this.params[key] = [];
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ else if(key === 'sysFileRecordList'){
|
|
|
|
+ this.params[key] = [];
|
|
|
|
+ }
|
|
|
|
+ else if (
|
|
|
|
+ key != "puOrg" &&
|
|
|
|
+ key != "puOrgName" &&
|
|
|
|
+ key != "buyer" &&
|
|
|
|
+ key != "buyerName" &&
|
|
|
|
+ key != "puDept" &&
|
|
|
|
+ key != "puDeptName" &&
|
|
|
|
+ key != "status" &&
|
|
|
|
+ key != "billDate"
|
|
|
|
+ ) {
|
|
|
|
+ this.params[key] = "";
|
|
|
|
+ } else {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
- // }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
// 下拉框选择改变
|
|
// 下拉框选择改变
|