|
@@ -99,14 +99,15 @@
|
|
|
<script name="JieSuanDanXiuGaiShouShu" setup>
|
|
|
import SelectStaffCode from '@/components/SelectStaffCode.vue'
|
|
|
import {maZuiFangShis, qks} from '../jieSuanDanXiuGai'
|
|
|
-import {shouShuBianMa} from '@/api/medical-insurance/si-setl-upload'
|
|
|
+import {shouShuBianMa,validateYbCode} from '@/api/medical-insurance/si-setl-upload'
|
|
|
import {current} from '@/data/input-table-header'
|
|
|
import {shortcuts} from '@/data/shortcuts.js'
|
|
|
import {getDateRangeFormatDateTime} from '@/utils/date'
|
|
|
import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid";
|
|
|
import InputAndTable from "@/components/input-table-query/InputAndTable";
|
|
|
import XcSelect from "@/components/xiao-chan/select/XcSelect";
|
|
|
-
|
|
|
+import {stringIsBlank, stringNotBlank} from "../../../utils/blank-utils";
|
|
|
+import {ElMessage, ElMessageBox} from 'element-plus'
|
|
|
const props = defineProps({
|
|
|
data: {
|
|
|
type: Object,
|
|
@@ -201,15 +202,45 @@ const addShouShuClick = async () => {
|
|
|
let anstDateS = getDateRangeFormatDateTime(formShouShu.anstDate)
|
|
|
formShouShu.anstStartDate = anstDateS.startTime
|
|
|
formShouShu.anstEndDate = anstDateS.endTime
|
|
|
+
|
|
|
if (!form) return
|
|
|
try {
|
|
|
await form.validate()
|
|
|
- emit('addShouShuClick', formShouShu)
|
|
|
+ let flag = true
|
|
|
+ if(stringNotBlank(formShouShu.ssys)){
|
|
|
+ await validateYbCode(formShouShu.ssys).then((res) => {
|
|
|
+ if(stringNotBlank(res)){
|
|
|
+ flag = false
|
|
|
+ return ElMessage.error(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(stringNotBlank(formShouShu.mzys)){
|
|
|
+ await validateYbCode(formShouShu.mzys).then((res) => {
|
|
|
+ if(stringNotBlank(res)){
|
|
|
+ flag = false
|
|
|
+ return ElMessage.error(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(flag){
|
|
|
+ emit('addShouShuClick', formShouShu)
|
|
|
+ }
|
|
|
} catch (e) {
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const jianchaysCode= async (code) => {
|
|
|
+ let message = '';
|
|
|
+ await validateYbCode(code).then((res) => {
|
|
|
+ message = res
|
|
|
+ })
|
|
|
+
|
|
|
+ return message
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
if (props.data) {
|
|
|
formShouShu = props.data
|