bug 处理
This commit is contained in:
parent
ff78dc99fd
commit
809faf1eed
@ -271,6 +271,7 @@ public class PatientScriptServiceImpl implements PatientScriptService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
log.error(e.getMessage());
|
||||||
patientScript.setStatus("生成异常");
|
patientScript.setStatus("生成异常");
|
||||||
scriptMapper.updateStatus(patientScript);
|
scriptMapper.updateStatus(patientScript);
|
||||||
}
|
}
|
||||||
|
@ -243,13 +243,13 @@ export default {
|
|||||||
],
|
],
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
filePath: [
|
// filePath: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "扫描文件不能为空",
|
// message: "扫描文件不能为空",
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
|
|
||||||
scanPosition: [
|
scanPosition: [
|
||||||
{
|
{
|
||||||
@ -329,10 +329,10 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
let flag = false;
|
let flag = false;
|
||||||
this.form.forEach(it=>{
|
this.form.forEach(it=>{
|
||||||
if (!it.filePath){
|
// if (!it.filePath){
|
||||||
flag = true
|
// flag = true
|
||||||
this.$modal.msgError("请上传文件");
|
// this.$modal.msgError("请上传文件");
|
||||||
}
|
// }
|
||||||
if (!it.scanPosition){
|
if (!it.scanPosition){
|
||||||
flag = true
|
flag = true
|
||||||
this.$modal.msgError("请输入扫描地点");
|
this.$modal.msgError("请输入扫描地点");
|
||||||
@ -342,7 +342,7 @@ export default {
|
|||||||
if (flag) return;
|
if (flag) return;
|
||||||
const formData = this.form.map(item => ({
|
const formData = this.form.map(item => ({
|
||||||
...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'
|
type: 'noDti'
|
||||||
}));
|
}));
|
||||||
addRecord(formData).then(response => {
|
addRecord(formData).then(response => {
|
||||||
|
Loading…
Reference in New Issue
Block a user