|
@@ -61,7 +61,7 @@
|
|
|
const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
|
|
|
const uploadPermission = <%- uploadPermission %>;
|
|
|
const userID = <%- ctx.session.sessionUser.accountId %>;
|
|
|
- const preContractTp = <%- pre.contract_tp %>;
|
|
|
- const preQcTp = <%- pre.qc_tp %>;
|
|
|
- const preGatherTp = <%- pre.gather_tp %>;
|
|
|
+ const preContractTp = <%- (pre.contract_tp || 0) %>;
|
|
|
+ const preQcTp = <%- (pre.qc_tp || 0) %>;
|
|
|
+ const preGatherTp = <%- (pre.gather_tp || 0) %>;
|
|
|
</script>
|