|
@@ -158,24 +158,16 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-form-item label="调入仓库">
|
|
<el-form-item label="调入仓库">
|
|
- <el-input
|
|
|
|
- v-model="basicForm.storageWarehouse"
|
|
|
|
- size="small"
|
|
|
|
- :disabled="sonDisable"
|
|
|
|
- clearable
|
|
|
|
- style="width: 200px"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-select clearable size="small" v-model="basicForm.storageWarehouse" :disabled="sonDisable" @focus="chooseRefer('WAREHOUSE_PARAM', true, '调入仓库')" 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-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-form-item label="调出仓库">
|
|
<el-form-item label="调出仓库">
|
|
- <el-input
|
|
|
|
- v-model="basicForm.deliveryWarehouse"
|
|
|
|
- size="small"
|
|
|
|
- :disabled="sonDisable"
|
|
|
|
- clearable
|
|
|
|
- style="width: 200px"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-select clearable size="small" v-model="basicForm.deliveryWarehouse" :disabled="sonDisable" @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>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
@@ -619,6 +611,8 @@ export default {
|
|
manOptions: [],
|
|
manOptions: [],
|
|
deptOptions: [],
|
|
deptOptions: [],
|
|
currencyOptions: [],
|
|
currencyOptions: [],
|
|
|
|
+ ruHouseOptions: [],
|
|
|
|
+ chuHouseOptions: [],
|
|
liacenterOptions: [],
|
|
liacenterOptions: [],
|
|
basicRules: {},
|
|
basicRules: {},
|
|
materialInfo: [],
|
|
materialInfo: [],
|
|
@@ -683,6 +677,8 @@ export default {
|
|
if(this.basicForm.businessPersonal) { this.reBackRefer('CONTACTS_PARAM', this.basicForm.businessPersonal) }
|
|
if(this.basicForm.businessPersonal) { this.reBackRefer('CONTACTS_PARAM', this.basicForm.businessPersonal) }
|
|
if(this.basicForm.deliveryDept) { this.reBackRefer('DEPT_PARAM', this.basicForm.deliveryDept) }
|
|
if(this.basicForm.deliveryDept) { this.reBackRefer('DEPT_PARAM', this.basicForm.deliveryDept) }
|
|
if(this.basicForm.currency) { this.reBackRefer('CURRENCY_PARAM', this.basicForm.currency) }
|
|
if(this.basicForm.currency) { this.reBackRefer('CURRENCY_PARAM', this.basicForm.currency) }
|
|
|
|
+ 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) }
|
|
if(this.basicForm.liacenter) { this.reBackRefer('LIACENTER_PARAM', this.basicForm.liacenter) }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -708,6 +704,12 @@ export default {
|
|
if (type == 'LIACENTER_PARAM') {
|
|
if (type == 'LIACENTER_PARAM') {
|
|
this.liacenterOptions = res.rows
|
|
this.liacenterOptions = res.rows
|
|
}
|
|
}
|
|
|
|
+ if (type == 'WAREHOUSE_PARAM' && title == '调入仓库') {
|
|
|
|
+ this.ruHouseOptions = res.rows
|
|
|
|
+ }
|
|
|
|
+ if (type == 'WAREHOUSE_PARAM' && title == '调出仓库') {
|
|
|
|
+ this.chuHouseOptions = res.rows
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
addLine() {
|
|
addLine() {
|
|
@@ -794,6 +796,16 @@ export default {
|
|
this.basicForm.currency = selection[0].id
|
|
this.basicForm.currency = selection[0].id
|
|
this.basicForm.currencyName = selection[0].name
|
|
this.basicForm.currencyName = selection[0].name
|
|
}
|
|
}
|
|
|
|
+ if (this.referCondition.title == '调入仓库') {
|
|
|
|
+ this.ruHouseOptions = selection
|
|
|
|
+ this.basicForm.storageWarehouse = selection[0].id
|
|
|
|
+ this.basicForm.storageWarehouseName = selection[0].name
|
|
|
|
+ }
|
|
|
|
+ if (this.referCondition.title == '调出仓库') {
|
|
|
|
+ this.chuHouseOptions = selection
|
|
|
|
+ this.basicForm.deliveryWarehouse = selection[0].id
|
|
|
|
+ this.basicForm.deliveryWarehouseName = selection[0].name
|
|
|
|
+ }
|
|
},
|
|
},
|
|
chooseTreeRefer(type, isPage, title) {
|
|
chooseTreeRefer(type, isPage, title) {
|
|
this.referCondition.type = type
|
|
this.referCondition.type = type
|