|
@@ -56,6 +56,25 @@ export default {
|
|
|
deep: true,
|
|
|
immediate: true
|
|
|
},
|
|
|
+ "params.billType":{
|
|
|
+ handler(nVal, oVal){
|
|
|
+
|
|
|
+ if((nVal === '21-Cxx-02' || nVal === '21-Cxx-04' || nVal === '21-Cxx-10')){
|
|
|
+
|
|
|
+ this.rules.warehouseName = [
|
|
|
+ { required: true, message: "WMS入库仓库不能为空", trigger: "change" },
|
|
|
+ ];
|
|
|
+
|
|
|
+ this.rules.goodsAllocationName = [
|
|
|
+ { required: true, message: "货位不能为空", trigger: "change" },
|
|
|
+ ];
|
|
|
+ }else{
|
|
|
+ this.rules.warehouseName = null;
|
|
|
+ this.rules.goodsAllocationName = null;
|
|
|
+ }
|
|
|
+ this.count++;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
setVisible(prop) {
|