|
|
@@ -918,13 +918,47 @@ export default {
|
|
|
}
|
|
|
getHolds()
|
|
|
.then(() => {
|
|
|
- if (holdDays === 0 && _this.info.source === 'OFFICIAL') {
|
|
|
+ console.log(_this.info.type === 'PICTURE');
|
|
|
+ if (
|
|
|
+ (_this.info.holdDays === 0 || _this.info.holdDays === '0') &&
|
|
|
+ _this.info.source === 'OFFICIAL'
|
|
|
+ ) {
|
|
|
return _this.$http.get('/sysConfig/get/OFFICIAL_CONSIGNMENT').then(res => {
|
|
|
holdDays = Number(res.value);
|
|
|
return Promise.resolve();
|
|
|
});
|
|
|
- } else if (this.info.source === 'GIFT') {
|
|
|
- return this.$http.get('/sysConfig/get/gift_days').then(res => {
|
|
|
+ } else if (_this.info.source === 'GIFT') {
|
|
|
+ return _this.$http.get('/sysConfig/get/gift_change_time,git_pre_days').then(res => {
|
|
|
+ if (res.gift_change_time) {
|
|
|
+ if (
|
|
|
+ _this
|
|
|
+ .dayjs(_this.info.createdAt)
|
|
|
+ .isSameOrBefore(_this.dayjs(res.gift_change_time.value))
|
|
|
+ ) {
|
|
|
+ let _days = res.git_pre_days.value.split(',');
|
|
|
+ if (_this.info.type === 'PICTURE') {
|
|
|
+ holdDays = Number(_days[1]);
|
|
|
+ } else {
|
|
|
+ holdDays = Number(_days[0]);
|
|
|
+ }
|
|
|
+ return Promise.resolve();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (_this.info.type === 'PICTURE') {
|
|
|
+ return _this.$http.get('/sysConfig/get/pic_gift_days').then(res => {
|
|
|
+ holdDays = Number(res.value);
|
|
|
+ return Promise.resolve();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ return _this.$http.get('/sysConfig/get/gift_days').then(res => {
|
|
|
+ holdDays = Number(res.value);
|
|
|
+ return Promise.resolve();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (_this.info.type === 'PICTURE') {
|
|
|
+ console.log('3746');
|
|
|
+ return _this.$http.get('/sysConfig/get/picture_hold_days').then(res => {
|
|
|
holdDays = Number(res.value);
|
|
|
return Promise.resolve();
|
|
|
});
|