pangqijun пре 1 година
родитељ
комит
5789fe1534

+ 1 - 11
src/api/finance/aftersales.js

@@ -48,20 +48,10 @@ export const update = (row) => {
   })
 }
 
-export const confirm = (orderId) => {
+export const confirm = (orderId, afterSalesId) => {
   return request({
     url: '/api/finance/aftersales/confirm',
     method: 'post',
-    params: {
-      orderId
-    }
-  })
-}
-
-export const refund = (orderId, afterSalesId) => {
-  return request({
-    url: '/api/finance/aftersales/refund',
-    method: 'post',
     params: {
       orderId,
       afterSalesId

+ 1 - 1
src/views/finance/aftersales.vue

@@ -30,7 +30,7 @@
 
         <template slot-scope="scope" slot="menu">
             <el-button
-                    v-if="scope.row.refundState == 0"
+                    v-if="scope.row.type == 1"
                     type="text"
                     size="small"
                     @click="refund(scope.row)"

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

@@ -258,7 +258,7 @@
                     spinner: 'el-icon-loading',
                     background: 'rgba(0, 0, 0, 0.7)'
                 });
-              confirm(row.orderId).then(res => {
+              confirm(row.orderId, row.id).then(res => {
                     loading.close();
                     this.$message({
                         type: "success",

+ 0 - 10
src/views/wel/index.vue

@@ -37,16 +37,6 @@
               color: 'rgb(230, 71, 88)',
               key: '订'
             },
-            {
-              click: function (item) {
-                console.log(JSON.stringify(item));
-              },
-              title: '当前抢购场次',
-              subtitle: '',
-              count: 0,
-              color: 'rgb(145, 200, 30)',
-              key: '抢'
-            }
           ]
         }
       };