|
|
@@ -549,12 +549,16 @@ const emits = defineEmits(["update:patData"]);
|
|
|
const {patData} = useVModels(props, emits);
|
|
|
watch(patData, (newValue, oldValue) => {
|
|
|
initTableData(newValue, oldValue);
|
|
|
+
|
|
|
}, { deep: true });
|
|
|
|
|
|
const commonDialogVisible = ref(false);
|
|
|
const add = ()=>{
|
|
|
+ // console.log('form-1',form)
|
|
|
Object.assign(form, defaultForm);
|
|
|
+ initBirthData();
|
|
|
commonDialogVisible.value = true;
|
|
|
+ // console.log('form0',form)
|
|
|
}
|
|
|
const editPostVisitData= (obj)=>{
|
|
|
Object.assign(form, obj);
|
|
|
@@ -591,6 +595,7 @@ const tableData=reactive([
|
|
|
]);
|
|
|
const userInfo = useUserStore().userInfo
|
|
|
const form = reactive({
|
|
|
+ sysId:'',
|
|
|
doctor: userInfo.name,
|
|
|
checkDate: "",
|
|
|
inputDoctor: "",
|
|
|
@@ -631,6 +636,7 @@ const form = reactive({
|
|
|
nextDate: "",
|
|
|
});
|
|
|
const defaultForm = {
|
|
|
+ sysId:'',
|
|
|
doctor: userInfo.name,
|
|
|
checkDate: "",
|
|
|
inputDoctor: "",
|
|
|
@@ -873,7 +879,6 @@ const saveFormData = async () => {
|
|
|
confirmButtonText: "确定",
|
|
|
}).then(() => {
|
|
|
let formSupple={
|
|
|
- // sysId:generateGUID(),
|
|
|
src:"南京淮海",
|
|
|
healthNo:patData.value.healthNo,
|
|
|
dbKey:'1',
|
|
|
@@ -888,6 +893,11 @@ const saveFormData = async () => {
|
|
|
organ:'沭阳铭和医院',
|
|
|
inputDoctorCode:patData.value.inputDoctorCode,
|
|
|
}
|
|
|
+ // console.log("form1", form)
|
|
|
+ if(!form.sysId){
|
|
|
+ form.sysId = generateGUID();
|
|
|
+ }
|
|
|
+ // console.log("form2", form)
|
|
|
let data = {
|
|
|
source: "womanVisit",
|
|
|
remark: "孕妇产后访视",
|
|
|
@@ -896,15 +906,13 @@ const saveFormData = async () => {
|
|
|
zd:{...form,...formSupple}
|
|
|
}
|
|
|
};
|
|
|
- if(!form.sysId){
|
|
|
- form.sysId = generateGUID();
|
|
|
- }
|
|
|
- // console.log("data", data);
|
|
|
+ // console.log("孕妇产后访视", data);
|
|
|
+ return
|
|
|
data = JSON.stringify(data);
|
|
|
fuYouRequest(data,'saveData').then(res => {
|
|
|
if(res.result === 'success'){
|
|
|
ElMessage({
|
|
|
- type: "sccess",
|
|
|
+ type: "success",
|
|
|
duration: 4000,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
message: res.message,
|