Browse Source

给表单签字为空时增加报错提示

360view
bianyaqi 2 years ago
parent
commit
5ac8d0833d
  1. 4
      public/index.html
  2. 2
      src/components/360View/medicalRecord/index.vue
  3. 6
      src/page-subspecialty/views/modules/formList/DrugInjection.vue
  4. 6
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  5. 7
      src/page-subspecialty/views/modules/formList/InjectionTherapy.vue
  6. 6
      src/page-subspecialty/views/modules/formList/MinorOperation.vue
  7. 79
      src/page-subspecialty/views/modules/formList/StyeForm.vue
  8. 6
      src/page-subspecialty/views/modules/formList/childrenLacrimal.vue
  9. 6
      src/page-subspecialty/views/modules/formList/conjunctivalOperation.vue
  10. 6
      src/page-subspecialty/views/modules/formList/cornealForeign.vue
  11. 10
      src/page-subspecialty/views/modules/formList/mraForm.vue
  12. 6
      src/page-subspecialty/views/modules/formList/puncture.vue
  13. 5
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/CornealReview.vue
  14. 8
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/notice-book.vue
  15. 8
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/rgp-book.vue
  16. 2
      static/js/emptySign.js

4
public/index.html

@ -39,8 +39,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://192.168.0.168:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.168:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf';
</script>
<% } %>

2
src/components/360View/medicalRecord/index.vue

@ -10,6 +10,7 @@
:patient-id="patientId"
:is-search="isSearch"
:only-read="onlyRead"
`
:is-platform="isPlatform"
:form-list="formList"
:cur-index="curIndex"
@ -337,6 +338,7 @@ export default {
}
this.$http.post('/case/update', params).then(data => {
this.updateForm()
this.$store.commit('destroyPlugin')
})
},
//

6
src/page-subspecialty/views/modules/formList/DrugInjection.vue

@ -160,6 +160,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'DrugInjection',
props: {
@ -297,6 +299,10 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
const data = JSON.stringify(this.confirmData)

6
src/page-subspecialty/views/modules/formList/InformedConsent.vue

@ -151,6 +151,8 @@
</div></template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'InformedConsent',
props: {
@ -577,6 +579,10 @@ export default {
},
//
handleSaveTable() {
if (this.informPatientSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
if (!this.confirmData.eyeType) {
this.$message.error('请选择眼别')
this.$refs.eyeTypeRef.focus()

7
src/page-subspecialty/views/modules/formList/InjectionTherapy.vue

@ -97,6 +97,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'InjectionTherapy',
props: {
@ -180,10 +182,13 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
const data = JSON.stringify(this.confirmData)
console.log(data)
this.$emit('handleSaveTable', data)
},
//

6
src/page-subspecialty/views/modules/formList/MinorOperation.vue

@ -167,6 +167,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'MinorOperation',
props: {
@ -303,6 +305,10 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
const data = JSON.stringify(this.confirmData)

79
src/page-subspecialty/views/modules/formList/StyeForm.vue

@ -35,16 +35,33 @@
诊断<el-input v-model="confirmData.diagnose" style="flex: 1" />
</div>
<div class="flex" style="margin: 8px 0">
手术名称
<el-select v-model="confirmData.operationName" style="flex: 1" clearable placeholder="">
眼别
<el-select
v-model="confirmData.eyeType"
filterable
allow-create
placeholder=""
style="flex: 1"
>
<el-option
v-for="item in types"
:key="item.id"
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="flex" style="margin: 8px 0">
手术名称
<el-select v-model="confirmData.operationName" style="flex: 1" filterable allow-create clearable placeholder="">
<el-option
v-for="item in types"
:key="item.name"
:label="item.value"
:value="item.name"
/>
</el-select>
</div>
<div class="flex">
麻醉方式<el-input v-model="confirmData.narcotism" style="flex: 1" />
</div>
@ -76,12 +93,12 @@
</div>
<div>
在向患方说明各治疗方案并告知利弊后患方基于当前病情需要经慎重考虑自愿选择
<el-select v-model="confirmData.treatOperate" style="width: 200px" clearable placeholder="">
<el-select v-model="confirmData.treatOperate" style="width: 260px" filterable allow-create clearable placeholder="">
<el-option
v-for="item in types"
:key="item.id"
:label="item.label"
:value="item.value"
:key="item.name"
:label="item.value"
:value="item.name"
/>
</el-select>
</div>
@ -166,6 +183,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'StyeForm',
props: {
@ -187,28 +206,17 @@ export default {
},
data() {
return {
types: [
{
label: '麦粒肿切除术',
value: 1,
id: '11'
},
{
label: '霰粒肿切除术',
value: 2,
id: '22'
},
{
label: '肉芽肿切除术',
value: 3,
id: '33'
},
{
label: '眼睑肿物切除术',
value: 4,
id: '44'
}
],
options: [{
value: 'OD',
label: 'OD'
}, {
value: 'OS',
label: 'OS'
}, {
value: 'OU',
label: 'OU'
}],
types: [],
content: [
'1.麻醉意外,极少数人对麻醉药物过敏,引起药物反应。',
'2.手术操作过程中难以避免的组织或器官损伤:如结膜、角膜、肌肉、神经、血管、邻近器官等,并导致其他并发症的发生。',
@ -252,6 +260,7 @@ export default {
isSelect: false
}
],
eyeType: '',
diagnose: '',
operationName: '',
narcotism: '局部浸润麻醉',
@ -290,6 +299,11 @@ export default {
signClick(index) {
this.$store.commit('beginSign', index)
},
queryOperations() {
this.$http.get('mzbl/getMlzZyzqtysProject').then(data => {
this.types = data.data.data
})
},
queryDiagnostic() {
this.$http.get('/mzbl/getLastDiagnostic', { params: {
patientId: this.patientDetail.patientId
@ -303,6 +317,10 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSign === emptySign || this.minorKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSign
this.confirmData.familySign = this.minorKinSign
const data = JSON.stringify(this.confirmData)
@ -313,6 +331,7 @@ export default {
this.$http.get('/case/getCaseById', { params: {
id: this.caseId
}}).then(data => {
this.queryOperations()
const detail = data.data.data
if (detail.jsonText) {
this.confirmData = JSON.parse(detail.jsonText)

6
src/page-subspecialty/views/modules/formList/childrenLacrimal.vue

@ -110,6 +110,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'Lacrimal',
props: {
@ -247,6 +249,10 @@ export default {
},
//
async handleSaveTable() {
if (this.childrenSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.childrenSign
const params = {
id: this.caseId,

6
src/page-subspecialty/views/modules/formList/conjunctivalOperation.vue

@ -114,6 +114,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'ConjunctivalOperation',
props: {
@ -291,6 +293,10 @@ export default {
},
//
async handleSaveTable() {
if (this.conPatientSign === emptySign || this.conKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.conPatientSign
this.confirmData.familySign = this.conKinSign
const params = {

6
src/page-subspecialty/views/modules/formList/cornealForeign.vue

@ -142,6 +142,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'ConjunctivalOperation',
props: {
@ -284,6 +286,10 @@ export default {
},
//
async handleSaveTable() {
if (this.cornealPatientSign === emptySign || this.cornealKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.cornealPatientSign
this.confirmData.familySign = this.cornealKinSign
const params = {

10
src/page-subspecialty/views/modules/formList/mraForm.vue

@ -181,6 +181,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'MraForm',
props: {
@ -315,6 +317,14 @@ export default {
this.handleSaveTable()
},
handleSaveTable() {
if (this.fundusDocSign === emptySign ||
this.kinSign === emptySign ||
this.performerSign === emptySign ||
this.checkerSign === emptySign
) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
const start = this.$moment(this.startTime).format('yyyy-MM-DD HH:mm')
const end = this.$moment(this.endTime).format('yyyy-MM-DD HH:mm')
this.formData.negativeTime = start + '~' + end

6
src/page-subspecialty/views/modules/formList/puncture.vue

@ -119,6 +119,8 @@
</template>
<script>
import emptySign from '@static/js/emptySign'
export default {
name: 'Puncture',
props: {
@ -279,6 +281,10 @@ export default {
},
//
async handleSaveTable() {
if (this.puncturePatientSign === emptySign || this.punctureKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.puncturePatientSign
this.confirmData.familySign = this.punctureKinSign
const params = {

5
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/CornealReview.vue

@ -138,6 +138,7 @@
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
export default {
name: 'CornealReview',
components: {
@ -491,6 +492,10 @@ export default {
this.handleSaveTable()
},
async handleSaveTable() {
if (this.checkSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.formData.checkResult = this.formData.checkResult.length ? this.formData.checkResult.join(',') : ''
this.formData.jmdxtOd = this.formData.jmdxtOd.length ? this.formData.jmdxtOd.join(',') : ''
this.formData.jmdxtOs = this.formData.jmdxtOs.length ? this.formData.jmdxtOs.join(',') : ''

8
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/notice-book.vue

@ -132,6 +132,7 @@
</template>
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
export default {
components: {
headTemplate
@ -231,6 +232,13 @@ export default {
},
//
saveEditNotice() {
if (this.doctorSign2 === emptySign ||
this.guardianSign2 === emptySign ||
this.patientSign2 === emptySign ||
this.optomSign2 === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
const params = {
noticeType: 1,
patientId: this.patientId,

8
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/rgp-book.vue

@ -120,6 +120,7 @@
</template>
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
export default {
components: {
headTemplate
@ -219,6 +220,13 @@ export default {
},
//
saveEditNotice() {
if (this.optomSign === emptySign ||
this.doctorSign === emptySign ||
this.patientSign === emptySign ||
this.guardianSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
const params = {
noticeType: 2,
patientId: this.patientId,

2
static/js/emptySign.js

@ -0,0 +1,2 @@
const emptySign = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtMAAAFMCAYAAAAJLDA6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAO5SURBVHhe7cEBDQAAAMKg909tDwcEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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