Browse Source

Merge remote-tracking branch 'origin/ecp' into ecp

liyuan 1 week ago
parent
commit
4cd9299e5b

+ 2 - 2
.prettierrc

@@ -1,4 +1,4 @@
 {
-  "printWidth": 150,
-  "tabWidth": 2           
+  "printWidth": 120,
+  "tabWidth": 2
 }

+ 19 - 0
package-lock.json

@@ -3802,6 +3802,16 @@
       "dev": true,
       "optional": true
     },
+    "bindings": {
+      "version": "1.5.0",
+      "resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz",
+      "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "file-uri-to-path": "1.0.0"
+      }
+    },
     "bl": {
       "version": "1.2.3",
       "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz",
@@ -8046,6 +8056,13 @@
       "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==",
       "dev": true
     },
+    "file-uri-to-path": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+      "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+      "dev": true,
+      "optional": true
+    },
     "filename-reserved-regex": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
@@ -17879,6 +17896,7 @@
           "dev": true,
           "optional": true,
           "requires": {
+            "bindings": "^1.5.0",
             "nan": "^2.12.1"
           }
         },
@@ -18462,6 +18480,7 @@
           "dev": true,
           "optional": true,
           "requires": {
+            "bindings": "^1.5.0",
             "nan": "^2.12.1"
           }
         },

+ 22 - 0
src/api/store/customerInformation.js

@@ -116,3 +116,25 @@ export function getBrandDesc(data) {
         params: data
     })
 }
+/**
+ * 门店提交审批
+ * @param {any} params
+ */
+export const submitApply = (params) => {
+    return request({
+        url: '/api/gubersail-admin/corpsDesc/submitApply',
+        method: 'get',
+        params: params
+    })
+}
+/**
+ * 门店提交审批
+ * @param {any} params
+ */
+export const review = (params) => {
+    return request({
+        url: '/api/gubersail-admin/corpsDesc/review',
+        method: 'get',
+        params: params
+    })
+}

+ 452 - 439
src/components/upload/index.vue

@@ -1,92 +1,99 @@
 <template>
-    <div>
-        <basic-container v-if="!basic">
-            <avue-crud :data="data" ref="crud" :option="option" :key="key" @resetColumn="resetColumn"
-                       @saveColumn="saveColumn">
-                <template slot="menuLeft">
-                    <el-button type="primary" size="small" icon="el-icon-edit" @click="addDetail" :disabled="disabled"
-                               v-if="display">上传
-                    </el-button>
-                    <slot name="c_button"></slot>
-                </template>
-                <template slot="url" slot-scope="{ row }">
-                    <el-input placeholder="请输入内容" size="small" v-if="row.$cellEdit" v-model="row.url"
-                              class="input-with-select">
-                        <el-button slot="append" @click="singleLineUpload(row)">附件</el-button>
-                    </el-input>
-                    <span v-else>{{ row.url }}</span>
-                </template>
-                <template slot-scope="scope" slot="menu">
-                    <el-button icon="el-icon-download" :size="scope.size" :type="scope.type" @click="download(scope)">查看
-                    </el-button>
-                    <el-button :type="scope.type" :size="scope.size" icon="el-icon-edit"
-                               @click.stop="rowCell(scope.row, scope.index)" :disabled="disabled">
-                        {{ scope.row.$cellEdit ? "保存" : "修改" }}
-                    </el-button>
-                    <el-button :type="scope.type" :size="scope.size" icon="el-icon-delete"
-                               @click.stop="rowDel(scope.row, scope.index)" :disabled="disabled">删除
-                    </el-button>
-                </template>
-            </avue-crud>
-            <el-dialog title="上传附件" append-to-body :visible.sync="excelBox" width="555px"
-                       :close-on-click-modal="false"
-                       v-dialog-drag>
-                <el-upload class="upload-demo" drag style="text-align: center" ref="upload"
-                           :action="incomingAction ? incomingAction : action" :headers="headers" :on-success="onSuccess"
-                           multiple
-                           :before-upload="beforeUpload">
-                    <i class="el-icon-upload"></i>
-                    <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
-                    <div class="el-upload__tip" slot="tip">
-                        如上传文件过大,请耐心等待上传成功
-                    </div>
-                </el-upload>
-            </el-dialog>
-            <el-dialog title="修改附件" append-to-body :visible.sync="excelTwo" width="555px"
-                       :close-on-click-modal="false"
-                       v-dialog-drag>
-                <el-upload class="upload-demo" drag style="text-align: center"
-                           :action="incomingAction ? incomingAction : action" :headers="headers" :show-file-list="false"
-                           :on-success="onSuccessTwo" :before-upload="beforeUpload">
-                    <i class="el-icon-upload"></i>
-                    <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
-                    <div class="el-upload__tip" slot="tip">
-                        如上传文件过大,请耐心等待上传成功
-                    </div>
-                </el-upload>
-            </el-dialog>
-            <PreviewImage :visible.sync="innerVisible" :currentIndex="0" :previewImgList="[imgUrl]"/>
-        </basic-container>
-        <span v-else-if="true">
-      <avue-crud :data="data" ref="crud" :option="option" :key="key" @resetColumn="resetColumn"
-                 @saveColumn="saveColumn">
+  <div>
+    <basic-container v-if="!basic">
+      <avue-crud :data="data" ref="crud" :option="option" :key="key" @resetColumn="resetColumn" @saveColumn="saveColumn">
         <template slot="menuLeft">
-          <el-button type="primary" size="small" icon="el-icon-edit" @click="addDetail" :disabled="disabled">上传
-          </el-button>
+          <el-button type="primary" size="small" icon="el-icon-edit" @click="addDetail" :disabled="disabled" v-if="display">上传 </el-button>
+          <slot name="c_button"></slot>
         </template>
         <template slot="url" slot-scope="{ row }">
-          <el-input placeholder="请输入内容" size="small" v-if="row.$cellEdit" v-model="row.url"
-                    class="input-with-select">
+          <el-input placeholder="请输入内容" size="small" v-if="row.$cellEdit" v-model="row.url" class="input-with-select">
             <el-button slot="append" @click="singleLineUpload(row)">附件</el-button>
           </el-input>
           <span v-else>{{ row.url }}</span>
         </template>
         <template slot-scope="scope" slot="menu">
-          <el-button icon="el-icon-download" :size="scope.size" :type="scope.type" @click="download(scope)">查看
+          <el-button icon="el-icon-download" :size="scope.size" :type="scope.type" @click="download(scope)">查看 </el-button>
+          <el-button :type="scope.type" :size="scope.size" icon="el-icon-edit" @click.stop="rowCell(scope.row, scope.index)" :disabled="disabled">
+            {{ scope.row.$cellEdit ? "保存" : "修改" }}
           </el-button>
-          <el-button :type="scope.type" :size="scope.size" icon="el-icon-edit"
-                     @click.stop="rowCell(scope.row, scope.index)" :disabled="disabled">
+          <el-button :type="scope.type" :size="scope.size" icon="el-icon-delete" @click.stop="rowDel(scope.row, scope.index)" :disabled="disabled"
+            >删除
+          </el-button>
+        </template>
+      </avue-crud>
+      <el-dialog title="上传附件" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false" v-dialog-drag>
+        <el-upload
+          class="upload-demo"
+          drag
+          style="text-align: center"
+          ref="upload"
+          :action="incomingAction ? incomingAction : action"
+          :headers="headers"
+          :on-success="onSuccess"
+          multiple
+          :before-upload="beforeUpload"
+        >
+          <i class="el-icon-upload"></i>
+          <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
+          <div class="el-upload__tip" slot="tip">
+            如上传文件过大,请耐心等待上传成功
+          </div>
+        </el-upload>
+      </el-dialog>
+      <el-dialog title="修改附件" append-to-body :visible.sync="excelTwo" width="555px" :close-on-click-modal="false" v-dialog-drag>
+        <el-upload
+          class="upload-demo"
+          drag
+          style="text-align: center"
+          :action="incomingAction ? incomingAction : action"
+          :headers="headers"
+          :show-file-list="false"
+          :on-success="onSuccessTwo"
+          :before-upload="beforeUpload"
+        >
+          <i class="el-icon-upload"></i>
+          <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
+          <div class="el-upload__tip" slot="tip">
+            如上传文件过大,请耐心等待上传成功
+          </div>
+        </el-upload>
+      </el-dialog>
+      <PreviewImage :visible.sync="innerVisible" :currentIndex="0" :previewImgList="[imgUrl]" />
+    </basic-container>
+    <span v-else-if="true">
+      <avue-crud :data="data" ref="crud" :option="option" :key="key" @resetColumn="resetColumn" @saveColumn="saveColumn">
+        <template slot="menuLeft">
+          <el-button type="primary" size="small" icon="el-icon-edit" @click="addDetail" :disabled="disabled">上传 </el-button>
+        </template>
+        <template slot="url" slot-scope="{ row }">
+          <el-input placeholder="请输入内容" size="small" v-if="row.$cellEdit" v-model="row.url" class="input-with-select">
+            <el-button slot="append" @click="singleLineUpload(row)">附件</el-button>
+          </el-input>
+          <span v-else>{{ row.url }}</span>
+        </template>
+        <template slot-scope="scope" slot="menu">
+          <el-button icon="el-icon-download" :size="scope.size" :type="scope.type" @click="download(scope)">查看 </el-button>
+          <el-button :type="scope.type" :size="scope.size" icon="el-icon-edit" @click.stop="rowCell(scope.row, scope.index)" :disabled="disabled">
             {{ scope.row.$cellEdit ? "保存" : "修改" }}
           </el-button>
-          <el-button :type="scope.type" :size="scope.size" icon="el-icon-delete"
-                     @click.stop="rowDel(scope.row, scope.index)" :disabled="disabled">删除
+          <el-button :type="scope.type" :size="scope.size" icon="el-icon-delete" @click.stop="rowDel(scope.row, scope.index)" :disabled="disabled"
+            >删除
           </el-button>
         </template>
       </avue-crud>
-      <el-dialog title="上传附件" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false"
-                 v-dialog-drag>
-        <el-upload class="upload-demo" drag style="text-align: center" ref="upload" :action="action" :headers="headers"
-                   :on-success="onSuccess" multiple :before-upload="beforeUpload">
+      <el-dialog title="上传附件" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false" v-dialog-drag>
+        <el-upload
+          class="upload-demo"
+          drag
+          style="text-align: center"
+          ref="upload"
+          :action="action"
+          :headers="headers"
+          :on-success="onSuccess"
+          multiple
+          :before-upload="beforeUpload"
+        >
           <i class="el-icon-upload"></i>
           <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
           <div class="el-upload__tip" slot="tip">
@@ -94,11 +101,17 @@
           </div>
         </el-upload>
       </el-dialog>
-      <el-dialog title="修改附件" append-to-body :visible.sync="excelTwo" width="555px" :close-on-click-modal="false"
-                 v-dialog-drag>
-        <el-upload class="upload-demo" drag style="text-align: center"
-                   :action="incomingAction ? incomingAction : action" :headers="headers" :show-file-list="false"
-                   :on-success="onSuccessTwo" :before-upload="beforeUpload">
+      <el-dialog title="修改附件" append-to-body :visible.sync="excelTwo" width="555px" :close-on-click-modal="false" v-dialog-drag>
+        <el-upload
+          class="upload-demo"
+          drag
+          style="text-align: center"
+          :action="incomingAction ? incomingAction : action"
+          :headers="headers"
+          :show-file-list="false"
+          :on-success="onSuccessTwo"
+          :before-upload="beforeUpload"
+        >
           <i class="el-icon-upload"></i>
           <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
           <div class="el-upload__tip" slot="tip">
@@ -107,381 +120,381 @@
         </el-upload>
       </el-dialog>
 
-            <!--  新的查看图片弹窗-->
-      <PreviewImage :visible.sync="innerVisible" :currentIndex="0" :previewImgList="[imgUrl]"/>
+      <!--  新的查看图片弹窗-->
+      <PreviewImage :visible.sync="innerVisible" :currentIndex="0" :previewImgList="[imgUrl]" />
     </span>
-    </div>
+  </div>
 </template>
 
 <script>
-import {getToken} from "@/util/auth";
-import {LTfujianDelete, sharedDeletion} from "@/api/user";
-import {updateListRemove} from "@/api/base/upload";
-import PreviewImage from '@/components/PreviewImage/index.vue'
+import { getToken } from "@/util/auth";
+import { LTfujianDelete, sharedDeletion } from "@/api/user";
+import { updateListRemove } from "@/api/base/upload";
+import PreviewImage from "@/components/PreviewImage/index.vue";
 
 export default {
-    name: "index",
-    components: {PreviewImage},
-    props: {
-        data: {
-            type: Object
-        },
-        incomingAction: {
-            type: String
-        },
-        deleteUrl: {
-            type: String
-        },
-        enumerationValue: {
-            type: Number
-        },
-        typeUpload: {
-            type: String
-        },
-        disabled: {
-            type: Boolean
-        },
-        display: {
-            type: Boolean
-        },
-        basic: {
-            type: Boolean
-        }
+  name: "index",
+  components: { PreviewImage },
+  props: {
+    data: {
+      type: Object
     },
-    data() {
-        return {
-            excelBox: false,
-            excelTwo: false,
-            innerVisible: false,
-            form: {},
-            imgUrl: "",
-            action: "/api/blade-resource/oss/endpoint/put-file",
-            headers: {"Blade-Auth": "Bearer " + getToken()},
-            option: {},
-            key: 0,
-            originalOptions: {
-                dialogDrag: true,
-                index: true,
-                refreshBtn: false,
-                cellBtn: false,
-                cancelBtn: false,
-                delBtn: false,
-                editBtn: false,
-                addBtn: false,
-                align: "center",
-                column: [
-                    {
-                        label: "文件名称",
-                        prop: "fileName",
-                        index: 1,
-                        width: 140,
-                        cell: true,
-                        overHidden: true
-                    },
-                    {
-                        label: "文件地址",
-                        prop: "url",
-                        index: 2,
-                        overHidden: true
-                    }, {
-                        type: "select",
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=file_type",
-                        props: {
-                            label: "dictValue",
-                            value: "dictValue"
-                        },
-                        label: "文件属性",
-                        prop: "paymentType",
-                        search: false,
-                        index: 3,
-                        width: 140,
-                        overHidden: true,
-                        cell: true
-                    },
-                    {
-                        label: "备注",
-                        prop: "remarks",
-                        index: 4,
-                        cell: true,
-                        overHidden: true
-                    }
-                ]
-            },
-            originalOptionsTwo: {
-                dialogDrag: true,
-                index: true,
-                refreshBtn: false,
-                cellBtn: false,
-                cancelBtn: false,
-                delBtn: false,
-                editBtn: false,
-                addBtn: false,
-                align: "center",
-                column: [
-                    {
-                        label: "文件名称",
-                        prop: "fileName",
-                        index: 1,
-                        width: 140,
-                        cell: true,
-                        overHidden: true
-                    },
-                    {
-                        label: "文件地址",
-                        prop: "url",
-                        index: 2,
-                        overHidden: true
-                    }, {
-                        type: "select",
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=picture_type",
-                        props: {
-                            label: "dictValue",
-                            value: "dictKey"
-                        },
-                        label: "文件属性",
-                        prop: "version",
-                        search: false,
-                        index: 3,
-                        width: 140,
-                        overHidden: true,
-                        cell: true,
-                    },
-                    {
-                        label: "备注",
-                        prop: "remarks",
-                        index: 4,
-                        cell: true,
-                        overHidden: true
-                    }
-                ]
-            },
-            // 基础信息轮胎附件
-            originalOptionsTwo_LT: {
-                dialogDrag: true,
-                index: true,
-                refreshBtn: false,
-                cellBtn: false,
-                cancelBtn: false,
-                delBtn: false,
-                editBtn: false,
-                addBtn: false,
-                align: "center",
-                column: [
-                    {
-                        label: "文件名称",
-                        prop: "fileName",
-                        index: 1,
-                        width: 140,
-                        cell: true,
-                        overHidden: true
-                    },
-                    {
-                        label: "文件地址",
-                        prop: "url",
-                        index: 2,
-                        overHidden: true
-                    }, {
-                        type: "select",
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=picture_type",
-                        props: {
-                            label: "dictValue",
-                            value: "dictKey"
-                        },
-                        label: "文件属性",
-                        prop: "mainImage",
-                        search: false,
-                        index: 3,
-                        width: 140,
-                        overHidden: true,
-                        cell: true,
-                    },
-                    {
-                        label: "备注",
-                        prop: "remarks",
-                        index: 4,
-                        cell: true,
-                        overHidden: true
-                    }
-                ]
+    incomingAction: {
+      type: String
+    },
+    deleteUrl: {
+      type: String
+    },
+    enumerationValue: {
+      type: Number
+    },
+    typeUpload: {
+      type: String
+    },
+    disabled: {
+      type: Boolean
+    },
+    display: {
+      type: Boolean
+    },
+    basic: {
+      type: Boolean
+    },
+    mainImageType: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+      excelBox: false,
+      excelTwo: false,
+      innerVisible: false,
+      form: {},
+      imgUrl: "",
+      action: "/api/blade-resource/oss/endpoint/put-file",
+      headers: { "Blade-Auth": "Bearer " + getToken() },
+      option: {},
+      key: 0,
+      originalOptions: {
+        dialogDrag: true,
+        index: true,
+        refreshBtn: false,
+        cellBtn: false,
+        cancelBtn: false,
+        delBtn: false,
+        editBtn: false,
+        addBtn: false,
+        align: "center",
+        column: [
+          {
+            label: "文件名称",
+            prop: "fileName",
+            index: 1,
+            width: 140,
+            cell: true,
+            overHidden: true
+          },
+          {
+            label: "文件地址",
+            prop: "url",
+            index: 2,
+            overHidden: true
+          },
+          {
+            type: "select",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=file_type",
+            props: {
+              label: "dictValue",
+              value: "dictValue"
             },
-            originalOptionsThree: {
-                dialogDrag: true,
-                index: true,
-                refreshBtn: false,
-                cellBtn: false,
-                cancelBtn: false,
-                delBtn: false,
-                editBtn: false,
-                addBtn: false,
-                align: "center",
-                column: [
-                    {
-                        label: "文件名称",
-                        prop: "fileName",
-                        index: 1,
-                        width: 140,
-                        cell: true,
-                        overHidden: true
-                    },
-                    {
-                        label: "文件地址",
-                        prop: "url",
-                        index: 2,
-                        overHidden: true
-                    },
-                    {
-                        label: "备注",
-                        prop: "remarks",
-                        index: 4,
-                        cell: true,
-                        overHidden: true
-                    }
-                ]
+            label: "文件属性",
+            prop: "paymentType",
+            search: false,
+            index: 3,
+            width: 140,
+            overHidden: true,
+            cell: true
+          },
+          {
+            label: "备注",
+            prop: "remarks",
+            index: 4,
+            cell: true,
+            overHidden: true
+          }
+        ]
+      },
+      originalOptionsTwo: {
+        dialogDrag: true,
+        index: true,
+        refreshBtn: false,
+        cellBtn: false,
+        cancelBtn: false,
+        delBtn: false,
+        editBtn: false,
+        addBtn: false,
+        align: "center",
+        column: [
+          {
+            label: "文件名称",
+            prop: "fileName",
+            index: 1,
+            width: 140,
+            cell: true,
+            overHidden: true
+          },
+          {
+            label: "文件地址",
+            prop: "url",
+            index: 2,
+            overHidden: true
+          },
+          {
+            type: "select",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=picture_type",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
             },
-            uploadCount: 0
-        };
+            label: "文件属性",
+            prop: "version",
+            search: false,
+            index: 3,
+            width: 140,
+            overHidden: true,
+            cell: true
+          },
+          {
+            label: "备注",
+            prop: "remarks",
+            index: 4,
+            cell: true,
+            overHidden: true
+          }
+        ]
+      },
+      // 基础信息轮胎附件
+      originalOptionsTwo_LT: {
+        // dialogDrag: true,
+        index: true,
+        refreshBtn: false,
+        cellBtn: false,
+        cancelBtn: false,
+        delBtn: false,
+        editBtn: false,
+        addBtn: false,
+        align: "center",
+        column: [
+          {
+            label: "文件名称",
+            prop: "fileName",
+            width: 140,
+            cell: true,
+            overHidden: true
+          },
+          {
+            label: "文件地址",
+            prop: "url",
+            overHidden: true
+          },
+          {
+            label: this.mainImageType?"是否主图":"文件属性",
+            prop: "mainImage",
+            type: "select",
+            dicData: [
+              {
+                label: "是",
+                value: 1
+              },
+              {
+                label: "否",
+                value: 0
+              }
+            ],
+            width: 140,
+            overHidden: true,
+            cell: true
+          },
+          {
+            label: "备注",
+            prop: "remarks",
+            cell: true,
+            overHidden: true
+          }
+        ]
+      },
+      originalOptionsThree: {
+        dialogDrag: true,
+        index: true,
+        refreshBtn: false,
+        cellBtn: false,
+        cancelBtn: false,
+        delBtn: false,
+        editBtn: false,
+        addBtn: false,
+        align: "center",
+        column: [
+          {
+            label: "文件名称",
+            prop: "fileName",
+            index: 1,
+            width: 140,
+            cell: true,
+            overHidden: true
+          },
+          {
+            label: "文件地址",
+            prop: "url",
+            index: 2,
+            overHidden: true
+          },
+          {
+            label: "备注",
+            prop: "remarks",
+            index: 4,
+            cell: true,
+            overHidden: true
+          }
+        ]
+      },
+      uploadCount: 0
+    };
+  },
+  async created() {
+    console.log(this.enumerationValue);
+    this.option = this.originalOptionsTwo_LT;
+    this.key++;
+  },
+  methods: {
+    //自定义列保存
+    async saveColumn() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(this.enumerationValue), this.option);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
     },
-    async created() {
-        console.log(this.enumerationValue)
-        this.option = this.originalOptionsTwo_LT
-        this.key++
+    //自定义列重置
+    async resetColumn() {
+      this.option = this.originalOptionsTwo_LT;
+      this.$message.success("重置成功");
     },
-    methods: {
-        //自定义列保存
-        async saveColumn() {
-            /**
-             * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
-             * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
-             * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
-             */
-            const inSave = await this.saveColumnData(this.getColumnName(this.enumerationValue), this.option);
-            if (inSave) {
-                this.$message.success("保存成功");
-                //关闭窗口
-                this.$refs.crud.$refs.dialogColumn.columnBox = false;
-            }
-        },
-        //自定义列重置
-        async resetColumn() {
-
-            this.option = this.originalOptionsTwo_LT;
-            this.$message.success("重置成功");
-        },
-        beforeUpload(file) {
-            if (file.type == "image/jpeg" || file.type == "image/png" || file.type == "image/bmp") {
-                const fileSize = file.size / 1024 / 1024
-                if (fileSize > 5) {
-                    this.$message.error("请上传不能超过5M的图片");
-                    return false;
-                }
-            } else {
-                const fileSize = file.size / 1024 / 1024
-                if (fileSize > 10) {
-                    this.$message.error("请上传不能超过10M的文件");
-                    return false;
-                }
-            }
-        },
-        //新增上传成功
-        onSuccess(response, file, fileList) {
-            this.$refs.crud.rowCellAdd({
-                fileName: response.data.originalName,
-                url: response.data.link
+    beforeUpload(file) {
+      if (file.type == "image/jpeg" || file.type == "image/png" || file.type == "image/bmp") {
+        const fileSize = file.size / 1024 / 1024;
+        if (fileSize > 5) {
+          this.$message.error("请上传不能超过5M的图片");
+          return false;
+        }
+      } else {
+        const fileSize = file.size / 1024 / 1024;
+        if (fileSize > 10) {
+          this.$message.error("请上传不能超过10M的文件");
+          return false;
+        }
+      }
+    },
+    //新增上传成功
+    onSuccess(response, file, fileList) {
+      this.$refs.crud.rowCellAdd({
+        fileName: response.data.originalName,
+        url: response.data.link
+      });
+      this.uploadCount++;
+      if (this.uploadCount === fileList.length) {
+        this.$refs.upload.clearFiles();
+        this.excelBox = false;
+        this.uploadCount = 0;
+      }
+    },
+    //修改上传成功
+    onSuccessTwo(response) {
+      this.form.fileName = response.data.originalName;
+      this.form.url = response.data.link;
+      this.data[this.form.$index] = this.form;
+      this.excelTwo = false;
+    },
+    //单行上传
+    singleLineUpload(row) {
+      this.form = row;
+      this.excelTwo = true;
+    },
+    //开启批量上传
+    addDetail() {
+      this.excelBox = true;
+    },
+    //下载附件
+    download(scope) {
+      if (scope.row.url) {
+        if (
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".jpg" ||
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".png" ||
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".jpeg" ||
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".JPG" ||
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".PNG" ||
+          scope.row.url.substring(scope.row.url.lastIndexOf(".")) === ".JPEG"
+        ) {
+          this.imgUrl = scope.row.url;
+          this.innerVisible = true;
+        } else {
+          window.open(scope.row.url);
+        }
+      } else {
+        this.$message.error("请上传附件");
+      }
+    },
+    //修改触发
+    rowCell(row, index) {
+      if (row.$cellEdit == true) {
+        this.$set(row, "$cellEdit", false);
+      } else {
+        this.$set(row, "$cellEdit", true);
+      }
+      // this.$refs.crud.rowCell(row, index)
+    },
+    rowDel(row, index) {
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        console.log(row, 657);
+        if (row.id) {
+          if (this.typeUpload == "CK") {
+            updateListRemove(row.id, this.deleteUrl).then(res => {
+              if (res.data.success) {
+                this.$message.success("操作成功!");
+                this.data.splice(index, 1);
+              }
+            });
+          } else if (this.typeUpload == "LT") {
+            LTfujianDelete({ ids: row.id }).then(res => {
+              if (res.data.success) {
+                this.$message.success("操作成功!");
+                this.data.splice(index, 1);
+              }
             });
-            this.uploadCount++;
-            if (this.uploadCount === fileList.length) {
-                this.$refs.upload.clearFiles();
-                this.excelBox = false;
-                this.uploadCount = 0;
-            }
-        },
-        //修改上传成功
-        onSuccessTwo(response) {
-            this.form.fileName = response.data.originalName;
-            this.form.url = response.data.link;
-            this.data[this.form.$index] = this.form;
-            this.excelTwo = false;
-        },
-        //单行上传
-        singleLineUpload(row) {
-            this.form = row;
-            this.excelTwo = true;
-        },
-        //开启批量上传
-        addDetail() {
-            this.excelBox = true;
-        },
-        //下载附件
-        download(scope) {
-            if (scope.row.url) {
-                if (
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".jpg" ||
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".png" ||
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".jpeg" ||
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".JPG" ||
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".PNG" ||
-                    scope.row.url.substring(scope.row.url.lastIndexOf(".")) ===
-                    ".JPEG"
-                ) {
-                    this.imgUrl = scope.row.url;
-                    this.innerVisible = true;
-                } else {
-                    window.open(scope.row.url);
-                }
-            } else {
-                this.$message.error("请上传附件");
-            }
-        },
-        //修改触发
-        rowCell(row, index) {
-            if (row.$cellEdit == true) {
-                this.$set(row, "$cellEdit", false);
-            } else {
-                this.$set(row, "$cellEdit", true);
-            }
-            // this.$refs.crud.rowCell(row, index)
-        },
-        rowDel(row, index) {
-            this.$confirm("确定将选择数据删除?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning"
-            }).then(() => {
-                console.log(row, 657)
-                if (row.id) {
-                    if (this.typeUpload == "CK") {
-                        updateListRemove(row.id, this.deleteUrl).then(res => {
-                            if (res.data.success) {
-                                this.$message.success("操作成功!");
-                                this.data.splice(index, 1);
-                            }
-                        });
-                    } else if (this.typeUpload == "LT") {
-                        LTfujianDelete({ids: row.id}).then(res => {
-                            if (res.data.success) {
-                                this.$message.success("操作成功!");
-                                this.data.splice(index, 1);
-                            }
-                        })
-                    } else {
-                        sharedDeletion(this.deleteUrl, row.id).then(res => {
-                            if (res.data.success) {
-                                this.$message.success("操作成功!");
-                                this.data.splice(index, 1);
-                            }
-                        });
-                    }
-                } else {
-                    this.data.splice(index, 1);
-                }
+          } else {
+            sharedDeletion(this.deleteUrl, row.id).then(res => {
+              if (res.data.success) {
+                this.$message.success("操作成功!");
+                this.data.splice(index, 1);
+              }
             });
+          }
+        } else {
+          this.data.splice(index, 1);
         }
+      });
     }
+  }
 };
 </script>
 

+ 1 - 1
src/lang/zh.js

@@ -67,7 +67,7 @@ export default {
     saleOrderL: '销售订单(L)'
   },
   login: {
-    title: '登录 ',
+    title: '库比森营销平台',
     info: '库比森营销平台',
     tenantId: '请输入企业ID',
     username: '请输入账号',

+ 2 - 4
src/page/login/index.vue

@@ -4,16 +4,14 @@
          @keyup.enter.native="handleLogin">
         <top-color v-show="false"></top-color>
         <div class="login-weaper animated bounceInDown">
-            <div class="login-left">
+            <!-- <div class="login-left">
                 <div class="login-time">
                     {{ time }}
                 </div>
-                <!--<img class="img" src="/img/logoTubao.png" alt="">-->
                 <p class="title">
                     {{ $t('login.info') }}
                 </p>
-                <!--$t 国际化vue-i18n中英文切换 -->
-            </div>
+            </div> -->
             <div class="login-border">
                 <div class="login-main">
                     <h4 class="login-title">

+ 7 - 6
src/styles/login.scss

@@ -10,8 +10,10 @@
 }
 
 .login-weaper {
-  margin: 0 auto;
-  width: 1000px;
+  // margin: 0 auto;
+  position: absolute;
+  right:12vw;
+  width: 500px;
   box-shadow: -4px 5px 10px rgba(0, 0, 0, 0.4);
     border-radius: 40px;
   .el-input-group__append {
@@ -22,7 +24,7 @@
 .login-left,
 .login-border {
   position: relative;
-  min-height: 500px;
+  min-height: 440px;
   align-items: center;
   display: flex;
 }
@@ -69,11 +71,10 @@
 
 .login-border {
   border-left: none;
-  border-top-right-radius: 40px;
-  border-bottom-right-radius: 40px;
+  border-radius: 40px;
   color: #fff;
   background-color: #fff;
-  width: 50%;
+  width: 100%;
   float: left;
   box-sizing: border-box;
 }

+ 5 - 5
src/styles/media.scss

@@ -124,14 +124,14 @@
     padding-top: 30px !important;
     margin-left: -30px;
   }
-  .login-weaper {
-    margin: 0 auto;
-    width: 96% !important;
-  }
+  // .login-weaper {
+    // margin: 0 auto;
+    // width: 96% !important;
+  // }
   .login-border {
     border-radius: 5px;
     padding: 40px;
-    margin: 0 auto;
+    // margin: 0 auto;
     float: none !important;
     width: 100% !important;
   }

+ 119 - 92
src/views/claimSettlement/detailsPage.vue

@@ -2,17 +2,38 @@
   <div>
     <div class="customer-head">
       <div class="customer-back">
-        <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="goBack()">返回列表 </el-button>
+        <el-button
+          type="danger"
+          style="border: none; background: none; color: red"
+          icon="el-icon-arrow-left"
+          @click="goBack()"
+          >返回列表
+        </el-button>
       </div>
       <div class="add-customer-btn">
-        <el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small" v-if="editBtn" @click="inEdit">编 辑 </el-button>
-        <el-button class="el-button--small-yh" v-else style="margin-left: 6px;" type="primary" size="small" :disabled="editDis" @click="submit"
+        <el-button
+          class="el-button--small-yh"
+          style="margin-left: 6px"
+          type="primary"
+          size="small"
+          v-if="editBtn"
+          @click="inEdit"
+          >编 辑
+        </el-button>
+        <el-button
+          class="el-button--small-yh"
+          v-else
+          style="margin-left: 6px"
+          type="primary"
+          size="small"
+          :disabled="editDis"
+          @click="submit"
           >保 存
         </el-button>
         <el-button
-          v-if="form.id&&form.auditStatus == 0"
+          v-if="form.id && form.auditStatus == 0"
           class="el-button--small-yh"
-          style="margin-left: 6px;"
+          style="margin-left: 6px"
           type="success"
           size="small"
           :disabled="editDis"
@@ -20,9 +41,9 @@
           >提交审批
         </el-button>
         <el-button
-          v-if="form.id&&form.auditStatus == 1"
+          v-if="form.id && form.auditStatus == 1"
           class="el-button--small-yh"
-          style="margin-left: 6px;"
+          style="margin-left: 6px"
           type="danger"
           size="small"
           :disabled="editBtn"
@@ -33,14 +54,19 @@
     </div>
     <div style="margin-top: 50px">
       <trade-card title="基础信息">
-        <avue-form :option="optionForm" v-model="form" ref="form">
-        </avue-form>
+        <avue-form :option="optionForm" v-model="form" ref="form"> </avue-form>
       </trade-card>
       <trade-card title="文件中心">
         <upload-file :data="form.claimAttachmentList" :disabled="editDis" @upDate="upDate"></upload-file>
       </trade-card>
       <trade-card title="反馈表">
-        <avue-crud :option="option" :data="form.bladeClaimAuditList" id="out-table" ref="crud" @selection-change="selectionChange"> </avue-crud>
+        <avue-crud
+          :option="option"
+          :data="form.bladeClaimAuditList"
+          id="out-table"
+          ref="crud"
+        >
+        </avue-crud>
       </trade-card>
       <trade-card title="操作记录">
         <avue-form :option="optionForm2" v-model="form" ref="form2"> </avue-form>
@@ -50,6 +76,7 @@
 </template>
 
 <script>
+// @ts-nocheck
 import { submit, detail, submitApprova, revokeApproval } from "@/api/claimSettlement/index";
 import dicSelect from "@/components/dicSelect/main.vue";
 export default {
@@ -60,7 +87,7 @@ export default {
       editDis: false,
       form: {
         claimAttachmentList: [],
-        bladeClaimAuditList: []
+        bladeClaimAuditList: [],
       },
       optionForm: {
         menuBtn: false,
@@ -71,7 +98,7 @@ export default {
           {
             label: "理赔单号",
             prop: "claimNo",
-            disabled: true
+            disabled: true,
           },
           {
             label: "来源类型",
@@ -80,37 +107,37 @@ export default {
             dicData: [
               {
                 label: "经销商",
-                value: 1
+                value: 1,
               },
               {
                 label: "门店",
-                value: 2
+                value: 2,
               },
               {
                 label: "终端消费者",
-                value: 3
-              }
+                value: 3,
+              },
             ],
             rules: [
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "来源方名称",
             prop: "sourceName",
-            disabled:true,
+            disabled: true,
           },
           {
             label: "消费者姓名",
-            prop: "consumerName"
+            prop: "consumerName",
           },
           {
             label: "消费者电话",
-            prop: "consumerPhone"
+            prop: "consumerPhone",
           },
           {
             label: "胎号",
@@ -119,42 +146,42 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "规格型号",
-            prop: "tyreSpecs"
+            prop: "tyreSpecs",
           },
           {
             label: "购买日期",
             prop: "purchaseDate",
             type: "date",
             format: "yyyy-MM-dd",
-            valueFormat: "yyyy-MM-dd 00:00:00"
+            valueFormat: "yyyy-MM-dd 00:00:00",
           },
           {
             label: "装车日期",
             prop: "mountDate",
             type: "date",
             format: "yyyy-MM-dd",
-            valueFormat: "yyyy-MM-dd 00:00:00"
+            valueFormat: "yyyy-MM-dd 00:00:00",
           },
           {
             label: "行驶里程(km)",
             prop: "runMileage",
-            type:'number',
-            controls:false,
-            precision:0,
+            type: "number",
+            controls: false,
+            precision: 0,
           },
           {
             label: "索赔金额",
             prop: "claimAmount",
-            type:'number',
-            controls:false,
-            precision:2,
-          }, 
+            type: "number",
+            controls: false,
+            precision: 2,
+          },
           {
             label: "审核状态",
             prop: "auditStatus",
@@ -162,22 +189,22 @@ export default {
             dicData: [
               {
                 label: "待审核",
-                value: 0
+                value: 0,
               },
               {
                 label: "审核中",
-                value: 1
+                value: 1,
               },
               {
                 label: "已通过",
-                value: 2
+                value: 2,
               },
               {
                 label: "已拒绝",
-                value: 3
-              }
+                value: 3,
+              },
             ],
-            disabled: true
+            disabled: true,
           },
           {
             label: "理赔原因",
@@ -189,18 +216,18 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "备注",
             prop: "remark",
             type: "textarea",
             span: 12,
-            minRows: 2
-          }
-        ]
+            minRows: 2,
+          },
+        ],
       },
       optionForm2: {
         menuBtn: false,
@@ -211,24 +238,24 @@ export default {
           {
             label: "制单人",
             prop: "createUserName",
-            disabled: true
+            disabled: true,
           },
           {
             label: "制单日期",
             prop: "createTime",
-            disabled: true
+            disabled: true,
           },
           {
             label: "修改人",
             prop: "updateUserName",
-            disabled: true
+            disabled: true,
           },
           {
             label: "修改日期",
             prop: "updateTime",
-            disabled: true
-          }
-        ]
+            disabled: true,
+          },
+        ],
       },
       option: {
         maxHeight: 340,
@@ -240,7 +267,7 @@ export default {
           {
             label: "理赔单号",
             prop: "claimNo",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "审核结论",
@@ -250,48 +277,48 @@ export default {
             dicData: [
               {
                 label: "通过",
-                value: 1
+                value: 2,
               },
               {
                 label: "拒绝",
-                value: 2
-              }
+                value: 3,
+              },
             ],
           },
           {
             label: "核定赔付金额",
             prop: "auditAmount",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "详细审核说明",
             prop: "reasonDetail",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "审核人姓名",
             prop: "auditorName",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "审核时间",
             prop: "auditTime",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "反馈渠道",
             prop: "feedbackChannel",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "客户反馈内容",
             prop: "feedbackDesc",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "客户反馈时间",
             prop: "feedbackTime",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "申诉状态",
@@ -301,32 +328,32 @@ export default {
             dicData: [
               {
                 label: "无申诉",
-                value: 0
+                value: 0,
               },
               {
                 label: "申诉中",
-                value: 1
+                value: 1,
               },
               {
                 label: "已处理",
-                value: 2
-              }
+                value: 2,
+              },
             ],
           },
           {
             label: "申诉处理结果",
             prop: "appealResult",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "申诉处理时间",
             prop: "appealTime",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "制单人",
             prop: "createUserName",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "制单日期",
@@ -335,12 +362,12 @@ export default {
             overHidden: true,
             width: 120,
             format: "yyyy-MM-dd",
-            valueFormat: "yyyy-MM-dd HH:mm:ss"
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
           },
           {
             label: "修改人",
             prop: "updateUserName",
-            overHidden: true
+            overHidden: true,
           },
           {
             label: "修改日期",
@@ -349,22 +376,22 @@ export default {
             overHidden: true,
             width: 120,
             format: "yyyy-MM-dd",
-            valueFormat: "yyyy-MM-dd HH:mm:ss"
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
           },
           {
             label: "备注",
             prop: "remarks",
             cell: true,
             width: 150,
-            overHidden: true
-          }
-        ]
-      }
+            overHidden: true,
+          },
+        ],
+      },
     };
   },
   components: { dicSelect },
   props: {
-    detailData: Object
+    detailData: Object,
   },
   created() {
     if (this.detailData && this.detailData.id) {
@@ -387,12 +414,12 @@ export default {
         this.$confirm("是否提交审批?", "提示", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
-          type: "warning"
+          type: "warning",
         }).then(() => {
           let obj = {
-            id: this.form.id
+            id: this.form.id,
           };
-          submitApprova(obj).then(res => {
+          submitApprova(obj).then((res) => {
             this.$message.success("操作成功");
             this.getDetail(this.form.id);
           });
@@ -402,12 +429,12 @@ export default {
         this.$confirm("是否撤销审批?", "提示", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
-          type: "warning"
+          type: "warning",
         }).then(() => {
           let obj = {
-            id: this.form.id
+            id: this.form.id,
           };
-          revokeApproval(obj).then(res => {
+          revokeApproval(obj).then((res) => {
             this.$message.success("操作成功");
             this.getDetail(this.form.id);
           });
@@ -426,10 +453,10 @@ export default {
             lock: true,
             text: "加载中",
             spinner: "el-icon-loading",
-            background: "rgba(255,255,255,0.7)"
+            background: "rgba(255,255,255,0.7)",
           });
           submit(this.form)
-            .then(res => {
+            .then((res) => {
               this.$message.success("保存成功");
               this.getDetail(res.data.data.id);
             })
@@ -449,16 +476,16 @@ export default {
         lock: true,
         text: "加载中",
         spinner: "el-icon-loading",
-        background: "rgba(255,255,255,0.7)"
+        background: "rgba(255,255,255,0.7)",
       });
       detail({ id: id })
-        .then(res => {
+        .then((res) => {
           if (res.data.data.auditStatus > 0) {
             this.editBtn = true;
             this.editDis = true;
             this.optionForm.disabled = true;
           }
-           if (!this.editBtn&&res.data.data.auditStatus == 0) {
+          if (!this.editBtn && res.data.data.auditStatus == 0) {
             this.editDis = false;
             this.optionForm.disabled = false;
           }
@@ -473,8 +500,8 @@ export default {
      */
     goBack(type) {
       this.$emit("goBack");
-    }
-  }
+    },
+  },
 };
 </script>
 

+ 1 - 0
src/views/claimSettlement/index.vue

@@ -35,6 +35,7 @@
 </template>
 
 <script>
+// @ts-nocheck
 import { getList, remove } from "@/api/claimSettlement/index";
 import detailsPage from "./detailsPage.vue";
 import { getToken } from "@/util/auth";

+ 1 - 1
src/views/fc/customer/detailsPage.vue

@@ -106,7 +106,7 @@
       <c-upload
         v-loading="loadingBtn"
         typeUpload="CD"
-        deleteUrl="/api/blade-sales-part/corpsfiles/remove"
+        deleteUrl="/api/gubersail-admin/corpsfiles/remove"
         :data="corpsFiles"
         display
         :enumerationValue="35.1"

+ 282 - 149
src/views/store/detailsPage.vue

@@ -1,17 +1,44 @@
+
 <template>
   <div>
     <div class="borderless">
       <div class="customer-head">
         <div class="customer-back">
-          <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="backToList"
+          <el-button
+            type="danger"
+            style="border: none; background: none; color: red"
+            icon="el-icon-arrow-left"
+            @click="backToList"
             >返回列表
           </el-button>
         </div>
         <div class="add-customer-btn">
-          <el-button type="primary" size="small" @click="editCustomer">
-            保存数据
+          <el-button type="primary" size="small" @click="editCustomer"> 保存数据 </el-button>
+          <el-button
+            v-if="form.id && (form.checkStatus == '录入' || form.checkStatus == '审核驳回')"
+            class="el-button--small-yh"
+            style="margin-left: 6px"
+            type="success"
+            size="small"
+            @click="allClick('提交审批')"
+            >提交审批
+          </el-button>
+          <el-button
+            v-if="form.id && form.checkStatus == '提交'"
+            class="el-button--small-yh"
+            style="margin-left: 6px"
+            type="success"
+            size="small"
+            @click="allClick('审批')"
+            >审批
           </el-button>
-          <el-button class="el-button--small-yh" :type="form.enableOrNot == 0 ? 'primary' : ''" size="small" v-if="form.id" @click="editEnable">
+          <el-button
+            class="el-button--small-yh"
+            :type="form.enableOrNot == 0 ? 'primary' : ''"
+            size="small"
+            v-if="form.id"
+            @click="editEnable"
+          >
             {{ form.enableOrNot == 0 ? "启用" : "禁用" }}
           </el-button>
         </div>
@@ -19,12 +46,16 @@
       <trade-card title="基础资料" style="margin-top: 60px" v-loading="loadingBtn">
         <avue-form ref="form" class="trading-form" v-model="form" :option="option">
           <template slot="corpsTypeIdLabel">
-            <span style="color: #409EFF;cursor: pointer" @click="corpTypeVisible = true">
-              客户分类
-            </span>
+            <span style="color: #409eff; cursor: pointer" @click="corpTypeVisible = true"> 客户分类 </span>
           </template>
           <template slot="corpsTypeId">
-            <avue-input-tree v-model="form.corpsTypeId" :disabled="option.disabled" placeholder="请选择客户分类" :dic="corpTypeList" :props="props">
+            <avue-input-tree
+              v-model="form.corpsTypeId"
+              :disabled="option.disabled"
+              placeholder="请选择客户分类"
+              :dic="corpTypeList"
+              :props="props"
+            >
             </avue-input-tree>
           </template>
           <tempalte slot="salesmanName">
@@ -34,7 +65,7 @@
               label="name"
               @selectChange="dicChange('salesmanName', $event)"
               :disabled="option.disabled"
-              url="/blade-user/factoryUserList"
+              url="/blade-user/salerList"
               :filterable="true"
               dataName="name"
             >
@@ -82,9 +113,7 @@
             ></dic-select>
           </tempalte>
           <template slot="labelLabel">
-            <span style="color: #409EFF;cursor: pointer" @click="labelVisible = true">
-              门店标签
-            </span>
+            <span style="color: #409eff; cursor: pointer" @click="labelVisible = true"> 门店标签 </span>
           </template>
         </avue-form>
       </trade-card>
@@ -98,41 +127,82 @@
           @row-update="rowUpdate"
           @row-del="rowDelTwo"
         >
+          <template slot="menuLeft">
+            <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="$refs.crudTwo.rowAdd()" :disabled="option.disabled"
+              >录入明细
+            </el-button>
+          </template>
           <template slot-scope="{ type, size, row, disabled, index }" slot="menu">
             <el-button
               :size="size"
-              :disabled="disabled"
+              :disabled="option.disabled"
               :type="type"
               :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
               @click="$refs.crudTwo.rowEdit(row, index)"
               >{{ row.$cellEdit ? "确认" : "修改" }}
             </el-button>
-            <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type" @click="rowDelTwo(row, index)">删除 </el-button>
-            <el-button icon="el-icon-check" :size="size" :type="type" @click="creatingUsers(row)">创建用户 </el-button>
+            <el-button
+              icon="el-icon-delete"
+              :size="size"
+              :disabled="option.disabled"
+              :type="type"
+              @click="rowDelTwo(row, index)"
+              >删除
+            </el-button>
+            <el-button
+              icon="el-icon-check"
+              :size="size"
+              :type="type"
+              @click="creatingUsers(row)"
+              :disabled="option.disabled"
+              >创建用户
+            </el-button>
           </template>
         </avue-crud>
       </trade-card>
       <trade-card title="地址信息" v-loading="loadingBtn">
         <avue-crud :option="option2" ref="crud" :data="data" @row-save="rowSave" @row-update="rowUpdate">
           <template slot="headerSerial">
-            <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow" :disabled="detailData.status == 1" circle></el-button>
+            <el-button
+              type="primary"
+              icon="el-icon-plus"
+              size="mini"
+              @click.stop="addRow"
+              :disabled="detailData.status == 1"
+              circle
+            ></el-button>
           </template>
           <template slot="menuLeft">
-            <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="addRow">录入明细 </el-button>
+            <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="addRow" :disabled="option.disabled"
+              >录入明细
+            </el-button>
           </template>
           <template v-if="!row.$cellEdit" slot-scope="{ type, size, row, index, disabled }" slot="menu">
             <el-button
               :size="size"
-              :disabled="disabled"
+              :disabled="option.disabled"
               :type="type"
               :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
               @click="$refs.crud.rowCell(row, index)"
               >{{ row.$cellEdit ? "确认" : "修改" }}
             </el-button>
-            <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type" @click="rowDel(row, index)">删除 </el-button>
+            <el-button
+              icon="el-icon-delete"
+              :size="size"
+              :disabled="option.disabled"
+              :type="type"
+              @click="rowDel(row, index)"
+              >删除
+            </el-button>
           </template>
           <template slot="defaultAddres" slot-scope="{ row, index, disabled }">
-            <el-switch active-value="1" inactive-value="0" :disabled="disabled" v-model="row.defaultAddres" @change="addressUnique(row, index)">
+            <el-switch
+              active-value="1"
+              inactive-value="0"
+              :disabled="option.disabled"
+              v-model="row.defaultAddres"
+              @change="addressUnique(row, index)"
+            >
             </el-switch>
           </template>
         </avue-crud>
@@ -141,11 +211,12 @@
       <c-upload
         v-loading="loadingBtn"
         typeUpload="CD"
-        deleteUrl="/api/blade-sales-part/corpsfiles/remove"
+        deleteUrl="/api/gubersail-admin/corpsfiles/remove"
         :data="corpsFiles"
         display
         :enumerationValue="35.1"
-        :disabled="detailData.status == 1"
+        :disabled="option.disabled"
+        :mainImageType="true"
       ></c-upload>
       <el-dialog
         title="设置客户分类"
@@ -165,7 +236,15 @@
         </div>
       </el-dialog>
     </div>
-    <el-dialog title="设置门店标签" v-dialogDrag :visible.sync="labelVisible" class="avue-dialog" width="80%" append-to-body @closed="labelClosed">
+    <el-dialog
+      title="设置门店标签"
+      v-dialogDrag
+      :visible.sync="labelVisible"
+      class="avue-dialog"
+      width="80%"
+      append-to-body
+      @closed="labelClosed"
+    >
       <span>
         <corp-label v-if="labelVisible"></corp-label>
       </span>
@@ -185,6 +264,7 @@
 </template>
 
 <script>
+// @ts-nocheck
 import {
   getDetails,
   getCorpType,
@@ -196,7 +276,9 @@ import {
   editenable,
   getUserByRole,
   getBrandDesc,
-  creatingUsersTwo
+  creatingUsersTwo,
+  submitApply,
+  review,
 } from "@/api/store/customerInformation";
 import { getRoleTree } from "@/api/system/role";
 import { getDeptTree } from "@/api/system/dept";
@@ -205,7 +287,7 @@ import corpType from "./components/index.vue";
 import corpLabel from "./components/label.vue";
 import website from "@/config/website";
 import dicSelect from "@/components/dicSelect/main.vue";
-
+import { getToken } from "@/util/auth";
 export default {
   name: "index",
   data() {
@@ -214,11 +296,11 @@ export default {
       labelVisible: false,
       propsCk: {
         label: "cname",
-        value: "id"
+        value: "id",
       },
       props: {
         label: "title",
-        value: "value"
+        value: "value",
       },
       optionData: {
         span: 8,
@@ -231,7 +313,7 @@ export default {
             type: "tree",
             dicData: [],
             props: {
-              label: "title"
+              label: "title",
             },
             checkStrictly: true,
             slot: true,
@@ -239,9 +321,9 @@ export default {
               {
                 required: true,
                 message: "请选择所属角色",
-                trigger: "click"
-              }
-            ]
+                trigger: "click",
+              },
+            ],
           },
           {
             label: "所属部门",
@@ -250,7 +332,7 @@ export default {
             multiple: true,
             dicData: [],
             props: {
-              label: "title"
+              label: "title",
             },
             checkStrictly: true,
             slot: true,
@@ -258,9 +340,9 @@ export default {
               {
                 required: true,
                 message: "请选择所属部门",
-                trigger: "click"
-              }
-            ]
+                trigger: "click",
+              },
+            ],
           },
           {
             label: "所属岗位",
@@ -270,17 +352,17 @@ export default {
             dicData: [],
             props: {
               label: "postName",
-              value: "id"
+              value: "id",
             },
             rules: [
               {
                 required: true,
                 message: "请选择所属岗位",
-                trigger: "click"
-              }
-            ]
-          }
-        ]
+                trigger: "click",
+              },
+            ],
+          },
+        ],
       },
       dialogVisibleBt: false,
       formDataTwo: false,
@@ -291,7 +373,7 @@ export default {
       corpTypeVisible: false,
       loadingBtn: false,
       form: {
-        ifLimitAmount: "0"
+        ifLimitAmount: "0",
       },
       form4: {},
       data: [],
@@ -307,9 +389,9 @@ export default {
               {
                 required: true,
                 message: "",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "客户分类",
@@ -318,13 +400,13 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "电话",
-            prop: "tel"
+            prop: "tel",
           },
           {
             label: "业务员",
@@ -333,9 +415,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "发货仓库",
@@ -344,9 +426,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "商城价格",
@@ -356,15 +438,15 @@ export default {
             dicUrl: "/api/blade-system/dict-biz/dictionary?code=mall_price",
             props: {
               label: "dictValue",
-              value: "dictKey"
+              value: "dictKey",
             },
             rules: [
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "积分余额",
@@ -372,7 +454,7 @@ export default {
             type: "number",
             controls: false,
             precision: 2,
-            disabled: true
+            disabled: true,
           },
           {
             label: "品牌",
@@ -380,52 +462,65 @@ export default {
             rules: [
               {
                 message: "请选择品牌",
-                trigger: "click"
-              }
-            ]
+                trigger: "click",
+              },
+            ],
           },
           {
             label: "门店标签",
-            prop: "label"
+            prop: "label",
           },
           {
             label: "店面属性",
-            prop: "storeAttributes"
+            prop: "storeAttributes",
           },
           {
             label: "连锁属性",
-            prop: "chainAttribute"
+            prop: "chainAttribute",
           },
           {
             label: "签约级别",
-            prop: "signingLevel"
+            prop: "signingLevel",
           },
           {
             label: "签约条数",
-            prop: "signingNumber"
+            prop: "signingNumber",
           },
           {
             label: "签约期限起",
             prop: "signingPeriodStart",
             type: "month",
             format: "yyyy-MM",
-            valueFormat: "yyyy-MM-01 00:00:00"
+            valueFormat: "yyyy-MM-01 00:00:00",
           },
           {
             label: "签约期限止",
             prop: "signingPeriodEnd",
             type: "month",
             format: "yyyy-MM",
-            valueFormat: "yyyy-MM-01 00:00:00"
+            valueFormat: "yyyy-MM-01 00:00:00",
+          },
+          {
+            label: "营业执照",
+            prop: "businessLicenseUrl",
+            type: "upload",
+            listType: "picture-img",
+            fileType: "img", //img/video/audio
+            propsHttp: {
+              res: "data",
+              url: "link",
+            },
+            action: "/api/blade-resource/oss/endpoint/put-file",
+            headers: { "Blade-Auth": "Bearer " + getToken() },
           },
           {
             label: "备注",
             prop: "remarks",
             type: "textarea",
             minRows: 2,
-            span: 24
-          }
-        ]
+            span: 24,
+          },
+        ],
       },
       option2: {
         align: "center",
@@ -456,9 +551,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "电话",
@@ -468,9 +563,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "地址",
@@ -480,17 +575,17 @@ export default {
             type: "cascader",
             props: {
               label: "name",
-              value: "name"
+              value: "name",
             },
             rules: [
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
+                trigger: "blur",
+              },
             ],
             filterable: true,
-            cell: true
+            cell: true,
           },
           {
             label: "详细地址",
@@ -500,22 +595,22 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "备注",
             prop: "remarks",
-            cell: true
+            cell: true,
           },
           {
             label: "默认地址",
             prop: "defaultAddres",
             display: false,
-            width: 100
-          }
-        ]
+            width: 100,
+          },
+        ],
       },
       option3: {},
       option4: {
@@ -529,10 +624,10 @@ export default {
               {
                 required: true,
                 message: "",
-                trigger: "blur"
-              }
+                trigger: "blur",
+              },
             ],
-            span: 24
+            span: 24,
           },
           {
             label: "上级类型",
@@ -541,20 +636,20 @@ export default {
             type: "tree",
             props: {
               label: "cname",
-              value: "id"
+              value: "id",
             },
-            span: 24
-          }
-        ]
+            span: 24,
+          },
+        ],
       },
       corpsFiles: [],
       customerContactBack: {
         align: "center",
         index: true,
-        addBtnText: "录入明细",
+        // addBtnText: "录入明细",
         refreshBtn: false,
         dialogDrag: true,
-        addBtn: true,
+        addBtn: false,
         span: 8,
         height: 300,
         addRowBtn: false,
@@ -573,9 +668,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "电话",
@@ -585,9 +680,9 @@ export default {
               {
                 required: true,
                 message: " ",
-                trigger: "blur"
-              }
-            ]
+                trigger: "blur",
+              },
+            ],
           },
           // {
           //   label: "登录用户id",
@@ -597,18 +692,18 @@ export default {
           {
             label: "备注",
             prop: "remarks",
-            cell: true
-          }
-        ]
+            cell: true,
+          },
+        ],
       },
-      userObj: {}
+      userObj: {},
     };
   },
   components: { corpType, dicSelect, corpLabel },
   props: {
     detailData: {
-      type: Object
-    }
+      type: Object,
+    },
   },
   async created() {
     if (this.detailData.id) {
@@ -634,6 +729,50 @@ export default {
     }, 100);
   },
   methods: {
+    allClick(name) {
+      if (name == "提交审批") {
+        this.$confirm("是否提交审批?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        }).then(() => {
+          let obj = {
+            id: this.form.id,
+          };
+          submitApply(obj).then((res) => {
+            this.$message.success("操作成功");
+            this.getDetail(this.form.id);
+          });
+        });
+      }
+      if (name == "审批") {
+        this.$confirm("是否撤销审批?", "提示", {
+          confirmButtonText: "通过",
+          cancelButtonText: "驳回",
+          type: "warning",
+        })
+          .then(() => {
+            let obj = {
+              id: this.form.id,
+              type: 1,
+            };
+            review(obj).then((res) => {
+              this.$message.success("操作成功");
+              this.getDetail(this.form.id);
+            });
+          })
+          .catch(() => {
+            let obj = {
+              id: this.form.id,
+              type: 2,
+            };
+            review(obj).then((res) => {
+              this.$message.success("操作成功");
+              this.getDetail(this.form.id);
+            });
+          });
+      }
+    },
     dicChange(name, row) {
       if (name == "salesmanName") {
         if (row) {
@@ -663,11 +802,14 @@ export default {
     },
     // 启用或禁用
     editEnable() {
+      if(this.form.checkStatus != '审核通过'){
+        return  this.$message.error("审核通过以后可以启用");
+      }
       let data = this.form;
-      editenable({ id: data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then(res => {
+      editenable({ id: data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then((res) => {
         this.$message({
           type: "success",
-          message: data.enableOrNot ? "禁用成功!" : "启用成功!"
+          message: data.enableOrNot ? "禁用成功!" : "启用成功!",
         });
         this.getDetail(this.detailData.id);
         // this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
@@ -684,15 +826,15 @@ export default {
       }
     },
     initData(tenantId) {
-      getRoleTree(tenantId).then(res => {
+      getRoleTree(tenantId).then((res) => {
         const column = this.findObject(this.optionData.column, "roleId");
         column.dicData = res.data.data;
       });
-      getDeptTree(tenantId).then(res => {
+      getDeptTree(tenantId).then((res) => {
         const column = this.findObject(this.optionData.column, "deptId");
         column.dicData = res.data.data;
       });
-      getPostList(tenantId).then(res => {
+      getPostList(tenantId).then((res) => {
         const column = this.findObject(this.optionData.column, "postId");
         column.dicData = res.data.data;
       });
@@ -708,8 +850,8 @@ export default {
           data.postId = data.postId.join(",");
           creatingUsersTwo({
             ...data,
-            id: this.formRow.id
-          }).then(res => {
+            id: this.formRow.id,
+          }).then((res) => {
             this.dialogVisibleBt = false;
             this.formDataTwo = {};
             this.$message.success("创建用户成功,默认帐号:手机号。默认密码:123456");
@@ -721,7 +863,7 @@ export default {
       });
     },
     getAllWorkDicts() {
-      customerList({ corpType: "KH" }).then(res => {
+      customerList({ corpType: "KH" }).then((res) => {
         this.findObject(this.option4.column, "parentId").dicData = res.data.data.records;
       });
       this.findObject(this.option2.column, "belongtoarea").dicData = JSON.parse(localStorage.getItem("areaTypeTree"))
@@ -731,7 +873,7 @@ export default {
     getDetail(id) {
       this.loadingBtn = true;
       getDetails({ id: id })
-        .then(res => {
+        .then((res) => {
           if (res.data.data.enableOrNot == 1) {
             this.$set(this.option, "disabled", true);
           } else {
@@ -753,20 +895,20 @@ export default {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
         if (row.id) {
-          itemDel(row.id).then(res => {
+          itemDel(row.id).then((res) => {
             this.$message({
               type: "success",
-              message: "删除成功!"
+              message: "删除成功!",
             });
             this.data.splice(index, 1);
           });
         } else {
           this.$message({
             type: "success",
-            message: "删除成功!"
+            message: "删除成功!",
           });
           this.data.splice(index, 1);
         }
@@ -786,7 +928,7 @@ export default {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
         if (row.id) {
           // itemDel(row.id).then(res => {
@@ -799,7 +941,7 @@ export default {
         } else {
           this.$message({
             type: "success",
-            message: "删除成功!"
+            message: "删除成功!",
           });
           this.data2.splice(index, 1);
         }
@@ -810,7 +952,7 @@ export default {
       // this.form4 = this.$options.data().form4
     },
     getCorpType() {
-      getCorpType({ corpType: "KH" }).then(res => {
+      getCorpType({ corpType: "KH" }).then((res) => {
         this.corpTypeList = res.data.data;
       });
     },
@@ -829,11 +971,9 @@ export default {
         if (valid) {
           if (this.contactsData.length == 0) return this.$message.error("请添加客户联系人");
           if (this.data.length == 0) return this.$message.error("请添加地址信息");
+          if (this.corpsFiles.filter((item) => item.mainImage == 1).length > 1)
+            return this.$message.error("附件主图只允许选一个");
           this.loadingBtn = true;
-          if (!this.form.id) {
-            this.form.checkStatus = "通过";
-          }
-
           submit({
             ...this.form,
             code: this.form.cname,
@@ -841,21 +981,14 @@ export default {
             corpsAddrList: this.data,
             corpsFilesList: this.corpsFiles,
             corpsAttnList: this.contactsData,
-            billType: 1
+            billType: 1,
           })
-            .then(res => {
+            .then((res) => {
               this.$message.success("保存成功");
               this.form = res.data.data;
               this.data = res.data.data.corpsAddrList;
               this.corpsFiles = res.data.data.corpsFilesList;
               this.getDetail(res.data.data.id);
-              if (!this.form.id) {
-                //添加成功后默认启用
-                let data = this.form;
-                editenable({ id: res.data.data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then(res => {
-                  this.$set(this.form, "enableOrNot", data.enableOrNot == 1 ? 0 : 1);
-                });
-              }
             })
             .finally(() => {
               this.loadingBtn = false;
@@ -882,11 +1015,11 @@ export default {
       this.$confirm("是否创建用户?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
         creatingUsersTwo({
-          id: row.id
-        }).then(res => {
+          id: row.id,
+        }).then((res) => {
           this.$message.success("创建用户成功,默认帐号:手机号。默认密码:123456");
           this.getDetail(this.form.id);
         });
@@ -908,21 +1041,21 @@ export default {
       this.$confirm("确定将选择数据删除?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
         // 数据回调进行刷新
         if (row.id) {
-          corpsattn(row.id).then(res => {
+          corpsattn(row.id).then((res) => {
             this.$message({
               type: "success",
-              message: "操作成功!"
+              message: "操作成功!",
             });
             this.contactsData.splice(index, 1);
           });
         } else {
           this.$message({
             type: "success",
-            message: "操作成功!"
+            message: "操作成功!",
           });
           this.contactsData.splice(index, 1);
         }
@@ -931,8 +1064,8 @@ export default {
     //返回列表
     backToList() {
       this.$emit("goBack");
-    }
-  }
+    },
+  },
 };
 </script>
 

+ 2 - 1
src/views/store/index.vue

@@ -70,7 +70,7 @@
                 @click.stop="passThrough(row, '驳回')"
                 >驳回
               </el-button> -->
-              <el-button :size="size" :type="type" :disabled="row.enableOrNot || !roleName.includes('基础资料')" @click.stop="rowDel(row)"
+              <el-button :size="size" :type="type" :disabled="!(row.checkStatus == '录入' || row.checkStatus == '审核驳回')||row.enableOrNot==1" @click.stop="rowDel(row)"
                 >删除
               </el-button>
             </template>
@@ -121,6 +121,7 @@
 </template>
 
 <script>
+// @ts-nocheck
 import detailsPage from "./detailsPage.vue";
 import { getList, getCorpType, remove, customerList, submit } from "@/api/store/customerInformation";
 import corpType from "./components/index.vue";

+ 1 - 0
vue.config.js

@@ -55,6 +55,7 @@ module.exports = {
     proxy: {
       '/api': {
         //本地服务接口地址
+        // target: 'http://192.168.8.101:1080',
         target: 'http://192.168.8.114:1080',
         // target: 'http://127.0.0.1:1080',
         // target: 'http://gubersial-api.cpolar.top',