|
@@ -235,7 +235,7 @@
|
|
|
<el-table-column label="物料编码" align="center" prop="material" width="230px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang">
|
|
|
- <el-input readonly size="small" v-model="scope.row.material">
|
|
|
+ <el-input clearable :disabled="sonDisable" size="small" v-model="scope.row.material" @focus="chooseMaterial(scope.$index)">
|
|
|
<el-button size="small" :disabled="sonDisable" slot="append" icon="el-icon-more" @click="chooseMaterial(scope.$index)"></el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -267,7 +267,24 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="税率" align="center" prop="rate"/>
|
|
|
- <!-- <el-table-column label="调入仓库" align="center" prop="storageWarehouseName"/> -->
|
|
|
+ <el-table-column 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>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column 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>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="批次号" align="center" prop="patchNo" width="150px"/>
|
|
|
<el-table-column label="产品批号" align="center" prop="producBatch" width="230px">
|
|
|
<template slot-scope="scope">
|
|
@@ -622,6 +639,8 @@ export default {
|
|
|
type: '',
|
|
|
isPage: true,
|
|
|
title: '',
|
|
|
+ // 仓库编码
|
|
|
+ stordocId: ''
|
|
|
},
|
|
|
referConditionMx: {
|
|
|
orgCode: '',
|
|
@@ -703,7 +722,7 @@ export default {
|
|
|
this.$emit('jugislist', true)
|
|
|
let queryParams = {
|
|
|
pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
+ pageSize: 5
|
|
|
}
|
|
|
this.$emit('refresh', queryParams)
|
|
|
},
|
|
@@ -778,6 +797,10 @@ export default {
|
|
|
mainQty: null,
|
|
|
rate: '0.00',
|
|
|
storageWarehouseName: null,
|
|
|
+ deliveryAllocationName: null,
|
|
|
+ deliveryAllocation: null,
|
|
|
+ storageAllocationName: null,
|
|
|
+ storageAllocation: null,
|
|
|
patchNo: null,
|
|
|
producBatch: null,
|
|
|
manufactureDate: null,
|
|
@@ -853,6 +876,14 @@ export default {
|
|
|
this.basicForm.deliveryWarehouse = selection[0].id
|
|
|
this.basicForm.deliveryWarehouseName = selection[0].name
|
|
|
}
|
|
|
+ if (this.referCondition.title == '调出货位') {
|
|
|
+ this.materialInfo[this.tableIndex].deliveryAllocationName = selection[0].name
|
|
|
+ this.materialInfo[this.tableIndex].deliveryAllocation = selection[0].id
|
|
|
+ }
|
|
|
+ if (this.referCondition.title == '调入货位') {
|
|
|
+ this.materialInfo[this.tableIndex].storageAllocationName = selection[0].name
|
|
|
+ this.materialInfo[this.tableIndex].storageAllocation = selection[0].id
|
|
|
+ }
|
|
|
},
|
|
|
chooseTreeRefer(type, isPage, title) {
|
|
|
this.referCondition.type = type
|
|
@@ -899,6 +930,15 @@ export default {
|
|
|
selectBatch(selection) {
|
|
|
console.log('选中的批次号', selection)
|
|
|
},
|
|
|
+ // 明细行选择货位
|
|
|
+ chooseMxHW(index, type, isPage, title, stordocId) {
|
|
|
+ this.tableIndex = index
|
|
|
+ this.referCondition.type = type
|
|
|
+ this.referCondition.isPage = isPage
|
|
|
+ this.referCondition.title = title
|
|
|
+ this.referCondition.stordocId = stordocId
|
|
|
+ this.$refs.refer.init(this.referCondition)
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|