فهرست منبع

feat: 更新环境变量并添加润天智科默认部门设置

liujt 5 ماه پیش
والد
کامیت
5e2a441784

+ 1 - 1
.env

@@ -3,4 +3,4 @@ VUE_APP_API_BASE_URL=/api
 
 # 环境变量
 # clientEnvironmentId 
-# 4 宝悦  5 嘉实  6 润天智科
+# 3 碳谷 4 宝悦  5 嘉实  6 润天智科

+ 6 - 0
src/components/addDoc/main.vue

@@ -17,6 +17,8 @@
       tool-class="ele-toolbar-form"
       :needPage="false"
       row-key="id"
+      @columns-change="handleColumnChange"
+      :cache-key="cacheKeyUrl"
     >
       <template v-slot:toolbar v-if="type != 'view'">
         <el-button type="primary" @click="fileEditOpen">本地上传</el-button>
@@ -86,8 +88,10 @@
   import fileEdit from './file-edit.vue';
   import browse from './browse.vue';
   import { queryIds } from './api';
+  import tabMixins from '@/mixins/tableColumnsMixin';
 
   export default {
+    mixins: [tabMixins],
     components: { doc_template, fileEdit, browse },
 
     data() {
@@ -97,6 +101,8 @@
         showEditFlag: false,
         tableList: [],
         type: 'add',
+        cacheKeyUrl: 'eom-addDoc-main',
+        tabMixinsInit: false,
         columns: [
           {
             label: '编码',

+ 6 - 1
src/views/saleManage/saleOrder/components/addDialog.vue

@@ -732,7 +732,9 @@
         relationCode: '',
         relationId: '',
         createDeptName: '',
-        salesmanId: ''
+        salesmanId: '',
+        salesDeptId: '',
+        salesDeptName: '',
       };
 
       return {
@@ -1585,6 +1587,9 @@
           if (this.clientEnvironmentId == 6) {
             this.form.salesDeptId = '1998632792148717569';
             this.form.salesDeptName = '营销部';
+            this.$nextTick(() => {
+              this.getSalesmanUser(this.form.salesDeptId)
+            })
           }
         } else {
           this.isUpdate = true;

+ 5 - 0
src/views/salesServiceManagement/components/info.vue

@@ -1935,6 +1935,11 @@ export default {
       this.form = {
          ...defaultForm
       };
+      // 润天默认  6
+      if(this.clientEnvironmentId == 6 && this.type == 'add') {
+        this.form.involveDeptId = '1998632521465114626';
+        this.form.involveDeptName = '研发部';
+      }
       if (this.$refs.sparePartsRef) {
         this.$refs.sparePartsRef.clearList();
       }