|
@@ -342,6 +342,7 @@ export default {
|
|
|
show: false,
|
|
show: false,
|
|
|
init: [],
|
|
init: [],
|
|
|
init2: null,
|
|
init2: null,
|
|
|
|
|
+ holdDays: 0,
|
|
|
typeOptions: [
|
|
typeOptions: [
|
|
|
{ label: '文本', value: 'text' },
|
|
{ label: '文本', value: 'text' },
|
|
|
{ label: '二维码', value: 'qrcode' },
|
|
{ label: '二维码', value: 'qrcode' },
|
|
@@ -370,6 +371,9 @@ export default {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.record();
|
|
this.record();
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
|
|
+ this.$http.get('/sysConfig/get/hold_days').then(res => {
|
|
|
|
|
+ this.holdDays = Number(res.value);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
allFn() {
|
|
allFn() {
|
|
@@ -462,8 +466,8 @@ export default {
|
|
|
return this.checkBank();
|
|
return this.checkBank();
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- if (dayjs().isSameOrBefore(dayjs(this.orderInfo.payTime).add(5, 'days'))) {
|
|
|
|
|
- this.$toast('五天后才能寄售');
|
|
|
|
|
|
|
+ if (dayjs().isSameOrBefore(dayjs(this.orderInfo.payTime).add(this.holdDays, 'days'))) {
|
|
|
|
|
+ this.$toast(this.holdDays + '天后才能寄售');
|
|
|
} else if (!this.info.consignment) {
|
|
} else if (!this.info.consignment) {
|
|
|
Dialog.confirm({
|
|
Dialog.confirm({
|
|
|
title: '寄售上架',
|
|
title: '寄售上架',
|