修改生产界面

master
夜笙歌 7 months ago
parent 05467aed61
commit c0bd28aa43

@ -25,8 +25,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" @click="getMaterials"></el-button> <el-button type="primary" @click="getMaterials" :disabled="!form.planCode">领料</el-button>
<el-button :disabled="form.planDetailStatus === '已完成'" type="primary" @click="finish"></el-button> <el-button :disabled="form.planDetailStatus === '已完成' || !form.planDetailStatus" type="primary" @click="finish"></el-button>
<el-popover <el-popover
v-if="($route.query && $route.query.id) === '2'" v-if="($route.query && $route.query.id) === '2'"
v-model="assignModel" v-model="assignModel"
@ -230,7 +230,7 @@
</el-form> </el-form>
<el-table <el-table
:cell-style="{textAlign:'center'}" :cell-style="{textAlign:'center'}"
:data="form.wmsRawOutstockDetailList" :data="form1.wmsRawOutstockDetailList"
:header-cell-style="{textAlign:'center'}" :header-cell-style="{textAlign:'center'}"
max-height="19.13vw" max-height="19.13vw"
style="width: 100%" style="width: 100%"
@ -984,9 +984,9 @@ export default {
this.dialogVisible = true this.dialogVisible = true
this.form1 = { this.form1 = {
warehouseId: '', warehouseId: '',
planId: this.form.row.planId, planId: this.form?.planId,
planCode: this.form.row.planCode, planCode: this.form?.planCode,
planDetailCode: this.form.row.planDetailCode, planDetailCode: this.form?.planDetailCode,
applyReason: '', applyReason: '',
taskType: '1', taskType: '1',
wmsRawOutstockDetailList: [] wmsRawOutstockDetailList: []
@ -1006,7 +1006,7 @@ export default {
warehouseId: this.form1.warehouseId, warehouseId: this.form1.warehouseId,
materialName: val materialName: val
}).then(e => { }).then(e => {
this.form1.wmsRawOutstockDetailList = e.data.map(r => { this.$set(this.form1,'wmsRawOutstockDetailList',e.data.map(r => {
return { return {
materialId: r.materialId, materialId: r.materialId,
materialCode: r.materialCode, materialCode: r.materialCode,
@ -1015,7 +1015,8 @@ export default {
unavailableAmount: r.occupyAmount + r.frozenAmount, unavailableAmount: r.occupyAmount + r.frozenAmount,
planAmount: r.planAmount planAmount: r.planAmount
} }
}) }))
console.log(this.form1)
}) })
}, },
@ -1023,7 +1024,7 @@ export default {
warehouseChange(warehouseId) { warehouseChange(warehouseId) {
this.form.wmsRawOutstockDetailList = []; this.form.wmsRawOutstockDetailList = [];
this.form.warehouseId = warehouseId; this.form.warehouseId = warehouseId;
this.getStockTotal(); this.searchMaterial('');
}, },
receiveMaterial() { receiveMaterial() {

Loading…
Cancel
Save