feat(特殊拆批): 拆批完成后界面除清除外不可操作

This commit is contained in:
faramita_zhao 2025-06-11 17:44:55 +08:00
parent 2394f3a9e8
commit 1d4847b29f

View File

@ -34,7 +34,7 @@
</el-row>
</el-form>
<div style="margin-bottom: 10px;">
<el-button icon="el-icon-plus" @click="addDetail">新 增</el-button>
<el-button icon="el-icon-plus" @click="addDetail" :disabled="splitDone">新 增</el-button>
</div>
<el-table :data="inventoryList" border>
<el-table-column align="center" label="序号" width="50">
@ -46,17 +46,17 @@
<el-table-column align="center" label="SAP批次" prop="batchNo"/>
<el-table-column align="center" label="供应商批次" prop="vendorBatchNo">
<template slot-scope="scope">
<el-input v-model="scope.row.vendorBatchNo"/>
<el-input v-model="scope.row.vendorBatchNo" :disabled="splitDone"/>
</template>
</el-table-column>
<el-table-column align="center" label="数量" prop="qtyOnHand">
<template slot-scope="scope">
<el-input v-model="scope.row.qtyOnHand"/>
<el-input v-model="scope.row.qtyOnHand" :disabled="splitDone"/>
</template>
</el-table-column>
</el-table>
<div style="margin-top: 10px;">
<el-button type="primary" @click="doSplit">拆批执行</el-button>
<el-button type="primary" @click="doSplit" :disabled="splitDone">拆批执行</el-button>
<el-button type="warning" @click="doClear">清除</el-button>
</div>
</basic-container>
@ -81,6 +81,7 @@ export default {
site: getStore({name: 'tenantId'}),
formObj: {},
codeDisabled: false,
splitDone: false,
inventoryList: []
};
@ -131,6 +132,7 @@ export default {
this.formObj = {};
this.inventoryList = [];
this.codeDisabled = false;
this.splitDone = false;
},
scanCode() {
@ -197,6 +199,7 @@ export default {
}).then(res => {
hideLoading();
me.inventoryList = res.data.data;
me.splitDone = true;
me.$message.success("拆批成功");
}).catch(() => hideLoading());
}