|
|
@@ -108,14 +108,14 @@
|
|
|
</template>
|
|
|
|
|
|
<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 v-else-if="scope.row.status == 1 || scope.row.status == 5">
|
|
|
<el-button size="small">发起售后</el-button>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<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 v-else>
|
|
|
<el-button size="small">发起售后</el-button>
|
|
|
@@ -332,6 +332,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ goRefund(){
|
|
|
+ this.$message.error('开发中')
|
|
|
+ },
|
|
|
renewArrival(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 })
|
|
|
},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){
|
|
|
+ let that = this
|
|
|
this.$service.order.fh({id:info.id,fhType:0}).then(data => {
|
|
|
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){
|
|
|
+ let that = thiss
|
|
|
this.$service.order.modifyClearSign({id:info.id}).then(data => {
|
|
|
this.$notify({ title: '操作成功', message: '', type: 'success'})
|
|
|
- this.app.refresh({ status: this.tabIndex,book:this.book,clearSign:this.clearSign,name:this.name })
|
|
|
+ that.refreshData()
|
|
|
})
|
|
|
},
|
|
|
newCg(){
|