panhui 3 жил өмнө
parent
commit
f49540f37f

+ 3 - 1
src/views/asset/Detail.vue

@@ -918,7 +918,8 @@ export default {
             }
             }
             getHolds()
             getHolds()
                 .then(() => {
                 .then(() => {
-                    if (holdDays === 0 && _this.info.source === 'OFFICIAL') {
+                    console.log(_this.info.type === 'PICTURE');
+                    if (_this.info.holdDays === 0 && _this.info.source === 'OFFICIAL') {
                         return _this.$http.get('/sysConfig/get/OFFICIAL_CONSIGNMENT').then(res => {
                         return _this.$http.get('/sysConfig/get/OFFICIAL_CONSIGNMENT').then(res => {
                             holdDays = Number(res.value);
                             holdDays = Number(res.value);
                             return Promise.resolve();
                             return Promise.resolve();
@@ -953,6 +954,7 @@ export default {
                             }
                             }
                         });
                         });
                     } else if (_this.info.type === 'PICTURE') {
                     } else if (_this.info.type === 'PICTURE') {
+                        console.log('3746');
                         return _this.$http.get('/sysConfig/get/picture_hold_days').then(res => {
                         return _this.$http.get('/sysConfig/get/picture_hold_days').then(res => {
                             holdDays = Number(res.value);
                             holdDays = Number(res.value);
                             return Promise.resolve();
                             return Promise.resolve();