Browse Source

修改商户/网点管理

linwenxin 1 year ago
parent
commit
1bf5f1480f
1 changed files with 14 additions and 3 deletions
  1. 14 3
      src/views/setting/departmentManage/index.vue

+ 14 - 3
src/views/setting/departmentManage/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <zj-tab-page ref="tabPage" :defaultActives="[{ key: 'list', label: $route.meta.title+'-列表', essential: true }]">
+  <zj-tab-page ref="tabPage" :defaultActives="[{ key: 'list', label: $route.meta.title + '-列表', essential: true }]">
     <template slot-scope="{activeKey, data}">
       <div class="app-container">
         <div v-if="activeKey == 'list'" class="mymain-container">
@@ -95,6 +95,12 @@
                 <el-radio :label="false">禁用</el-radio>
               </el-radio-group>
             </el-form-item>
+            <el-form-item v-if="mainForm.type == 'B'" label="商品出入库" prop="joinCode">
+              <el-radio-group v-model="mainForm.joinCode">
+                <el-radio :label="true">关联条码</el-radio>
+                <el-radio :label="false">不关联条码</el-radio>
+              </el-radio-group>
+            </el-form-item>
           </el-form>
           <div slot="footer" class="dialog-footer">
             <el-button @click="data.removeTab()">取 消</el-button>
@@ -136,6 +142,8 @@ export default {
         address: '',
         status: true,
         isIncre: true,
+        joinCode: true,
+        type: ""
       },
       mainFormRules: {
         name: [{ required: true, message: '请填写网点名称', trigger: 'blur' }],
@@ -271,7 +279,9 @@ export default {
                   lng: res.data.lng,
                   address: res.data.address,
                   status: res.data.status,
-                  isIncre: res.data.isIncre
+                  isIncre: res.data.isIncre,
+                  joinCode: res.data.joinCode,
+                  type: res.data.type,
                 }
               })
             }
@@ -310,7 +320,8 @@ export default {
             lng: this.mainForm.lng,
             address: this.mainForm.address,
             status: this.mainForm.status,
-            isIncre: this.mainForm.isIncre
+            isIncre: this.mainForm.isIncre,
+            joinCode: this.mainForm.joinCode
           }
           if (this.mainFormType == 'edit') {
             params.websitId = this.editId