默认提交
Showing
5 changed files
with
54 additions
and
19 deletions
| ... | @@ -8,8 +8,13 @@ import { | ... | @@ -8,8 +8,13 @@ import { |
| 8 | import DatePicker from '@/components/date-picker/date-picker.vue'; | 8 | import DatePicker from '@/components/date-picker/date-picker.vue'; |
| 9 | import ClarmsUpload from './clarms-plugins-upload.vue'; | 9 | import ClarmsUpload from './clarms-plugins-upload.vue'; |
| 10 | import Vue from 'vue'; | 10 | import Vue from 'vue'; |
| 11 | import { Loading } from 'vant'; | 11 | import { |
| 12 | import { Select, Option } from 'element-ui'; | 12 | Loading |
| 13 | } from 'vant'; | ||
| 14 | import { | ||
| 15 | Select, | ||
| 16 | Option | ||
| 17 | } from 'element-ui'; | ||
| 13 | 18 | ||
| 14 | Vue.use(Loading); | 19 | Vue.use(Loading); |
| 15 | Vue.use(Select); | 20 | Vue.use(Select); |
| ... | @@ -20,7 +25,7 @@ export default { | ... | @@ -20,7 +25,7 @@ export default { |
| 20 | // 是否显示组件 | 25 | // 是否显示组件 |
| 21 | insuredList: { | 26 | insuredList: { |
| 22 | type: Array, | 27 | type: Array, |
| 23 | default() { | 28 | default () { |
| 24 | return [] | 29 | return [] |
| 25 | } | 30 | } |
| 26 | }, | 31 | }, |
| ... | @@ -217,7 +222,10 @@ export default { | ... | @@ -217,7 +222,10 @@ export default { |
| 217 | treatmentAmount: this.data.amount, | 222 | treatmentAmount: this.data.amount, |
| 218 | imageList: imageList | 223 | imageList: imageList |
| 219 | } | 224 | } |
| 220 | httpPost({ url: api.clarmsRegisterCase, data: params }).then(res => { | 225 | httpPost({ |
| 226 | url: api.clarmsRegisterCase, | ||
| 227 | data: params | ||
| 228 | }).then(res => { | ||
| 221 | this.$emit("showModal", 2); | 229 | this.$emit("showModal", 2); |
| 222 | this.loading = false; | 230 | this.loading = false; |
| 223 | this.agress = false; | 231 | this.agress = false; |
| ... | @@ -297,5 +305,18 @@ export default { | ... | @@ -297,5 +305,18 @@ export default { |
| 297 | mounted() { | 305 | mounted() { |
| 298 | this.initData(); | 306 | this.initData(); |
| 299 | }, | 307 | }, |
| 300 | created() { } | 308 | created() { |
| 309 | try { | ||
| 310 | this.$root.eventBus.$off("_evt_to_account_information"); | ||
| 311 | } catch (e) {} | ||
| 312 | this.$root.eventBus.$on("_evt_to_account_information", () => { | ||
| 313 | this.$nextTick(() => { | ||
| 314 | console.log("ccccc:", document.getElementById("sc")); | ||
| 315 | let sc = document.getElementById("sc"); | ||
| 316 | if (sc) { | ||
| 317 | document.getElementById("sc").scrollIntoView(); | ||
| 318 | } | ||
| 319 | }) | ||
| 320 | }); | ||
| 321 | } | ||
| 301 | } | 322 | } | ... | ... |
| ... | @@ -124,13 +124,13 @@ | ... | @@ -124,13 +124,13 @@ |
| 124 | </div> | 124 | </div> |
| 125 | <div class="value"> | 125 | <div class="value"> |
| 126 | <clarms-upload :icon="require('@/assets/images/clarms/icon3.png')" :options="{name:$t('clarms.step2.label14'),imageTypeID:'HT29',imageMainTypeID:'HT06',toast:$t('clarms.step2.toast3')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> | 126 | <clarms-upload :icon="require('@/assets/images/clarms/icon3.png')" :options="{name:$t('clarms.step2.label14'),imageTypeID:'HT29',imageMainTypeID:'HT06',toast:$t('clarms.step2.toast3')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> |
| 127 | <clarms-upload class="mt20" :icon="require('@/assets/images/clarms/icon4.png')" :options="{name:$t('clarms.step2.label15'),imageTypeID:'HT34',imageMainTypeID:'HT08',toast:$t('clarms.step2.toast4')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> | 127 | <clarms-upload id="sc" ref="sc" class="mt20" :icon="require('@/assets/images/clarms/icon4.png')" :options="{name:$t('clarms.step2.label15'),imageTypeID:'HT34',imageMainTypeID:'HT08',toast:$t('clarms.step2.toast4')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> |
| 128 | <clarms-upload class="mt20" :icon="require('@/assets/images/clarms/icon5.png')" :options="{name:$t('clarms.step2.label16'),imageTypeID:'HT16',imageMainTypeID:'HT03',toast:$t('clarms.step2.toast5')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> | 128 | <clarms-upload class="mt20" :icon="require('@/assets/images/clarms/icon5.png')" :options="{name:$t('clarms.step2.label16'),imageTypeID:'HT16',imageMainTypeID:'HT03',toast:$t('clarms.step2.toast5')}" @success="uploadSuccess" @beforeUpload="beforeUpload"></clarms-upload> |
| 129 | </div> | 129 | </div> |
| 130 | </div> | 130 | </div> |
| 131 | </template> | 131 | </template> |
| 132 | </div> | 132 | </div> |
| 133 | <hr v-if="data.amount > 0"> | 133 | <hr v-if="data.amount > 0" > |
| 134 | <div class="bottom-tip orange mt20">{{$t('clarms.step2.label17')}}</div> | 134 | <div class="bottom-tip orange mt20">{{$t('clarms.step2.label17')}}</div> |
| 135 | <div class="bottom-tip gray mt10">{{$t('clarms.step2.tip1')}}</div> | 135 | <div class="bottom-tip gray mt10">{{$t('clarms.step2.tip1')}}</div> |
| 136 | 136 | ... | ... |
| 1 | |||
| 2 | |||
| 3 | export default { | 1 | export default { |
| 4 | data() { | 2 | data() { |
| 5 | return { | 3 | return { |
| ... | @@ -7,8 +5,7 @@ export default { | ... | @@ -7,8 +5,7 @@ export default { |
| 7 | } | 5 | } |
| 8 | }, | 6 | }, |
| 9 | components: {}, | 7 | components: {}, |
| 10 | computed: { | 8 | computed: {}, |
| 11 | }, | ||
| 12 | methods: { | 9 | methods: { |
| 13 | initData() { | 10 | initData() { |
| 14 | 11 | ||
| ... | @@ -16,6 +13,10 @@ export default { | ... | @@ -16,6 +13,10 @@ export default { |
| 16 | onOverLayHandler() { | 13 | onOverLayHandler() { |
| 17 | this.$emit("close"); | 14 | this.$emit("close"); |
| 18 | }, | 15 | }, |
| 16 | toAccountInformation() { | ||
| 17 | this.$emit("close"); | ||
| 18 | this.$root.eventBus.$emit('_evt_to_account_information'); | ||
| 19 | }, | ||
| 19 | toContact() { | 20 | toContact() { |
| 20 | this.$router.push({ | 21 | this.$router.push({ |
| 21 | path: "/custom/service?q=m1" | 22 | path: "/custom/service?q=m1" |
| ... | @@ -28,6 +29,5 @@ export default { | ... | @@ -28,6 +29,5 @@ export default { |
| 28 | created() { | 29 | created() { |
| 29 | this.initData(); | 30 | this.initData(); |
| 30 | }, | 31 | }, |
| 31 | watch: { | 32 | watch: {}, |
| 32 | }, | ||
| 33 | } | 33 | } | ... | ... |
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | <img src="@/assets/images/clarms/suc.png"> | 9 | <img src="@/assets/images/clarms/suc.png"> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="message"> | 11 | <div class="message"> |
| 12 | {{$t('clarms.step2.tip7')}}<span @click="onOverLayHandler">{{$t('clarms.step2.tip8')}}</span> | 12 | {{$t('clarms.step2.tip7')}}<span @click="toAccountInformation">{{$t('clarms.step2.tip8')}}</span> |
| 13 | </div> | 13 | </div> |
| 14 | </div> | 14 | </div> |
| 15 | </div> | 15 | </div> | ... | ... |
| ... | @@ -32,7 +32,7 @@ export default { | ... | @@ -32,7 +32,7 @@ export default { |
| 32 | showModal2: false, | 32 | showModal2: false, |
| 33 | agress: false, | 33 | agress: false, |
| 34 | reservationTypes: [], | 34 | reservationTypes: [], |
| 35 | cid: false, | 35 | cid: "", |
| 36 | // 可以理赔的客户信息 | 36 | // 可以理赔的客户信息 |
| 37 | customerList: [] | 37 | customerList: [] |
| 38 | } | 38 | } |
| ... | @@ -72,7 +72,11 @@ export default { | ... | @@ -72,7 +72,11 @@ export default { |
| 72 | let param = { | 72 | let param = { |
| 73 | sid: this.userInfo.sid | 73 | sid: this.userInfo.sid |
| 74 | }; | 74 | }; |
| 75 | httpPost({ url: api.getCidByLogin, sid: true, data: param }).then(res => { | 75 | httpPost({ |
| 76 | url: api.getCidByLogin, | ||
| 77 | sid: true, | ||
| 78 | data: param | ||
| 79 | }).then(res => { | ||
| 76 | if (res) { | 80 | if (res) { |
| 77 | this.cid = res; | 81 | this.cid = res; |
| 78 | this.checkCid(); | 82 | this.checkCid(); |
| ... | @@ -87,7 +91,10 @@ export default { | ... | @@ -87,7 +91,10 @@ export default { |
| 87 | let param = { | 91 | let param = { |
| 88 | cid: this.cid | 92 | cid: this.cid |
| 89 | } | 93 | } |
| 90 | httpPost({ url: api.clarmsCustomerList, data: param }).then(res => { | 94 | httpPost({ |
| 95 | url: api.clarmsCustomerList, | ||
| 96 | data: param | ||
| 97 | }).then(res => { | ||
| 91 | sessionStorage.removeItem("clarmsRequestCid"); | 98 | sessionStorage.removeItem("clarmsRequestCid"); |
| 92 | if (res) { | 99 | if (res) { |
| 93 | this.customerList = res.insuredInfoList; | 100 | this.customerList = res.insuredInfoList; |
| ... | @@ -120,7 +127,13 @@ export default { | ... | @@ -120,7 +127,13 @@ export default { |
| 120 | }, | 127 | }, |
| 121 | gotoInformationPage() { | 128 | gotoInformationPage() { |
| 122 | let c = this.$route.fullPath; | 129 | let c = this.$route.fullPath; |
| 123 | this.$router.push({ path: "/infomation/improve", query: { c: c, a: 1 } }); | 130 | this.$router.push({ |
| 131 | path: "/infomation/improve", | ||
| 132 | query: { | ||
| 133 | c: c, | ||
| 134 | a: 1 | ||
| 135 | } | ||
| 136 | }); | ||
| 124 | }, | 137 | }, |
| 125 | logoutAction() { | 138 | logoutAction() { |
| 126 | this.sid = false; | 139 | this.sid = false; |
| ... | @@ -145,6 +158,7 @@ export default { | ... | @@ -145,6 +158,7 @@ export default { |
| 145 | }, | 158 | }, |
| 146 | mounted() { | 159 | mounted() { |
| 147 | this.initData(); | 160 | this.initData(); |
| 161 | |||
| 148 | }, | 162 | }, |
| 149 | created() { } | 163 | created() {} |
| 150 | } | 164 | } | ... | ... |
-
Please register or sign in to post a comment