Ver código fonte

发起售后开发中

shish 2 anos atrás
pai
commit
4aeb55c066
2 arquivos alterados com 25 adições e 4 exclusões
  1. 7 0
      ghs/src/service/order/index.js
  2. 18 4
      ghs/src/views/order/list.vue

+ 7 - 0
ghs/src/service/order/index.js

@@ -13,6 +13,13 @@ export class OrderService extends BaseService {
 		});
 		});
 	}
 	}
 
 
+	confirmReach(data) {
+		return this.request({
+			url: '/confirm-reach',
+			params: data
+		});
+	}
+
 	arrivalDetail(data) {
 	arrivalDetail(data) {
 		return this.request({
 		return this.request({
 			url: '/arrival-detail',
 			url: '/arrival-detail',

+ 18 - 4
ghs/src/views/order/list.vue

@@ -108,14 +108,14 @@
         </template>
         </template>
 
 
         <template v-if="scope.row.status == 4">
         <template v-if="scope.row.status == 4">
-          <el-button size="small" type="primary">发起售后</el-button>
+          <el-button size="small" type="primary" @click="goRefund()">发起售后</el-button>
         </template>
         </template>
         <template v-else-if="scope.row.status == 1 || scope.row.status == 5">
         <template v-else-if="scope.row.status == 1 || scope.row.status == 5">
           <el-button size="small">发起售后</el-button>
           <el-button size="small">发起售后</el-button>
         </template>
         </template>
         <template v-else>
         <template v-else>
           <template v-if="scope.row.book == 0">
           <template v-if="scope.row.book == 0">
-            <el-button size="small" type="primary">确认送达</el-button>
+            <el-button size="small" type="primary" @click="confirmReach(scope.row)">确认送达</el-button>
           </template>
           </template>
           <template v-else>
           <template v-else>
             <el-button size="small">发起售后</el-button>
             <el-button size="small">发起售后</el-button>
@@ -332,6 +332,9 @@ export default {
   
   
 	},
 	},
   methods: {
   methods: {
+    goRefund(){
+      this.$message.error('开发中')
+    },
     renewArrival(info){
     renewArrival(info){
       this.confirmArrival(info)
       this.confirmArrival(info)
     },
     },
@@ -357,16 +360,27 @@ export default {
         that.app.refresh({ status: that.tabIndex,book:that.book,clearSign:that.clearSign,searchTime:that.searchTime,startTime:that.startTime,endTime:that.endTime,name:that.name })
         that.app.refresh({ status: that.tabIndex,book:that.book,clearSign:that.clearSign,searchTime:that.searchTime,startTime:that.startTime,endTime:that.endTime,name:that.name })
       },650)			
       },650)			
 		},
 		},
+    confirmReach(info){
+			let that = this
+			this.$confirm('确认已送达?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
+				this.$service.order.confirmReach({id:info.id}).then(res=>{
+          that.$message.success('确认成功')
+          that.refreshData()
+				})
+      })
+    },
     confirmSend(info){
     confirmSend(info){
+      let that = this
       this.$service.order.fh({id:info.id,fhType:0}).then(data => {
       this.$service.order.fh({id:info.id,fhType:0}).then(data => {
         this.$notify({ title: '操作成功', message: '', type: 'success'})
         this.$notify({ title: '操作成功', message: '', type: 'success'})
-        this.app.refresh({ status: this.tabIndex,book:this.book,clearSign:this.clearSign,name:this.name })
+        that.refreshData()
       })
       })
     },
     },
     updateClearSign(info){
     updateClearSign(info){
+      let that = thiss
       this.$service.order.modifyClearSign({id:info.id}).then(data => {
       this.$service.order.modifyClearSign({id:info.id}).then(data => {
         this.$notify({ title: '操作成功', message: '', type: 'success'})
         this.$notify({ title: '操作成功', message: '', type: 'success'})
-        this.app.refresh({ status: this.tabIndex,book:this.book,clearSign:this.clearSign,name:this.name })
+        that.refreshData()
       })
       })
     },
     },
 		newCg(){
 		newCg(){