fix:coding373、376
This commit is contained in:
parent
e133dc7cf8
commit
a2320580c1
|
@ -14,6 +14,16 @@
|
|||
:rules="rules"
|
||||
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-input
|
||||
v-model="form.number"
|
||||
|
@ -150,6 +160,7 @@ export default {
|
|||
setFiltersVisible: false,
|
||||
belong_dept_options: [],
|
||||
group: [],
|
||||
orderList:[],
|
||||
routeText: "工艺路线",
|
||||
};
|
||||
},
|
||||
|
@ -157,6 +168,7 @@ export default {
|
|||
if (this.type == "routepack") {
|
||||
this.routeText = "工艺路线";
|
||||
this.getRoutePackes();
|
||||
this.getOrders();
|
||||
} else {
|
||||
this.routeText = "工艺路线";
|
||||
this.getRouteOptions();
|
||||
|
@ -191,6 +203,13 @@ export default {
|
|||
that.routeOptions = res;
|
||||
});
|
||||
},
|
||||
//关联订单
|
||||
getOrders(){
|
||||
let that = this;
|
||||
that.$API.sam.order.list.req({ page: 0}).then((res) => {
|
||||
that.orderList = res;
|
||||
});
|
||||
},
|
||||
routeChange(item) {
|
||||
console.log(item);
|
||||
if (this.type == "routepack") {
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="form.note" placeholder="备注"/>
|
||||
<el-form-item label="描述">
|
||||
<el-input v-model="form.description" placeholder="备注"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
|
@ -196,9 +196,14 @@ export default {
|
|||
});
|
||||
},
|
||||
table_del(row) {
|
||||
this.$API.system.post.delete.req(row.id).then(res=>{
|
||||
this.$refs.table.refresh()
|
||||
})
|
||||
this.$confirm(`确定删除选中的岗位吗?`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
this.$API.system.post.delete.req(row.id).then((res) => {
|
||||
this.$refs.table.refresh()
|
||||
this.$message.success("操作成功");
|
||||
}).catch(() => {});
|
||||
});
|
||||
},
|
||||
//批量删除
|
||||
async batch_del() {
|
||||
|
|
Loading…
Reference in New Issue