|
@ -458,6 +458,7 @@ |
|
|
} |
|
|
} |
|
|
// 日期模式点击确定之后 |
|
|
// 日期模式点击确定之后 |
|
|
function chooseDatetime(e) { |
|
|
function chooseDatetime(e) { |
|
|
|
|
|
console.log(e) |
|
|
let array1 = [] |
|
|
let array1 = [] |
|
|
let array2 = [] |
|
|
let array2 = [] |
|
|
if (formatValue.value.indexOf('YYYY') > -1) { |
|
|
if (formatValue.value.indexOf('YYYY') > -1) { |
|
@ -480,7 +481,8 @@ |
|
|
} |
|
|
} |
|
|
let str = array1.join('-') + ' ' + array2.join(':') |
|
|
let str = array1.join('-') + ' ' + array2.join(':') |
|
|
formatDate.value = str |
|
|
formatDate.value = str |
|
|
form.value[field.value] = e.timestamp |
|
|
form.value[field.value] = e.timestamp*1000 |
|
|
|
|
|
console.log(form.value[field.value] ) |
|
|
} |
|
|
} |
|
|
onLoad(async(option) => { |
|
|
onLoad(async(option) => { |
|
|
if (option.type) type.value = option.type; |
|
|
if (option.type) type.value = option.type; |
|
@ -490,7 +492,7 @@ |
|
|
.data)).id) { |
|
|
.data)).id) { |
|
|
form.value = JSON.parse(decodeURIComponent(option.data)) |
|
|
form.value = JSON.parse(decodeURIComponent(option.data)) |
|
|
form.value.itemNumbers = form.value.items |
|
|
form.value.itemNumbers = form.value.items |
|
|
formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime * 1000) : '' |
|
|
formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime) : '' |
|
|
form.value.statusTxt = form.value.status == 0 ? '完成' :'未完成' |
|
|
form.value.statusTxt = form.value.status == 0 ? '完成' :'未完成' |
|
|
}; |
|
|
}; |
|
|
jxDetailsStatus.value = await dictApi.getDict('jx_details_status') |
|
|
jxDetailsStatus.value = await dictApi.getDict('jx_details_status') |
|
|