|
|
|
@ -163,9 +163,27 @@
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- SOP预览-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
|
|
|
|
|
<el-popconfirm
|
|
|
|
|
v-if="($route.query && $route.query.id) === '2'"
|
|
|
|
|
cancel-button-text='否'
|
|
|
|
|
confirm-button-text='是'
|
|
|
|
|
icon="el-icon-info"
|
|
|
|
|
icon-color="red"
|
|
|
|
|
title="确定开始计划吗?"
|
|
|
|
|
@confirm="startPlan(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="reference"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text">开始
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="top"
|
|
|
|
|
width="400"
|
|
|
|
|
v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
v-model="visible">
|
|
|
|
|
<div style="margin: 15px 0;">
|
|
|
|
|
<el-input placeholder="请输入物料条码" v-model="input1" class="input-with-select">
|
|
|
|
@ -174,7 +192,7 @@
|
|
|
|
|
</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>
|
|
|
|
|
<el-button type="primary" size="mini" @click="startPlan1(scope.row)">确定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="reference"
|
|
|
|
@ -706,6 +724,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)
|
|
|
|
|
},
|
|
|
|
|
async startPlan1(val) {
|
|
|
|
|
this.visible = false
|
|
|
|
|
console.log(this.input1)
|
|
|
|
|
|
|
|
|
|