|
@@ -3,7 +3,7 @@ const app = {};
|
|
import downloadBtnIcon from '@/pages/parkingFee/static/images/download.png';
|
|
import downloadBtnIcon from '@/pages/parkingFee/static/images/download.png';
|
|
import { mapState } from 'vuex';
|
|
import { mapState } from 'vuex';
|
|
import uni from '@/utils/uniHooks';
|
|
import uni from '@/utils/uniHooks';
|
|
-import { invoicesAgainSandEmail, invoiceEmails } from '@/api/parking';
|
|
|
|
|
|
+import { invoicesAgainSandEmail, invoiceEmails, getConfValueOfKey } from '@/api/parking';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -16,6 +16,7 @@ export default {
|
|
order: {},
|
|
order: {},
|
|
res: {},
|
|
res: {},
|
|
preUrl: '',
|
|
preUrl: '',
|
|
|
|
+ isShowPdfDowload: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -27,6 +28,7 @@ export default {
|
|
this.order = {}
|
|
this.order = {}
|
|
}
|
|
}
|
|
console.log('order::::', this.order)
|
|
console.log('order::::', this.order)
|
|
|
|
+ this.isShowPdfDowloadInit();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
@@ -105,6 +107,14 @@ export default {
|
|
url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrls[0])}`,
|
|
url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrls[0])}`,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ async isShowPdfDowloadInit() {
|
|
|
|
+ try {
|
|
|
|
+ const res = await getConfValueOfKey('TParkingInvoiceDowloadPadBtn')
|
|
|
|
+ this.isShowPdfDowload = res.switch;
|
|
|
|
+ } catch (err) {
|
|
|
|
+ console.log('TParkingInvoiceDowloadPadBtn error:: ', err);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|