Browse Source

显示补充描述

zhanghui 1 month ago
parent
commit
13742605bd
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/views/finance/aftersales.vue

+ 10 - 6
src/views/finance/aftersales.vue

@@ -44,7 +44,7 @@
                        :data="tableData"
                        ref="crudGoods">
                 <template slot="grouponPrice" slot-scope="scope" >
-                    <avue-input-number precision="2" v-model="scope.row.grouponPrice"></avue-input-number>
+                    <avue-input-number precision="2" v-model="scope.order.paymentAmount"></avue-input-number>
                 </template>
             </avue-crud>
         </template>
@@ -163,11 +163,12 @@
 
               {
                   label: "补充图片",
-                  prop: "imgListStr",
+                  prop: "imgList",
                   type: 'upload',
+                  dataType: 'array',
+                  listType: 'picture-card',
                   addDisplay: false,
                   editDisplay: false,
-                  listType: 'picture-img',
                   span: 24,
               },
             {
@@ -197,7 +198,6 @@
               {
                   label: "订单编号",
                   prop: "orderNo",
-                  hide: true
               },
               {
                   label: "退款商品",
@@ -222,7 +222,7 @@
               column: [
                   {
                       label: '商品图片',
-                      prop: 'goodsImage',
+                      prop: 'goodsImg',
                       type: 'img',
                   },
                   {
@@ -329,7 +329,7 @@
         if (["edit", "view"].includes(type)) {
           getDetail(this.form.id).then(res => {
             this.form = res.data.data;
-            this.tableData = res.data.data.goodsList;
+            this.tableData = res.data.data.afterSalesGoodsList;
           });
         }
         done();
@@ -365,7 +365,11 @@
         getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
           const data = res.data.data;
           this.page.total = data.total;
+          data.records.forEach(item=>{
+              item.imgList = JSON.parse(item.imgListStr)
+          })
           this.data = data.records;
+            console.log(this.data)
           this.loading = false;
           this.selectionClear();
         });