戴艳蓉 3 years ago
parent
commit
01f0dafc7b
31 changed files with 137 additions and 2410 deletions
  1. 0 1
      src/apis/service/purchaseIn/stockApply/index.js
  2. 0 18
      src/apis/service/purchaseIn/storeManageFlow/index.js
  3. 0 21
      src/apis/service/serviceParam/purchaseInReturn/index.js
  4. 0 21
      src/apis/service/serviceParam/sellReturn/index.js
  5. 0 18
      src/apis/service/serviceParam/storeAnomaly/index.js
  6. 0 0
      src/apis/service/serviceParam/unusualReason/index.js
  7. 6 6
      src/views/process/done/index.vue
  8. 0 0
      src/views/purchaseIn/stockApply/addModel.vue
  9. 0 0
      src/views/purchaseIn/stockApply/columns.js
  10. 5 7
      src/views/purchaseIn/stockApply/components/addEdit.vue
  11. 47 15
      src/views/purchaseIn/stockApply/components/purchaseBack.vue
  12. 0 0
      src/views/purchaseIn/stockApply/components/ruleForm.js
  13. 3 1
      src/views/purchaseIn/stockApply/components/rules.js
  14. 44 35
      src/views/purchaseIn/stockApply/detail.vue
  15. 5 5
      src/views/purchaseIn/stockApply/index.vue
  16. 0 0
      src/views/purchaseIn/stockApply/备货申请管理
  17. 0 210
      src/views/serviceParam/goodsAnomaly/addEdit.vue
  18. 0 353
      src/views/serviceParam/goodsAnomaly/index.vue
  19. 0 212
      src/views/serviceParam/goodsBack/addEdit.vue
  20. 0 347
      src/views/serviceParam/goodsBack/index.vue
  21. 0 0
      src/views/serviceParam/goodsBack/售后退换货原因
  22. 0 211
      src/views/serviceParam/purchaseInReturn/addEdit.vue
  23. 0 353
      src/views/serviceParam/purchaseInReturn/index.vue
  24. 0 0
      src/views/serviceParam/purchaseInReturn/采购退货原因
  25. 0 213
      src/views/serviceParam/sellReturn/addEdit.vue
  26. 0 354
      src/views/serviceParam/sellReturn/index.vue
  27. 0 0
      src/views/serviceParam/sellReturn/销售退货异常原因
  28. 0 0
      src/views/serviceParam/storeAnomaly/采购-入库验收异常
  29. 3 3
      src/views/serviceParam/unusualReason/addEdit.vue
  30. 24 6
      src/views/serviceParam/unusualReason/index.vue
  31. 0 0
      src/views/serviceParam/unusualReason/异常原因

+ 0 - 1
src/apis/service/purchaseIn/storeManage/index.js → src/apis/service/purchaseIn/stockApply/index.js

@@ -20,6 +20,5 @@ export default {
   feeDetail: (data, params) => http(api + "feedinfo", data, "post", params),
   // 反馈状态修改
   feeChange: (data, params) => http(api + "feedchange", data, "post", params),
-
 };
    

+ 0 - 18
src/apis/service/purchaseIn/storeManageFlow/index.js

@@ -1,18 +0,0 @@
-// 物业管理员
-import http from "@/apis/axios";
-const api = "admin/";
-export default {
-  // 添加
-  add: (data, params) => http(api + "purchadd", data, "post", params),
-  // 备货申请 删除
-  delete: (data, params) => http(api + "purchdel", data, "post", params),
-  // 备货申请列表
-  list: (data, params) => http(api + "purchlist", data, "post", params),
-  // 备货详情
-  detail: (data, params) => http(api + "purchinfo", data, "post", params),
-  // 更新申请单
-  update: (data, params) => http(api + "purchedit", data, "post", params),
-  // 备库状态更新
-  status: (data, params) => http(api + "purchstatus", data, "post", params),
-};
-   

+ 0 - 21
src/apis/service/serviceParam/purchaseInReturn/index.js

@@ -1,21 +0,0 @@
-// 物业管理员
-import http from "@/apis/axios";
-const api = "admin/";
-export default {
-  // 添加
-  add: (data, params) => http(api + "add", data, "post", params),
-  // 删除
-  delete: (data, params) => http(api + "delete", data, "post", params),
-  // 商品列表查询
-  list: (data, params) => http(api + "resultlist", data, "post", params),
-  // 详情
-  detail: (data, params) => http(api + "detail", data, "post", params),
-  // 更新
-  update: (data, params) => http(api + "update", data, "post", params),
-  // 修改商品上下架状态
-  status: (data, params) => http(api + "resultstatu", data, "post", params),
-  // 供应商列表
-  // supplierlist: (data, params) => http(api + "supplierlist", data, "post", params),
-
-};
-   

+ 0 - 21
src/apis/service/serviceParam/sellReturn/index.js

@@ -1,21 +0,0 @@
-// 物业管理员
-import http from "@/apis/axios";
-const api = "admin/";
-export default {
-  // 添加
-  add: (data, params) => http(api + "add", data, "post", params),
-  // 删除
-  delete: (data, params) => http(api + "delete", data, "post", params),
-  // 商品列表查询
-  list: (data, params) => http(api + "resultlist", data, "post", params),
-  // 详情
-  detail: (data, params) => http(api + "detail", data, "post", params),
-  // 更新
-  update: (data, params) => http(api + "update", data, "post", params),
-  // 修改商品上下架状态
-  status: (data, params) => http(api + "resultstatu", data, "post", params),
-  // 供应商列表
-  // supplierlist: (data, params) => http(api + "supplierlist", data, "post", params),
-
-};
-   

+ 0 - 18
src/apis/service/serviceParam/storeAnomaly/index.js

@@ -1,18 +0,0 @@
-// 物业管理员
-import http from "@/apis/axios";
-const api = "admin/";
-export default {
-  // 新建异常原因
-  add: (data, params) => http(api + "resultcreate", data, "post", params),
-  // 删除异常原因
-  delete: (data, params) => http(api + "resultdel", data, "post", params),
-  // 获取异常原因列表
-  list: (data, params) => http(api + "resultlist", data, "post", params),
-  // 获取异常原因详情
-  detail: (data, params) => http(api + "resultselect", data, "post", params),
-  // 更新异常原因
-  update: (data, params) => http(api + "resultedit", data, "post", params),
-  // 修改异常原因状态
-  status: (data, params) => http(api + "resultstatu", data, "post", params),
-};
-   

+ 0 - 0
src/apis/service/serviceParam/goodsAnomaly/index.js → src/apis/service/serviceParam/unusualReason/index.js


+ 6 - 6
src/views/process/done/index.vue

@@ -237,7 +237,7 @@ export default {
         },
         {
           type: "BKD", //入库单
-          sellR: "/purchaseIn/storeManageFlow",
+          sellR: "/purchaseIn/stockApplyDetailFlow",
           askR: "",
           to: "id",
         },
@@ -249,12 +249,12 @@ export default {
         },
         // {
         //   type: "FKD", //反馈单流程
-        //   rname: "storeManageFlow",
+        //   rname: "stockApplyDetailFlow",
         //   to: "id",
         // },
         {
           type: "BHD", //备货申请管理
-          sellR: "/purchaseIn/storeManageFlow",
+          sellR: "/purchaseIn/stockApplyDetailFlow",
           askR: "",
           to: "code",
         },
@@ -271,12 +271,12 @@ export default {
         },
         // {
         //   type: "RKTHD",//入库单退货流程
-        //   rname: "storeManageFlow",
+        //   rname: "stockApplyDetailFlow",
         //   to: "id",
         // },
         // {
         //   type: "CGDTHD",//采购单单流程
-        //   rname: "storeManageFlow",
+        //   rname: "stockApplyDetailFlow",
         //   to: "id",
         // },
         {
@@ -287,7 +287,7 @@ export default {
         },
         // {
         //   type: "CKD",//出库单流程
-        //   rname: "storeManageFlow",
+        //   rname: "stockApplyDetailFlow",
         //   to: "id",
         // },
         {

+ 0 - 0
src/views/purchaseIn/storeManage/addModel.vue → src/views/purchaseIn/stockApply/addModel.vue


+ 0 - 0
src/views/purchaseIn/storeManage/columns.js → src/views/purchaseIn/stockApply/columns.js


+ 5 - 7
src/views/purchaseIn/storeManage/components/addEdit.vue → src/views/purchaseIn/stockApply/components/addEdit.vue

@@ -76,7 +76,6 @@
             </el-date-picker>
           </el-form-item>
         </el-col>
-        <!-- 供应商选择 -->
         <el-col :span="type === '1' ? 12 : 24">
           <el-form-item label="入库公司" prop="supplier_code">
             <search-supplier
@@ -93,7 +92,6 @@
             />
           </el-form-item>
         </el-col>
-        <!-- 仓库名称 -->
         <el-col :span="type === '1' ? 12 : 24">
           <el-form-item label="入库仓库" prop="stock_code">
             <search-stock
@@ -107,7 +105,7 @@
             />
           </el-form-item>
         </el-col>
-        <el-col :span="24" style="text-align: right">
+        <el-col :span="24" style="padding:0 0 15px 0;text-align: right">
           <el-button
             type="primary"
             @click="submitForm"
@@ -132,11 +130,11 @@
 </template>
    <script>
 import resToken from "@/mixins/resToken";
-import asyncRequest from "@/apis/service/purchaseIn/storeManage";
+import asyncRequest from "@/apis/service/purchaseIn/stockApply";
 import { isnumber } from "@/utils/validate";
 import searchStockGoodModal from "@/components/search-stock-good-modal";
 export default {
-  name: "storeManage",
+  name: "stockApply",
   props: ["id", "sitem", "newTime", "type"],
   mixins: [resToken],
   components: { searchStockGoodModal },
@@ -144,7 +142,7 @@ export default {
     powers() {
       let tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "storeManageFlow"
+          (item) => item.menu_route == "stockApplyDetail"
         ) || {};
       if (tran && tran.action && tran.action.length > 0) {
         return tran.action;
@@ -446,7 +444,7 @@ export default {
           title: message + "成功!",
           message: "",
         });
-        this.routeGoto("storeManage", {});
+        this.routeGoto("stockApply", {});
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();
       } else {

+ 47 - 15
src/views/purchaseIn/storeManage/components/purchaseBack.vue → src/views/purchaseIn/stockApply/components/purchaseBack.vue

@@ -9,7 +9,10 @@
       class="demo-ruleForm"
     >
       <el-row>
-        <el-col :span="12" v-if="status === '1' && powers.some((item) => item == '024')">
+        <el-col
+          :span="12"
+          v-if="status === '1' && powers.some((item) => item == '024')"
+        >
           <el-form-item label="采购供应商" prop="supplierNo">
             <search-supplier
               :disabled="
@@ -41,7 +44,11 @@
           </el-form-item>
         </el-col>
         <el-col
-          v-if="status === '1' && powers.some((item) => item == '024')"
+          v-if="
+            status === '1' &&
+            powers.some((item) => item == '024') &&
+            goods_class === '8'
+          "
           :span="8"
         >
           <el-form-item label="实时金价" prop="now_god_price">
@@ -55,15 +62,34 @@
             </el-input>
           </el-form-item>
         </el-col>
-        <el-col :span="status === '1' && powers.some((item) => item == '024')?8:12">
+        <el-col
+          :span="
+            status === '1' && powers.some((item) => item == '024') ? 8 : 12
+          "
+        >
           <el-form-item label="采购数量下限" prop="num">
-            <el-input
-              :disabled="
-                !(status == '1' && powers.some((item) => item == '024'))
-              "
-              placeholder="0"
-              v-model="ruleForm.num"
-            />
+              <el-input
+                  :disabled="
+                    !(status == '1' && powers.some((item) => item == '024'))
+                  "
+                  placeholder="0"
+                  v-model="ruleForm.num"
+                />
+            <!-- <ul style="">
+              <li>
+              
+              </li>
+              <li>-</li>
+              <li>
+                <el-input
+                  :disabled="
+                    !(status == '1' && powers.some((item) => item == '024'))
+                  "
+                  placeholder="0"
+                  v-model="ruleForm.num"
+                />
+              </li>
+            </ul> -->
           </el-form-item>
         </el-col>
 
@@ -186,7 +212,7 @@
         ></el-col>
         <el-col
           :span="8"
-          style="text-align: right; padding: 0 50px 20px 0"
+          style="text-align: right; padding: 0 0 20px 0"
           v-if="status === '1' && powers.some((item) => item == '024')"
         >
           <el-button type="primary" @click="submitForm" :size="'mini'"
@@ -199,17 +225,17 @@
 </template>
    <script>
 import resToken from "@/mixins/resToken";
-import asyncRequest from "@/apis/service/purchaseIn/storeManage";
+import asyncRequest from "@/apis/service/purchaseIn/stockApply";
 import rules from "./rules";
 export default {
-  name: "storeManage",
+  name: "stockApply",
   props: ["id", "sitem", "newTime"],
   mixins: [resToken],
   computed: {
     powers() {
       let tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "storeManageFlow"
+          (item) => item.menu_route == "stockApplyDetail"
         ) || {};
       if (tran && tran.action && tran.action.length > 0) {
         return tran.action;
@@ -225,9 +251,10 @@ export default {
           return time.getTime() < Date.now();
         },
       },
-
+      goods_class: "",
       lasttime: "",
       supplierName: "",
+      goods_class: "",
       status: "",
       loading: false,
       ruleForm: {
@@ -283,6 +310,11 @@ export default {
         if (this.$refs.ruleForm) {
           this.$refs.ruleForm.resetFields();
           this.$refs.ruleForm.clearValidate();
+          this.goods_class = "";
+          const { can } = this.sitem;
+          if (can && can.length > 0) {
+            this.goods_class = can[0].id;
+          }
           if (this.status !== "1") {
             this.ruleForm.wsm_code = this.sitem.wsm_code;
 

+ 0 - 0
src/views/purchaseIn/storeManage/components/ruleForm.js → src/views/purchaseIn/stockApply/components/ruleForm.js


+ 3 - 1
src/views/purchaseIn/storeManage/components/rules.js → src/views/purchaseIn/stockApply/components/rules.js

@@ -7,7 +7,9 @@ const validatePrice = (rule, value, callback) => {
     if (value === "") {
         callback(new Error("不能为空"));
     } else {
-         if (isnumber2(value)) {
+        if (isnumber2(value)) {
+            callback();
+        } else if (isnumber(value)) {
             callback();
         } else {
             callback(new Error("仅支持整数或两位小数!"))

+ 44 - 35
src/views/purchaseIn/storeManage/detail.vue → src/views/purchaseIn/stockApply/detail.vue

@@ -3,25 +3,13 @@
     <div
       v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
     >
-      {{ status }}
-      <status-bar
-        v-if="newTime !== '' && status !== '4'"
-        :newTime="newTime"
-        :options="statusOptions"
-        :status="status"
-      />
+      <!-- <p>{{ status }}---{{ powers }}</p> -->
+
       <div class="tr" style="padding: 10px 0; height: 50px">
         <span class="fl" style="padding: 3px 0 0 3px">备货详情</span>
+
         <el-button
-          v-if="status === '0' && powers.some((item) => item == '012')"
-          type="primary"
-          plain
-          :size="'mini'"
-          @click="statusConfirm('1', '发起备货申请')"
-          >发起备货申请
-        </el-button>
-        <el-button
-          @click="statusConfirm('0', '取消备货申请')"
+          @click="statusConfirm('0', '取消审核流程')"
           plain
           :size="'mini'"
           v-if="status === '1' && powers.some((item) => item == '014')"
@@ -36,20 +24,38 @@
           >作废该条信息</el-button
         >
       </div>
-
-      <add-edit
-        :sitem="sitem"
-        :id="queryId"
+      <status-bar
+        v-if="newTime !== ''"
         :newTime="newTime"
-        :type="'1'"
-        @refresh="initData"
-        v-if="newTime != ''"
+        :options="statusOptions"
+        :status="status"
       />
-      <el-collapse
-        v-model="activeNames"
-        @change="handleChange"
-        v-if="status != '0'"
-      >
+      <el-collapse v-model="activeNames" @change="handleChange">
+        <el-collapse-item name="1" title="备货详情">
+          <add-edit
+            :sitem="sitem"
+            :id="queryId"
+            :newTime="newTime"
+            :type="'1'"
+            @refresh="initData"
+            v-if="newTime != ''"
+          />
+        </el-collapse-item>
+        <el-collapse-item
+          name="2"
+          title="发起审核流程"
+          v-if="status === '0' && powers.some((item) => item == '012')"
+        >
+          <div style="padding: 0 0 20px 0" class="tr">
+            <el-button
+              type="primary"
+              plain
+              :size="'mini'"
+              @click="statusConfirm('1', '发起审核流程')"
+              >发起审核流程
+            </el-button>
+          </div>
+        </el-collapse-item>
         <el-collapse-item name="3" title="采购反馈" v-if="status !== '0'">
           <purchase-back
             :sitem="sitem"
@@ -59,6 +65,7 @@
             @refresh="initData"
           />
         </el-collapse-item>
+
         <el-collapse-item
           name="4"
           title="反馈认同"
@@ -110,23 +117,25 @@
 <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
-import asyncRequest from "@/apis/service/purchaseIn/storeManage";
+import asyncRequest from "@/apis/service/purchaseIn/stockApply";
 import addEdit from "./components/addEdit";
 import { mapGetters } from "vuex";
 import PurchaseBack from "./components/purchaseBack.vue";
+import AddEdit from "../../interest/account/addEdit.vue";
 export default {
-  name: "storeManageFlow",
+  name: "stockApplyDetail",
   mixins: [mixinPage, resToken],
   components: {
     addEdit,
     PurchaseBack,
+    AddEdit,
   },
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
     powers() {
       let tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "storeManageFlow"
+          (item) => item.menu_route == "stockApplyDetail"
         ) || {};
       if (tran && tran.action && tran.action.length > 0) {
         return tran.action;
@@ -147,9 +156,9 @@ export default {
       sitem: null,
       status: "",
       statusOptions: [
-        { value: "0", label: "取消" },
-        { value: "1", label: "发起" },
-        { value: "2", label: "采购意见反馈" },
+        { value: "0", label: "待发起流程" },
+        { value: "1", label: "采购反馈" },
+        // { value: "2", label: "采购意见反馈" },
         { value: "3", label: "采购单生成" },
       ],
     };
@@ -255,7 +264,7 @@ export default {
           message: "",
         });
 
-        this.routeGoto("storeManage", {});
+        this.routeGoto("stockApply", {});
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();
       } else {

+ 5 - 5
src/views/purchaseIn/storeManage/index.vue → src/views/purchaseIn/stockApply/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="storeManage pagePadding">
+  <div class="stockApply pagePadding">
     <div
       v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
     >
@@ -166,7 +166,7 @@
           >
             <i
               class="el-icon-view tb-icon"
-              @click="routeGoto('storeManageFlow', { id: scope.row.id })"
+              @click="routeGoto('stockApplyFlow', { id: scope.row.id })"
             ></i>
           </el-tooltip>
         </template>
@@ -187,12 +187,12 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
-import asyncRequest from "@/apis/service/purchaseIn/storeManage";
+import asyncRequest from "@/apis/service/purchaseIn/stockApply";
 import addModel from "./addModel.vue";
 import { mapGetters } from "vuex";
 import columns from "./columns";
 export default {
-  name: "storeManage",
+  name: "stockApply",
   mixins: [mixinPage, resToken],
   components: {
     addModel,
@@ -202,7 +202,7 @@ export default {
     powers() {
       let tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "storeManage"
+          (item) => item.menu_route == "stockApply"
         ) || {};
       if (tran && tran.action && tran.action.length > 0) {
         return tran.action;

+ 0 - 0
src/views/purchaseIn/storeManage/备货申请管理 → src/views/purchaseIn/stockApply/备货申请管理


+ 0 - 210
src/views/serviceParam/goodsAnomaly/addEdit.vue

@@ -1,210 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="15vh"
-    width="700px"
-    @close="showModelThis = false"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin:-20px 0 0 0;">
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="140px"
-            class="demo-ruleForm"
-          >
-            <el-form-item
-              label="退货验收异常原因"
-              prop="result"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                v-model="ruleForm.result"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item
-              label="异常备注"
-              prop="result_desc"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                :autosize="{ minRows: 4, maxRows: 10 }"
-                type="textarea"
-                v-model="ruleForm.result_desc"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-          </el-form>
-        </el-col>
-        <el-col :span="24" style="text-align: right">
-          <el-button type="primary" @click="submitForm" v-if="!isDetail"
-            >保 存
-          </el-button>
-          <el-button @click="showModelThis = false">{{
-            isDetail ? "关 闭" : "取 消"
-          }}</el-button>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/serviceParam/goodsAnomaly";
-import resToken from "@/mixins/resToken";
-export default {
-  name: "goodsAnomaly",
-  props: ["showModel", "id", "isDetail", "sitem"],
-  mixins: [resToken],
-  data() {
-    return {
-      loading: false,
-      title: "",
-      showModelThis: this.showModel,
-      ruleForm: {
-        result: "", //入库验收异常原因
-        result_desc: "", //入库异常备注
-      },
-      rulesThis: this.rules,
-      rules: {
-        result: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "退货验收异常原因不能为空",
-          },
-        ],
-
-        result_desc: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "备注不能为空",
-          },
-        ],
-      },
-    };
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-  methods: {
-    
-    async initForm() {
-      this.loading = true;
-      if (this.id === "add") {
-        this.title = "添加退货验收异常原因";
-        this.rulesThis = this.rules;
-        await this.resetForm();
-      } else {
-        if (this.isDetail) {
-          this.title = "退货验收异常原因详情";
-          this.rulesThis = {};
-        } else {
-          this.title = "修改退货验收异常原因";
-          this.rulesThis = this.rules;
-        }
-        await this.resetForm();
-        await this.initData();
-      }
-      this.loading = false;
-    },
-    // 获取详情列表
-    async initData() {
-      const res = await asyncRequest.detail({ id: this.id });
-      if (res && res.code === 0 && res.data) {
-        this.ruleForm = res.data;
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.$message.warning(res.message);
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            result: "", //入库验收异常原因
-            result_desc: "", //入库异常备注
-          };
-        }
-      });
-    },
-
-    // 提交功能
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          const { result, result_desc } = JSON.parse(
-            JSON.stringify(this.ruleForm)
-          );
-          const model = {
-            result: result || "", //入库验收异常原因
-            result_desc: result_desc || "", //入库异常备注
-            type:"3",
-            id: this.id,
-          };
-          let res = {};
-          if (this.id === "add") {
-            delete model["id"];
-            res = await asyncRequest.add(model);
-          } else {
-            delete model["type"];
-            res = await asyncRequest.update(model);
-          }
-          this.loading = false;
-          if (res && res.code === 0) {
-            const title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.storeAnomaly {
-}
-</style>
-   

+ 0 - 353
src/views/serviceParam/goodsAnomaly/index.vue

@@ -1,353 +0,0 @@
-<template>
-  <div class="storeAnomaly pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <ex-table
-        v-loading="false"
-        :table="table"
-        :data="tableData"
-        :columns="columns"
-        :page="pageInfo"
-        :size="size"
-        @page-curr-change="handlePageChange"
-        @page-size-change="handleSizeChange"
-        @screen-reset="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-        @screen-submit="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-      >
-        <template #table-header="{}">
-          <div style="width: 100%">
-            <el-row style="padding: 0 0 0 80px">
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="primary"
-                  style="float: right; margin-left: 5px"
-                  @click="searchList"
-                >
-                  刷新
-                </el-button>
-              </el-col>
-              <el-col :span="4" style="width: 66px; float: right">
-                <el-button
-                  type="warning"
-                  class="fr"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
-                  重置
-                </el-button>
-              </el-col>
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="success"
-                  style="float: right; margin-left: 5px"
-                  @click="openModal('add', false)"
-                >
-                  新建
-                </el-button>
-              </el-col>
-            </el-row>
-          </div>
-        </template>
-        <template #status="{ scope }">
-          <el-tag
-            :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
-            v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
-            "
-          ></el-tag>
-        </template>
-        <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '006')"
-            effect="dark"
-            content="删除"
-            placement="top"
-          >
-            <i
-              class="el-icon-delete tb-icon"
-              @click="deleteItem(scope.row.id)"
-            ></i>
-          </el-tooltip>
-        </template>
-      </ex-table>
-      <add-edit
-        :id="modelId"
-        :sitem="sitem"
-        :show-model="showModel"
-        :is-detail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      />
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import resToken from "@/mixins/resToken";
-import statusList from "@/assets/js/statusList";
-import asyncRequest from "@/apis/service/serviceParam/goodsAnomaly";
-import addEdit from "./addEdit";
-import { mapGetters } from "vuex";
-
-export default {
-  name: "goodsAnomaly",
-  mixins: [mixinPage, resToken],
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "goodsAnomaly"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  data() {
-    return {
-      // 状态
-      statusOptions: [
-        { id: "0", label: "禁用" },
-        { id: "1", label: "启用" },
-      ],
-      statusList: statusList,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      parmValue: {
-        status: "", //
-        type: "3",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      },
-      tableData: [],
-      passwordModel: false,
-      passwordModelId: 0,
-      isPasswordDetail: false,
-      // 表格 - 数据
-      tableData: [],
-      // 表格 - 参数
-      table: {
-        stripe: true,
-        border: true,
-        _defaultHeader_: ["setcol"],
-      },
-      // 表格 - 分页
-      pageInfo: {
-        size: 15,
-        curr: 1,
-        total: 0,
-      },
-      // 表格 - 列参数
-      columns: [
-        {
-          prop: "result_code",
-          label: "原因编号",
-          width: "80px",
-        },
-        {
-          prop: "result",
-          label: "退货验收异常原因",
-        },
-        {
-          prop: "result_desc",
-          label: "异常描述",
-        },
-        {
-          prop: "status",
-          label: "状态",
-          _slot_: "status",
-          width: "80px",
-        },
-        {
-          prop: "addtime",
-          label: "创建时间",
-          sortable: true,
-          width: "140px",
-        },
-        {
-          prop: "",
-          label: "操作",
-          fixed: "right",
-          _noset_: true,
-          _slot_: "operation",
-          width: "150px",
-        },
-      ],
-    };
-  },
-  mounted() {
-    this.searchList();
-  },
-  methods: {
-    async deleteItem(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          const model = {
-            id: id,
-          };
-          const res = await asyncRequest.delete(model);
-          if (res && res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    restSearch() {
-      // 表格 - 分页
-      this.pageInfo = {
-        size: 15,
-        curr: 1,
-        total: 0,
-      };
-      this.parmValue = {
-        status: "", //
-        type: "3",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, sitem) {
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.sitem = sitem;
-    },
-    async searchList() {
-      this.loading = true;
-      const res = await asyncRequest.list(this.parmValue);
-      if (res && res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.pageInfo.total = Number(res.data.count);
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.tableData = [];
-        this.pageInfo.total = 0;
-      }
-      this.loading = false;
-    },
-
-    async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
-      await this.$confirm("确定要改为" + str + "?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          this.loading = true;
-          const model = {
-            id: id,
-            status: status === "1" ? "0" : "1",
-          };
-          const res = await asyncRequest.status(model);
-          if (res && res.code === 0) {
-            this.loading = false;
-            this.$notify.success({
-              title: "状态修改成功!",
-              message: "",
-            });
-            await this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-  },
-};
-</script>
-  <style lang="scss" scoped>
-</style>
-   

+ 0 - 212
src/views/serviceParam/goodsBack/addEdit.vue

@@ -1,212 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="15vh"
-    width="700px"
-    @close="showModelThis = false"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin: -20px 0 0 0">
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="110px"
-            class="demo-ruleForm"
-          >
-            <el-form-item
-              label="异常原因"
-              prop="result"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                v-model="ruleForm.result"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item
-              label="异常备注"
-              prop="result_desc"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                :autosize="{ minRows: 4, maxRows: 10 }"
-                type="textarea"
-                v-model="ruleForm.result_desc"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-          </el-form>
-        </el-col>
-        <el-col :span="24" style="text-align: right">
-          <el-button type="primary" @click="submitForm" v-if="!isDetail"
-            >保 存
-          </el-button>
-          <el-button @click="showModelThis = false">{{
-            isDetail ? "关 闭" : "取 消"
-          }}</el-button>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/serviceParam/goodsBack";
-import resToken from "@/mixins/resToken";
-export default {
-  name: "goodsBack",
-  props: ["showModel", "id", "isDetail", "sitem"],
-  mixins: [resToken],
-  data() {
-    return {
-      loading: false,
-      title: "添加账号",
-      showModelThis: this.showModel,
-      ruleForm: {
-        result: "", //入库验收异常原因
-        result_desc: "", //入库异常备注
-      },
-      rulesThis: this.rules,
-      rules: {
-        result: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "退换货原因不能为空",
-          },
-        ],
-
-        result_desc: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "备注不能为空",
-          },
-        ],
-      },
-    };
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-  methods: {
-    
-    async initForm() {
-      this.loading = true;
-      // await this.getRole();
-      if (this.id === "add") {
-        this.title = "添加退换货原因";
-        this.rulesThis = this.rules;
-        await this.resetForm();
-      } else {
-        if (this.isDetail) {
-          this.title = "退换货原因详情";
-          this.rulesThis = {};
-        } else {
-          this.title = "修改退换货原因";
-          this.rulesThis = this.rules;
-        }
-        await this.resetForm();
-        await this.initData();
-      }
-      this.loading = false;
-    },
-    // 获取详情列表
-    async initData() {
-      const res = await asyncRequest.detail({ id: this.id });
-      if (res && res.code === 0 && res.data) {
-        this.ruleForm = res.data;
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.$message.warning(res.message);
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            result: "", //入库验收异常原因
-            result_desc: "", //入库异常备注
-          };
-        }
-      });
-    },
-
-    // 提交功能
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          const { result, result_desc } = JSON.parse(
-            JSON.stringify(this.ruleForm)
-          );
-          const model = {
-            result: result || "", //入库验收异常原因
-            result_desc: result_desc || "", //入库异常备注
-            type: "2",
-            id: this.id,
-          };
-          let res = {};
-          if (this.id === "add") {
-            delete model["id"];
-
-            res = await asyncRequest.add(model);
-          } else {
-            delete model["type"];
-            res = await asyncRequest.update(model);
-          }
-          this.loading = false;
-          if (res && res.code === 0) {
-            const title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.storeAnomaly {
-}
-</style>
-   

+ 0 - 347
src/views/serviceParam/goodsBack/index.vue

@@ -1,347 +0,0 @@
-<template>
-  <div class="storeAnomaly pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <ex-table
-        v-loading="false"
-        :table="table"
-        :data="tableData"
-        :columns="columns"
-        :page="pageInfo"
-        :size="size"
-        @page-curr-change="handlePageChange"
-        @page-size-change="handleSizeChange"
-        @screen-reset="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-        @screen-submit="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-      >
-        <template #table-header="{}">
-          <div style="width: 100%">
-            <el-row style="padding: 0 0 0 80px">
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="primary"
-                  style="float: right; margin-left: 5px"
-                  @click="searchList"
-                >
-                  刷新
-                </el-button>
-              </el-col>
-              <el-col :span="4" style="width: 66px; float: right">
-                <el-button
-                  type="warning"
-                  class="fr"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
-                  重置
-                </el-button>
-              </el-col>
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="success"
-                  style="float: right; margin-left: 5px"
-                  @click="openModal('add', false)"
-                >
-                  新建
-                </el-button>
-              </el-col>
-            </el-row>
-          </div>
-        </template>
-        <template #status="{ scope }">
-          <el-tag
-            :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
-            v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
-            "
-          ></el-tag>
-        </template>
-        <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '006')"
-            effect="dark"
-            content="删除"
-            placement="top"
-          >
-            <i
-              class="el-icon-delete tb-icon"
-              @click="deleteItem(scope.row.id)"
-            ></i>
-          </el-tooltip>
-        </template>
-      </ex-table>
-      <add-edit
-        :id="modelId"
-        :sitem="sitem"
-        :show-model="showModel"
-        :is-detail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      />
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import resToken from "@/mixins/resToken";
-import statusList from "@/assets/js/statusList";
-import asyncRequest from "@/apis/service/serviceParam/goodsBack";
-import addEdit from "./addEdit";
-import { mapGetters } from "vuex";
-
-export default {
-  name: "goodsBack",
-  mixins: [mixinPage, resToken],
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "goodsBack"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  data() {
-    return {
-      // 状态
-      statusOptions: [
-        { id: "0", label: "禁用" },
-        { id: "1", label: "启用" },
-      ],
-      statusList: statusList,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      parmValue: {
-        status: "", //
-        type: "2",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      },
-      tableData: [],
-      passwordModel: false,
-      passwordModelId: 0,
-      isPasswordDetail: false,
-      // 表格 - 数据
-      tableData: [],
-      // 表格 - 参数
-      table: {
-        stripe: true,
-        border: true,
-        _defaultHeader_: ["setcol"],
-      },
-      // 表格 - 分页
-      pageInfo: {
-        size: 15,
-        curr: 1,
-        total: 0,
-      },
-      // 表格 - 列参数
-      columns: [
-        {
-          prop: "result_code",
-          label: "原因编号",
-          width: "80px",
-        },
-        {
-          prop: "result",
-          label: "退换货原因",
-        },
-        {
-          prop: "result_desc",
-          label: "描述",
-        },
-        {
-          prop: "status",
-          label: "状态",
-          _slot_: "status",
-          width: "80px",
-        },
-        {
-          prop: "addtime",
-          label: "创建时间",
-          sortable: true,
-          width: "140px",
-        },
-        {
-          prop: "",
-          label: "操作",
-          fixed: "right",
-          _noset_: true,
-          _slot_: "operation",
-          width: "150px",
-        },
-      ],
-    };
-  },
-  mounted() {
-    this.searchList();
-  },
-  methods: {
-    async deleteItem(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          const model = {
-            id: id,
-          };
-          const res = await asyncRequest.delete(model);
-          if (res && res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    restSearch() {
-      this.parmValue = {
-        status: "", //
-        type: "2",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, sitem) {
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.sitem = sitem;
-    },
-    async searchList() {
-      this.loading = true;
-      const res = await asyncRequest.list(this.parmValue);
-      if (res && res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.pageInfo.total = Number(res.data.count);
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.tableData = [];
-        this.pageInfo.total = 0;
-      }
-      this.loading = false;
-    },
-
-    async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
-      await this.$confirm("确定要改为" + str + "?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          this.loading = true;
-          const model = {
-            id: id,
-            status: status === "1" ? "0" : "1",
-          };
-          const res = await asyncRequest.status(model);
-          if (res && res.code === 0) {
-            this.loading = false;
-            this.$notify.success({
-              title: "状态修改成功!",
-              message: "",
-            });
-            await this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-  },
-};
-</script>
-  <style lang="scss" scoped>
-</style>
-   

+ 0 - 0
src/views/serviceParam/goodsBack/售后退换货原因


+ 0 - 211
src/views/serviceParam/purchaseInReturn/addEdit.vue

@@ -1,211 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="15vh"
-    width="700px"
-    @close="showModelThis = false"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin: -20px 0 0 0">
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="140px"
-            class="demo-ruleForm"
-          >
-            <el-form-item
-              label="采购退货原因"
-              prop="result"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                v-model="ruleForm.result"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item
-              label="备注"
-              prop="result_desc"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                :autosize="{ minRows: 4, maxRows: 10 }"
-                type="textarea"
-                v-model="ruleForm.result_desc"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-          </el-form>
-        </el-col>
-        <el-col :span="24" style="text-align: right">
-          <el-button type="primary" @click="submitForm" v-if="!isDetail"
-            >保 存
-          </el-button>
-          <el-button @click="showModelThis = false">{{
-            isDetail ? "关 闭" : "取 消"
-          }}</el-button>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/serviceParam/goodsAnomaly";
-import resToken from "@/mixins/resToken";
-export default {
-  name: "purchaseInReturn",
-  props: ["showModel", "id", "isDetail", "sitem"],
-  mixins: [resToken],
-  data() {
-    return {
-      loading: false,
-      title: "",
-      showModelThis: this.showModel,
-      ruleForm: {
-        result: "", //入库验收异常原因
-        result_desc: "", //入库异常备注
-      },
-      rulesThis: this.rules,
-      rules: {
-        result: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "退货验收异常原因不能为空",
-          },
-        ],
-
-        result_desc: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "备注不能为空",
-          },
-        ],
-      },
-    };
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-  methods: {
-    
-    async initForm() {
-      this.loading = true;
-      if (this.id === "add") {
-        this.title = "添加采购退货原因";
-        this.rulesThis = this.rules;
-        await this.resetForm();
-      } else {
-        if (this.isDetail) {
-          this.title = "采购退货原因详情";
-          this.rulesThis = {};
-        } else {
-          this.title = "修改采购退货原因";
-          this.rulesThis = this.rules;
-        }
-        await this.resetForm();
-        await this.initData();
-      }
-      this.loading = false;
-    },
-    // 获取详情列表
-    async initData() {
-      const res = await asyncRequest.detail({ id: this.id });
-      if (res && res.code === 0 && res.data) {
-        this.ruleForm = res.data;
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.$message.warning(res.message);
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            result: "", //入库验收异常原因
-            result_desc: "", //入库异常备注
-          };
-        }
-      });
-    },
-
-    // 提交功能
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        console.log(valid);
-        if (valid) {
-          this.loading = true;
-          const { result, result_desc } = JSON.parse(
-            JSON.stringify(this.ruleForm)
-          );
-          const model = {
-            result: result || "", //入库验收异常原因
-            result_desc: result_desc || "", //入库异常备注
-            type: "4",
-            id: this.id,
-          };
-          let res = {};
-          if (this.id === "add") {
-            delete model["id"];
-            res = await asyncRequest.add(model);
-          } else {
-            delete model["type"];
-            res = await asyncRequest.update(model);
-          }
-          this.loading = false;
-          if (res && res.code === 0) {
-            const title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.storeAnomaly {
-}
-</style>
-   

+ 0 - 353
src/views/serviceParam/purchaseInReturn/index.vue

@@ -1,353 +0,0 @@
-<template>
-  <div class="storeAnomaly pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <ex-table
-        v-loading="false"
-        :table="table"
-        :data="tableData"
-        :columns="columns"
-        :page="pageInfo"
-        :size="size"
-        @page-curr-change="handlePageChange"
-        @page-size-change="handleSizeChange"
-        @screen-reset="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-        @screen-submit="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-      >
-        <template #table-header="{}">
-          <div style="width: 100%">
-            <el-row style="padding: 0 0 0 80px">
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="primary"
-                  style="float: right; margin-left: 5px"
-                  @click="searchList"
-                >
-                  刷新
-                </el-button>
-              </el-col>
-              <el-col :span="4" style="width: 66px; float: right">
-                <el-button
-                  type="warning"
-                  class="fr"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
-                  重置
-                </el-button>
-              </el-col>
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="success"
-                  style="float: right; margin-left: 5px"
-                  @click="openModal('add', false)"
-                >
-                  新建
-                </el-button>
-              </el-col>
-            </el-row>
-          </div>
-        </template>
-        <template #status="{ scope }">
-          <el-tag
-            :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
-            v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
-            "
-          ></el-tag>
-        </template>
-        <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '006')"
-            effect="dark"
-            content="删除"
-            placement="top"
-          >
-            <i
-              class="el-icon-delete tb-icon"
-              @click="deleteItem(scope.row.id)"
-            ></i>
-          </el-tooltip>
-        </template>
-      </ex-table>
-      <add-edit
-        :id="modelId"
-        :sitem="sitem"
-        :show-model="showModel"
-        :is-detail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      />
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import resToken from "@/mixins/resToken";
-import statusList from "@/assets/js/statusList";
-import asyncRequest from "@/apis/service/serviceParam/purchaseInReturn";
-import addEdit from "./addEdit";
-import { mapGetters } from "vuex";
-
-export default {
-  name: "purchaseInReturn",
-  mixins: [mixinPage, resToken],
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "purchaseInReturn"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  data() {
-    return {
-      // 状态
-      statusOptions: [
-        { id: "0", label: "禁用" },
-        { id: "1", label: "启用" },
-      ],
-      statusList: statusList,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      parmValue: {
-        status: "", //
-        type: "4",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      },
-      tableData: [],
-      passwordModel: false,
-      passwordModelId: 0,
-      isPasswordDetail: false,
-      // 表格 - 数据
-      tableData: [],
-      // 表格 - 参数
-      table: {
-        stripe: true,
-        border: true,
-        _defaultHeader_: ["setcol"],
-      },
-      // 表格 - 分页
-      pageInfo: {
-        size: 15,
-        curr: 1,
-        total: 0,
-      },
-      // 表格 - 列参数
-      columns: [
-        {
-          prop: "result_code",
-          label: "原因编号",
-          width: "80px",
-        },
-        {
-          prop: "result",
-          label: "采购退货原因",
-        },
-        {
-          prop: "result_desc",
-          label: "退货描述",
-        },
-        {
-          prop: "status",
-          label: "状态",
-          _slot_: "status",
-          width: "80px",
-        },
-        {
-          prop: "addtime",
-          label: "创建时间",
-          sortable: true,
-          width: "140px",
-        },
-        {
-          prop: "",
-          label: "操作",
-          fixed: "right",
-          _noset_: true,
-          _slot_: "operation",
-          width: "110px",
-        },
-      ],
-    };
-  },
-  mounted() {
-    this.searchList();
-  },
-  methods: {
-    async deleteItem(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          const model = {
-            id: id,
-          };
-          const res = await asyncRequest.delete(model);
-          if (res && res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    restSearch() {
-      // 表格 - 分页
-      this.pageInfo = {
-        size: 15,
-        curr: 1,
-        total: 0,
-      };
-      this.parmValue = {
-        status: "", //
-        type: "3",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, sitem) {
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.sitem = sitem;
-    },
-    async searchList() {
-      this.loading = true;
-      const res = await asyncRequest.list(this.parmValue);
-      if (res && res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.pageInfo.total = Number(res.data.count);
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.tableData = [];
-        this.pageInfo.total = 0;
-      }
-      this.loading = false;
-    },
-
-    async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
-      await this.$confirm("确定要改为" + str + "?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          this.loading = true;
-          const model = {
-            id: id,
-            status: status === "1" ? "0" : "1",
-          };
-          const res = await asyncRequest.status(model);
-          if (res && res.code === 0) {
-            this.loading = false;
-            this.$notify.success({
-              title: "状态修改成功!",
-              message: "",
-            });
-            await this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-  },
-};
-</script>
-  <style lang="scss" scoped>
-</style>
-   

+ 0 - 0
src/views/serviceParam/purchaseInReturn/采购退货原因


+ 0 - 213
src/views/serviceParam/sellReturn/addEdit.vue

@@ -1,213 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="15vh"
-    width="700px"
-    @close="showModelThis = false"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin: -20px 0 0 0">
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="140px"
-            class="demo-ruleForm"
-          >
-            <el-form-item
-              label="销售退换货原因"
-              prop="result"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                v-model="ruleForm.result"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item
-              label="备注"
-              prop="result_desc"
-              v-if="id === 'add' || (isDetail ? true : true)"
-            >
-              <el-input
-                :autosize="{ minRows: 4, maxRows: 10 }"
-                type="textarea"
-                v-model="ruleForm.result_desc"
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-          </el-form>
-        </el-col>
-        <el-col :span="24" style="text-align: right">
-          <el-button type="primary" @click="submitForm" v-if="!isDetail"
-            >保 存
-          </el-button>
-          <el-button @click="showModelThis = false">{{
-            isDetail ? "关 闭" : "取 消"
-          }}</el-button>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/serviceParam/goodsAnomaly";
-import resToken from "@/mixins/resToken";
-export default {
-  name: "sellReturn",
-  props: ["showModel", "id", "isDetail", "sitem"],
-  mixins: [resToken],
-  data() {
-    return {
-      loading: false,
-      title: "",
-      showModelThis: this.showModel,
-      ruleForm: {
-        result: "", //入库验收异常原因
-        result_desc: "", //入库异常备注
-      },
-      rulesThis: this.rules,
-      rules: {
-        result: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "退货验收异常原因不能为空",
-          },
-        ],
-
-        result_desc: [
-          {
-            required: true,
-            trigger: "blur",
-            message: "备注不能为空",
-          },
-        ],
-      },
-    };
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-  methods: {
-    
-    async initForm() {
-      this.loading = true;
-      if (this.id === "add") {
-        this.title = "添加销售退换货原因";
-        this.rulesThis = this.rules;
-        await this.resetForm();
-      } else {
-        if (this.isDetail) {
-          this.title = "销售退换货原因详情";
-          this.rulesThis = {};
-        } else {
-          this.title = "修改销售退换货原因";
-          this.rulesThis = this.rules;
-        }
-        await this.resetForm();
-        await this.initData();
-      }
-      this.loading = false;
-    },
-    // 获取详情列表
-    async initData() {
-      const res = await asyncRequest.detail({ id: this.id });
-      if (res && res.code === 0 && res.data) {
-        this.ruleForm = res.data;
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.$message.warning(res.message);
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            result: "", //入库验收异常原因
-            result_desc: "", //入库异常备注
-          };
-        }
-      });
-    },
-
-    // 提交功能
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        console.log(valid);
-        if (valid) {
-          this.loading = true;
-          const { result, result_desc } = JSON.parse(
-            JSON.stringify(this.ruleForm)
-          );
-          const model = {
-            result: result || "", //入库验收异常原因
-            result_desc: result_desc || "", //入库异常备注
-            type: "5",
-            id: this.id,
-          };
-          let res = {};
-          if (this.id === "add") {
-            delete model["id"];
-            res = await asyncRequest.add(model);
-          } else {
-            delete model["type"];
-            console.log("update");
-            res = await asyncRequest.update(model);
-            console.log(res);
-          }
-          this.loading = false;
-          if (res && res.code === 0) {
-            const title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.storeAnomaly {
-}
-</style>
-   

+ 0 - 354
src/views/serviceParam/sellReturn/index.vue

@@ -1,354 +0,0 @@
-<template>
-  <div class="sellReturn pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <ex-table
-        v-loading="false"
-        :table="table"
-        :data="tableData"
-        :columns="columns"
-        :page="pageInfo"
-        :size="size"
-        @page-curr-change="handlePageChange"
-        @page-size-change="handleSizeChange"
-        @screen-reset="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-        @screen-submit="
-          pageInfo.curr = 1;
-          parmValue.page = 1;
-          searchList();
-        "
-      >
-        <template #table-header="{}">
-          <div style="width: 100%">
-            <el-row style="padding: 0 0 0 80px">
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="primary"
-                  style="float: right; margin-left: 5px"
-                  @click="searchList"
-                >
-                  刷新
-                </el-button>
-              </el-col>
-              <el-col :span="4" style="width: 66px; float: right">
-                <el-button
-                  type="warning"
-                  class="fr"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
-                  重置
-                </el-button>
-              </el-col>
-              <el-col :span="3" style="width: 66px; float: right">
-                <el-button
-                  :size="searchSize"
-                  type="success"
-                  style="float: right; margin-left: 5px"
-                  @click="openModal('add', false)"
-                >
-                  新建
-                </el-button>
-              </el-col>
-            </el-row>
-          </div>
-        </template>
-        <template #status="{ scope }">
-          <el-tag
-            :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
-            v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
-            "
-          ></el-tag>
-        </template>
-        <template #operation="{ scope }">
-          <el-tooltip
-            v-if="powers.some((item) => item == '007')"
-            effect="dark"
-            content="详情"
-            placement="top"
-          >
-            <i
-              class="el-icon-view tb-icon"
-              @click="openModal(scope.row.id, true, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '005')"
-            effect="dark"
-            content="修改"
-            placement="top"
-          >
-            <i
-              class="el-icon-edit tb-icon"
-              @click="openModal(scope.row.id, false, scope.row)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '1'
-            "
-            effect="dark"
-            content="禁用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-pause tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="
-              powers.some((item) => item == '004') && scope.row.status === '0'
-            "
-            effect="dark"
-            content="启用"
-            placement="top"
-          >
-            <i
-              class="el-icon-video-play tb-icon"
-              @click="statusConfirm(scope.row.id, scope.row.status)"
-            ></i>
-          </el-tooltip>
-          <el-tooltip
-            v-if="powers.some((item) => item == '006')"
-            effect="dark"
-            content="删除"
-            placement="top"
-          >
-            <i
-              class="el-icon-delete tb-icon"
-              @click="deleteItem(scope.row.id)"
-            ></i>
-          </el-tooltip>
-        </template>
-      </ex-table>
-      <add-edit
-        :id="modelId"
-        :sitem="sitem"
-        :show-model="showModel"
-        :is-detail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      />
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import resToken from "@/mixins/resToken";
-import statusList from "@/assets/js/statusList";
-import asyncRequest from "@/apis/service/serviceParam/sellReturn";
-import addEdit from "./addEdit";
-import { mapGetters } from "vuex";
-
-export default {
-  name: "sellReturn",
-  mixins: [mixinPage, resToken],
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "sellReturn"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  data() {
-    return {
-      // 状态
-      statusOptions: [
-        { id: "0", label: "禁用" },
-        { id: "1", label: "启用" },
-      ],
-      statusList: statusList,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      parmValue: {
-        status: "", //
-        type: "5",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      },
-      tableData: [],
-      passwordModel: false,
-      passwordModelId: 0,
-      isPasswordDetail: false,
-      // 表格 - 数据
-      tableData: [],
-      // 表格 - 参数
-      table: {
-        stripe: true,
-        border: true,
-        _defaultHeader_: ["setcol"],
-      },
-      // 表格 - 分页
-      pageInfo: {
-        size: 15,
-        curr: 1,
-        total: 0,
-      },
-      // 表格 - 列参数
-      columns: [
-        {
-          prop: "result_code",
-          label: "原因编号",
-          width: "80px",
-        },
-        {
-          prop: "result",
-          label: "采购退货原因",
-        },
-        {
-          prop: "result_desc",
-          label: "退货描述",
-        },
-        {
-          prop: "status",
-          label: "状态",
-          _slot_: "status",
-          width: "80px",
-        },
-        {
-          prop: "addtime",
-          label: "创建时间",
-          sortable: true,
-          width: "140px",
-        },
-        {
-          prop: "",
-          label: "操作",
-          fixed: "right",
-          _noset_: true,
-          _slot_: "operation",
-          width: "110px",
-        },
-      ],
-    };
-  },
-  mounted() {
-    this.searchList();
-  },
-  methods: {
-    async deleteItem(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          const model = {
-            id: id,
-          };
-          const res = await asyncRequest.delete(model);
-          if (res && res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    restSearch() {
-      // 表格 - 分页
-      this.pageInfo = {
-        size: 15,
-        curr: 1,
-        total: 0,
-      };
-      this.parmValue = {
-        status: "", //
-        type: "5",
-        page: 1, // 页码
-        size: 15, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, sitem) {
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.sitem = sitem;
-    },
-    async searchList() {
-      this.loading = true;
-      const res = await asyncRequest.list(this.parmValue);
-      if (res && res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        // console.log(this.tableData);
-        this.pageInfo.total = Number(res.data.count);
-      } else if (res && res.code >= 100 && res.code <= 104) {
-        await this.logout();
-      } else {
-        this.tableData = [];
-        this.pageInfo.total = 0;
-      }
-      this.loading = false;
-    },
-
-    async statusConfirm(id, status) {
-      let str = status === "1" ? "禁用" : "启用";
-      await this.$confirm("确定要改为" + str + "?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          this.loading = true;
-          const model = {
-            id: id,
-            status: status === "1" ? "0" : "1",
-          };
-          const res = await asyncRequest.status(model);
-          if (res && res.code === 0) {
-            this.loading = false;
-            this.$notify.success({
-              title: "状态修改成功!",
-              message: "",
-            });
-            await this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-  },
-};
-</script>
-  <style lang="scss" scoped>
-</style>
-   

+ 0 - 0
src/views/serviceParam/sellReturn/销售退货异常原因


+ 0 - 0
src/views/serviceParam/storeAnomaly/采购-入库验收异常


+ 3 - 3
src/views/serviceParam/storeAnomaly/addEdit.vue → src/views/serviceParam/unusualReason/addEdit.vue

@@ -62,10 +62,10 @@
   </el-dialog>
 </template>
    <script>
-import asyncRequest from "@/apis/service/serviceParam/storeAnomaly";
+import asyncRequest from "@/apis/service/serviceParam/unusualReason";
 import resToken from "@/mixins/resToken";
 export default {
-  name: "storeAnomaly",
+  name: "unusualReason",
   props: ["showModel", "id", "isDetail", "sitem"],
   mixins: [resToken],
   data() {
@@ -207,7 +207,7 @@ export default {
 </script>
 
    <style lang="scss" scoped>
-.storeAnomaly {
+.unusualReason {
 }
 </style>
    

+ 24 - 6
src/views/serviceParam/storeAnomaly/index.vue → src/views/serviceParam/unusualReason/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="storeAnomaly pagePadding">
+  <div class="unusualReason pagePadding">
     <div
       v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
     >
@@ -26,6 +26,17 @@
         <template #table-header="{}">
           <div style="width: 100%">
             <el-row style="padding: 0 0 0 80px">
+              <el-col :span="3" style="width: 200px;">
+                <el-select v-model="parmValue.type" placeholder="原因类型">
+                  <el-option
+                    v-for="item in options"
+                    :key="item.id"
+                    :label="item.label"
+                    :value="item.id"
+                  >
+                  </el-option>
+                </el-select>
+              </el-col>
               <el-col :span="3" style="width: 66px; float: right">
                 <el-button
                   :size="searchSize"
@@ -149,12 +160,12 @@
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import statusList from "@/assets/js/statusList";
-import asyncRequest from "@/apis/service/serviceParam/storeAnomaly";
+import asyncRequest from "@/apis/service/serviceParam/unusualReason";
 import addEdit from "./addEdit";
 import { mapGetters } from "vuex";
 
 export default {
-  name: "storeAnomaly",
+  name: "unusualReason",
   mixins: [mixinPage, resToken],
   components: {
     addEdit,
@@ -164,7 +175,7 @@ export default {
     powers() {
       let tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "storeAnomaly"
+          (item) => item.menu_route == "unusualReason"
         ) || {};
       if (tran && tran.action && tran.action.length > 0) {
         return tran.action;
@@ -180,6 +191,13 @@ export default {
         { id: "0", label: "禁用" },
         { id: "1", label: "启用" },
       ],
+      options: [
+        { id: "1", label: "入库验收异常" },
+        { id: "2", label: "退货验收异常" },
+        { id: "3", label: "售后退换货" },
+        { id: "4", label: "采购退货" },
+        { id: "5", label: "销售退换货" },
+      ],
       statusList: statusList,
       loading: true,
       showModel: false,
@@ -187,7 +205,7 @@ export default {
       modelId: 0,
       parmValue: {
         status: "", //
-        type: "1",
+        type: "",
         page: 1, // 页码
         size: 15, // 每页显示条数
       },
@@ -287,7 +305,7 @@ export default {
       };
       this.parmValue = {
         status: "", //
-        type: "1",
+        type: "",
         page: 1, // 页码
         size: 15, // 每页显示条数
       };

+ 0 - 0
src/views/serviceParam/goodsAnomaly/销售出库退货验收异常原因 → src/views/serviceParam/unusualReason/异常原因