Explorar o código

流程模块 修改

hejizheng hai 1 ano
pai
achega
7a4786d28e
Modificáronse 2 ficheiros con 32 adicións e 3 borrados
  1. 9 0
      src/api/system/dept.js
  2. 23 3
      src/views/wf/index.vue

+ 9 - 0
src/api/system/dept.js

@@ -9,6 +9,15 @@ export function listDept(query) {
   })
 }
 
+// 查询保税区列表
+export function listDeptByCb(query) {
+  return request({
+    url: '/system/dept/cb/list',
+    method: 'get',
+    params: query
+  })
+}
+
 // 查询部门列表(排除节点)
 export function listDeptExcludeChild(deptId) {
   return request({

+ 23 - 3
src/views/wf/index.vue

@@ -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();