|
@@ -71,6 +71,7 @@
|
|
|
|
|
|
<el-table :data="PROTEMPLATEList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="保税区" align="center" prop="cbId_dictText" />
|
|
|
<el-table-column label="流程编码" align="center" prop="procode" />
|
|
|
<el-table-column label="流程名称" align="center" prop="proname">
|
|
|
<template slot-scope="scope">
|
|
@@ -137,6 +138,17 @@
|
|
|
<!-- 添加或修改流程模板对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="60%" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
|
|
+ <el-form-item label="所属保税区" prop="cbId">
|
|
|
+ <el-select filterable v-model="form.cbId" placeholder="请选择保税区">
|
|
|
+ <el-option
|
|
|
+ v-for="(item) in cbList"
|
|
|
+ :key="item.deptId"
|
|
|
+ :label="item.deptName"
|
|
|
+ :value="item.deptId"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="流程编码" prop="procode">
|
|
|
<el-input
|
|
|
v-model="form.procode"
|
|
@@ -351,6 +363,8 @@ import {
|
|
|
enableOrDisable
|
|
|
} from "@/api/wf/PROTEMPLATE";
|
|
|
|
|
|
+import {listDeptByCb} from "@/api/system/dept";
|
|
|
+
|
|
|
export default {
|
|
|
name: "PROTEMPLATE",
|
|
|
data() {
|
|
@@ -405,11 +419,11 @@ export default {
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
Proform: {},
|
|
|
+ cbList:[], //保税区数据
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- id: [{ required: true, message: "$comment不能为空", trigger: "blur" }],
|
|
|
- delFlag: [
|
|
|
- { required: true, message: "删除标识不能为空", trigger: "blur" },
|
|
|
+ cbId: [
|
|
|
+ { required: true, message: "保税区信息不能为空", trigger: "blur" },
|
|
|
],
|
|
|
procode: [
|
|
|
{ required: true, message: "流程编码不能为空", trigger: "blur" },
|
|
@@ -440,8 +454,14 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
+ this.getCbList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCbList(){
|
|
|
+ listDeptByCb("").then((res) => {
|
|
|
+ this.cbList = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
handleStatus(row){
|
|
|
enableOrDisable(row)
|
|
|
this.getList();
|