diff --git a/src/utils/custom.js b/src/utils/custom.js index 3dad090a..c0507fa2 100644 --- a/src/utils/custom.js +++ b/src/utils/custom.js @@ -15,7 +15,7 @@ export function parseExcelTime(dateString, isDateTime){ const formatDateTime = date => { return dayjs(date).format("YYYY-MM-DD HH:mm:ss"); }; - + // 帮助函数:将 Date 对象格式化为 yyyy-MM-dd const formatDate = date => { return dayjs(date).format("YYYY-MM-DD"); @@ -27,7 +27,8 @@ export function parseExcelTime(dateString, isDateTime){ } // 处理包含 "23:59:17" 的日期字符串 - if (dateString.includes("23:59:17")) { + // if (dateString.includes("23:59:17")) { + if (dateString.includes("23:59")) { dateString = dayjs(dateString) .add(isDateTime ? 43 : 1, isDateTime ? "second" : "day") .format(isDateTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"); @@ -88,7 +89,7 @@ export function parseExcelTime(dateString, isDateTime){ return isDateTime ? formatDateTime(date) : formatDate(date); } - + // 日期格式化 export function parseTime(time, pattern) { if (arguments.length === 0 || !time) { @@ -769,5 +770,4 @@ export function addExportAuditRecord(data) { method: 'post', data: data }) -} - +} \ No newline at end of file diff --git a/src/views/emis/emisTransProduct/emisTransProductForm.vue b/src/views/emis/emisTransProduct/emisTransProductForm.vue index 0e3cc28f..ecb7ca2b 100644 --- a/src/views/emis/emisTransProduct/emisTransProductForm.vue +++ b/src/views/emis/emisTransProduct/emisTransProductForm.vue @@ -330,6 +330,11 @@ export default { } else { if(this.isCopy){ this.form.id = null; + this.form.updateBy = null; + this.form.updateByName = null; + this.form.updateSite = null; + this.form.updateSiteName = null; + this.form.updateTime = null; } addEmisTransProduct(this.form).then(response => { this.$modal.msgSuccess("新增成功"); diff --git a/src/views/emis/emisWaybill/centerWaybillList.vue b/src/views/emis/emisWaybill/centerWaybillList.vue index fc3716f3..efee7ff7 100644 --- a/src/views/emis/emisWaybill/centerWaybillList.vue +++ b/src/views/emis/emisWaybill/centerWaybillList.vue @@ -1225,10 +1225,10 @@ export default { if (j === 'paymentType') { return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); } - if(j === 'waybillOther.salesSupport'){ + if(j === 'waybillOther?.salesSupport'){ return v['waybillOther']['salesSupport']; } - if(j === 'waybillOther.moneyCompany'){ + if(j === 'waybillOther?.moneyCompany'){ return v['waybillOther']['moneyCompany']; } if(j=== 'blIsQuestion'){ diff --git a/src/views/emis/emisWaybill/dispatchWaybillList.vue b/src/views/emis/emisWaybill/dispatchWaybillList.vue index 26387da1..03ab2c59 100644 --- a/src/views/emis/emisWaybill/dispatchWaybillList.vue +++ b/src/views/emis/emisWaybill/dispatchWaybillList.vue @@ -1189,10 +1189,10 @@ export default { if (j === 'paymentType') { return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); } - if(j === 'waybillOther.salesSupport'){ + if(j === 'waybillOther?.salesSupport'){ return v['waybillOther']['salesSupport']; } - if(j === 'waybillOther.moneyCompany'){ + if(j === 'waybillOther?.moneyCompany'){ return v['waybillOther']['moneyCompany']; } if(j=== 'blIsQuestion'){ diff --git a/src/views/emis/emisWaybill/sendWaybillList.vue b/src/views/emis/emisWaybill/sendWaybillList.vue index 4ed56b05..e7648b84 100644 --- a/src/views/emis/emisWaybill/sendWaybillList.vue +++ b/src/views/emis/emisWaybill/sendWaybillList.vue @@ -1268,10 +1268,10 @@ export default { if (j === 'paymentType') { return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); } - if(j === 'waybillOther.salesSupport'){ + if(j === 'waybillOther?.salesSupport'){ return v['waybillOther']['salesSupport']; } - if(j === 'waybillOther.moneyCompany'){ + if(j === 'waybillOther?.moneyCompany'){ return v['waybillOther']['moneyCompany']; } if(j=== 'blIsQuestion'){ diff --git a/src/views/emis/emisWaybill/sendWaybillListNew.vue b/src/views/emis/emisWaybill/sendWaybillListNew.vue index 8e569b22..f0c7d2bd 100644 --- a/src/views/emis/emisWaybill/sendWaybillListNew.vue +++ b/src/views/emis/emisWaybill/sendWaybillListNew.vue @@ -1218,10 +1218,10 @@ export default { if (j === 'paymentType') { return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]); } - if(j === 'waybillOther.salesSupport'){ + if(j === 'waybillOther?.salesSupport'){ return v['waybillOther']['salesSupport']; } - if(j === 'waybillOther.moneyCompany'){ + if(j === 'waybillOther?.moneyCompany'){ return v['waybillOther']['moneyCompany']; } if(j=== 'blIsQuestion'){