Ver código fonte

feat:mixin reloadData

snow 2 anos atrás
pai
commit
7a83798396
45 arquivos alterados com 102 adições e 92 exclusões
  1. 1 1
      src/components/globalComponents/shy-tree/main.vue
  2. 1 1
      src/components/globalComponents/tree-table/tree-row.vue
  3. 3 6
      src/layout/components/company-select/index.vue
  4. 10 3
      src/mixins/reloadData.js
  5. 1 1
      src/views/goodStore/brand/index.vue
  6. 2 2
      src/views/goodStore/goodsOnline/detail.vue
  7. 1 1
      src/views/goodStore/grossProfit/index.vue
  8. 1 1
      src/views/goodStore/platform/index.vue
  9. 1 1
      src/views/goodStore/platformGrossProfit/index.vue
  10. 1 1
      src/views/interest/account/index.vue
  11. 1 1
      src/views/interest/action/index.vue
  12. 2 2
      src/views/interest/dataShare/index.vue
  13. 1 1
      src/views/interest/group/index.vue
  14. 4 4
      src/views/interest/handover/components/addEditForm.vue
  15. 3 3
      src/views/interest/organize/index.vue
  16. 4 1
      src/views/interest/processPermission/index.vue
  17. 1 1
      src/views/interest/role/addEdit.vue
  18. 5 1
      src/views/interest/role/index.vue
  19. 17 17
      src/views/orderEntry/orderConfirm/index.vue
  20. 1 1
      src/views/orderEntry/orderEnter/index.vue
  21. 1 1
      src/views/purchaseIn/purchaseDiffOrder/index.vue
  22. 1 1
      src/views/purchaseIn/purchaseOrder/components/order-in-table.vue
  23. 3 3
      src/views/purchaseIn/wsmInOrder/components/wsm-in-order-return-form.vue
  24. 2 2
      src/views/sellOut/bargainList/index.vue
  25. 1 1
      src/views/sellOut/returnOrder/components/auditForm.vue
  26. 1 1
      src/views/sellOut/returnOrder/components/return-record.vue
  27. 1 1
      src/views/sellOut/salesOrder/detail.vue
  28. 1 1
      src/views/sellOut/sellAfterApply/detail.vue
  29. 2 2
      src/views/sellOut/sellOutOrder/components/addEditFormA.vue
  30. 1 1
      src/views/sellOut/sellReturn/detail.vue
  31. 7 7
      src/views/sellOut/stockApply/components/addEdit.vue
  32. 2 2
      src/views/sellOut/stockApply/detail.vue
  33. 2 2
      src/views/sellOut/zixunOrder/components/feedbackList.vue
  34. 1 1
      src/views/sellOut/zxDiffOrder/components/addForm.vue
  35. 1 1
      src/views/serviceParam/business/index.vue
  36. 3 3
      src/views/serviceParam/orderuse/index.vue
  37. 2 2
      src/views/serviceParam/supplierAccount/index.vue
  38. 1 1
      src/views/serviceParam/supplierBrand/index.vue
  39. 1 1
      src/views/serviceParam/terrace/index.vue
  40. 1 1
      src/views/stock/allot/components/addForm.vue
  41. 1 1
      src/views/stock/allot/detail.vue
  42. 3 3
      src/views/stock/check/components/addEdit.vue
  43. 1 1
      src/views/stock/check/detail.vue
  44. 1 1
      src/views/system/operationAccount/index.vue
  45. 0 1
      src/views/youzan/luckyDraw/components/add.vue

+ 1 - 1
src/components/globalComponents/shy-tree/main.vue

@@ -70,7 +70,7 @@
               remove(item.id, level === 3 ? item.menuid : item.pid, level, item.status)
             "
           >
-            {{ item.status === "1" ? "禁用" : "启用" }}
+            {{ item.status + '' === "1" ? "禁用" : "启用" }}
           </el-button>
           <el-button
             v-if="powers.some((i) => i == '006')"

+ 1 - 1
src/components/globalComponents/tree-table/tree-row.vue

@@ -68,7 +68,7 @@
               </el-tag>
               <el-tag
                 :size="tablebtnSize"
-                v-else-if="node.ex_status === '3'"
+                v-else-if="node.ex_status + '' === '3'"
                 :class="{
                   'hover-tag':
                     node.status + '' === '0' && powers.some((itemsome) => itemsome == '009'),

+ 3 - 6
src/layout/components/company-select/index.vue

@@ -106,7 +106,7 @@ export default {
     async initalData() {
       //todo:区分是否超管用户请求不同接口
       this.state.loading = true;
-      const { code, data, message } = await requsetCompanyAll(this.params);
+      const { code, data } = await requsetCompanyAll(this.params);
       if (data.list.length < 10) this.state.noMore = true;
       this.state.loading = false;
       this.params.page++;
@@ -156,11 +156,8 @@ export default {
       //todo:区分是否超管用户请求不同接口
       const { data } = await requsetCompanyAll(this.params);
       this.state.loading = false;
-
-      if (
-        this.companylist.length >= Number(data.count) ||
-        data.list.length < 10
-      ) {
+      const isOverflow = this.companylist.length >= Number(data.count);
+      if (isOverflow || data.list.length < 10) {
         this.state.noMore = true;
         return [];
       }

+ 10 - 3
src/mixins/reloadData.js

@@ -3,22 +3,29 @@ import { mapState } from "vuex";
 /***
  * 超管用户切换公司后刷新列表
 */
-const reloadData = (callback) => ({
+const reloadData = {
   computed: {
     ...mapState({
       currentCompany: (state) => state.user.currentCompany
     })
   },
+  methods:{
+    onCompanyChangeInnner(){
+      this.pageInfo.curr = 1;
+      this.parmValue.page = 1;
+      this.searchList && this.searchList();
+    }
+  },
   watch: {
     currentCompany: {
       handler() {
         const ctx = this;
         //超管角色刷新列表
-        callback && callback(ctx);
+        ctx.onCompanyChange ? ctx.onCompanyChange() : ctx.onCompanyChangeInnner();
       },
       deep: true
     }
   }
-})
+}
 
 export default reloadData

+ 1 - 1
src/views/goodStore/brand/index.vue

@@ -347,7 +347,7 @@ export default {
     // 新建/编辑/详情
     openModal(row, type) {
       const { status } = row;
-      if (type === "005" && status === "1") {
+      if (type === "005" && status + '' === "1") {
         this.$message.warning("禁用后,才可以修改!");
         return;
       }

+ 2 - 2
src/views/goodStore/goodsOnline/detail.vue

@@ -240,7 +240,7 @@
               title="产品部门审批"
               name="1"
               v-if="
-                status === '2' && ppowers.some((i) => i == '2') && queryType == 'view'
+                status + '' === '2' && ppowers.some((i) => i == '2') && queryType == 'view'
               "
             >
               <online-exam-form
@@ -277,7 +277,7 @@
               title="财务审核定价"
               name="3"
               v-if="
-                status === '4' && ppowers.some((i) => i == '4') && queryType == 'view'
+                status + '' === '4' && ppowers.some((i) => i == '4') && queryType == 'view'
               "
             >
               <examFormNew

+ 1 - 1
src/views/goodStore/grossProfit/index.vue

@@ -224,7 +224,7 @@ import { mapGetters } from "vuex";
 
 export default {
   name: "grossProfit",
-  mixins: [mixinPage, resToken, reloadData(ctx => ctx.searchList())],
+  mixins: [mixinPage, resToken, reloadData],
   components: {
     addEdit,
     addEditRate

+ 1 - 1
src/views/goodStore/platform/index.vue

@@ -389,7 +389,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1"
+            status: status + '' === "1" ? "0" : "1"
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 1 - 1
src/views/goodStore/platformGrossProfit/index.vue

@@ -208,7 +208,7 @@ import resToken from "@/mixins/resToken";
 import reloadData from "@/mixins/reloadData";
 export default {
   name: "othsearchSort",
-  mixins: [mixinPage, resToken,reloadData(ctx => ctx.searchList())],
+  mixins: [mixinPage, resToken,reloadData],
   components: {
     addEditRate,
   },

+ 1 - 1
src/views/interest/account/index.vue

@@ -217,7 +217,7 @@ export default {
     addEdit,
     resetPassword,
   },
-  mixins: [mixinPage, resToken,reloadData(ctx => ctx.searchList())],
+  mixins: [mixinPage, resToken,reloadData],
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
     powers() {

+ 1 - 1
src/views/interest/action/index.vue

@@ -177,7 +177,7 @@ import resToken from "@/mixins/resToken";
 import reloadData from "@/mixins/reloadData";
 export default {
   name: "Action",
-  mixins: [resToken,reloadData(ctx => ctx.initactionList())],
+  mixins: [resToken,reloadData],
   data() {
     return {
       ruleForm: {},

+ 2 - 2
src/views/interest/dataShare/index.vue

@@ -184,7 +184,7 @@ import { mapGetters } from "vuex";
 
 export default {
   name: "role",
-  mixins: [mixinPage, resToken, reloadData(ctx => ctx.onChangeCompany())],
+  mixins: [mixinPage, resToken, reloadData],
   components: {
     addEdit
   },
@@ -329,7 +329,7 @@ export default {
       this.modelId = id;
       this.isDetail = isDetail;
     },
-    onChangeCompany(){
+    onCompanyChange(){
       this.pageInfo.curr = 1;
       this.parmValue.page = 1;
       this.searchList();

+ 1 - 1
src/views/interest/group/index.vue

@@ -176,7 +176,7 @@ import { shareTypes } from "./static";
 
 export default {
   name: "group",
-  mixins: [mixinPage, resToken,reloadData(ctx => ctx.onChangeCompany())],
+  mixins: [mixinPage, resToken,reloadData],
   components: {
     addEdit
   },

+ 4 - 4
src/views/interest/handover/components/addEditForm.vue

@@ -16,7 +16,7 @@
             :disabled="
               !(
                 id === 'add' ||
-                (status === '0' && powers.some((i) => i == '005'))
+                (status + '' === '0' && powers.some((i) => i == '005'))
               )
             "
             :is-detail="id !== 'add'"
@@ -34,7 +34,7 @@
             :disabled="
               !(
                 id === 'add' ||
-                (status === '0' && powers.some((i) => i == '005'))
+                (status + '' === '0' && powers.some((i) => i == '005'))
               )
             "
             :is-detail="id !== 'add'"
@@ -57,7 +57,7 @@
             :disabled="
               !(
                 id === 'add' ||
-                (status === '0' && powers.some((i) => i == '005'))
+                (status + '' === '0' && powers.some((i) => i == '005'))
               )
             "
           >
@@ -82,7 +82,7 @@
         style="text-align: right; padding: 0 0 20px 0"
         v-if="
           id === 'add' ||
-          (status === '0' && powers.some((i) => i == '005'))
+          (status + '' === '0' && powers.some((i) => i == '005'))
         "
       >
         <el-button type="primary" :size="'mini'" @click="submitForm"

+ 3 - 3
src/views/interest/organize/index.vue

@@ -292,7 +292,7 @@ export default {
       console.log(
         `openChildren-id, parentIds, level:${id}-${parentIds}-${level}-${status}`
       );
-      await this.$confirm(`确定要${status === "0" ? "启用" : "禁用"}?`, {
+      await this.$confirm(`确定要${status + '' === "0" ? "启用" : "禁用"}?`, {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
@@ -300,7 +300,7 @@ export default {
         .then(async () => {
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1",
+            status: status + '' === "1" ? "0" : "1",
           };
           let res = await asyncRequest.status(model);
 
@@ -427,7 +427,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1",
+            status: status + '' === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 4 - 1
src/views/interest/processPermission/index.vue

@@ -83,7 +83,7 @@ import resToken from "@/mixins/resToken";
 import reloadData from "@/mixins/reloadData";
 export default {
   name: "processPermission",
-  mixins: [resToken,reloadData(ctx => ctx.initperActionList())],
+  mixins: [resToken,reloadData],
   data() {
     return {
       ruleForm: {},
@@ -132,6 +132,9 @@ export default {
   },
 
   methods: {
+    onCompanyChange(){
+       this.initperActionList();
+    },
     // 全选/全不选
     handleCheckAllChange(checkAll, index, item) {
       this.perActionList[index].checkAll = checkAll;

+ 1 - 1
src/views/interest/role/addEdit.vue

@@ -387,7 +387,7 @@ export default {
     },
   },
   watch: {
-    showModel: function (val) {
+    showModel:function (val) {
       this.showModelThis = val;
       if (val) {
         this.initForm();

+ 5 - 1
src/views/interest/role/index.vue

@@ -213,7 +213,7 @@ import reloadData from "@/mixins/reloadData";
 import { mapGetters } from "vuex";
 export default {
   name: "role",
-  mixins: [mixinPage, resToken,reloadData(ctx => ctx.searchList())],
+  mixins: [mixinPage, resToken,reloadData],
   components: {
     addEdit,
   },
@@ -378,6 +378,10 @@ export default {
         });
     },
 
+    *getFullData(){
+      console.log(11);
+    },
+
     // 刷新表格
     async searchList() {
       this.loading = true;

+ 17 - 17
src/views/orderEntry/orderConfirm/index.vue

@@ -79,7 +79,7 @@
                         <el-input
                           v-model="ruleForm.platform_code"
                           maxlength="100"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="平台订单号"
                         /> </el-form-item
                     ></el-col>
@@ -89,7 +89,7 @@
                         <el-input
                           v-model="ruleForm.po_code"
                           maxlength="100"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="其他单号"
                         />
                       </el-form-item>
@@ -220,7 +220,7 @@
                           v-model="ruleForm.platform_time"
                           style="width: 100%"
                           value-format="yyyy-MM-dd HH:mm:ss"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           :picker-options="pickerOptions"
                           @change="selectTime"
                         >
@@ -232,7 +232,7 @@
                           v-model="ruleForm.plat_code"
                           maxlength="100"
                           readonly
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           @focus="showModel = true"
                           placeholder="平台商品编号"
                       /></el-form-item>
@@ -362,7 +362,7 @@
                           v-model="ruleForm.mode"
                           style="width: 100%"
                           clearable
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="收费模式"
                         >
                           <el-option
@@ -381,7 +381,7 @@
                           v-model="ruleForm.sale_source"
                           style="width: 100%"
                           clearable
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="销售渠道"
                         >
                           <el-option
@@ -426,7 +426,7 @@
                         <el-input
                           v-model="ruleForm.contactor"
                           maxlength="100"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="收货人"
                         />
                       </el-form-item>
@@ -436,7 +436,7 @@
                         <el-input
                           v-model="ruleForm.mobile"
                           maxlength="100"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="收货电话"
                         />
                       </el-form-item>
@@ -475,7 +475,7 @@
                         <select-area
                           :value="ruleForm.addr_code"
                           :size="'mini'"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="收货省市区"
                           @selectChange="select_area_change($event)"
                         />
@@ -486,7 +486,7 @@
                         <el-input
                           v-model="ruleForm.addr"
                           maxlength="100"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           placeholder="详细地址"
                         />
                       </el-form-item>
@@ -512,7 +512,7 @@
                     <el-input
                       v-model="ruleForm.order_remark"
                       maxlength="100"
-                      :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                      :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                       placeholder="订单备注" /></el-form-item
                 ></el-col>
               </el-row>
@@ -556,7 +556,7 @@
                           :size="'mini'"
                           :controls="false"
                           :append="''"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           @reschange="number_change($event, 'num')"
                         />
                       </el-form-item>
@@ -567,7 +567,7 @@
                           :values="ruleForm.price"
                           :placeholder="'单价'"
                           :min="price_min"
-                          :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                          :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                           :max="100000000000"
                           :position="'right'"
                           :precision="2"
@@ -602,7 +602,7 @@
                       v-model="ruleForm.activity_code"
                       style="width: 100%"
                       clearable
-                      :disabled="!(status === '2' && powers.some((i) => i == '008'))"
+                      :disabled="!(status + '' === '2' && powers.some((i) => i == '008'))"
                       @change="get_new_price"
                       placeholder="活动名称"
                     >
@@ -638,7 +638,7 @@
             </div>
           </div>
 
-          <div class="tab-row" v-if="status === '2' && powers.some((i) => i == '008')">
+          <div class="tab-row" v-if="status + '' === '2' && powers.some((i) => i == '008')">
             <div class="tab-item-label">
               <label style="color: transparent">*</label>
             </div>
@@ -947,7 +947,7 @@ export default {
         this.confirmSitem = confirm ? JSON.parse(JSON.stringify(confirm)) : null;
 
         this.status = status;
-        if (!(this.status === "3" || this.status === "4" || this.status === "5")) {
+        if (!(this.status + '' === "3" || this.status + '' === "4" || this.status + '' === "5")) {
           console.log(12345);
           this.subSitem = confirm ? JSON.parse(JSON.stringify(confirm)) : null;
         } else {
@@ -1071,7 +1071,7 @@ export default {
 
         let model = {
           skuCode:
-            this.status === "3" || this.status === "4" || this.status === "5"
+            this.status + '' === "3" || this.status + '' === "4" || this.status + '' === "5"
               ? subSkuCode
               : conSkuCode,
           sale_num: num,

+ 1 - 1
src/views/orderEntry/orderEnter/index.vue

@@ -384,7 +384,7 @@ export default {
       await this.searchList();
     },
     getRouter(toRouter, queryId, status) {
-      if (status === "1") {
+      if (status + '' === "1") {
         this.$message.warning(`脚本验证中的数据能查看详情!`);
         return;
       }

+ 1 - 1
src/views/purchaseIn/purchaseDiffOrder/index.vue

@@ -387,7 +387,7 @@ export default {
     },
 
     async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
+      let str = status + '' === "1" ? "禁用" : "启用";
       await this.$confirm("确定要改为" + str + "?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",

+ 1 - 1
src/views/purchaseIn/purchaseOrder/components/order-in-table.vue

@@ -221,7 +221,7 @@ export default {
           error_remark: v1.error_remark,
           error_code: v1.error_code,
         };
-        if (this.status === "4") {
+        if (this.status + '' === "4") {
           goodModel.stock_num = v1.stock_num;
         }
 

+ 3 - 3
src/views/purchaseIn/wsmInOrder/components/wsm-in-order-return-form.vue

@@ -24,7 +24,7 @@
       <el-col :span="6">
         <el-form-item label="物流公司" prop="post_company">
           <search-express
-            :disabled="!(status === '5' && ppowers.some((i) => i == '5'))"
+            :disabled="!(status + '' === '5' && ppowers.some((i) => i == '5'))"
             :value="ruleForm.post_company"
             :placeholder="'物流公司'"
             :order_source="'0'"
@@ -39,7 +39,7 @@
         <el-form-item label="物流单号" prop="post_code">
           <el-input
             placeholder="物流单号"
-            :disabled="!(status === '5' && ppowers.some((i) => i == '5'))"
+            :disabled="!(status + '' === '5' && ppowers.some((i) => i == '5'))"
             v-model="ruleForm.post_code"
             maxlength="100"
           >
@@ -49,7 +49,7 @@
       <el-col :span="2" style="text-align: right">
         <el-button
           type="primary"
-          v-if="status === '5' && ppowers.some((i) => i == '5')"
+          v-if="status + '' === '5' && ppowers.some((i) => i == '5')"
           :size="'mini'"
           @click="submitForm"
           >保 存

+ 2 - 2
src/views/sellOut/bargainList/index.vue

@@ -373,7 +373,7 @@ export default {
     },
 
     async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
+      let str = status + '' === "1" ? "禁用" : "启用";
       await this.$confirm("确定要改为" + str + "?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -383,7 +383,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1",
+            status: status + '' === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 1 - 1
src/views/sellOut/returnOrder/components/auditForm.vue

@@ -177,7 +177,7 @@
             :size="'mini'"
             :value="ruleForm.can_sell_wsm"
             :placeholder="'可销售入库仓库'"
-            :disabled="!(status === '3' && ppowers.some((i) => i == '3'))"
+            :disabled="!(status + '' === '3' && ppowers.some((i) => i == '3'))"
             :isDetail="true"
             :isRelation="true"
             :wsmtype="'5'"

+ 1 - 1
src/views/sellOut/returnOrder/components/return-record.vue

@@ -59,7 +59,7 @@
                   fixed="right"
                   label="操作"
                   width="80"
-                  v-if="status === '1' && ppowers.some((i) => i == '1')"
+                  v-if="status + '' === '1' && ppowers.some((i) => i == '1')"
                 >
                   <template slot="header" slot-scope="scope">
                     <!-- v-if="status == '1' || status == '0'" -->

+ 1 - 1
src/views/sellOut/salesOrder/detail.vue

@@ -293,7 +293,7 @@ export default {
         type: "warning",
       })
         .then(async () => {
-          if (status === "-1") {
+          if (status + '' === "-1") {
             await this.deleteById(message);
           } else {
             await this.setStatus(status, message);

+ 1 - 1
src/views/sellOut/sellAfterApply/detail.vue

@@ -81,7 +81,7 @@
             <el-collapse-item
               title="业务审核"
               name="3"
-              v-if="status === '1' && ppowers.some((i) => i == '1')"
+              v-if="status + '' === '1' && ppowers.some((i) => i == '1')"
             >
               <exam-form
                 :statusList="statusList"

+ 2 - 2
src/views/sellOut/sellOutOrder/components/addEditFormA.vue

@@ -117,7 +117,7 @@
                 <i
                   class="el-icon-close"
                   v-if="
-                    id === 'add' || (status === '0' && powers.some((i) => i == '005'))
+                    id === 'add' || (status + '' === '0' && powers.some((i) => i == '005'))
                   "
                   @click="imgClose(index)"
                 ></i>
@@ -148,7 +148,7 @@
         <el-button
           type="primary"
           @click="submitForm"
-          v-if="id === 'add' || (status === '0' && powers.some((i) => i == '005'))"
+          v-if="id === 'add' || (status + '' === '0' && powers.some((i) => i == '005'))"
           >保 存</el-button
         >
       </el-col>

+ 1 - 1
src/views/sellOut/sellReturn/detail.vue

@@ -201,7 +201,7 @@
               v-if="
                 sitem &&
                 ppowers.some((i) => i == '3') &&
-                status === '3' &&
+                status + '' === '3' &&
                 !(
                   (sitem.order_type + '' === '1' || sitem.order_type + '' === '2') &&
                   is_stock + '' === '1'

+ 7 - 7
src/views/sellOut/stockApply/components/addEdit.vue

@@ -16,7 +16,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status+ '' === '0' && powers.some((i) => i == '005'))
                 )
               "
               v-model="ruleForm.good_name"
@@ -38,7 +38,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status + '' === '0' && powers.some((i) => i == '005'))
                 )
               "
               :max="100000000000"
@@ -68,7 +68,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status + '' === '0' && powers.some((i) => i == '005'))
                 )
               "
             >
@@ -82,7 +82,7 @@
               :class="{
                 disabled: !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status+ '' === '0' && powers.some((i) => i == '005'))
                 ),
               }"
             >
@@ -99,7 +99,7 @@
                   :underline="false"
                   v-if="
                     id === 'add' ||
-                    (status === '0' && powers.some((i) => i == '005'))
+                    (status + '' === '0' && powers.some((i) => i == '005'))
                   "
                   ><i
                     class="el-icon-circle-close"
@@ -113,7 +113,7 @@
                 <file-upload-pdf
                   v-if="
                     id === 'add' ||
-                    (status === '0' && powers.some((i) => i == '005'))
+                    (status + '' === '0' && powers.some((i) => i == '005'))
                   "
                   class="Upload"
                   :accept="'.pdf'"
@@ -138,7 +138,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status + '' === '0' && powers.some((i) => i == '005'))
                 )
               "
               v-model="ruleForm.remark"

+ 2 - 2
src/views/sellOut/stockApply/detail.vue

@@ -57,7 +57,7 @@
             <el-collapse-item
               name="3"
               title="采购反馈-设置入库的仓库"
-              v-if="status === '1' && ppowers.some((i) => i == '1')"
+              v-if="status + '' === '1' && ppowers.some((i) => i == '1')"
             >
               <purchase-back
                 :sitem="sitem"
@@ -181,7 +181,7 @@ export default {
         type: "warning",
       })
         .then(async () => {
-          if (status === "-1") {
+          if (status + '' === "-1") {
             await this.deleteById(message);
           } else {
             this.isDisabled = true;

+ 2 - 2
src/views/sellOut/zixunOrder/components/feedbackList.vue

@@ -109,8 +109,8 @@
         <el-tooltip
           v-if="
             is_project === '0' &&
-            scope.row.status === '6' &&
-            status === '4' &&
+            scope.row.status + '' === '6' &&
+            status + '' === '4' &&
             ppowers.some((i) => i == '4')
           "
           effect="dark"

+ 1 - 1
src/views/sellOut/zxDiffOrder/components/addForm.vue

@@ -65,7 +65,7 @@
         <div
           style="width: 100%; padding: 0 0 12px 0"
           class="tr"
-          v-if="status === '1' && ppowers.some((i) => i == '1')"
+          v-if="status + '' === '1' && ppowers.some((i) => i == '1')"
         >
           <el-button type="primary" :size="'mini'" @click="submitForm">保 存 </el-button>
         </div>

+ 1 - 1
src/views/serviceParam/business/index.vue

@@ -368,7 +368,7 @@ export default {
      * @param {String} tyep 0-组织 1-企业
      */
     async changeStatus(id, status, type) {
-      await this.$confirm(`确定要改为${status === "1" ? "禁用" : "启用"}?`, {
+      await this.$confirm(`确定要改为${status + '' === "1" ? "禁用" : "启用"}?`, {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",

+ 3 - 3
src/views/serviceParam/orderuse/index.vue

@@ -170,7 +170,7 @@
         </el-tooltip>
         <el-tooltip
           v-if="
-            powers.some((i) => i == '004') && scope.row.status === '1'
+            powers.some((i) => i == '004') && scope.row.status + '' === '1'
           "
           effect="dark"
           content="禁用"
@@ -183,7 +183,7 @@
         </el-tooltip>
         <el-tooltip
           v-if="
-            powers.some((i) => i == '004') && scope.row.status === '0'
+            powers.some((i) => i == '004') && scope.row.status + '' === '0'
           "
           effect="dark"
           content="启用"
@@ -348,7 +348,7 @@ export default {
     // 新建/编辑/详情
     openModal(row, type) {
       const {status}=row
-       if (type === "005" && status === "1") {
+       if (type === "005" && status + '' === "1") {
         this.$message.warning("禁用后,才可以修改!");
         return;
       }

+ 2 - 2
src/views/serviceParam/supplierAccount/index.vue

@@ -154,7 +154,7 @@
             <i class="el-icon-edit tb-icon" @click="openModal(scope.row.uid, false)"></i>
           </el-tooltip>
           <el-tooltip
-            v-if="powers.some((i) => i == '004') && scope.row.status === '1'"
+            v-if="powers.some((i) => i == '004') && scope.row.status + '' === '1'"
             effect="dark"
             content="禁用"
             placement="top"
@@ -165,7 +165,7 @@
             ></i>
           </el-tooltip>
           <el-tooltip
-            v-if="powers.some((i) => i == '004') && scope.row.status === '0'"
+            v-if="powers.some((i) => i == '004') && scope.row.status + '' === '0'"
             effect="dark"
             content="启用"
             placement="top"

+ 1 - 1
src/views/serviceParam/supplierBrand/index.vue

@@ -274,7 +274,7 @@ export default {
 
     gotoEdit(row, type) {
       const { status } = row;
-      if (type === "005" && status === "1") {
+      if (type === "005" && status + '' === "1") {
         this.$message.warning("禁用后,才可以修改!");
         return;
       }

+ 1 - 1
src/views/serviceParam/terrace/index.vue

@@ -383,7 +383,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1",
+            status: status + '' === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 1 - 1
src/views/stock/allot/components/addForm.vue

@@ -174,7 +174,7 @@
                       :key="item.result_code"
                       :label="item.result"
                       :value="item.result_code"
-                      :disabled="item.status === '0'"
+                      :disabled="item.status + '' === '0'"
                     >
                     </el-option>
                   </el-select>

+ 1 - 1
src/views/stock/allot/detail.vue

@@ -195,7 +195,7 @@ export default {
         type: "warning"
       })
         .then(async () => {
-          if (status === "-1") {
+          if (status + '' === "-1") {
             await this.deleteById(message);
           } else {
             await this.setStatus(status, message);

+ 3 - 3
src/views/stock/check/components/addEdit.vue

@@ -42,7 +42,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status + '' === '0' && powers.some((i) => i == '005'))
                 )
               "
               :is-detail="id !== 'add'"
@@ -62,7 +62,7 @@
               :disabled="
                 !(
                   id === 'add' ||
-                  (status === '0' && powers.some((i) => i == '005'))
+                  (status + '' === '0' && powers.some((i) => i == '005'))
                 )
               "
               style="width: 100%"
@@ -84,7 +84,7 @@
             :size="'mini'"
             v-if="
               id === 'add' ||
-              (status === '0' && powers.some((i) => i == '005'))
+              (status + '' === '0' && powers.some((i) => i == '005'))
             "
             >保 存
           </el-button>

+ 1 - 1
src/views/stock/check/detail.vue

@@ -10,7 +10,7 @@
           plain
           :size="'mini'"
           class="fr"
-          v-if="(status + '' === '0' || status === '1') && powers.some((i) => i == '015')"
+          v-if="(status + '' === '0' || status + '' === '1') && powers.some((i) => i == '015')"
           >作废该条信息</el-button
         >
         <el-button

+ 1 - 1
src/views/system/operationAccount/index.vue

@@ -385,7 +385,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status === "1" ? "0" : "1",
+            status: status + '' === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 0 - 1
src/views/youzan/luckyDraw/components/add.vue

@@ -307,7 +307,6 @@ export default {
             } else {
               res = await asyncRequest.update(model);
             }
-            // console.log(res);
             this.loading = false;
             const { code, data, message } = res;
             if (code === 0) {