|
|
/* eslint-disable operator-linebreak */
|
|
|
/* eslint-disable space-before-function-paren */
|
|
|
import { orderActionsMap, ownType } from 'constants/order-constants';
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
...
|
...
|
@@ -114,6 +115,9 @@ export default { |
|
|
|
|
|
case orderActionsMap.CONFIRM_DELIVERY.name: {
|
|
|
this.$createConfirmDialog({
|
|
|
content: '确认收货?',
|
|
|
confirmBtn: { style: { color: '#D0021B' } },
|
|
|
cancelBtn: { active: true },
|
|
|
onConfirm: async () => {
|
|
|
const isOk = await this.confirmReceipt({
|
|
|
orderCode,
|
...
|
...
|
@@ -128,7 +132,7 @@ export default { |
|
|
// const txt = isOk ? "收货成功" : "收货失败";
|
|
|
// this.$createToast({ txt, type: "txt" }).show();
|
|
|
},
|
|
|
});
|
|
|
}).show();
|
|
|
break;
|
|
|
}
|
|
|
case orderActionsMap.NOT_SOLD.name: {
|
...
|
...
|
@@ -137,9 +141,13 @@ export default { |
|
|
owner,
|
|
|
});
|
|
|
|
|
|
const confirmBtnText = confirmInfo.needPenalty
|
|
|
? '赔付并取消订单'
|
|
|
: '不卖了';
|
|
|
|
|
|
this.$createConfirmDialog(
|
|
|
{
|
|
|
confirmBtn: { text: '不卖了', style: { color: '#D0021B' } },
|
|
|
confirmBtn: { text: confirmBtnText, style: { color: '#D0021B' } },
|
|
|
cancelBtn: { text: '继续出售', active: true },
|
|
|
onConfirm: async () => {
|
|
|
const isOk = await this.cancelTrade({
|
...
|
...
|
@@ -184,9 +192,13 @@ export default { |
|
|
owner,
|
|
|
});
|
|
|
|
|
|
const confirmBtnText = confirmInfo.needPenalty
|
|
|
? '赔付并取消订单'
|
|
|
: '不卖了';
|
|
|
|
|
|
this.$createConfirmDialog(
|
|
|
{
|
|
|
confirmBtn: { text: '不卖了', style: { color: '#D0021B' } },
|
|
|
confirmBtn: { text: confirmBtnText, style: { color: '#D0021B' } },
|
|
|
cancelBtn: { text: '继续出售', active: true },
|
|
|
onConfirm: async () => {
|
|
|
const isOk = await this.cancelTrade({
|
...
|
...
|
|