|
@@ -140,8 +140,8 @@ export default {
|
|
|
|
|
|
this.params.warehouse = "";
|
|
|
this.params.warehouseName = "";
|
|
|
- this.params.goodsAllocation = "";
|
|
|
- this.params.goodsAllocationName = "";
|
|
|
+ // this.params.goodsAllocation = "";
|
|
|
+ // this.params.goodsAllocationName = "";
|
|
|
this.params["puOrderItemList"] = this.params["puOrderItemList"].map(
|
|
|
(item) => ({
|
|
|
...item,
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
} else {
|
|
|
this.rules.warehouseName = null;
|
|
|
}
|
|
|
- this.rules.goodsAllocationName = null;
|
|
|
+ // this.rules.goodsAllocationName = null;
|
|
|
|
|
|
this.count++;
|
|
|
},
|
|
@@ -237,20 +237,20 @@ export default {
|
|
|
closeReason: "",
|
|
|
};
|
|
|
|
|
|
- try {
|
|
|
- const { code, rows } = await orderApi.REFER(
|
|
|
- {
|
|
|
- type: "WAREHOUSE_PARAM",
|
|
|
- search: this.params.warehouseName,
|
|
|
- isPage: true,
|
|
|
- },
|
|
|
- { pageNum: 1, pageSize: 10 }
|
|
|
- );
|
|
|
-
|
|
|
- if (code == 200) {
|
|
|
- this.judgeGoodsAllocation(rows[0].csFlag);
|
|
|
- }
|
|
|
- } catch (error) {}
|
|
|
+ // try {
|
|
|
+ // const { code, rows } = await orderApi.REFER(
|
|
|
+ // {
|
|
|
+ // type: "WAREHOUSE_PARAM",
|
|
|
+ // search: this.params.warehouseName,
|
|
|
+ // isPage: true,
|
|
|
+ // },
|
|
|
+ // { pageNum: 1, pageSize: 10 }
|
|
|
+ // );
|
|
|
+
|
|
|
+ // if (code == 200) {
|
|
|
+ // this.judgeGoodsAllocation(rows[0].csFlag);
|
|
|
+ // }
|
|
|
+ // } catch (error) {}
|
|
|
|
|
|
for (const key in this.params) {
|
|
|
// if (Array.isArray(this.params[key])) {
|
|
@@ -455,16 +455,16 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- judgeGoodsAllocation(porp) {
|
|
|
- if (porp === "Y") {
|
|
|
- this.rules.goodsAllocationName = [
|
|
|
- { required: true, message: "货位不能为空", trigger: "change" },
|
|
|
- ];
|
|
|
- } else {
|
|
|
- this.rules.goodsAllocationName = null;
|
|
|
- }
|
|
|
- this.count++;
|
|
|
- },
|
|
|
+ // judgeGoodsAllocation(porp) {
|
|
|
+ // if (porp === "Y") {
|
|
|
+ // this.rules.goodsAllocationName = [
|
|
|
+ // { required: true, message: "货位不能为空", trigger: "change" },
|
|
|
+ // ];
|
|
|
+ // } else {
|
|
|
+ // this.rules.goodsAllocationName = null;
|
|
|
+ // }
|
|
|
+ // this.count++;
|
|
|
+ // },
|
|
|
// 主表参照改变之后
|
|
|
async handleReferChange(val, type, source) {
|
|
|
let page = { pageNum: 1, pageSize: 10 };
|
|
@@ -894,8 +894,7 @@ export default {
|
|
|
this.innerColumns = prop;
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- },
|
|
|
+ created() {},
|
|
|
mounted() {},
|
|
|
updated() {
|
|
|
this.$nextTick(() => {
|