修改生产界面

master
夜笙歌 7 months ago
parent fc971fd3a0
commit aacb58b681

@ -6,35 +6,27 @@
<div class="title">工单信息</div>
<div class="chart">
<div class="form">
<el-form :model="form" label-position="right" label-width="80px" size="mini">
<el-form-item label="明细编号">
<el-input v-model="form.planDetailCode"></el-input>
</el-form-item>
<el-form :model="form" label-position="right" label-width="80px">
<el-form-item label="工单编号">
<el-input v-model="form.planCode"></el-input>
</el-form-item>
<el-form-item label="物料编号">
<el-input v-model="form.materialId"></el-input>
<el-form-item label="明细编号">
<el-input v-model="form.planDetailCode"></el-input>
</el-form-item>
<el-form-item label="物料名称">
<el-form-item label="成品名称">
<el-input v-model="form.materialName"></el-input>
</el-form-item>
<el-form-item label="图纸名称">
<el-input v-model="form.attachName"></el-input>
<el-form-item label="成品编号">
<el-input v-model="form.materialCode"></el-input>
</el-form-item>
<el-form-item label="状态">
<el-input v-model="form.planDetailStatus"></el-input>
</el-form-item>
<!-- <el-form-item label="扫码时间">-->
<!-- <el-input v-model="form.materialId1"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="产品型号">-->
<!-- <el-input v-model="form.materialId1"></el-input>-->
<!-- </el-form-item>-->
</el-form>
<div style="text-align: center">
<el-button type="primary" @click="getMaterials"></el-button>
<el-button type="primary" @click="accomplishPlan"></el-button>
<el-button :disabled="form.planDetailStatus === '已完成'" type="primary" @click="finish"></el-button>
</div>
</div>
@ -876,37 +868,6 @@ export default {
this.form.planDetailStatus = setState(val.data.planDetailStatus)
})
},
//
accomplishPlan() {
this.$confirm('是否完成计划', '确认', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'success'
}).then(() => {
completeProductPlanDetail({
planDetailId: this.form.planDetailId
})
.then(() => {
this.$message({
type: 'success',
message: '已完成'
});
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
this.tableData = e.rows
this.totalNum1 = Math.ceil(e.total / 5)
let data = e.rows.find(v => v.planCode === this.form.planCode) || null
this.$refs.table1.setCurrentRow(data || e.rows[0]);
this.getInfo(data || e.rows[0])
})
})
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
})
},
//
getMaterials() {
@ -924,7 +885,6 @@ export default {
//
getWarehouses({"warehouseFloor": 5}).then(e => {
this.warehouseList = e.data
this.form1.warehouseId = e.data[0]?.warehouseId
this.searchMaterial("");
})

Loading…
Cancel
Save