修改生产界面

master
夜笙歌 7 months ago
parent 64dd66077b
commit 4143e5d20b

@ -163,20 +163,25 @@
<!-- >-->
<!-- SOP预览-->
<!-- </el-button>-->
<el-popconfirm
cancel-button-text='否'
confirm-button-text='是'
icon="el-icon-info"
icon-color="red"
title="确定开始计划吗?"
@confirm="startPlan(scope.row)"
>
<el-popover
placement="top"
width="400"
v-model="visible">
<div style="margin: 15px 0;">
<el-input placeholder="请输入物料条码" v-model="input1" class="input-with-select">
<el-button slot="append" icon="el-icon-full-screen"></el-button>
</el-input>
</div>
<div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="visible = false">取消</el-button>
<el-button type="primary" size="mini" @click="startPlan(scope.row)"></el-button>
</div>
<el-button
slot="reference"
size="small"
type="text">开始
</el-button>
</el-popconfirm>
</el-popover>
</template>
</el-table-column>
</el-table>
@ -413,6 +418,8 @@ export default {
},
data() {
return {
input1:null,
visible:false,
PrintData: {},
printModel: false,
assignModel: false,
@ -699,19 +706,22 @@ export default {
})
},
async startPlan(val) {
const data = await startNextProductPlanDetail({planId: val.planId})
if (data.code === 200) {
this.$message({
message: '已开始',
type: 'success'
});
}
this.form = data.data || {}
this.form.materialId = val.materialId
this.form.materialCode = val.materialCode
this.form.materialName = val.materialName
this.form.planDetailStatus = setState(data.data.planDetailStatus)
this.getInfo(val)
this.visible = false
console.log(this.input1)
// const data = await startNextProductPlanDetail({planId: val.planId})
// if (data.code === 200) {
// this.$message({
// message: '',
// type: 'success'
// });
// }
// this.form = data.data || {}
// this.form.materialId = val.materialId
// this.form.materialCode = val.materialCode
// this.form.materialName = val.materialName
// this.form.planDetailStatus = setState(data.data.planDetailStatus)
// this.getInfo(val)
},
async tableClick(val) {
if (!val) return

Loading…
Cancel
Save