Commit 51805025 authored by 吴婷慧's avatar 吴婷慧

测试问题修改

parent 28d55d42
...@@ -285,8 +285,8 @@ export default { ...@@ -285,8 +285,8 @@ export default {
let data = res.content || {}; let data = res.content || {};
// type === '2'说明是新增保单,需要把客户信息清空 // type === '2'说明是新增保单,需要把客户信息清空
if(type === '2') { if(type === '2') {
const { mrnNo, idNo, patientName, birthday, sex } = data const { mrnNo, idNo, patientName, birthday, sex, id } = data
this.form = { ...this.form, mrnNo, idNo, patientName, birthday, sex } this.form = { ...this.form, mrnNo, idNo, patientName, birthday, sex, id }
this.medCardCopeFiles = []; this.medCardCopeFiles = [];
this.idCardCopeFiles = []; this.idCardCopeFiles = [];
return true return true
......
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
<div> <div>
<!-- 分类 --> <!-- 分类 -->
<div class="classify clearfix"> <div class="classify clearfix">
<a-button @click="specialtyChange(null)" :type="!type || !type.length ? 'primary' : ''"> <div class="classify-btns">
全部 <a-button @click="specialtyChange(null)" :type="!type || !type.length ? 'primary' : ''">
</a-button> 全部
<a-button @click="specialtyChange(item.specialtyCode)" :type="type.indexOf(item.specialtyCode) > -1 ? 'primary' : ''" v-for="item in welfareType" :key="item.specialtyCode"> </a-button>
{{ item.specialtyDesc }} <a-button @click="specialtyChange(item.specialtyCode)" :type="type.indexOf(item.specialtyCode) > -1 ? 'primary' : ''" v-for="item in welfareType" :key="item.specialtyCode">
</a-button> {{ item.specialtyDesc }}
</a-button>
</div>
<div class="save-btn"> <div class="save-btn">
<!-- <a-button type="primary" @click="addNew"> <!-- <a-button type="primary" @click="addNew">
<Icon name="ssiadd" :size="14" />新增 <Icon name="ssiadd" :size="14" />新增
...@@ -183,14 +185,25 @@ export default { ...@@ -183,14 +185,25 @@ export default {
} }
} }
.classify { .classify {
.pa(10, 20, 10, 20); .pa(0, 20, 0, 20);
.mg-t(30); .mg-t(30);
.mg-b(10); .mg-b(10);
display: flex;
align-items: center;
justify-content: space-between;
background-color: #f8fafb; background-color: #f8fafb;
.ant-btn:not(:first-child) { .ant-btn:not(:first-child) {
.mg-l(30); .mg-l(30);
} }
.classify-btns{
.pa(10, 0, 10, 0);
flex: 1;
overflow-x: auto;
white-space: nowrap;
}
.save-btn { .save-btn {
width: 160px;
text-align: center;
float: right; float: right;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment