|
@@ -76,13 +76,8 @@ export default {
|
|
|
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++;
|
|
@@ -145,6 +140,23 @@ export default {
|
|
|
|
|
|
};
|
|
|
|
|
|
+ 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])) {
|
|
|
if (key === 'puOrderItemList' || key === 'puOrderExecuteList') {
|
|
@@ -320,13 +332,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ 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 };
|
|
|
// 供应商选择
|
|
|
if( type === 'SUPPLIER_PARAM' ){
|
|
|
|
|
|
- let page = { pageNum: 1 , pageSize: 10 };
|
|
|
|
|
|
let relevanceRefer = [
|
|
|
{
|
|
@@ -421,6 +442,11 @@ export default {
|
|
|
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ // WMS仓库
|
|
|
+ if(type === 'WAREHOUSE_PARAM'){
|
|
|
+ this.judgeGoodsAllocation(val.csFlag);
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 下拉框选择改变
|
|
@@ -597,7 +623,7 @@ export default {
|
|
|
|
|
|
async handleTemDownload(){
|
|
|
|
|
|
- this.download('/pu/order/downloadFailData',{}, `物料信息模板${new Date().getTime()}.xlsx`);
|
|
|
+ this.download('/pu/order/downloadFailData',{}, `采购订单物料信息模板${new Date().getTime()}.xlsx`);
|
|
|
},
|
|
|
|
|
|
|