直接单确认状态从CONFIRMED修改为FINISHED;产品入库添加查看页面。

This commit is contained in:
yinjinlu-pc\尹金路 2025-01-16 17:51:34 +08:00
parent 8ec64c8a66
commit 49ec348948
2 changed files with 23 additions and 2 deletions

View File

@ -639,7 +639,7 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
this.$modal.confirm('是否完成检验单编制?【完成后将不能更改】').then(function(){
that.form.status = 'CONFIRMED';
that.form.status = 'FINISHED';
that.submitForm();
that.open = false;
});

View File

@ -87,7 +87,15 @@
<el-table v-loading="loading" :data="productrecptList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="入库单编号" width="130px" align="center" prop="recptCode" />
<el-table-column label="入库单编号" width="130px" align="center" prop="recptCode" >
<template slot-scope="scope">
<el-button
type="text"
@click="handleView(scope.row)"
v-hasPermi="['mes:wm:productrecpt:query']"
>{{scope.row.recptCode}}</el-button>
</template>
</el-table-column>
<el-table-column label="入库单名称" width="150px" align="center" prop="recptName" :show-overflow-tooltip="true"/>
<el-table-column label="生产工单编码" width="150px" align="center" prop="workorderCode" />
<el-table-column label="产品编码" align="center" prop="itemCode" />
@ -389,6 +397,7 @@ export default {
this.reset();
this.open = true;
this.title = "添加产品入库单";
this.optType = 'add'
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -398,6 +407,18 @@ export default {
this.form = response.data;
this.open = true;
this.title = "修改产品入库单";
this.optType = 'edit'
});
},
/** 查看单据 */
handleView(row) {
this.reset();
const recptId = row.recptId || this.ids
getProductrecpt(recptId).then(response => {
this.form = response.data;
this.open = true;
this.title = "查看产品入库单";
this.optType = 'view'
});
},
//