fix:coding373、376

This commit is contained in:
shijing 2024-12-26 13:30:40 +08:00
parent e133dc7cf8
commit a2320580c1
3 changed files with 29 additions and 5 deletions

View File

@ -14,6 +14,16 @@
:rules="rules" :rules="rules"
label-width="120px" label-width="120px"
> >
<el-form-item label="关联订单">
<el-select placeholder="关联订单" v-model="form.order" :disabled="mode == 'edit'" filterable style="width:100%">
<el-option v-for="item in orderList"
:key="item.id"
:label="item.number"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="任务编号" prop="number"> <el-form-item label="任务编号" prop="number">
<el-input <el-input
v-model="form.number" v-model="form.number"
@ -150,6 +160,7 @@ export default {
setFiltersVisible: false, setFiltersVisible: false,
belong_dept_options: [], belong_dept_options: [],
group: [], group: [],
orderList:[],
routeText: "工艺路线", routeText: "工艺路线",
}; };
}, },
@ -157,6 +168,7 @@ export default {
if (this.type == "routepack") { if (this.type == "routepack") {
this.routeText = "工艺路线"; this.routeText = "工艺路线";
this.getRoutePackes(); this.getRoutePackes();
this.getOrders();
} else { } else {
this.routeText = "工艺路线"; this.routeText = "工艺路线";
this.getRouteOptions(); this.getRouteOptions();
@ -191,6 +203,13 @@ export default {
that.routeOptions = res; that.routeOptions = res;
}); });
}, },
//
getOrders(){
let that = this;
that.$API.sam.order.list.req({ page: 0}).then((res) => {
that.orderList = res;
});
},
routeChange(item) { routeChange(item) {
console.log(item); console.log(item);
if (this.type == "routepack") { if (this.type == "routepack") {

View File

@ -36,8 +36,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24"> <el-col :md="12" :sm="24">
<el-form-item label="备注"> <el-form-item label="描述">
<el-input v-model="form.note" placeholder="备注"/> <el-input v-model="form.description" placeholder="备注"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -196,9 +196,14 @@ export default {
}); });
}, },
table_del(row) { table_del(row) {
this.$API.system.post.delete.req(row.id).then(res=>{ this.$confirm(`确定删除选中的岗位吗?`, "提示", {
this.$refs.table.refresh() type: "warning",
}) }).then(() => {
this.$API.system.post.delete.req(row.id).then((res) => {
this.$refs.table.refresh()
this.$message.success("操作成功");
}).catch(() => {});
});
}, },
// //
async batch_del() { async batch_del() {