Browse Source

his查询清除不需要调用接口

360view
bianyaqi 2 years ago
parent
commit
29b97d342c
  1. 4
      public/index.html
  2. 14
      src/page-subspecialty/views/modules/optometryManagement/dioptric/HIS-add.vue
  3. 13
      src/page-subspecialty/views/modules/outpatientManagement/call/HIS-add.vue
  4. 9
      src/page-subspecialty/views/modules/outpatientManagement/treat/HIS-add.vue

4
public/index.html

@ -39,8 +39,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html //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> </script>
<% } %> <% } %>
<!-- 测试环境 --> <!-- 测试环境 -->

14
src/page-subspecialty/views/modules/optometryManagement/dioptric/HIS-add.vue

@ -7,13 +7,13 @@
> >
<el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)"> <el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)">
<el-form-item prop="patientId"> <el-form-item prop="patientId">
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientName"> <el-form-item prop="patientName">
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientIdNumber"> <el-form-item prop="patientIdNumber">
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable />
</el-form-item> </el-form-item>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
@ -60,9 +60,7 @@ export default {
dataFormHis: { dataFormHis: {
patientId: '', patientId: '',
patientName: '', patientName: '',
patientIdNumber: '',
mzDoctorId: '',
region: ''
patientIdNumber: ''
}, },
dataForm: {}, dataForm: {},
tableData: [], tableData: [],
@ -96,10 +94,10 @@ export default {
}, },
// His // His
async findHandle(flag) { async findHandle(flag) {
this.loading = true
if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) { if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) {
return this.$message.error('搜索内容不能为空') return this.$message.error('搜索内容不能为空')
} }
this.loading = true
const { data: res } = await this.$http.get('/patient/getHisPatient', { const { data: res } = await this.$http.get('/patient/getHisPatient', {
params: this.dataFormHis params: this.dataFormHis
}) })
@ -119,7 +117,7 @@ export default {
}, },
// //
async introduceHandle(scopwRow) { async introduceHandle(scopwRow) {
console.log(scopwRow)
this.visible = false
this.$parent.addOrUpdateHandle('', scopwRow, 'HIS引入') this.$parent.addOrUpdateHandle('', scopwRow, 'HIS引入')
} }
} }

13
src/page-subspecialty/views/modules/outpatientManagement/call/HIS-add.vue

@ -7,13 +7,13 @@
> >
<el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)"> <el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)">
<el-form-item prop="patientId"> <el-form-item prop="patientId">
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientName"> <el-form-item prop="patientName">
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientIdNumber"> <el-form-item prop="patientIdNumber">
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable />
</el-form-item> </el-form-item>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
@ -60,9 +60,7 @@ export default {
dataFormHis: { dataFormHis: {
patientId: '', patientId: '',
patientName: '', patientName: '',
patientIdNumber: '',
mzDoctorId: '',
region: ''
patientIdNumber: ''
}, },
dataForm: {}, dataForm: {},
tableData: [], tableData: [],
@ -96,10 +94,10 @@ export default {
}, },
// His // His
async findHandle(flag) { async findHandle(flag) {
this.loading = true
if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) { if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) {
return this.$message.error('搜索内容不能为空') return this.$message.error('搜索内容不能为空')
} }
this.loading = true
const { data: res } = await this.$http.get('/patient/getHisPatient', { const { data: res } = await this.$http.get('/patient/getHisPatient', {
params: this.dataFormHis params: this.dataFormHis
}) })
@ -119,6 +117,7 @@ export default {
}, },
// //
introduceHandle(item) { introduceHandle(item) {
this.visible = false
this.$emit('openAdd', item) this.$emit('openAdd', item)
} }
} }

9
src/page-subspecialty/views/modules/outpatientManagement/treat/HIS-add.vue

@ -7,13 +7,13 @@
> >
<el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)"> <el-form ref="dataFormHis" :inline="true" :model="dataFormHis" class="demo-form-inline" :rules="dataRule" @keyup.enter.native="findHandle(2)">
<el-form-item prop="patientId"> <el-form-item prop="patientId">
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientId" placeholder="请输入登记号" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientName"> <el-form-item prop="patientName">
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientName" placeholder="请输入姓名" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="patientIdNumber"> <el-form-item prop="patientIdNumber">
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable @clear="findHandle(1)" />
<el-input v-model="dataFormHis.patientIdNumber" placeholder="请输入身份证号" clearable />
</el-form-item> </el-form-item>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
@ -93,10 +93,10 @@ export default {
}, },
// His // His
async findHandle(flag) { async findHandle(flag) {
this.loading = true
if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) { if (flag === 2 && !this.dataFormHis.patientId && !this.dataFormHis.patientName && !this.dataFormHis.patientIdNumber) {
return this.$message.error('搜索内容不能为空') return this.$message.error('搜索内容不能为空')
} }
this.loading = true
const { data: res } = await this.$http.get('/patient/getHisPatient', { const { data: res } = await this.$http.get('/patient/getHisPatient', {
params: this.dataFormHis params: this.dataFormHis
}) })
@ -116,6 +116,7 @@ export default {
}, },
// //
introduceHandle(item) { introduceHandle(item) {
this.visible = false
this.$emit('openAdd', item) this.$emit('openAdd', item)
} }
} }

Loading…
Cancel
Save