Browse Source

表单默认值修改

360view
bianyaqi 2 years ago
parent
commit
4a63741ae5
  1. 4
      public/index.html
  2. 36
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  3. 43
      src/page-subspecialty/views/modules/formList/laserSurgery.vue
  4. 4
      src/page-subspecialty/views/modules/formList/reportForm.vue

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.167:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://192.168.0.167:8036/xiangan-crf';
</script>
<% } %>
<!-- 测试环境 -->

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

@ -92,11 +92,16 @@
<div class="btnBox">
<div>
<div class="flex a-c">主诊/谈话医生签名
<div @click="signClick(10)">
<img v-if="!informedDocSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="informedDocSign">
</div></div>
<div class="flex a-c">日期<el-input v-model="confirmData.operationDate" style="flex: 1" /></div>
<img v-if="confirmData.operationSign" :src="confirmData.operationSign" alt="" style="width: 80px;height: 50px;border-style:none;">
</div>
<div class="flex a-c">日期
<el-date-picker
v-model="confirmData.operationDate"
style="flex: 1"
type="date"
value-format="yyyy-MM-dd"
/>
</div>
</div>
</div>
</div>
@ -114,7 +119,14 @@
<img v-if="!informPatientSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="informPatientSign">
</div></div>
<div class="flex a-c">日期<el-input v-model="confirmData.patientDate" style="flex: 1" /></div>
<div class="flex a-c">日期
<el-date-picker
v-model="confirmData.patientDate"
style="flex: 1"
type="date"
value-format="yyyy-MM-dd"
/>
</div>
</div>
</div>
</div>
@ -322,12 +334,6 @@ export default {
}
},
computed: {
informedDocSign: {
get() {
return this.$store.getters.informedDocSign
},
set(val) {}
},
informPatientSign: {
get() {
return this.$store.getters.informPatientSign
@ -347,6 +353,10 @@ export default {
this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientGender = this.patientDetail.patientSex
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.confirmData.operationSign = userData.signImgBase
this.confirmData.operationDate = new Date()
this.confirmData.patientDate = new Date()
this.getInfoDetail()
this.queryProject()
this.$store.commit('initPlugin')
@ -370,7 +380,6 @@ export default {
const jgshAreaList = detail.jgshArea && detail.jgshArea.split('/') || []
this.handleDetail(bnzList, qgyList, ydbList, swmList, detail.coats, mzfsList, jgshList, jgshAreaList)
this.confirmData.other = detail.other || ''
this.$store.commit('informedDocSign', detail.operationSign)
this.$store.commit('informPatientSign', detail.patientSign)
})
},
@ -522,7 +531,6 @@ export default {
this.handleList()
this.handleNarcotism()
this.handleMode()
this.confirmData.operationSign = this.informedDocSign
this.confirmData.patientSign = this.informPatientSign
this.confirmData.jzNumber = window.localStorage.getItem('jzNumber')
this.$http.post('/mzbl/saveMzblJgshzqtys', {

43
src/page-subspecialty/views/modules/formList/laserSurgery.vue

@ -131,11 +131,7 @@
<div class="flex a-c">
<div class="flex a-c item">
<div class="label_width">操作人:</div>
<div @click="signClick(9)">
<img v-if="!operator" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="operator">
</div>
<!-- <el-input v-model="confirmData.operator" style="flex: 1" />-->
<img v-if="confirmData.operateSign" :src="confirmData.operateSign" alt="" style="width: 80px;height: 50px;border-style:none;">
</div>
<div class="flex a-c item">
<div class="label_width">操作时间:</div>
@ -188,11 +184,10 @@ export default {
jzNumber: '',
diagnostic: '',
idList: [],
eyeType: '',
eyeType: 'OD',
//
zlqSl: '',
zlqJbfq: '',
operationDate: '',
operateSign: '',
operateDate: '',
jgzlCount: '',
@ -212,14 +207,6 @@ export default {
}]
}
},
computed: {
operator: {
get() {
return this.$store.getters.operator
},
set(val) {}
}
},
watch: {
caseId(val) {
if (val) {
@ -278,24 +265,24 @@ export default {
caseId: this.caseId
}}).then(data => {
const detail = data.data.data
this.confirmData = { ...detail }
this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.confirmData.patientAddress = this.patientDetail.patientAddress
this.confirmData.patientPhone = this.patientDetail.patientPhone
this.$store.commit('operator', detail.operateSign)
if (detail.jzNumber) {
this.confirmData = { ...detail }
} else {
this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.confirmData.patientAddress = this.patientDetail.patientAddress
this.confirmData.patientPhone = this.patientDetail.patientPhone
this.confirmData.operateDate = new Date()
}
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.confirmData.operateSign = userData.signImgBase
})
},
//
handleConfirmData() {
},
//
handleSaveTable() {
this.confirmData.jzNumber = window.localStorage.getItem('jzNumber')
this.handleConfirmData()
this.confirmData.operateSign = this.operator
this.$http.post('/mzbl/saveMzblJgshzl', {
caseId: this.caseId,
...this.confirmData

4
src/page-subspecialty/views/modules/formList/reportForm.vue

@ -45,7 +45,7 @@
<tr>
<td colspan="2">
<div class="flex">
操作者<el-input v-model="confirmData.operator" style="flex:1" />
操作者<img v-if="confirmData.operator" :src="confirmData.operator" alt="" style="width: 80px;height: 50px;border-style:none;">
</div>
</td>
</tr>
@ -144,6 +144,8 @@ export default {
created() {
this.origin = JSON.parse(JSON.stringify(this.formData))
this.confirmData.patientName = this.patientDetail.patientName
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
this.confirmData.operator = userData.signImgBase
this.getReportInfo()
},
methods: {

Loading…
Cancel
Save