修改维修单
This commit is contained in:
parent
495e3a538d
commit
812f8e9935
@ -90,6 +90,13 @@ export default {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
repairing:{
|
||||
url: `${config.API_URL}/repair.order.repairing`,
|
||||
name: "正在维修",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
submit:{
|
||||
url: `${config.API_URL}/repair.order.submit`,
|
||||
name: "提交维修工单",
|
||||
|
||||
@ -348,6 +348,7 @@ export default {
|
||||
}
|
||||
const res = await this.$API.orders.order.maintenance.review.post(params);
|
||||
if (res.code == 200) {
|
||||
this.$message.success('审核成功');
|
||||
this.$refs.table.refresh();
|
||||
}
|
||||
})
|
||||
|
||||
@ -122,6 +122,7 @@ export default {
|
||||
}
|
||||
const res = await this.$API.orders.order.maintenance.review.post(params);
|
||||
if (res.code == 200) {
|
||||
this.$message.success('审核成功');
|
||||
await this.getData();
|
||||
}
|
||||
this.confirmLoading = false;
|
||||
|
||||
@ -189,8 +189,16 @@ export default {
|
||||
const res = await this.$API.orders.order.repair.info.post(params);
|
||||
if(res.code == 200){
|
||||
this.info = res.data;
|
||||
|
||||
await this.repairing();
|
||||
}
|
||||
},
|
||||
async repairing() {
|
||||
let params = {
|
||||
repair_id:this.info.id
|
||||
}
|
||||
await this.$API.orders.order.repair.repairing.post(params);
|
||||
},
|
||||
handleSaveSuccess(){
|
||||
|
||||
},
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
<el-input type="password" v-model="form.password" placeholder="请填写密码" clearable show-password></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="公司名称" prop="company_full_name">
|
||||
<el-select v-model="form.company_full_name" placeholder="请填写公司名称" clearable>
|
||||
<el-select v-model="form.company_full_name" placeholder="请填写公司名称" clearable style="width: 100%;">
|
||||
<el-option v-for="(item,index) in companyList" :key="index" :label="item.full_name" :value="item.full_name"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user