linwenxin 5 ماه پیش
والد
کامیت
520354c44c
1فایلهای تغییر یافته به همراه41 افزوده شده و 9 حذف شده
  1. 41 9
      src/views/setting/departmentManage/index.vue

+ 41 - 9
src/views/setting/departmentManage/index.vue

@@ -208,7 +208,19 @@
               </el-col>
               <!--  -->
               <!--  -->
-              <!--  -->
+              <el-col :span="6">
+                <el-form-item label="工伤险代买单位" prop="insureSteadUnit">
+                  <el-select v-model="mainForm.insureSteadUnit" placeholder="请选择">
+                    <el-option
+                      v-for="item in INSURE_STEAD_UNIT"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value"
+                    >
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
               <!--  -->
               <!--  -->
               <el-col :span="6">
@@ -496,7 +508,8 @@ export default {
         insureType: ['意外险'],
         belongCompanyCode: '',
         belongCompany: '',
-        payInsureCodeId: ''
+        payInsureCodeId: '',
+        insureSteadUnit: ''
       },
       mainFormRules: {
         name: [{ required: true, message: '请填写网点名称', trigger: 'blur' }],
@@ -512,15 +525,16 @@ export default {
         bankAccount: [{ required: true, message: '请输入', trigger: 'blur' }],
         email: [{ required: true, message: '请输入', trigger: 'blur' }],
         zipCode: [{ required: true, message: '请输入', trigger: 'blur' }],
-
         attr: [{ required: true, message: '请输入', trigger: 'blur' }],
         level: [{ required: true, message: '请输入', trigger: 'blur' }],
         insureType: [{ required: true, message: '请输入', trigger: 'blur' }],
         belongCompanyCode: [{ required: true, message: '请输入', trigger: 'blur' }],
-        payInsureCodeId: [{ required: true, message: '请输入', trigger: 'blur' }]
+        payInsureCodeId: [{ required: true, message: '请输入', trigger: 'blur' }],
+        insureSteadUnit: [{ required: true, message: '请输入', trigger: 'blur' }]
       },
       indexs: [0],
-      BELONG_COMPANY: []
+      BELONG_COMPANY: [],
+      INSURE_STEAD_UNIT: []
     }
   },
 
@@ -711,6 +725,20 @@ export default {
             }))
           })
 
+          getDataDictionary({
+            pageNum: 1,
+            pageSize: -1,
+            params: [
+              { param: 'a.status', compare: '=', value: 'ON' },
+              { param: 'a.dict_type', compare: '=', value: 'INSURE_STEAD_UNIT' }
+            ]
+          }).then(res => {
+            this.INSURE_STEAD_UNIT = res.data.records.map(item => ({
+              value: item.dictCode,
+              label: item.dictValue
+            }))
+          })
+
           adminCompanyPayConfigList({
             pageNum: 1,
             pageSize: -1,
@@ -765,7 +793,8 @@ export default {
                   insureType: res.data.insureType ? res.data.insureType.split(',') : [],
                   belongCompanyCode: res.data.belongCompanyCode,
                   belongCompany: res.data.belongCompany,
-                  payInsureCodeId: res.data.payInsureCodeId
+                  payInsureCodeId: res.data.payInsureCodeId,
+                  insureSteadUnit: res.data.insureSteadUnit
                 }
               })
             }
@@ -825,7 +854,8 @@ export default {
             insureType: (this.mainForm.insureType || []).join(','),
             belongCompanyCode: this.mainForm.belongCompanyCode,
             belongCompany: this.mainForm.belongCompany,
-            payInsureCodeId: this.mainForm.payInsureCodeId
+            payInsureCodeId: this.mainForm.payInsureCodeId,
+            insureSteadUnit: this.mainForm.insureSteadUnit
           }
           if (this.mainFormType == 'edit') {
             params.websitId = this.editId
@@ -887,7 +917,8 @@ export default {
             insureType: res.data.insureType ? res.data.insureType.split(',') : [],
             belongCompanyCode: res.data.belongCompanyCode,
             belongCompany: res.data.belongCompany,
-            payInsureCodeId: res.data.payInsureCodeId
+            payInsureCodeId: res.data.payInsureCodeId,
+            insureSteadUnit: res.data.insureSteadUnit
           }
           this.$successMsg('保存成功')
           if (data.$index > 0) {
@@ -936,7 +967,8 @@ export default {
             insureType: res.data.insureType ? res.data.insureType.split(',') : [],
             belongCompanyCode: res.data.belongCompanyCode,
             belongCompany: res.data.belongCompany,
-            payInsureCodeId: res.data.payInsureCodeId
+            payInsureCodeId: res.data.payInsureCodeId,
+            insureSteadUnit: res.data.insureSteadUnit
           }
           this.$successMsg('删除成功')
           if (data.$index > 0) {