|
@@ -4,7 +4,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="调出库存组织">
|
|
|
- <el-select clearable size="small" v-model="basicForm.deliveryInventoryOrg" :disabled="sonDisable" @focus="chooseRefer('ORG_PARAM', true, '调出库存组织')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="basicForm.deliveryInventoryOrg" :disabled="sonDisable" @change="controlCk" @focus="chooseRefer('ORG_PARAM', true, '调出库存组织')" style="width: 200px">
|
|
|
<el-option v-for="item in chuOrgOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -73,7 +73,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="调入库存组织">
|
|
|
- <el-select clearable size="small" v-model="basicForm.storageInventoryOrg" :disabled="sonDisable" @focus="chooseRefer('ORG_PARAM', true, '调入库存组织')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="basicForm.storageInventoryOrg" :disabled="sonDisable" @change="controlCk" @focus="chooseRefer('ORG_PARAM', true, '调入库存组织')" style="width: 200px">
|
|
|
<el-option v-for="item in ruOrgOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -87,7 +87,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="调出部门">
|
|
|
- <el-select clearable size="small" v-model="basicForm.deliveryDept" :disabled="sonDisable" @focus="chooseRefer('DEPT_PARAM', true, '调出部门', basicForm.deliveryInventoryOrg)" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="basicForm.deliveryDept" :disabled="sonDisable || isOrg" @focus="chooseRefer('DEPT_PARAM', true, '调出部门', basicForm.deliveryInventoryOrg)" style="width: 200px">
|
|
|
<el-option v-for="item in deptOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -158,14 +158,14 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="调入仓库">
|
|
|
- <el-select clearable size="small" v-model="basicForm.storageWarehouse" :disabled="sonDisable" @focus="chooseRefer('WAREHOUSE_PARAM', true, '调入仓库', basicForm.storageInventoryOrg, 'N', 'N')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="basicForm.storageWarehouse" :disabled="sonDisable || isOrg" @change="controlDCHW" @focus="chooseRefer('WAREHOUSE_PARAM', true, '调入仓库', basicForm.storageInventoryOrg, 'N', 'N')" style="width: 200px">
|
|
|
<el-option v-for="item in ruHouseOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="调出仓库">
|
|
|
- <el-select clearable size="small" v-model="basicForm.deliveryWarehouse" :disabled="sonDisable" @focus="chooseRefer('WAREHOUSE_PARAM', true, '调出仓库')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="basicForm.deliveryWarehouse" :disabled="sonDisable || isOrg" @change="controlDRHW" @focus="chooseRefer('WAREHOUSE_PARAM', true, '调出仓库')" style="width: 200px">
|
|
|
<el-option v-for="item in chuHouseOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -271,8 +271,8 @@
|
|
|
<el-table-column show-overflow-tooltip label="调出货位" align="center" prop="deliveryAllocationName" width="230px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang">
|
|
|
- <el-input clearable :disabled="sonDisable" size="small" v-model="scope.row.deliveryAllocationName" @focus="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调出货位', basicForm.deliveryWarehouse)">
|
|
|
- <el-button size="small" :disabled="sonDisable" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调出货位', basicForm.deliveryWarehouse)"></el-button>
|
|
|
+ <el-input clearable :disabled="sonDisable || isCk" size="small" v-model="scope.row.deliveryAllocationName" @focus="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调出货位', basicForm.deliveryWarehouse)">
|
|
|
+ <el-button size="small" :disabled="sonDisable || isCk" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调出货位', basicForm.deliveryWarehouse)"></el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
@@ -289,8 +289,8 @@
|
|
|
<el-table-column show-overflow-tooltip label="调入货位" align="center" prop="storageAllocationName" width="230px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang">
|
|
|
- <el-input clearable :disabled="sonDisable" size="small" v-model="scope.row.storageAllocationName" @focus="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调入货位', basicForm.storageWarehouse)">
|
|
|
- <el-button size="small" :disabled="sonDisable" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调入货位', basicForm.storageWarehouse)"></el-button>
|
|
|
+ <el-input clearable :disabled="sonDisable || isCk" size="small" v-model="scope.row.storageAllocationName" @focus="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调入货位', basicForm.storageWarehouse)">
|
|
|
+ <el-button size="small" :disabled="sonDisable || isCk" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ALLOCATION_PARAM', true, '调入货位', basicForm.storageWarehouse)"></el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
@@ -704,7 +704,9 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ isOrg: true,
|
|
|
+ isCk: false
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -716,6 +718,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 控制先选调出库存组织和调入库存组织再选调出部门和调入调出仓库
|
|
|
+ controlCk() {
|
|
|
+ console.log('进了吗')
|
|
|
+ if (this.basicForm.deliveryInventoryOrg && this.basicForm.storageInventoryOrg) {
|
|
|
+ this.isOrg = false
|
|
|
+ } else {
|
|
|
+ this.basicForm.deliveryDept = ''
|
|
|
+ this.basicForm.storageWarehouse = ''
|
|
|
+ this.basicForm.deliveryWarehouse = ''
|
|
|
+ this.isOrg = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 控制子表内货位是否可以填写,根据选择仓库内csFlag
|
|
|
+ controlDCHW() {},
|
|
|
+ controlDRHW() {},
|
|
|
// 输入数量或者主数量同步改变
|
|
|
getZSL(scope) {
|
|
|
scope.row.qty = scope.row.mainQty
|
|
@@ -788,6 +805,8 @@ export default {
|
|
|
if(this.basicForm.storageWarehouse) { this.reBackRefer('WAREHOUSE_PARAM', this.basicForm.storageWarehouse, '调入仓库') }
|
|
|
if(this.basicForm.deliveryWarehouse) { this.reBackRefer('WAREHOUSE_PARAM', this.basicForm.deliveryWarehouse, '调出仓库') }
|
|
|
if(this.basicForm.liacenter) { this.reBackRefer('LIACENTER_PARAM', this.basicForm.liacenter) }
|
|
|
+ // 控制先选调出库存组织和调入库存组织再选调出部门和调入调出仓库
|
|
|
+ this.controlCk()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -945,6 +964,8 @@ export default {
|
|
|
this.materialInfo[this.tableIndex].storageDeptName = selection[0].name
|
|
|
this.materialInfo[this.tableIndex].storageDept = selection[0].id
|
|
|
}
|
|
|
+ // 控制先选调出库存组织和调入库存组织再选调出部门和调入调出仓库
|
|
|
+ this.controlCk()
|
|
|
},
|
|
|
chooseTreeRefer(type, isPage, title) {
|
|
|
this.referCondition.type = type
|