|
|
|
@ -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("");
|
|
|
|
|
})
|
|
|
|
|