戴艳蓉 3 years ago
parent
commit
92188c822f
2 changed files with 45 additions and 116 deletions
  1. 19 16
      src/views/sellOut/zixunOrder/columns.js
  2. 26 100
      src/views/sellOut/zixunOrder/index.vue

+ 19 - 16
src/views/sellOut/zixunOrder/columns.js

@@ -498,22 +498,18 @@ const listCol = [
     label: "咨询编号",
     width: "160"
   },
-  {
-    prop: "creater",
-    label: "申请人",
-    width: "60"
-  },
-  {
-    prop: "good_name",
-    label: "商品名称",
-    "width": "100"
-  },
   {
     prop: "good_img",
     label: "图片",
     _slot_: "good_img",
     "width": "50"
   },
+  {
+    prop: "good_name",
+    label: "商品名称",
+    "min-width": "120"
+  },
+
   {
     prop: "status",
     label: "状态",
@@ -524,22 +520,29 @@ const listCol = [
   {
     prop: "khNo",
     label: "客户编号",
-    "width": "125"
+    "width": "160"
   },
   {
     prop: "khname",
     label: "客户名称",
-    "width": "135"
+    "min-width": "135"
   },
 
   {
-    prop: "except_code",
+    prop: "budget_price",
     label: "预算单价",
-    _slot_: "except_code",
     width: 110,
-
   },
-
+  {
+    prop: "num",
+    label: "咨询数量",
+    width: 110,
+  },
+  {
+    prop: "creater",
+    label: "申请人",
+    width: "60"
+  },
 
 
   {

+ 26 - 100
src/views/sellOut/zixunOrder/index.vue

@@ -39,31 +39,10 @@
                   "
                 >
                   <el-option
-                    v-for="item in expectOptions"
-                    :key="item.value"
+                    v-for="item in options"
+                    :key="item.id"
                     :label="item.label"
-                    :value="item.value"
-                  >
-                  </el-option>
-                </el-select>
-              </el-col>
-              <el-col :span="4" style="width: 155px; padding-left: 10px">
-                <el-select
-                  :size="searchSize"
-                  v-model="parmValue.status"
-                  clearable
-                  placeholder="售后申请状态"
-                  @change="
-                    pageInfo.curr = 1;
-                    parmValue.page = 1;
-                    searchList();
-                  "
-                >
-                  <el-option
-                    v-for="item in serviceOptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
+                    :value="item.id"
                   >
                   </el-option>
                 </el-select>
@@ -127,12 +106,9 @@
                     slot="prepend"
                     placeholder="请选择"
                   >
-                    <el-option label="售后申请编号" value="1" />
-                    <el-option label="销售订单编号" value="2" />
-                    <el-option label="销售出库单编号" value="3" />
-                    <el-option label="商品编号" value="4" />
-                    <el-option label="商品名称" value="5" />
-                    <el-option label="申请人" value="6" />
+                    <el-option label="咨询单编号" value="1" />
+                    <el-option label="商品名称" value="2" />
+                    <el-option label="申请人" value="3" />
                   </el-select>
                   <el-button
                     slot="append"
@@ -183,9 +159,15 @@
         <template #status="{ scope }">
           <el-tag
             :size="tablebtnSize"
-            :type="scope.row.status == '0' ? 'warning' : ''"
+            :type="
+              scope.row.status == '5'
+                ? ''
+                : scope.row.status == '6' || scope.row.status == '7'
+                ? 'info'
+                : 'warning'
+            "
             v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
+              (options.find((item) => item.id == scope.row.status) || {})
                 .label || '--'
             "
           ></el-tag>
@@ -224,7 +206,10 @@
             <i
               class="el-icon-view tb-icon"
               @click="
-                routeGoto('zixunOrderDetail', { id: scope.row.infoNo, type: 'view' })
+                routeGoto('zixunOrderDetail', {
+                  id: scope.row.infoNo,
+                  type: 'view',
+                })
               "
             ></i>
           </el-tooltip>
@@ -296,18 +281,13 @@ export default {
       isDetail: false,
       modelId: 0,
       parmValue: {
-        order_type: "2",
-        returnCode: "", //售后单号
-        outCode: "", //销售出库单号,
+        khNo: "",
+        zxNo: "",
+        salesman: "",
+        cpName: "",
         status: "", //售后申请单处理状态
-        orderCode: "", //销售单号
-        good_code: "", //商品编号
-        except_code: "", //期望意愿
-        apply_name: "", //申请人名称
         start: "",
         end: "",
-        customer_code: "", //客户公司code
-        good_name: "", //商品名称
         page: 1, // 页码
         size: 15, // 每页显示条数
       },
@@ -327,55 +307,6 @@ export default {
       },
       // 表格 - 列参数
       columns: listCol,
-      serviceOptions: [
-        {
-          value: "0",
-          label: "待审核",
-        },
-        {
-          value: "1",
-          label: "待物流反馈",
-        },
-        {
-          value: "2",
-          label: "待退货",
-        },
-        {
-          value: "3",
-          label: "已退货",
-        },
-      ],
-      serviceValue: "", //售后申请处理状态
-      expectOptions: [
-        {
-          value: "1",
-          label: "退货",
-        },
-        {
-          value: "2",
-          label: "换货",
-        },
-        {
-          value: "3",
-          label: "改变售价",
-        },
-      ],
-      expectValue: "", //期望意愿
-      resultOptions: [
-        {
-          value: "ad",
-          label: "处理中",
-        },
-        {
-          value: "选项2",
-          label: "已同意",
-        },
-        {
-          value: "选项2",
-          label: "已驳回",
-        },
-      ],
-      resultValue: "", //处理结果
     };
   },
   mounted() {
@@ -388,18 +319,13 @@ export default {
       this.select = "1";
       this.s_input = "";
       this.parmValue = {
-        order_type: "2",
-        returnCode: "", //售后单号
-        outCode: "", //销售出库单号,
+        khNo: "",
+        zxNo: "",
+        salesman: "",
+        cpName: "",
         status: "", //售后申请单处理状态
-        orderCode: "", //销售单号
-        good_code: "", //商品编号
-        except_code: "", //期望意愿
-        apply_name: "", //申请人名称
         start: "",
         end: "",
-        customer_code: "", //客户公司code
-        good_name: "", //商品名称
         page: 1, // 页码
         size: 15, // 每页显示条数
       };