|
@ -400,6 +400,10 @@ const form = ref({ |
|
|
} |
|
|
} |
|
|
// 添加配件 |
|
|
// 添加配件 |
|
|
function addSpare() { |
|
|
function addSpare() { |
|
|
|
|
|
if (!form1.value.number) { |
|
|
|
|
|
proxy.$modal.showToast('请选择备件') |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
if (!form1.value.qty || form1.value.qty == 0) { |
|
|
if (!form1.value.qty || form1.value.qty == 0) { |
|
|
proxy.$modal.showToast('请输入数量') |
|
|
proxy.$modal.showToast('请输入数量') |
|
|
return; |
|
|
return; |
|
@ -451,7 +455,7 @@ const form = ref({ |
|
|
} |
|
|
} |
|
|
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 |
|
|
} |
|
|
} |
|
|
onLoad(async(option) => { |
|
|
onLoad(async(option) => { |
|
|
if (option.type) type.value = option.type; |
|
|
if (option.type) type.value = option.type; |
|
@ -461,7 +465,7 @@ const form = ref({ |
|
|
.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') |
|
|