修改生产界面

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

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

Loading…
Cancel
Save