Merge pull request 'develop' (#188) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/188
This commit is contained in:
commit
3afc6a5767
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
@ -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("新增成功");
|
||||
|
||||
@ -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'){
|
||||
|
||||
@ -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'){
|
||||
|
||||
@ -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'){
|
||||
|
||||
@ -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'){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user