|
|
|
@ -83,6 +83,18 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="serviceType === 1&& (this.checkForm.state===2||this.checkForm.state===3)"> |
|
|
|
|
<span>退货物流查看</span> |
|
|
|
|
<el-timeline :reverse="reverse"> |
|
|
|
|
<el-timeline-item |
|
|
|
|
v-for="(activity, index) in activities" |
|
|
|
|
:key="index" |
|
|
|
|
:timestamp="activity.acceptTime"> |
|
|
|
|
{{activity.AcceptStation}} |
|
|
|
|
</el-timeline-item> |
|
|
|
|
</el-timeline> |
|
|
|
|
<span v-if="this.activities==null">{{this.reason}}</span> |
|
|
|
|
</div> |
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button class="refuse" type="danger" v-if="isShow" :loading="loading" @click="submit(1)">拒绝</el-button> |
|
|
|
|
<el-button class="check" type="primary" v-if="isShow" :loading="loading" @click="submit(0)">确认</el-button> |
|
|
|
@ -91,7 +103,7 @@
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {salesCheck} from '@/api/bxg/yxStoreAfterSales.js' |
|
|
|
|
import {getRefundInfo, salesCheck} from '@/api/bxg/yxStoreAfterSales.js' |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
}, |
|
|
|
@ -110,6 +122,8 @@ export default {
|
|
|
|
|
phoneNumber: '', // 手机号 |
|
|
|
|
address: '' // 地址 |
|
|
|
|
}, |
|
|
|
|
activities:[], |
|
|
|
|
reason:'', |
|
|
|
|
rules: { |
|
|
|
|
consignee: [{ required: true, message: '请输入收货人', trigger: 'blur' }], |
|
|
|
|
phoneNumber: [{ required: true, message: '请输入收货人手机号', trigger: 'blur' }], |
|
|
|
@ -117,12 +131,31 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
//查看退货的物流信息 |
|
|
|
|
this.getRefundInfo() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getRefundInfo(){ |
|
|
|
|
let data={ |
|
|
|
|
//订单编号 |
|
|
|
|
orderCode:this.checkForm.orderCode, |
|
|
|
|
//快递公司编码 |
|
|
|
|
shipperCode:this.checkForm.shipperCode, |
|
|
|
|
//物流单号 |
|
|
|
|
logisticCode:this.checkForm.deliverySn |
|
|
|
|
} |
|
|
|
|
getRefundInfo(data).then(res=>{ |
|
|
|
|
console.log('res',res) |
|
|
|
|
this.activities=res.Traces |
|
|
|
|
this.reason=res.Reason |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
cancel() { |
|
|
|
|
this.visible = false |
|
|
|
|
this.$refs['form'].resetFields() |
|
|
|
|
}, |
|
|
|
|
async submit(type) { |
|
|
|
|
submit(type) { |
|
|
|
|
this.loading = true |
|
|
|
|
if (this.serviceType === 0) { |
|
|
|
|
this.form.consignee = '' |
|
|
|
@ -130,15 +163,26 @@ export default {
|
|
|
|
|
this.form.address = '' |
|
|
|
|
} |
|
|
|
|
this.form.approvalStatus = type // 0成功 1失败 |
|
|
|
|
var res = await salesCheck(this.form) |
|
|
|
|
if (res) { |
|
|
|
|
this.$message.success('审核成功') |
|
|
|
|
this.visible = false |
|
|
|
|
this.$emit('checkSuccess') |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.message || '审核失败!') |
|
|
|
|
} |
|
|
|
|
this.loading = false |
|
|
|
|
// var res = salesCheck(this.form) |
|
|
|
|
// if (res) { |
|
|
|
|
// this.$message.success('审核成功') |
|
|
|
|
// this.visible = false |
|
|
|
|
// this.$emit('checkSuccess') |
|
|
|
|
// } else { |
|
|
|
|
// this.$message.error(res.message || '审核失败!') |
|
|
|
|
// } |
|
|
|
|
// this.loading = false |
|
|
|
|
salesCheck(this.form).then(res => { |
|
|
|
|
if (res) { |
|
|
|
|
this.$message.success('审核成功') |
|
|
|
|
this.visible = false |
|
|
|
|
this.$emit('checkSuccess') |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.message || '审核失败!') |
|
|
|
|
} |
|
|
|
|
}).finally( |
|
|
|
|
this.loading = false |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|