From 6ddc49acc34ea408bfec7715b7fb0db312a94ab4 Mon Sep 17 00:00:00 2001 From: wutinghui <wutinghui@ssish.com> Date: Tue, 22 Feb 2022 17:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E3=80=81=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E3=80=81=E7=A6=8F=E5=88=A9=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/author/forget.vue | 8 +- src/views/author/index.vue | 9 +- src/views/customer/edit/index.vue | 137 +++++++++--------- src/views/customer/info/index.vue | 2 +- .../edit/components/benefits/index.vue | 33 +++-- .../edit/components/condition/index.vue | 45 +++--- .../edit/components/coverages/index.vue | 8 +- src/views/welfare/edit/index.vue | 87 ++++++----- .../welfare/info/components/PolicyInfo.vue | 2 +- src/views/welfare/info/index.vue | 9 +- 10 files changed, 181 insertions(+), 159 deletions(-) diff --git a/src/views/author/forget.vue b/src/views/author/forget.vue index 89b764b..ad9fa6c 100644 --- a/src/views/author/forget.vue +++ b/src/views/author/forget.vue @@ -32,7 +32,7 @@ </a-form-model-item> <a-form-model-item prop="verificationCode"> <a-input v-model="form.verificationCode" placeholder="请输入验è¯ç "> - <a-button type="primary" slot="addonAfter" @click="getVerifyCode" + <a-button type="primary" slot="addonAfter" size="small" @click="getVerifyCode" >å‘é€éªŒè¯ç 至邮箱</a-button > </a-input> @@ -76,7 +76,7 @@ export default { activeStep: "1", form: {}, formRules: { - userName: [{ required: true, message: "请输入邮箱" }], + userName: [{ required: true, message: "请输入用户å" }], passWord: [{ required: true, message: "请输入密ç " }], newPwd: [ { required: true, message: "è¯·å†æ¬¡è¾“入新密ç " }, @@ -184,7 +184,7 @@ export default { } } .steps { - .pa(18, 37, 32, 37); + .pa(0, 32, 32, 32); display: flex; .step-item { .fs(12); @@ -229,7 +229,7 @@ export default { .module-title { .fs(14); .lh(20); - .mg-b(32); + .mg-b(30); a { color: #373842; opacity: 0.4; diff --git a/src/views/author/index.vue b/src/views/author/index.vue index 3d90ded..9804ea3 100644 --- a/src/views/author/index.vue +++ b/src/views/author/index.vue @@ -23,7 +23,7 @@ export default { display: flex; justify-content: center; align-items: center; - height: 100vh; + min-height: 100vh; background: url("../../assets/image/login_bg.png") center center no-repeat; background-size: 100% 100%; .title { @@ -32,12 +32,15 @@ export default { .pb(90); color: #fff; letter-spacing: 3px; + text-align: center; } .login, .forget { - .w(394); + width: 394px; + max-width: 90%; + // .w(394); .bd-rd(27); - .pa(50, 63, 10, 63); + .pa(50, 47, 18, 47); margin: 0 auto; position: relative; background-color: #fff; diff --git a/src/views/customer/edit/index.vue b/src/views/customer/edit/index.vue index 0f52e82..2928e02 100644 --- a/src/views/customer/edit/index.vue +++ b/src/views/customer/edit/index.vue @@ -7,16 +7,58 @@ <a-form-model-item label="病历å·ç " prop="mrnNo"> <a-input v-model="form.mrnNo" placeholder="请输入病历å·" allow-clear></a-input> </a-form-model-item> + <a-form-model-item label="è¯ä»¶å·ç " prop="idNo"> + <a-input v-model="form.idNo" allow-clear placeholder="请输入è¯ä»¶å·ç "></a-input> + </a-form-model-item> + <a-form-model-item label="ä¿å•å·ç " prop="policyNo"> + <a-input allow-clear v-model="form.policyNo" placeholder="请输入ä¿å•å·ç "></a-input> + </a-form-model-item> + <a-form-model-item label="ä¿å•直付区域" prop="policyDircetArea"> + <a-select v-model="form.policyDircetArea" placeholder="请选择ä¿å•直付区域" show-search allow-clear @filterOption="filterCode"> + <a-select-option v-for="item in areaCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option> + </a-select> + </a-form-model-item> </a-col> <a-col :xl="4" :lg="6" :sm="12"> <a-form-model-item label="客户姓å" prop="patientName"> <a-input v-model="form.patientName" allow-clear placeholder="请输入客户姓å"></a-input> </a-form-model-item> + <a-form-model-item label="ä¿é™©å…¬å¸" prop="payorId"> + <a-select v-model="form.payorId" placeholder="请选择ä¿é™©å…¬å¸" show-search allow-clear @filterOption="filterCode" @change="payorChange"> + <a-select-option v-for="item in companyCode" :key="item.id" :value="item.id" :label="item.longName">{{ item.longName }}</a-select-option> + </a-select> + </a-form-model-item> + <a-form-model-item label="é¦–æ¬¡å…¥ä¿æ—¶é—´" prop="firstEnrollmentTime"> + <a-date-picker allow-clear v-model="form.firstEnrollmentTime" placeholder="è¯·é€‰æ‹©é¦–æ¬¡å…¥ä¿æ—¶é—´" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> + </a-form-model-item> + <a-form-model-item label="ç‰å¾…期" prop="waitingPeriod"> + <a-radio-group v-model="form.waitingPeriod" :default-value="form.waitingPeriod" button-style="solid"> + <a-radio-button value="Y"> 是 </a-radio-button> + <a-radio-button class="mar-left10" value="N"> å¦ </a-radio-button> + </a-radio-group> + </a-form-model-item> </a-col> <a-col :xl="4" :lg="6" :sm="12"> <a-form-model-item label="出生日期" prop="birthday"> <a-date-picker v-model="form.birthday" allow-clear placeholder="请选择出生日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> </a-form-model-item> + <a-form-model-item label="客户公å¸åç§°" prop="corpName"> + <a-select v-model="form.corpName" placeholder="请选择客户公å¸åç§°" show-search allow-clear + @filterOption="filterCode" @change="corpChange" @search="corpSearch"> + <a-select-option v-for="item in comCorpCode" :key="item.id" :value="item.id + '$_' + item.longName"> + {{ item.longName }} + </a-select-option> + </a-select> + </a-form-model-item> + <a-form-model-item label="ä¿å•生效日期" prop="startDate"> + <a-date-picker allow-clear v-model="form.startDate" placeholder="请选择ä¿å•生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> + </a-form-model-item> + <a-form-model-item label="æ˜¯å¦æ‰¿æ‹…既往症" prop="isUndertakeAnamnesis"> + <a-radio-group v-model="form.isUndertakeAnamnesis" :default-value="form.isUndertakeAnamnesis" button-style="solid"> + <a-radio-button value="Y"> 是 </a-radio-button> + <a-radio-button class="mar-left10" value="N"> å¦ </a-radio-button> + </a-radio-group> + </a-form-model-item> </a-col> <a-col :xl="4" :lg="6" :sm="12"> <a-form-model-item label="性别" prop="sex"> @@ -33,49 +75,12 @@ </a-select> </a-form-model-item> </a-col> - <a-col :xl="6" :lg="6" :sm="12"> - <a-form-model-item label="è¯ä»¶å·ç " prop="idNo"> - <a-input v-model="form.idNo" allow-clear placeholder="请输入è¯ä»¶å·ç "></a-input> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="ä¿é™©å…¬å¸" prop="payorId"> - <a-select v-model="form.payorId" placeholder="请选择ä¿é™©å…¬å¸" show-search allow-clear @filterOption="filterCode" @change="payorChange"> - <a-select-option v-for="item in companyCode" :key="item.id" :value="item.id" :label="item.longName">{{ item.longName }}</a-select-option> - </a-select> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="客户公å¸åç§°" prop="corpName"> - <a-select v-model="form.corpName" placeholder="请选择客户公å¸åç§°" show-search allow-clear - @filterOption="filterCode" @change="corpChange" @search="corpSearch"> - <a-select-option v-for="item in comCorpCode" :key="item.id" :value="item.id + '$_' + item.longName"> - {{ item.longName }} - </a-select-option> - </a-select> - </a-form-model-item> - </a-col> <a-col :xl="6" :lg="6" :sm="12"> <a-form-model-item label="ä¿é™©å¡å·" prop="cardNo"> <a-input allow-clear v-model="form.cardNo" placeholder="请输入ä¿é™©å¡å·"></a-input> </a-form-model-item> </a-col> - <a-col :xl="6" :lg="6" :sm="12"> - <a-form-model-item label="ä¿å•å·ç " prop="policyNo"> - <a-input allow-clear v-model="form.policyNo" placeholder="请输入ä¿å•å·ç "></a-input> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="é¦–æ¬¡å…¥ä¿æ—¶é—´" prop="firstEnrollmentTime"> - <a-date-picker allow-clear v-model="form.firstEnrollmentTime" placeholder="è¯·é€‰æ‹©é¦–æ¬¡å…¥ä¿æ—¶é—´" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="ä¿å•生效日期" prop="startDate"> - <a-date-picker allow-clear v-model="form.startDate" placeholder="请选择ä¿å•生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> + <a-col :xl="5" :lg="6" :sm="12"> <a-form-model-item label="ä¿å•ç»ˆæ¢æ—¥æœŸ" prop="endDate"> <a-date-picker allow-clear v-model="form.endDate" placeholder="请选择ä¿å•ç»ˆæ¢æ—¥æœŸ" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> </a-form-model-item> @@ -90,38 +95,19 @@ </a-select> </a-form-model-item> </a-col> - <a-col :xl="6" :lg="6" :sm="12"> - <a-form-model-item label="ä¿å•直付区域" prop="policyDircetArea"> - <a-select v-model="form.policyDircetArea" placeholder="请选择ä¿å•直付区域" show-search allow-clear @filterOption="filterCode"> - <a-select-option v-for="item in areaCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option> - </a-select> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="ç‰å¾…期" prop="waitingPeriod"> - <a-radio-group v-model="form.waitingPeriod" :default-value="form.waitingPeriod" button-style="solid"> - <a-radio-button value="Y"> 是 </a-radio-button> - <a-radio-button class="mar-left10" value="N"> å¦ </a-radio-button> - </a-radio-group> - </a-form-model-item> - </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="æ˜¯å¦æ‰¿æ‹…既往症" prop="isUndertakeAnamnesis"> - <a-radio-group v-model="form.isUndertakeAnamnesis" :default-value="form.isUndertakeAnamnesis" button-style="solid"> - <a-radio-button value="Y"> 是 </a-radio-button> - <a-radio-button class="mar-left10" value="N"> å¦ </a-radio-button> - </a-radio-group> - </a-form-model-item> - </a-col> <a-col :xl="6" :lg="6" :sm="12"> <a-form-model-item label="其他备注" prop="remark"> <a-input allow-clear v-model="form.remark" placeholder="请输入备注信æ¯"></a-input> </a-form-model-item> </a-col> </a-row> - <a-row> - <a-col :xl="9" :sm="12"> - <a-form-model-item label="ä¿å¡å¤å°ä»¶" prop="medCardCopeFiles"> + <a-row gutter="10"> + <a-col :xl="9" :sm="12" class="none-label"> + <a-form-model-item label="" prop="medCardCopeFiles"> + <div class="text-left mar-bottom10"> + <label>ä¿å¡å¤å°ä»¶</label> + <a-button type="primary" size="small" class="mar-left10" ghost>打å°</a-button> + </div> <div class="upload-print"> <div class="picture"> <a-upload @@ -138,12 +124,16 @@ </div> </a-upload> </div> - <a-button type="primary" class="mar-left10" ghost>打å°</a-button> + <!-- <a-button type="primary" class="mar-left10" ghost>打å°</a-button> --> </div> </a-form-model-item> </a-col> - <a-col :xl="9" :sm="12"> - <a-form-model-item label="身份è¯å¤å°ä»¶" prop="idCardCopeFiles"> + <a-col :xl="9" :sm="12" class="none-label"> + <a-form-model-item prop="idCardCopeFiles"> + <div class="text-left mar-bottom10"> + <label>身份è¯å¤å°ä»¶</label> + <a-button type="primary" size="small" class="mar-left10" ghost>打å°</a-button> + </div> <div class="upload-print"> <div class="picture"> <a-upload @@ -157,7 +147,6 @@ <div v-if="form.idCardCopeFiles.length < 3">ç‚¹å‡»ä¸Šä¼ æ–‡ä»¶</div> </a-upload> </div> - <a-button type="primary" class="mar-left10" ghost>打å°</a-button> </div> </a-form-model-item> </a-col> @@ -211,7 +200,14 @@ export default { comCorpCode: [], planCode: [], comPlanCode: [], - formRules: {}, + formRules: { + mrnNo: [{required: true, message: '请输入病历å·'}], + patientName: [{required: true, message: '请输入客户姓å'}], + birthday: [{required: true, message: '请选择出生日期'}], + sex: [{required: true, message: '请选择性别'}], + payorId: [{required: true, message: '请选择ä¿é™©å…¬å¸'}], + cardNo: [{required: true, message: '请输入ä¿é™©å¡å·'}], + }, typeCode: [], areaCode: [] }; @@ -486,6 +482,9 @@ export default { .none-label .text-r { float: right; } +.text-left{ + text-align: left; +} /deep/ .ant-upload { width: 100%; color: #2b63ff; diff --git a/src/views/customer/info/index.vue b/src/views/customer/info/index.vue index 1aecbe6..aad4d5c 100644 --- a/src/views/customer/info/index.vue +++ b/src/views/customer/info/index.vue @@ -81,7 +81,7 @@ export default { { title: "性别", dataIndex: "sex", width: 80 }, { title: "ä¿é™©å…¬å¸", dataIndex: "payorName", width: 180 }, { title: "ä¿å•å·ç ", dataIndex: "policyNo", width: 190 }, - { title: "ä¿é™©æœ‰æ•ˆæ—¥æœŸ", dataIndex: "startDate", width: 170, customRender: dateFormat }, + { title: "ä¿é™©ç”Ÿæ•ˆæ—¥æœŸ", dataIndex: "startDate", width: 170, customRender: dateFormat }, { title: "ä¿é™©ç»ˆæ¢æ—¥æœŸ", dataIndex: "endDate", width: 170, customRender: dateFormat }, { title: "æ“作", key: "operation", width: "260px", fixed: "right", scopedSlots: { customRender: "operation" }}, ]; diff --git a/src/views/welfare/edit/components/benefits/index.vue b/src/views/welfare/edit/components/benefits/index.vue index 1ff8650..cdf5518 100644 --- a/src/views/welfare/edit/components/benefits/index.vue +++ b/src/views/welfare/edit/components/benefits/index.vue @@ -32,7 +32,7 @@ v-model="isBenefitEditShow" :footer="null" width="50%" - @cancel="isBenefitEditShow = false" + @cancel="cancel" > <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <a-row :gutter="20"> @@ -54,7 +54,7 @@ <a-col :md="12"> <a-form-model-item label="ç¦åˆ©é¡¹ç›®" prop="benefitCode"> <a-select v-model="editForm.benefitCode" show-search allow-clear @filterOption="filterCode"> - <a-select-option v-for="item in benefitCode" :key="item.benefitCode" :vlaue="item.benefitCode"> + <a-select-option v-for="item in benefitCode" :key="item.benefitCode + item.description" :vlaue="item.benefitCode"> {{ item.description }} </a-select-option> </a-select> @@ -71,14 +71,18 @@ </a-form-model-item> </a-col> <a-col :md="12"> - <a-form-model-item label="ç‰å¾…期"> - <a-input-number v-model="editForm.waitingPeriod"> - </a-input-number> + <a-form-model-item label="是å¦ç‰å¾…期"> + <a-radio-group v-model="editForm.isdays" :default-value="editForm.isdays" button-style="solid" + > + <a-radio-button value="Y"> 是 </a-radio-button> + <a-radio-button class="mar-left10" value="N"> å¦ </a-radio-button> + </a-radio-group> </a-form-model-item> </a-col> <a-col :md="12"> - <a-form-model-item label="是å¦å¤©æ•°"> - <a-input-number v-model="editForm.isdays"></a-input-number> + <a-form-model-item label="ç‰å¾…期天数" prop="waitingPeriod" :rules="[{required: editForm.isdays === 'Y', message: '请输入ç‰å¾…期天数'}]"> + <a-input-number v-model="editForm.waitingPeriod"> + </a-input-number> </a-form-model-item> </a-col> <a-col :md="12"> @@ -118,7 +122,7 @@ <a-button type="primary" @click="saveBenefitData"> <Icon name="ssiadd" :size="14" />ä¿å˜ </a-button> - <a-button class="mar-left10" @click="isBenefitEditShow = false">å–æ¶ˆ</a-button> + <a-button class="mar-left10" @click="cancel">å–æ¶ˆ</a-button> </a-form-model-item> </a-form-model> </a-modal> @@ -146,10 +150,10 @@ export default { const columns = [ { title: "责任项目明细", dataIndex: "benefitDesc" }, // { title: "预授æƒç”³è¯·", dataIndex: "index" }, - { title: "更新日期", dataIndex: "modifierDate", width: 180 }, { title: "开始日期", dataIndex: "startDate", customRender: dateFormat }, { title: "ç»“æŸæ—¥æœŸ", dataIndex: "endDate", customRender: dateFormat }, - { title: "备注", dataIndex: "remark", width: 180 }, + { title: "更新日期", dataIndex: "modifierDate", width: 180 }, + { title: "备注", dataIndex: "remarks", width: 180 }, { title: "æ“作", key: "operation", @@ -168,6 +172,7 @@ export default { benefitCode: [{ required: true, message: "请选择ç¦åˆ©é¡¹" }], startDate: [{ required: true, message: "请选择开始时间" }], endDate: [{ required: true, message: "è¯·é€‰æ‹©ç»“æŸæ—¶é—´" }], + waitingPeriod: [{ required: true, message: "请输入ç‰å¾…期天数" }] }, }; }, @@ -177,6 +182,7 @@ export default { methods: { // 选择框ç›é€‰ filterCode(input, option) { + console.log(option.componentOptions) return ( option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 ); @@ -195,6 +201,10 @@ export default { this.editForm = this.$lodash.cloneDeep(data); this.isBenefitEditShow = true; }, + cancel() { + this.$refs.editForm.resetFields(); + this.isBenefitEditShow = false; + }, deleteData(record) { const data = this.$lodash.cloneDeep(record); data.status = "2"; // ç½®ä¸ºæ— æ•ˆçŠ¶æ€å³åˆ 除 @@ -202,11 +212,12 @@ export default { }, saveBenefitData() { this.$refs.editForm.validate((valid) => { + console.log(valid) if (!valid) { return false; } + this._editBenefitData(this.editForm); }); - this._editBenefitData(this.editForm); }, _editBenefitData(data) { const fn = data.id || data.id === 0 ? this.$apis.EDITBENEFITLIST : this.$apis.ADDBENEFITLIST; diff --git a/src/views/welfare/edit/components/condition/index.vue b/src/views/welfare/edit/components/condition/index.vue index f5089bc..09af086 100644 --- a/src/views/welfare/edit/components/condition/index.vue +++ b/src/views/welfare/edit/components/condition/index.vue @@ -28,42 +28,42 @@ title="æ¡ä»¶ç®¡ç†" v-model="isConditionEditShow" :footer="null" - @cancel="isConditionEditShow = false" + @cancel="cancel" > <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> - <a-form-model-item label="频率" prop="frequencyCode"> + <a-form-model-item label="é™é¢" prop="frequencyCode"> <a-select v-model="editForm.frequencyCode" show-search allow-clear @filterOption="filterCode"> - <a-select-option v-for="item in frequencyCode" :key="item.frequencyCode" :vlaue="item.frequencyCode"> + <a-select-option v-for="item in frequencyCode" :key="item.frequencyCode + item.frequencyDesc" :vlaue="item.frequencyCode"> {{ item.frequencyDesc }} </a-select-option> </a-select> </a-form-model-item> - <a-form-model-item label="æ¡ä»¶" prop="limitCode"> + <a-form-model-item label="ä¿éšœç¦åˆ©" prop="limitCode"> <a-select v-model="editForm.limitCode" show-search allow-clear @filterOption="limitCode"> - <a-select-option v-for="item in limitCode" :key="item.limitCode" :vlaue="item.limitCode"> + <a-select-option v-for="item in limitCode" :key="item.limitCode + item.limitDesc" :vlaue="item.limitCode"> {{ item.limitDesc }} </a-select-option> </a-select> </a-form-model-item> - <a-form-model-item label="开始时间" prop="startDate"> + <!-- <a-form-model-item label="开始时间" prop="startDate"> <a-date-picker v-model="editForm.startDate" placeholder="请选择开始时间" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> </a-form-model-item> <a-form-model-item label="ç»“æŸæ—¶é—´" prop="endDate"> <a-date-picker v-model="editForm.endDate" placeholder="è¯·é€‰æ‹©ç»“æŸæ—¶é—´" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> - </a-form-model-item> + </a-form-model-item> --> <a-row :gutter="10"> <a-col :span="8"> - <a-form-model-item label="最å°å€¼"> + <a-form-model-item label="å¹´é™é¢"> <a-input-number v-model="editForm.minValue"> </a-input-number> </a-form-model-item> </a-col> <a-col :span="8"> - <a-form-model-item label="最大值"> + <a-form-model-item label="次é™é¢"> <a-input-number v-model="editForm.maxValue"> </a-input-number> </a-form-model-item> </a-col> <a-col :span="8"> - <a-form-model-item label="å®¶åºæœ€å¤§å€¼"> + <a-form-model-item label="赔付比率"> <a-input-number v-model="editForm.familyMaxValue"> </a-input-number> </a-form-model-item> @@ -71,7 +71,7 @@ </a-row> <a-form-model-item label="å¸ç§"> <a-select v-model="editForm.currency" show-search allow-clear @filterOption="filterCode"> - <a-select-option v-for="item in currencyCode" :key="item.code" :vlaue="item.code"> + <a-select-option v-for="item in currencyCode" :key="item.code + item.name" :vlaue="item.code"> {{ item.name }} </a-select-option> </a-select> @@ -92,14 +92,14 @@ </a-select-option> </a-select> </a-form-model-item> --> - <a-form-model-item label="备注" prop="remarks"> - <a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> + <a-form-model-item label="备注" prop="remark"> + <a-textarea v-model="editForm.remark" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> </a-form-model-item> <a-form-model-item class="text-r"> <a-button type="primary" @click="saveConditionData"> <Icon name="ssiadd" :size="14" />ä¿å˜ </a-button> - <a-button class="mar-left10" @click="isConditionEditShow = false">å–æ¶ˆ</a-button> + <a-button class="mar-left10" @click="cancel">å–æ¶ˆ</a-button> </a-form-model-item> </a-form-model> </a-modal> @@ -107,7 +107,6 @@ </template> <script> -import moment from 'moment' export default { props: { @@ -117,14 +116,9 @@ export default { }, }, data() { - const dateFormat = (val) => { - return val && moment(val).format('YYYY-MM-DD') - } const columns = [ { title: "æ¡ä»¶ç±»åž‹", dataIndex: "frequencyDesc" }, { title: "æ¡ä»¶å†…容", dataIndex: "limitDesc" }, - { title: "开始时间", dataIndex: "startDate", customRender: dateFormat }, - { title: "ç»“æŸæ—¶é—´", dataIndex: "endDate", customRender: dateFormat }, { title: "状æ€", dataIndex: "status", customRender: (val) => { for(let i = 0; i < this.statusCode.length; i ++) { if (val === this.statusCode[i].code) { @@ -135,6 +129,7 @@ export default { } }, // { title: "é™é¢æˆ–陿¬¡", dataIndex: "index" }, { title: "最大值", dataIndex: "maxValue" }, + { title: "备注", dataIndex: "remark" }, { title: "æ“作", key: "operation", @@ -159,10 +154,8 @@ export default { { code: "2", name: "æ— æ•ˆ" }, ], editRule: { - frequencyCode: [{ required: true, message: "请选择频率" }], - limitCode: [{ required: true, message: "请选择æ¡ä»¶" }], - startDate: [{ required: true, message: "请选择开始时间" }], - endDate: [{ required: true, message: "è¯·é€‰æ‹©ç»“æŸæ—¶é—´" }], + frequencyCode: [{ required: true, message: "请选择é™é¢" }], + limitCode: [{ required: true, message: "请选择ä¿éšœç¦åˆ©" }], }, }; }, @@ -207,6 +200,10 @@ export default { } }); }, + cancel() { + this.$refs.editForm.resetFields(); + this.isConditionEditShow = false; + }, deleteData(record) { const data = this.$lodash.cloneDeep(record); data.status = "2"; // ç½®ä¸ºæ— æ•ˆçŠ¶æ€å³åˆ 除 diff --git a/src/views/welfare/edit/components/coverages/index.vue b/src/views/welfare/edit/components/coverages/index.vue index c3e2922..7dcdd0d 100644 --- a/src/views/welfare/edit/components/coverages/index.vue +++ b/src/views/welfare/edit/components/coverages/index.vue @@ -33,7 +33,7 @@ v-model="isCoverageEditShow" :footer="null" width="50%" - @cancel="isCoverageEditShow = false" + @cancel="cancel" > <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <a-row :gutter="20"> @@ -87,7 +87,7 @@ <a-button type="primary" @click="saveCoverageData"> <Icon name="ssiadd" :size="14" />ä¿å˜ </a-button> - <a-button class="mar-left10" @click="isCoverageEditShow = false">å–æ¶ˆ</a-button> + <a-button class="mar-left10" @click="cancel">å–æ¶ˆ</a-button> </a-form-model-item> </a-form-model> </a-modal> @@ -182,6 +182,10 @@ export default { this._editCoverageData(this.editForm); }); }, + cancel() { + this.$refs.editForm.resetFields(); + this.isCoverageEditShow = false; + }, deleteData(record) { const data = this.$lodash.cloneDeep(record); data.status = "2"; // ç½®ä¸ºæ— æ•ˆçŠ¶æ€å³åˆ 除 diff --git a/src/views/welfare/edit/index.vue b/src/views/welfare/edit/index.vue index 3708169..7b348ee 100644 --- a/src/views/welfare/edit/index.vue +++ b/src/views/welfare/edit/index.vue @@ -53,7 +53,7 @@ :pagination="false" > <template slot="operation" slot-scope="record"> - <a-button type="link" @click.stop="editPlanData(null)">新增</a-button> + <a-button type="link" @click.stop="editPlanData(record, true)">新增</a-button> <a-button type="link" @click.stop="editPlanData(record)">修改</a-button> <!-- <a-popconfirm title="ä½ ç¡®å®šè¦åˆ 除å—?" @@ -76,7 +76,7 @@ v-model="isPlanEditShow" :footer="null" width="50%" - @cancel="isPlanEditShow = false" + @cancel="cancel" > <a-form-model ref="editForm" layout="vertical" :model="editForm" :rules="editRule"> <!-- <a-form-model-item label="ä¿é™©å…¬å¸" prop="payorCode"> @@ -88,27 +88,35 @@ </a-form-model-item> --> <a-row :gutter="20"> <a-col :md="12"> - <a-form-model-item label="ä¿é™©è®¡åˆ’" prop="planCode"> - <a-input v-model="editForm.planCode"></a-input> + <a-form-model-item label="计划编å·" prop="planCode"> + <a-input v-model="editForm.planCode" disabled></a-input> </a-form-model-item> <a-form-model-item label="计划全称" prop="longName"> <a-input v-model="editForm.longName"></a-input> </a-form-model-item> - <a-form-model-item label="å…¬å¸åç§°" prop="corpName"> - <a-input v-model="editForm.corpName"></a-input> + <a-form-model-item label="英文åç§°" prop="englishName"> + <a-input v-model="editForm.englishName"></a-input> </a-form-model-item> - <a-form-model-item label="生效日期" prop="effectiveDate"> + <!-- <a-form-model-item label="生效日期" prop="effectiveDate"> <a-date-picker v-model="editForm.effectiveDate" placeholder="请选择生效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> - </a-form-model-item> + </a-form-model-item> --> <a-form-model-item label="地区é™åˆ¶" prop="regionalRestrictions"> <a-select v-model="editForm.regionalRestrictions" placeholder="请选择地区é™åˆ¶" show-search allow-clear @filterOption="filterCode"> <a-select-option v-for="item in areaCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option> </a-select> </a-form-model-item> + <a-form-model-item label="备注" prop="remarks"> + <a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> + </a-form-model-item> </a-col> <a-col :md="12"> - <a-form-model-item label="英文åç§°" prop="englishName"> - <a-input v-model="editForm.englishName"></a-input> + <a-form-model-item label="å…¬å¸åç§°" prop="corpCode"> + <a-select v-model="editForm.corpCode" disabled> + <a-select-option v-for="item in corpCode" :key="item.corpCode" :value="item.corpCode"> + {{ item.longName }} + </a-select-option> + </a-select> + <!-- <a-input v-model="editForm.corpCode" disabled></a-input> --> </a-form-model-item> <a-form-model-item label="计划简称" prop="shortName"> <a-input v-model="editForm.shortName"></a-input> @@ -116,24 +124,21 @@ <a-form-model-item label="ç‰å¾…期(天)" prop="waitingPeriod"> <a-input-number v-model="editForm.waitingPeriod"></a-input-number> </a-form-model-item> - <a-form-model-item label="失效日期" prop="terminationDate"> + <!-- <a-form-model-item label="失效日期" prop="terminationDate"> <a-date-picker v-model="editForm.terminationDate" placeholder="请选择失效日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> - </a-form-model-item> + </a-form-model-item> --> <a-form-model-item label="医院é™åˆ¶" prop="hospitalRestrictions"> <a-select v-model="editForm.hospitalRestrictions" placeholder="请选择医院é™åˆ¶" show-search allow-clear @filterOption="filterCode"> <a-select-option v-for="item in hosCode" :key="item.refcd" :value="item.refcd" :label="item.descCh">{{ item.descCh }}</a-select-option> </a-select> </a-form-model-item> - <a-form-model-item label="备注" prop="remarks"> - <a-textarea v-model="editForm.remarks" :autoSize="{ minRows: 2, maxRows: 5 }"></a-textarea> - </a-form-model-item> </a-col> </a-row> <a-form-model-item class="text-r"> <a-button type="primary" @click="savePlanData"> <Icon name="ssiadd" :size="14" />ä¿å˜ </a-button> - <a-button class="mar-left10" @click="isPlanEditShow = false">å–æ¶ˆ</a-button> + <a-button class="mar-left10" @click="cancel">å–æ¶ˆ</a-button> </a-form-model-item> </a-form-model> </a-modal> @@ -144,7 +149,7 @@ import BurtPagination from "@/components/CUSTOMER/pagation"; import condition from "./components/condition"; import coverages from "./components/coverages"; -import moment from 'moment' +// import moment from 'moment' export default { beforeRouteUpdate(to, from, next) { this.$refs.form.resetFields(); @@ -157,15 +162,15 @@ export default { coverages, }, data() { - const dateFormat = (val) => { - return val && moment(val).format('YYYY-MM-DD') - } + // const dateFormat = (val) => { + // return val && moment(val).format('YYYY-MM-DD') + // } const columns = [ // { title: "计划责任", dataIndex: "planCode", width: 180 }, { title: "计划全称", dataIndex: "longName", width: 180}, { title: "简称", dataIndex: "shortName", width: 130, ellipsis: true }, - { title: "起始日期", dataIndex: "effectiveDate", width: 130, customRender: dateFormat }, - { title: "ç»ˆæ¢æ—¥æœŸ", dataIndex: "terminationDate", width: 130, customRender: dateFormat }, + // { title: "起始日期", dataIndex: "effectiveDate", width: 130, customRender: dateFormat }, + // { title: "ç»ˆæ¢æ—¥æœŸ", dataIndex: "terminationDate", width: 130, customRender: dateFormat }, { title: "医院é™åˆ¶", dataIndex: "hospitalRestrictions", width: 130, customRender: (val) => { for(let i = 0; i < this.hosCode.length; i ++) { if (val === this.hosCode[i].refcd) { @@ -234,6 +239,8 @@ export default { mounted() { if (this.$route.query && this.$route.query.planCode) { this.form = this.$route.query; + this._getCorporateCode(this.$route.query.payorCode); + this._getPlanCode(this.$route.query.corpCode); this.$nextTick(this.handlerSearch) } this._getPayorCode(); @@ -278,28 +285,36 @@ export default { .indexOf(input.toLowerCase()) >= 0 ); }, + cancel() { + this.$refs.editForm.resetFields(); + this.isPlanEditShow = false; + }, deleteData(record) { const data = this.$lodash.cloneDeep(record); data.status = "2"; // ç½®ä¸ºæ— æ•ˆçŠ¶æ€å³åˆ 除 this._editPlanData(data); }, - editPlanData(data) { - if (data) { + editPlanData(data, isNew) { + if (!isNew) { this.editForm = this.$lodash.cloneDeep(data); - this.isPlanEditShow = true; } else { - this.$refs.form.validateField(["payorCode", "corpCode"], (error) => { - if (error) { - return false; - } - data = { - payorCode: this.form.payorCode, - corpCode: this.form.corpCode, - }; - this.editForm = this.$lodash.cloneDeep(data); - this.isPlanEditShow = true; - }); + const { planCode, longName, englishName, corpCode, shortName } = data; + this.editForm = { planCode, longName, englishName, corpCode, shortName } } + this.isPlanEditShow = true; + // else { + // this.$refs.form.validateField(["payorCode", "corpCode"], (error) => { + // if (error) { + // return false; + // } + // data = { + // payorCode: this.form.payorCode, + // corpCode: this.form.corpCode, + // }; + // this.editForm = this.$lodash.cloneDeep(data); + // this.isPlanEditShow = true; + // }); + // } // data = data || {}; }, savePlanData() { diff --git a/src/views/welfare/info/components/PolicyInfo.vue b/src/views/welfare/info/components/PolicyInfo.vue index a4465b5..7db98ee 100644 --- a/src/views/welfare/info/components/PolicyInfo.vue +++ b/src/views/welfare/info/components/PolicyInfo.vue @@ -13,7 +13,7 @@ <a-col :span="6">æ˜¯å¦æ‰¿æ‹…既往症:{{policyData.isUndertakeAnamnesis}}</a-col> <a-col :span="6">ä¿å•直付区域:{{policyData.policyDircetArea}}</a-col> <a-col :span="6" v-if="policyData.waitingPeriod === 'Y'">剩余ç‰å¾…期天数{{policyData.waitingPeriodTime}}</a-col> - <a-col :span="6">其他备注{{policyData.remark}}</a-col> + <a-col :span="6">其他备注:{{policyData.remark}}</a-col> </a-row> </a-collapse-panel> </a-collapse> diff --git a/src/views/welfare/info/index.vue b/src/views/welfare/info/index.vue index c46029f..3ad302d 100644 --- a/src/views/welfare/info/index.vue +++ b/src/views/welfare/info/index.vue @@ -15,7 +15,7 @@ </a-col> <a-col :xl="4" :lg="6" :sm="12"> <a-form-model-item label="出生日期" prop="birthday"> - <a-date-picker v-model="form.birthday" placeholder="请选择出生日期" value-format="YYYY-MM-DD"></a-date-picker> + <a-date-picker v-model="form.birthday" placeholder="请选择出生日期" value-format="YYYY-MM-DD 00:00:00"></a-date-picker> </a-form-model-item> </a-col> <a-col :xl="4" :lg="6" :sm="12"> @@ -40,13 +40,6 @@ </a-select> </a-form-model-item> </a-col> - <a-col :xl="4" :lg="6" :sm="12"> - <a-form-model-item label="是å¦ç›´ä»˜" prop="idType"> - <a-select v-model="form.idType" placeholder="请选择ä¿å•直付区域" show-search allow-clear @filterOption="filterCode"> - <a-select-option v-for="item in companyCode" :key="item.id" :value="item.id" :label="item.longName">{{ item.longName }}</a-select-option> - </a-select> - </a-form-model-item> - </a-col> <a-col :xl="14" :lg="12" :sm="24" class="none-label"> <a-form-model-item label="button"> <a-button type="primary" class="text-r" @click="handlerReset"> -- 2.22.0