|
|
@ -251,7 +251,7 @@ |
|
|
|
<uv-datetime-picker |
|
|
|
ref="firstOccurTimePicker" |
|
|
|
mode="date" |
|
|
|
confirm-color="#C70019" |
|
|
|
confirm-color="#C70019" |
|
|
|
@confirm="confirmFirstOccurTime" |
|
|
|
></uv-datetime-picker> |
|
|
|
|
|
|
@ -436,14 +436,18 @@ export default { |
|
|
|
uni.showToast({ title: '请选择故障紧急程度', icon: 'none' }) |
|
|
|
return |
|
|
|
} |
|
|
|
// if (!this.malfunctionStatus) { |
|
|
|
// uni.showToast({ title: '请选择故障情况', icon: 'none' }) |
|
|
|
// return |
|
|
|
// } |
|
|
|
if (!this.malfunctionImage.length) { |
|
|
|
uni.showToast({ title: '请上传故障图片', icon: 'none' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.malfunctionDesc.trim()) { |
|
|
|
uni.showToast({ title: '请填写故障情况描述', icon: 'none' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.firstDate.trim()) { |
|
|
|
uni.showToast({ title: '请选择故障首次发生时间', icon: 'none' }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 提交数据 |
|
|
|
const formData = { |
|
|
|