Commit 9e905692 authored by 沈翠玲's avatar 沈翠玲

车间异常单

parent abe7a162
......@@ -183,7 +183,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="编排单号" prop="batchNumber">
<el-input v-model="form.batchNumber" placeholder="请输入编排单号" />
<el-input v-model="form.batchNumber" placeholder="请输入编排单号" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -212,7 +212,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="异常类型" prop="abnormalType">
<el-select v-model="form.abnormalType" placeholder="请选择异常类型">
<el-select v-model="form.abnormalType" placeholder="请选择异常类型" disabled>
<el-option
v-for="dict in dict.type.pc_abnormal_type"
:key="dict.value"
......@@ -389,7 +389,9 @@ export default {
},
methods: {
handleSubmit (row){
submit(row.abnormalReportCode).then(res=>{
this.$modal.confirm('是否提交车间异常单号为"' + row.abnormalReportCode + '"的数据?').then(function() {
return submit(row.abnormalReportCode);
}).then((res) => {
if(res.code === 200) {
this.getList()
}
......@@ -409,7 +411,7 @@ export default {
//查询工序信息
getoldProcess(){
getAllProcess(this.form.batchNumber).then( response =>{
this.oldprocessOptions = response.data;
this.oldprocessOptions = response.rows;
});
},
/** 查询车间异常单列表 */
......@@ -525,9 +527,14 @@ export default {
getReport(abnormalReportId).then(response => {
this.form = response.data;
this.open = true;
this.$nextTick(()=>{
if (this.form.abnormalType === 'PROCESS') {
this.getoldProcess()
this.getProcess()
} else if (this.form.abnormalType === 'MATERIAL') {
this.getAllBomMaterial()
}
})
this.title = "修改车间异常单";
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment