bug 处理

This commit is contained in:
13405411873 2025-04-16 00:05:41 +08:00
parent ff78dc99fd
commit 809faf1eed
2 changed files with 13 additions and 12 deletions

View File

@ -271,6 +271,7 @@ public class PatientScriptServiceImpl implements PatientScriptService {
}
}catch (Exception e){
log.error(e.getMessage());
patientScript.setStatus("生成异常");
scriptMapper.updateStatus(patientScript);
}

View File

@ -243,13 +243,13 @@ export default {
],
//
rules: {
filePath: [
{
required: true,
message: "扫描文件不能为空",
trigger: "blur",
},
],
// filePath: [
// {
// required: true,
// message: "",
// trigger: "blur",
// },
// ],
scanPosition: [
{
@ -329,10 +329,10 @@ export default {
submitForm() {
let flag = false;
this.form.forEach(it=>{
if (!it.filePath){
flag = true
this.$modal.msgError("请上传文件");
}
// if (!it.filePath){
// flag = true
// this.$modal.msgError("");
// }
if (!it.scanPosition){
flag = true
this.$modal.msgError("请输入扫描地点");
@ -342,7 +342,7 @@ export default {
if (flag) return;
const formData = this.form.map(item => ({
...item,
scanTime: dayjs(item.scanTime).format('YYYY-MM-DD HH:mm:ss'),
scanTime:item.scanTime? dayjs(item.scanTime).format('YYYY-MM-DD HH:mm:ss'):null,
type: 'noDti'
}));
addRecord(formData).then(response => {