KtOrder.vue 134 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688
  1. <template>
  2. <div class="page">
  3. <el-form :inline="true" :model="pageRequest" class="demo-form-inline" size="small" label-width="130px">
  4. <el-row>
  5. <el-col :span="6">
  6. <el-form-item label="订单号">
  7. <el-input v-model="pageRequest.orderNo" placeholder="请输入订单号" class="widths" clearable></el-input>
  8. </el-form-item>
  9. </el-col>
  10. <el-col :span="6">
  11. <el-form-item label="车牌号">
  12. <el-input v-model="pageRequest.licenseNo" placeholder="请输入车牌号" class="widths" clearable></el-input>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :span="6">
  16. <el-form-item label="车架号">
  17. <el-input v-model="pageRequest.frameNo" placeholder="请输入车架号" class="widths" clearable></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="6">
  21. <el-form-item label="投保人姓名">
  22. <el-input v-model="pageRequest.insuredName" placeholder="请输入投保人姓名" class="widths" clearable></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="6" v-if="isLetterOrder">
  26. <el-form-item label="机构名称">
  27. <el-cascader class="widths" :options="institutionOptions" v-model="pageRequest.deptId" :props="{
  28. checkStrictly: true,
  29. value: 'id',
  30. label: 'name',
  31. }" @change="handleChange" clearable></el-cascader>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="6">
  35. <el-form-item label="录单日期">
  36. <el-date-picker v-model="value2" type="daterange" @change="monthChange" start-placeholder="开始日期"
  37. end-placeholder="结束日期" value-format="yyyy-MM-dd" clearable style="width: 200px"></el-date-picker>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="6">
  41. <el-form-item label="保险公司">
  42. <el-select v-model="pageRequest.companyId" filterable class="widths" clearable>
  43. <el-option v-for="val in companyList" :key="val.id" :label="val.name" :value="val.id"></el-option>
  44. </el-select>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="6">
  48. <el-form-item label="险种">
  49. <el-select v-model="pageRequest.productid" clearable filterable placeholder="选择险种" style="width: 100%">
  50. <el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
  51. :value="item.dictValue"></el-option>
  52. </el-select>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="3">
  56. <el-button type="primary" size="small" @click="onSubmit">查询</el-button>
  57. </el-col>
  58. </el-row>
  59. <el-row v-if="isLetterOrder">
  60. <el-col :span="21">
  61. <el-form-item label="订单状态">
  62. <el-radio-group v-model="pageRequest.orderStatus">
  63. <el-radio label="888">全部</el-radio>
  64. <el-radio v-for="val in optionsStatus" :key="val.dictValue" :label="val.dictValue">{{ val.dictTag
  65. }}</el-radio>
  66. </el-radio-group>
  67. </el-form-item>
  68. </el-col>
  69. </el-row>
  70. </el-form>
  71. <el-table size="small" :data="pageResult" border v-loading="orderLoaing" highlight-current-row stripe
  72. @expand-change="handleRowChange" ref="expandTable" height="550" :header-cell-style="{
  73. background: '#F2F7FC',
  74. fontWeight: '700',
  75. color: '#606266',
  76. }">
  77. <el-table-column type="expand">
  78. <template slot-scope="scope">
  79. <div class="demo-table-expand flex a-c j-s" :style="{ width: width, flexWrap: 'wrap' }"
  80. v-for="(item, index) in scope.row.insAreaCompanyList" :key="index">
  81. <div style="width: 12%">
  82. {{ item.inscompany }}
  83. <span style="color: #d42426">({{ item.agreementName }})</span>
  84. </div>
  85. <div class="flex a-c j-s demo-table-expand-time">
  86. <div>
  87. 总价:
  88. <span style="color: #d42426">{{ item.sumpremium }}</span>
  89. </div>
  90. <div>
  91. 交强险:
  92. <span style="color: #d42426">{{ item.jqpremium }}</span>
  93. </div>
  94. <div>
  95. 商业险:
  96. <span style="color: #d42426">{{ item.sypremium }}</span>
  97. </div>
  98. <div>
  99. 车船税:
  100. <span style="color: #d42426">{{ item.taxamount }}</span>
  101. </div>
  102. <div v-if="item.jypremium">
  103. 驾意险:
  104. <span style="color: #d42426">{{ item.jypremium }}</span>
  105. </div>
  106. <div>{{ item.createtime }}</div>
  107. </div>
  108. <div slot="reference" class="name-wrapper flex a-c j-c">
  109. <el-tag style="
  110. color: #33a08d;
  111. border-color: #33a08d;
  112. background: rgba(51, 160, 141, 0.1);
  113. " v-if="item.orderstatus == '0' || item.orderstatus == '1'" size="small">{{ item.orderstatus | cap
  114. }}</el-tag>
  115. <el-tag style="border-color: #e75b5d" type="danger" v-else-if="item.orderstatus == '3'" size="small">{{
  116. item.orderstatus | cap }}</el-tag>
  117. <el-tag v-else style="
  118. color: #2d4d89;
  119. border-color: #2d4d89;
  120. background: rgba(45, 77, 137, 0.1);
  121. " size="small">{{ item.orderstatus | cap }}</el-tag>
  122. </div>
  123. <div class="flex a-c">
  124. <el-button size="mini" type="text" v-if="item.orderstatus == '1' &&
  125. [
  126. '中煤财险',
  127. '大家财险',
  128. '永诚财险',
  129. '国任财险',
  130. '太平财险',
  131. '华农财险',
  132. '恒邦财险',
  133. '诚泰财险',
  134. '众安财险',
  135. '中国人寿',
  136. '安盛天平',
  137. '紫金财险',
  138. '渤海财险',
  139. '泰康财险',
  140. '华泰财险',
  141. ].includes(item.inscompany)
  142. " @click="refreshStatus(item)" class="red_color">更新订单</el-button>
  143. <el-button size="mini" type="text" v-if="item.orderstatus == '4' && item.inscompany == '华泰财险'"
  144. @click="updateStatusHuatai(item)" class="red_color">更新订单</el-button>
  145. <el-button size="mini" type="text" v-if="(item.orderstatus == '1' ||
  146. item.orderstatus == '2' ||
  147. item.orderstatus == '4') &&
  148. ['紫金财险'].includes(item.inscompany)
  149. " @click="cancelorder(item)" class="red_color">撤单</el-button>
  150. <el-button size="mini" type="text" v-if="item.orderstatus == '2' " @click="carcode(item)"
  151. class="red_color">二维码</el-button>
  152. <!-- <el-button size="mini" class="red_color" v-if="item.orderstatus == '2' && item.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button> -->
  153. <el-button size="mini" type="text" class="green_color"
  154. @click="OrderDetails(scope.row, item)">查看详情</el-button>
  155. <el-button size="mini" type="text" :loading="querystatusLoaing" v-if="item.orderstatus == '2' &&
  156. [
  157. '太平财险',
  158. '华农财险',
  159. '恒邦财险',
  160. '诚泰财险',
  161. '众安财险',
  162. '中国人寿',
  163. '安盛天平',
  164. '紫金财险',
  165. '永诚财险',
  166. '大家财险',
  167. '华泰财险',
  168. '国任财险',
  169. '中煤财险',
  170. '渤海财险',
  171. '泰康财险',
  172. '平安财险',
  173. ].includes(item.inscompany)
  174. " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
  175. <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"
  176. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  177. <el-button size="mini" type="primary" @click="bjdpreview(item.id, scope.row.userid)">报价单</el-button>
  178. <el-button v-if="(item.orderstatus == '1' || item.orderstatus == '4' )&& item.inscompany=='平安财险' && item.fileStatus" size="mini" type="text" class="green_color" @click="additionalInformation(item.id,scope.row)">补充资料</el-button>
  179. <!-- <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button> -->
  180. <el-button type="text" size="mini" v-if="item.orderstatus == '2'">
  181. <el-dropdown trigger="click">
  182. <span class="el-dropdown-link blue_color">
  183. 更多
  184. <i class="el-icon-arrow-down el-icon--right"></i>
  185. </span>
  186. <el-dropdown-menu slot="dropdown">
  187. <el-dropdown-item>
  188. <el-button size="mini" type="text" style="color: #2d4d89"
  189. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  190. </el-dropdown-item>
  191. <el-dropdown-item v-if="item.inscompany !== '平安财险'">
  192. <el-button type="text" size="mini" style="color: #2d4d89"
  193. @click="revokeCode(item.id)">撤销二维码</el-button>
  194. </el-dropdown-item>
  195. </el-dropdown-menu>
  196. </el-dropdown>
  197. </el-button>
  198. </div>
  199. </div>
  200. </template>
  201. </el-table-column>
  202. <el-table-column prop="orderno" label="订单号" align="center" width="180"></el-table-column>
  203. <el-table-column prop="username" label="业务员" align="center" width="180">
  204. <template slot-scope="scope">
  205. <span>{{ scope.row.username }}</span>
  206. </template>
  207. </el-table-column>
  208. <el-table-column prop="username" label="业务员工号" align="center" width="180">
  209. <template slot-scope="scope">
  210. <span>{{ scope.row.userid }}</span>
  211. </template>
  212. </el-table-column>
  213. <el-table-column prop="insCompany" label="承保公司" width="100" align="center">
  214. <template slot-scope="scope">
  215. <span>{{ scope.row.insCompany ? scope.row.insCompany : "--" }}</span>
  216. </template>
  217. </el-table-column>
  218. <el-table-column prop="partnerCompaniesName" label="合作公司" width="100" align="center">
  219. <template slot-scope="scope">
  220. <span>{{ scope.row.partnerCompaniesName ? scope.row.partnerCompaniesName : "--" }}</span>
  221. </template>
  222. </el-table-column>
  223. <el-table-column prop="licenseno" label="车牌号" width="100" align="center"></el-table-column>
  224. <el-table-column prop="insuredname" label="投保人姓名" align="center" width="100"></el-table-column>
  225. <el-table-column prop="product" label="投保险种" align="center" width="100"></el-table-column>
  226. <el-table-column prop="orderstatus" label="状态" align="center" width="150">
  227. <template slot-scope="scope">
  228. <!-- <el-tag :type="capType(scope.row.orderstatus)" size="small">{{
  229. scope.row.orderstatus | cap
  230. }}</el-tag>-->
  231. <el-tag style="
  232. color: #33a08d;
  233. border-color: #33a08d;
  234. background: rgba(51, 160, 141, 0.1);
  235. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  236. | cap }}</el-tag>
  237. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  238. scope.row.orderstatus | cap }}</el-tag>
  239. <el-tag v-else style="
  240. color: #2d4d89;
  241. border-color: #2d4d89;
  242. background: rgba(45, 77, 137, 0.1);
  243. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  244. </template>
  245. </el-table-column>
  246. <el-table-column prop="createtime" label="录单日期" align="center" width="200"></el-table-column>
  247. <el-table-column prop="insureTime" label="承保确认时间" align="center" width="200"></el-table-column>
  248. <el-table-column label="操作" align="center" fixed="right" min-width="250">
  249. <template slot-scope="scope">
  250. <!-- <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
  251. @click="resendData(scope.$index, scope.row)">补传资料</el-button> -->
  252. <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
  253. @click="CloseEdit(scope.$index, scope.row)">重新报价</el-button>
  254. <el-button size="mini" style="color: #2d4d89" type="text"
  255. @click="onoffQuotationHistory(scope.row)">报价历史</el-button>
  256. <!-- <el-button size="mini" type="text" v-if="['0', '5'].includes(scope.row.orderstatus)"
  257. @click="CloseQoute(scope.$index, scope.row)" style="color:#f56c6c">关闭报价</el-button>-->
  258. <!-- <el-button size="mini" type="text" v-if="scope.row.orderstatus == '0'"
  259. @click="underwriting(scope.$index, scope.row)" style="color:#e6a23c">去核保</el-button>-->
  260. </template>
  261. </el-table-column>
  262. </el-table>
  263. <!-- 分页功能 -->
  264. <div class="block">
  265. <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
  266. :current-page="pageNum" :page-size="pageSize" :page-sizes="[20, 30, 50, 100]"
  267. layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
  268. </div>
  269. <!--第一种 二维码 -->
  270. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  271. <div class="ORcodebody" v-watermark="qrCodeId">
  272. <div slot="title" class="dialog-title">
  273. <span>扫码付款</span>
  274. </div>
  275. <div class="ORcode">
  276. <div style="padding: 13px; position: relative">
  277. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  278. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  279. <img v-else :src="paycodeimg" alt style="width: 100%" />
  280. </div>
  281. <div v-else>
  282. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 100%" />
  283. <div v-else id="qrcode" ref="qrcode"></div>
  284. </div>
  285. </div>
  286. </div>
  287. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  288. <div style="
  289. font-size: 32px;
  290. text-align: center;
  291. color: #d42426;
  292. margin-top: 20px;
  293. ">
  294. <span style="font-size: 24px; font-weight: bold">¥</span>
  295. {{ sumpremium }}
  296. </div>
  297. <div class="ORtitle">
  298. <div>
  299. <span>保险公司:</span>
  300. <span>{{ inscompany }}</span>
  301. </div>
  302. <div>
  303. <span>车牌号:</span>
  304. <span>{{ licenseNo }}</span>
  305. </div>
  306. <div>
  307. <span>投保人:</span>
  308. <span>{{ applyName }}</span>
  309. </div>
  310. <div v-show="jqpremium">
  311. <span>交强:</span>
  312. <span>{{ jqpremium }}</span>
  313. </div>
  314. <div v-show="sypremium">
  315. <span>商业:</span>
  316. <span>{{ sypremium }}</span>
  317. </div>
  318. <div v-show="taxamount">
  319. <span>车船税:</span>
  320. <span>{{ taxamount }}</span>
  321. </div>
  322. <div v-show="jqstartdate">
  323. <span>交强险起保日期:</span>
  324. <span>{{ jqstartdate }}</span>
  325. </div>
  326. <div v-show="systartdate">
  327. <span>商业险起保日期:</span>
  328. <span>{{ systartdate }}</span>
  329. </div>
  330. <div v-if="jypremium">
  331. <span>非车险:</span>
  332. <span>{{ jypremium }}</span>
  333. </div>
  334. </div>
  335. </div>
  336. <span slot="footer" class="dialog-footer display">
  337. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  338. @click="codedialogVisible = false">关闭</el-button>
  339. </span>
  340. </el-dialog>
  341. <!--第二种 二维码 -->
  342. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  343. <div class="flex j-s">
  344. <div class="scan-code">
  345. <div style="font-weight: bold">
  346. 总金额:
  347. <span style="color: #2d4d89">{{ sumpremium }}</span>
  348. </div>
  349. <div>交强险:{{ jqpremium }}</div>
  350. <div>车船税:{{ taxamount }}</div>
  351. <div>商业险:{{ sypremium }}</div>
  352. <div>非车险:{{ jypremium }}</div>
  353. </div>
  354. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  355. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  356. <img v-else :src="paycodeimg" alt style="width: 100%" />
  357. </div>
  358. <div v-else>
  359. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 200px; height: 200px" />
  360. <div v-else id="qrcode" ref="qrcode"></div>
  361. </div>
  362. <div class="scan-code">
  363. <div>保险公司:{{ inscompany }}</div>
  364. <div>车牌号:{{ licenseNo }}</div>
  365. <div>投保人:{{ applyName }}</div>
  366. <div>交强险起保日期:{{ jqstartdate }}</div>
  367. <div>商业险起保日期:{{ systartdate }}</div>
  368. </div>
  369. </div>
  370. <span slot="footer" class="dialog-footer">
  371. <el-button size="small" style="
  372. width: 100px;
  373. background: #eaedf1;
  374. border-color: #eaedf1;
  375. color: #2d4d89;
  376. " @click="codedialogVisiblePro = false">关闭</el-button>
  377. </span>
  378. </el-dialog>
  379. <!-- 车辆报价新页面 -->
  380. <detailsDialog ref="detailsDialog" :orderInfo.sync="orderInfo" :Feepermissions="false"></detailsDialog>
  381. <!-- 订单轨迹 -->
  382. <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
  383. <div slot="title" class="dialog-title">
  384. <span>订单轨迹</span>
  385. </div>
  386. <div style="height: 300px; overflow-y: auto">
  387. <el-steps direction="vertical" :active="trajectoryTable.length - 1">
  388. <el-step :title="item.orderStatus | cap" :key="item.id" v-for="item in trajectoryTable">
  389. <template slot="description">
  390. <span>保险公司:{{ item.insCompany }}</span>
  391. <span>提交人:{{ item.operator }}</span>
  392. <div>创建时间:{{ item.createTime }}</div>
  393. </template>
  394. </el-step>
  395. </el-steps>
  396. </div>
  397. </el-dialog>
  398. <!-- 报价历史 -->
  399. <el-dialog :visible.sync="quotationhistorydialogVisible" v-dialogDrag width="90%">
  400. <div slot="title" class="dialog-title">
  401. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  402. <span>报价历史</span>
  403. </div>
  404. <div style="padding: 20px">
  405. <el-table size="small" :data="HistoryList" height="400" border style="width: 100%" v-loading="loading"
  406. :header-cell-style="{
  407. background: '#F2F7FC',
  408. }" highlight-current-row>
  409. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  410. <el-table-column prop="username" label="业务员" align="center">
  411. <template slot-scope="scope">
  412. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  413. </template>
  414. </el-table-column>
  415. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  416. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  417. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  418. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  419. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  420. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  421. <el-table-column prop="orderstatus" label="状态" align="center">
  422. <template slot-scope="scope">
  423. <el-tag style="
  424. color: #33a08d;
  425. border-color: #33a08d;
  426. background: rgba(51, 160, 141, 0.1);
  427. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  428. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  429. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  430. scope.row.orderstatus | cap }}</el-tag>
  431. <el-tag v-else style="
  432. color: #2d4d89;
  433. border-color: #2d4d89;
  434. background: rgba(45, 77, 137, 0.1);
  435. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  436. </template>
  437. </el-table-column>
  438. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  439. <template slot-scope="scope">
  440. <el-button type="text" size="small" style="color: #2d4d89"
  441. @click="OrderDetails(quotationhistoryRow, scope.row)">查看详情</el-button>
  442. <el-button size="small" type="text" @click="bjdpreview(scope.row.id, scope.row.userId)">报价单</el-button>
  443. <el-button size="small" v-show="scope.row.orderstatus == '2' " type="text"
  444. @click="carcode(scope.row)">付款码</el-button>
  445. <!-- <el-button size="small" v-if="scope.row.orderstatus == '2' && scope.row.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button> -->
  446. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  447. scope.row.orderstatus == '2' ||
  448. scope.row.orderstatus == '4') &&
  449. ['紫金财险'].includes(scope.row.inscompany)
  450. " @click="cancelorder(scope.row)">撤单</el-button>
  451. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
  452. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  453. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' &&
  454. [
  455. '太平财险',
  456. '华农财险',
  457. '恒邦财险',
  458. '诚泰财险',
  459. '众安财险',
  460. '中国人寿',
  461. '安盛天平',
  462. '紫金财险',
  463. '永诚财险',
  464. '大家财险',
  465. '华泰财险',
  466. '国任财险',
  467. '中煤财险',
  468. '渤海财险',
  469. '泰康财险',
  470. '平安财险',
  471. ].includes(scope.row.inscompany)
  472. " @click="querystatus(scope.row, 'history')">状态更新</el-button>
  473. </template>
  474. </el-table-column>
  475. </el-table>
  476. </div>
  477. </el-dialog>
  478. <!-- 生成签章 -->
  479. <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
  480. <div >
  481. <img :src="resultMessageImg" alt style="width: 100%" />
  482. <!-- <div id="signaturecode" ref="signaturecode"></div> -->
  483. </div>
  484. </el-dialog>
  485. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  486. <div slot="title" class="dialog-title">
  487. <span>影像上传</span>
  488. </div>
  489. <el-row>
  490. <el-col :span="3">
  491. <div class="tab-style">
  492. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  493. v-for="(item, idx) in tabLimenu" :key="idx">
  494. {{ item.name }}
  495. </li>
  496. </div>
  497. </el-col>
  498. <el-col :span="21" style="height: 320px; overflow-y: auto">
  499. <div class="flex" id="vehicle">
  500. <div class="aaa">
  501. <span>1.行驶证主页</span>
  502. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList1', 'C01')
  503. " :file-list="imgList1" ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  504. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png"
  505. style="width: 100%; height: 100%" />
  506. <div slot="file" slot-scope="{ file }" v-if="imgList1.length > 0">
  507. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  508. <span class="el-upload-list__item-actions">
  509. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  510. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  511. <i class="el-icon-delete"></i>
  512. </span>
  513. </span>
  514. </div>
  515. </el-upload>
  516. </div>
  517. <div class="aaa">
  518. <span>2.行驶证副页</span>
  519. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList2', 'D01')
  520. " :file-list="imgList2" ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  521. <img v-show="imgList2.length == 0" src="../../../../static/carback.png"
  522. style="width: 100%; height: 100%" />
  523. <div slot="file" slot-scope="{ file }">
  524. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  525. <span class="el-upload-list__item-actions">
  526. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  527. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  528. <i class="el-icon-delete"></i>
  529. </span>
  530. </span>
  531. </div>
  532. </el-upload>
  533. </div>
  534. <div class="aaa">
  535. <span>1.新车合格证</span>
  536. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  537. drivingupload(file, 'imageList5', 'imgList9', 'XC00')
  538. " :file-list="imgList9" multiple ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  539. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  540. style="width: 100%; height: 100%" />
  541. <div slot="file" slot-scope="{ file }">
  542. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  543. <span class="el-upload-list__item-actions">
  544. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  545. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  546. <i class="el-icon-delete"></i>
  547. </span>
  548. </span>
  549. </div>
  550. </el-upload>
  551. </div>
  552. <div class="aaa">
  553. <span>2.购车发票</span>
  554. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  555. drivingupload(file, 'imageList5', 'imgList10', 'GC00')
  556. " :file-list="imgList10" multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  557. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  558. style="width: 100%; height: 100%" />
  559. <div slot="file" slot-scope="{ file }">
  560. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  561. <span class="el-upload-list__item-actions">
  562. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  563. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  564. <i class="el-icon-delete"></i>
  565. </span>
  566. </span>
  567. </div>
  568. </el-upload>
  569. </div>
  570. </div>
  571. <div class="flex" id="owner">
  572. <div class="aaa">
  573. <span>1.车主身份证(正面)</span>
  574. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList3', 'C02')
  575. " :file-list="imgList3" multiple ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  576. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  577. style="width: 100%; height: 100%" />
  578. <div slot="file" slot-scope="{ file }">
  579. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  580. <span class="el-upload-list__item-actions">
  581. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  582. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  583. <i class="el-icon-delete"></i>
  584. </span>
  585. </span>
  586. </div>
  587. </el-upload>
  588. </div>
  589. <div class="aaa">
  590. <span>2.车主身份证(反面)</span>
  591. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList4', 'D02')
  592. " :file-list="imgList4" multiple ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  593. <img v-show="imgList4.length == 0" src="../../../../static/userback.png"
  594. style="width: 100%; height: 100%" />
  595. <div slot="file" slot-scope="{ file }">
  596. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  597. <span class="el-upload-list__item-actions">
  598. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  599. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  600. <i class="el-icon-delete"></i>
  601. </span>
  602. </span>
  603. </div>
  604. </el-upload>
  605. </div>
  606. <div class="aaa">
  607. <span>3.营业执照</span>
  608. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  609. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  610. <div slot="file" slot-scope="{ file }">
  611. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  612. <span class="el-upload-list__item-actions">
  613. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  614. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  615. <i class="el-icon-delete"></i>
  616. </span>
  617. </span>
  618. </div>
  619. </el-upload>
  620. </div>
  621. </div>
  622. <div class="flex" id="applicant">
  623. <div class="aaa">
  624. <span>1.投保人身份证(正面)</span>
  625. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList5', 'C03')
  626. " :file-list="imgList5" multiple ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  627. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  628. style="width: 100%; height: 100%" />
  629. <div slot="file" slot-scope="{ file }">
  630. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  631. <span class="el-upload-list__item-actions">
  632. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  633. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  634. <i class="el-icon-delete"></i>
  635. </span>
  636. </span>
  637. </div>
  638. </el-upload>
  639. </div>
  640. <div class="aaa">
  641. <span>2.投保人身份证(反面)</span>
  642. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList6', 'D03')
  643. " :file-list="imgList6" multiple ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  644. <img v-show="imgList6.length == 0" src="../../../../static/userback.png"
  645. style="width: 100%; height: 100%" />
  646. <div slot="file" slot-scope="{ file }">
  647. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  648. <span class="el-upload-list__item-actions">
  649. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  650. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  651. <i class="el-icon-delete"></i>
  652. </span>
  653. </span>
  654. </div>
  655. </el-upload>
  656. </div>
  657. <div class="aaa">
  658. <span>3.营业执照</span>
  659. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  660. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  661. <div slot="file" slot-scope="{ file }">
  662. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  663. <span class="el-upload-list__item-actions">
  664. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  665. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  666. <i class="el-icon-delete"></i>
  667. </span>
  668. </span>
  669. </div>
  670. </el-upload>
  671. </div>
  672. </div>
  673. <div class="flex">
  674. <div class="aaa">
  675. <span id="insured">1.被保人身份证(正面)</span>
  676. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList7', 'C04')
  677. " :file-list="imgList7" multiple ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  678. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  679. style="width: 100%; height: 100%" />
  680. <div slot="file" slot-scope="{ file }">
  681. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  682. <span class="el-upload-list__item-actions">
  683. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  684. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  685. <i class="el-icon-delete"></i>
  686. </span>
  687. </span>
  688. </div>
  689. </el-upload>
  690. </div>
  691. <div class="aaa">
  692. <span>2.被保人身份证(反面)</span>
  693. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList8', 'D04')
  694. " :file-list="imgList8" multiple ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  695. <img v-show="imgList8.length == 0" src="../../../../static/userback.png"
  696. style="width: 100%; height: 100%" />
  697. <div slot="file" slot-scope="{ file }">
  698. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  699. <span class="el-upload-list__item-actions">
  700. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  701. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  702. <i class="el-icon-delete"></i>
  703. </span>
  704. </span>
  705. </div>
  706. </el-upload>
  707. </div>
  708. <div class="aaa">
  709. <span>3.营业执照</span>
  710. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  711. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  712. <div slot="file" slot-scope="{ file }">
  713. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  714. <span class="el-upload-list__item-actions">
  715. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  716. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  717. <i class="el-icon-delete"></i>
  718. </span>
  719. </span>
  720. </div>
  721. </el-upload>
  722. </div>
  723. </div>
  724. <div class="flex" id="relationship">
  725. <div class="aaa">
  726. <span>1.关系证明</span>
  727. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  728. drivingupload(file, 'imageList5', 'imgList11', 'GX00')
  729. " :file-list="imgList11" multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  730. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  731. style="width: 100%; height: 100%" />
  732. <div slot="file" slot-scope="{ file }">
  733. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  734. <span class="el-upload-list__item-actions">
  735. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  736. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  737. <i class="el-icon-delete"></i>
  738. </span>
  739. </span>
  740. </div>
  741. </el-upload>
  742. </div>
  743. </div>
  744. </el-col>
  745. </el-row>
  746. <span slot="footer" class="dialog-footer">
  747. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  748. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  749. </span>
  750. </el-dialog>
  751. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  752. <!-- 报价单 -->
  753. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  754. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  755. <imageDialog ref="imageDialog" :companyId="companyId" :type="2"></imageDialog>
  756. </div>
  757. </template>
  758. <script>
  759. let _self;
  760. import { pathToBase64, base64ToPath } from "@/common/image-tools-base64.js";
  761. import CommonUtil from "@/utils/comutil.js";
  762. import Cookies from "js-cookie";
  763. import QRCode from "qrcodejs2";
  764. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  765. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  766. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  767. import imageDialog from "@/views/Core/components/imageDialog.vue";
  768. import { debounce } from 'lodash';
  769. export default {
  770. data() {
  771. return {
  772. companyId:'',
  773. orderLoaing: false,
  774. qrcodeWidth: "180",
  775. qrcodeHeight: "180",
  776. qrCodeId: Cookies.get("user"),
  777. ddgjdialogVisible: false,
  778. signaturedialogVisible: false,
  779. signaturecode: null,
  780. trajectoryTable: [],
  781. queryOrders: {
  782. carinfo: {},
  783. ownerinfo: {},
  784. applyinfo: {},
  785. insureinfo: {},
  786. extendInfo: {},
  787. },
  788. logoImg: "", //报价单保险公司logo图
  789. value2: "",
  790. optionsStatus: [],
  791. codedialogVisible: false,
  792. codedialogVisiblePro: false,
  793. loading: false,
  794. pageNum: 1, //页数
  795. pageSize: 20, //条数
  796. totalSize: null, //总数
  797. peopleid: "", //工号
  798. pageResult: [], //列表
  799. pageRequest: {
  800. //查询的默认条件
  801. orderNo: "",
  802. frameNo: "",
  803. insuredName: "",
  804. licenseNo: "",
  805. orderStatus: "",
  806. userId: "",
  807. endDate: "",
  808. startDate: "",
  809. pageNum: 1,
  810. pageSize: 20,
  811. deptId: "",
  812. },
  813. orderInfo: {
  814. //选中的订单
  815. ownerinfo: {},
  816. carinfo: {},
  817. applyinfo: {},
  818. insureinfo: {},
  819. kindinfo: [],
  820. riskinfo: [],
  821. ownerinfo: {},
  822. orderCommissionVo: {},
  823. extendInfo: {},
  824. },
  825. carImageList: [], //车辆影像
  826. ownerImageList: [], //车主影像
  827. policyImageList: [], //投保人影像
  828. insuredImageList: [], //被保人影像
  829. carCheckImageList: [], //验车照影像
  830. // 影像控制
  831. pic1Control: false,
  832. pic2Control: false,
  833. pic3Control: false,
  834. pic4Control: false,
  835. pic5Control: false,
  836. showInsureList: false, //是否展示具体险种信息
  837. oldfileList: [], //电子保单数据
  838. inscompany: "", //保险公司名称
  839. licenseNo: "", //车牌号
  840. applyName: "", //车主名字
  841. orderstatus: "", //订单状态
  842. sumpremium: "", //保费合计
  843. jqpremium: "", //交强
  844. sypremium: "", //商业
  845. taxamount: "", //车船税
  846. jypremium: "", //驾意险
  847. jqstartdate: "", //交强时间
  848. systartdate: "", //商业时间
  849. mobile: "", //投保人手机号
  850. qrcode: null,
  851. paycodeimg: "",
  852. userid: "",
  853. downloadstatus: 0,
  854. expands: [],
  855. productsTypeoptions: [],
  856. InsInsuranceKindoptions: [],
  857. width: document.documentElement.clientWidth,
  858. insAreaCompanyList: [], //子订单list
  859. companyList: [], //保险公司
  860. querystatusLoaing: false,
  861. quotationhistorydialogVisible: false, //报价历史显示状态
  862. HistoryList: [], //报价历史数据
  863. natureOfVehicleUseoptions: [],
  864. businessVehicleUseoptions: [],
  865. energyTypeoptions: [],
  866. vehicleTypeoptions: [],
  867. trafficManagementVehicleTypeoptions: [],
  868. outOfBusinessVehicleUseoptions: [],
  869. userIdPor: Cookies.get("user"),
  870. statusPor: "",
  871. deptIdPor: "",
  872. apiType: "",
  873. resultMessageImg:'',
  874. institutionOptions:[],
  875. imageUploaddialogVisible: false,
  876. tabLiIndex: 0,
  877. tabLimenu: [
  878. {
  879. name: "车辆信息",
  880. scroll: "vehicle",
  881. },
  882. {
  883. name: "车主信息",
  884. scroll: "owner",
  885. },
  886. {
  887. name: "投保人信息",
  888. scroll: "applicant",
  889. },
  890. {
  891. name: "被保人信息",
  892. scroll: "insured",
  893. },
  894. {
  895. name: "关系证明",
  896. scroll: "relationship",
  897. },
  898. ],
  899. //影像回显列表
  900. imgList1: [],
  901. imgList2: [],
  902. imgList3: [],
  903. imgList4: [],
  904. imgList5: [],
  905. imgList6: [],
  906. imgList7: [],
  907. imgList8: [],
  908. imgList9: [],
  909. imgList10: [],
  910. imgList11: [],
  911. //影像上传列表
  912. imageList1: [],
  913. imageList2: [],
  914. imageList3: [],
  915. imageList4: [],
  916. imageList5: [],
  917. showViewer: false,
  918. ProViewImg: "",
  919. };
  920. },
  921. components: {
  922. quotationDialog, detailsDialog, quotationDialogPro,imageDialog, "el-image-viewer": () =>
  923. import("element-ui/packages/image/src/image-viewer")},
  924. created() {
  925. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  926. this.getDicType("vehicleType"); //车辆种类
  927. this.getDicType("trafficManagementVehicleType"); //车辆类型
  928. this.getDicType("energyType"); //能源种类
  929. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  930. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  931. this.getDicType("productsType"); //(车辆用途)非营业
  932. this.$api.letter.gainTopList().then((res) => {
  933. this.companyList = res.data;
  934. });
  935. this.$api.insCompany.dicType("insOrderStatus").then((res) => {
  936. this.optionsStatus = res.data.ddList;
  937. });
  938. this.peopleid = Cookies.get("user");
  939. this.$api.dept.findDeptTree().then((res) => {
  940. this.institutionOptions = res.data;
  941. });
  942. // this.findPage();
  943. if (this.isLetterOrder) {
  944. this.pageRequest.deptId = JSON.parse(
  945. localStorage.getItem("user_data")
  946. ).deptId;
  947. if (this.peopleid != "admin") {
  948. this.pageRequest.userId = this.peopleid;
  949. this.findPage();
  950. } else {
  951. this.pageRequest.userId = "admin";
  952. }
  953. }
  954. },
  955. props: {
  956. isLetterOrder: {
  957. type: Boolean,
  958. default: true,
  959. },
  960. },
  961. mounted() {
  962. window.addEventListener("resize", this.getDimensions);
  963. },
  964. beforeCreate() {
  965. _self = this;
  966. },
  967. // props:{
  968. // isdisabled:{
  969. // type:Boolean,
  970. // default:true
  971. // },
  972. // },
  973. filters: {
  974. cap(ele) {
  975. return _self.optionsStatus.find((item) => {
  976. return item.dictValue === ele;
  977. }).dictTag;
  978. },
  979. },
  980. unmounted() {
  981. window.removeEventListener("resize", this.getDimensions);
  982. },
  983. computed: {
  984. allinsOption() {
  985. let cloneData = JSON.parse(JSON.stringify(this.allIns)); // 对源数据深度克隆
  986. return cloneData.filter((father) => {
  987. // 循环所有项,并添加children属性
  988. let branchArr = cloneData.filter(
  989. (child) => father.id == child.parentId
  990. ); // 返回每一项的子级数组
  991. branchArr.length > 0 ? (father.children = branchArr) : ""; //给父级添加一个children属性,并赋值
  992. return father.parentId == 0; //返回第一层
  993. });
  994. },
  995. registerDateFormat() {
  996. let date = new Date(this.orderInfo.carinfo.registerDate);
  997. let year = date.getFullYear();
  998. let month = date.getMonth() + 1;
  999. let day = date.getDate();
  1000. return year + "-" + month + "-" + day;
  1001. },
  1002. issueDateFormat() {
  1003. let date = new Date(this.orderInfo.carinfo.issueDate);
  1004. let year = date.getFullYear();
  1005. let month = date.getMonth() + 1;
  1006. let day = date.getDate();
  1007. return year + "-" + month + "-" + day;
  1008. },
  1009. },
  1010. methods: {
  1011. additionalInformation(companyId,row){
  1012. this.companyId=companyId
  1013. this.$refs.imageDialog.imageEcho(row.quoteno)
  1014. this.$refs.imageDialog.setBackupVisible(true);
  1015. },
  1016. // 关闭查看器
  1017. closeViewer() {
  1018. this.showViewer = false;
  1019. },
  1020. handlePictureCardPreview(img) {
  1021. this.ProViewImg = img;
  1022. this.showViewer = true;
  1023. },
  1024. //影像上传
  1025. drivingupload(file, imageIdList, imgurl, type) {
  1026. let that = this;
  1027. let size = file.size / 1024 / 1024 < 5;
  1028. const isJPG =
  1029. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  1030. if (!size) {
  1031. this.$message.error("上传图片大小不能超过 5MB!");
  1032. this[imgurl] = [];
  1033. return false;
  1034. }
  1035. if (!isJPG) {
  1036. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  1037. this[imgurl] = [];
  1038. return false;
  1039. }
  1040. this[imgurl].push(file);
  1041. var file = file.raw;
  1042. const params = new FormData(); // 声明formData数据类型
  1043. params.append("multipartFile", file);
  1044. params.append("type", "image");
  1045. this.$api.letter.uploadFile(params).then((res) => {
  1046. if (res.code == "200") {
  1047. if (this[imageIdList].some((v) => v.imageType == type)) {
  1048. this[imageIdList].map((val) => {
  1049. if (val.imageType == type) {
  1050. val.imageId = res.data.id;
  1051. }
  1052. });
  1053. } else {
  1054. this[imageIdList].push({
  1055. imageId: res.data.id,
  1056. imageType: type,
  1057. });
  1058. }
  1059. }
  1060. });
  1061. },
  1062. handleRemove1(file, imageIdList, imgList) {
  1063. this[imageIdList].map((ele, index) => {
  1064. if (file.imageId === ele.imageId) {
  1065. this[imageIdList].splice(index, 1);
  1066. }
  1067. return ele;
  1068. });
  1069. if (file.imageId) {
  1070. this[imgList].map((ele, index) => {
  1071. if (file.imageId === ele.imageId) {
  1072. this[imgList].splice(index, 1);
  1073. }
  1074. return ele;
  1075. });
  1076. } else {
  1077. this[imgList].map((ele, index) => {
  1078. if (file.uid === ele.uid) {
  1079. this[imgList].splice(index, 1);
  1080. }
  1081. return ele;
  1082. });
  1083. }
  1084. },
  1085. //影像上传
  1086. uploadinformation() {
  1087. // //上传图片
  1088. const mergedArray = [
  1089. ...this.imageList1,
  1090. ...this.imageList2,
  1091. ...this.imageList3,
  1092. ...this.imageList4,
  1093. ...this.imageList5,
  1094. ];
  1095. let imageparam = {
  1096. imageList: mergedArray,
  1097. quoteNo: this.quoteno,
  1098. };
  1099. this.$api.letter.uploadImages(imageparam).then((responses) => {
  1100. if (responses.code == "200") {
  1101. this.imageEcho(this.quoteno);
  1102. this.$message({ message: responses.msg, type: "success" });
  1103. } else {
  1104. this.$message({ message: responses.msg, type: "error" });
  1105. }
  1106. });
  1107. this.imageUploaddialogVisible = false;
  1108. },
  1109. tabLiScroll(id, idx) {
  1110. this.tabLiIndex = idx;
  1111. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  1112. },
  1113. imageEcho(quotenos) {
  1114. //影像查询
  1115. this.$api.letter.findByQuoteNo(quotenos).then((res) => {
  1116. if (res.code == "200") {
  1117. this.imageList1 = [];
  1118. this.imageList2 = [];
  1119. this.imageList3 = [];
  1120. this.imageList4 = [];
  1121. this.imageList5 = [];
  1122. this.imgList1 = [];
  1123. this.imgList2 = [];
  1124. this.imgList3 = [];
  1125. this.imgList4 = [];
  1126. this.imgList5 = [];
  1127. this.imgList6 = [];
  1128. this.imgList7 = [];
  1129. this.imgList8 = [];
  1130. this.imgList9 = [];
  1131. this.imgList10 = [];
  1132. this.imgList11 = [];
  1133. Object.keys(res.data).forEach((keys) => {
  1134. if (res.data[keys].url) {
  1135. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  1136. switch (keys) {
  1137. case "C01":
  1138. this.imageList1.push({
  1139. imageId: res.data[keys].imageId,
  1140. imageType: res.data[keys].imageType,
  1141. });
  1142. this.imgList1.push(res.data[keys]);
  1143. break;
  1144. case "D01":
  1145. this.imageList1.push({
  1146. imageId: res.data[keys].imageId,
  1147. imageType: res.data[keys].imageType,
  1148. });
  1149. this.imgList2.push(res.data[keys]);
  1150. break;
  1151. case "C02":
  1152. this.imageList2.push({
  1153. imageId: res.data[keys].imageId,
  1154. imageType: res.data[keys].imageType,
  1155. });
  1156. this.imgList3.push(res.data[keys]);
  1157. break;
  1158. case "D02":
  1159. this.imageList2.push({
  1160. imageId: res.data[keys].imageId,
  1161. imageType: res.data[keys].imageType,
  1162. });
  1163. this.imgList4.push(res.data[keys]);
  1164. break;
  1165. case "C03":
  1166. this.imageList3.push({
  1167. imageId: res.data[keys].imageId,
  1168. imageType: res.data[keys].imageType,
  1169. });
  1170. this.imgList5.push(res.data[keys]);
  1171. break;
  1172. case "D03":
  1173. this.imageList3.push({
  1174. imageId: res.data[keys].imageId,
  1175. imageType: res.data[keys].imageType,
  1176. });
  1177. this.imgList6.push(res.data[keys]);
  1178. break;
  1179. case "C04":
  1180. this.imageList4.push({
  1181. imageId: res.data[keys].imageId,
  1182. imageType: res.data[keys].imageType,
  1183. });
  1184. this.imgList7.push(res.data[keys]);
  1185. break;
  1186. case "D04":
  1187. this.imageList4.push({
  1188. imageId: res.data[keys].imageId,
  1189. imageType: res.data[keys].imageType,
  1190. });
  1191. this.imgList8.push(res.data[keys]);
  1192. break;
  1193. case "XC00":
  1194. this.imageList5.push({
  1195. imageId: res.data[keys].imageId,
  1196. imageType: res.data[keys].imageType,
  1197. });
  1198. this.imgList9.push(res.data[keys]);
  1199. break;
  1200. case "GC00":
  1201. this.imageList5.push({
  1202. imageId: res.data[keys].imageId,
  1203. imageType: res.data[keys].imageType,
  1204. });
  1205. this.imgList10.push(res.data[keys]);
  1206. break;
  1207. case "GX00":
  1208. this.imageList5.push({
  1209. imageId: res.data[keys].imageId,
  1210. imageType: res.data[keys].imageType,
  1211. });
  1212. this.imgList11.push(res.data[keys]);
  1213. break;
  1214. default:
  1215. break;
  1216. }
  1217. }
  1218. });
  1219. } else {
  1220. this.$message({ message: res.msg, type: "info" });
  1221. }
  1222. });
  1223. },
  1224. //报价历史点击事件
  1225. onoffQuotationHistory(row) {
  1226. this.quotationhistoryRow = row;
  1227. this.RadioHistoryChange();
  1228. this.quotationhistorydialogVisible = true;
  1229. },
  1230. //报价轨迹查询
  1231. RadioHistoryChange() {
  1232. let params = {
  1233. orderNo: this.quotationhistoryRow.orderno,
  1234. orderStatus: "",
  1235. };
  1236. this.$api.letter.queryQuoteHistory(params).then((res) => {
  1237. res.data.forEach((item) => {
  1238. if (item.accidentInfo) {
  1239. item.accidentInfo.constructor === Object
  1240. ? [item.accidentInfo]
  1241. : item.accidentInfo;
  1242. }
  1243. });
  1244. this.HistoryList = res.data;
  1245. });
  1246. },
  1247. getDicType(type) {
  1248. this.$api.insCompany.dicType(type).then((res) => {
  1249. if (res.code == 200) {
  1250. this[type + "options"] = res.data.ddList;
  1251. }
  1252. });
  1253. },
  1254. capType(val) {
  1255. if (val == "0") {
  1256. return "success";
  1257. }
  1258. if (val == "1") {
  1259. return "warning";
  1260. }
  1261. if (val == "2" || val == "3" || val == "4") {
  1262. return "danger";
  1263. }
  1264. },
  1265. // 撤销二维码
  1266. revokeCode(id) {
  1267. this.$api.letter.getRevokeQrCode(id).then((res) => {
  1268. if (res.code == 200) {
  1269. this.$message({
  1270. message: res.msg,
  1271. type: "success",
  1272. });
  1273. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1274. this.findPage();
  1275. }
  1276. });
  1277. },
  1278. bjdpreview(companyId, userId) {
  1279. let params = {
  1280. companyId: companyId,
  1281. };
  1282. this.$api.letter.getByCompanyId(params).then((res) => {
  1283. if (res.code == "200") {
  1284. var data = res.data;
  1285. if (data.kindinfo != null) {
  1286. data.kindinfo.map((ele, index) => {
  1287. switch (ele.kindCode) {
  1288. case "A":
  1289. if (ele.amount == 1) {
  1290. ele.amount = "投保";
  1291. } else {
  1292. ele.amount = ele.amount;
  1293. }
  1294. break;
  1295. case "D4":
  1296. case "SY_FJ_YBW2":
  1297. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  1298. break;
  1299. case "MJ1":
  1300. case "MJ2":
  1301. case "MJ3":
  1302. case "MJ4":
  1303. ele.deductibleRate = ele.deductibleRate + "%";
  1304. break;
  1305. default:
  1306. ele.amount = this.toChinesNum(ele.amount);
  1307. }
  1308. return ele;
  1309. });
  1310. }
  1311. data.logoImg = this.iconfftter(res.data.inscompany);
  1312. this.queryOrders = data;
  1313. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  1314. if (res.code == 200) {
  1315. if (res.data[0] == "GD") {
  1316. this.$refs.quotationDialogPro.setBackupVisible(true);
  1317. } else {
  1318. this.$refs.quotationDialog.setBackupVisible(true);
  1319. }
  1320. }
  1321. });
  1322. }
  1323. });
  1324. },
  1325. toChinesNum(num) {
  1326. if (num.toString().length == 4) {
  1327. let overQian = Math.floor(num / 1000);
  1328. let result = overQian + "千";
  1329. return result;
  1330. } else {
  1331. let overWan = Math.floor(num / 10000);
  1332. let result = overWan + "万";
  1333. return result;
  1334. }
  1335. },
  1336. iconfftter(icon) {
  1337. return CommonUtil.getDataName({
  1338. dataList: this.global.insCompanyList,
  1339. value: "name",
  1340. label: "icon",
  1341. data: icon,
  1342. });
  1343. },
  1344. getRowClass(scope, rowIndex) {
  1345. if (scope.row.insAreaCompanyList.length == 0) {
  1346. //判断当前行是否有子数据或者根据实际情况设置
  1347. return "row-expand-cover";
  1348. }
  1349. },
  1350. getDimensions() {
  1351. this.width = document.documentElement.clientWidth - 350 + "px";
  1352. },
  1353. //订单修改
  1354. CloseEdit(index, row) {
  1355. this.$api.letter.getByOrderNo({ orderNo: row.orderno }).then((res) => {
  1356. if (res.code == 200) {
  1357. if (this.isLetterOrder) {
  1358. this.$router.push({
  1359. path: "/letter/letter",
  1360. query: { data: res.data },
  1361. });
  1362. } else {
  1363. res.data.activeName = "999";
  1364. this.$emit("orderEdit", res.data);
  1365. }
  1366. } else {
  1367. this.$message.error(res.msg);
  1368. }
  1369. });
  1370. },
  1371. resendData(index, row) {
  1372. this.quoteno = row.quoteno;
  1373. this.imageEcho(row.quoteno)
  1374. this.imageUploaddialogVisible = true;
  1375. },
  1376. //二维码生成插件
  1377. creatQrCode(text) {
  1378. // 查找并删除旧的二维码DOM元素
  1379. let element = document.getElementById("qrcode");
  1380. while (element.firstChild) {
  1381. element.removeChild(element.firstChild);
  1382. }
  1383. // 创建新的QRCode实例
  1384. this.qrcode = new QRCode("qrcode", {
  1385. text: text,
  1386. width: this.qrcodeWidth,
  1387. height: this.qrcodeHeight,
  1388. colorDark: "#000000",
  1389. colorLight: "#ffffff",
  1390. correctLevel: QRCode.CorrectLevel.H,
  1391. });
  1392. },
  1393. //更新订单状态
  1394. refreshStatus(item) {
  1395. let inscompany = {
  1396. 国任财险: "updateOrderInfoGuoren",
  1397. 中煤财险: "orderStatuszhongmei",
  1398. 太平财险: "auditStatusQuery",
  1399. 泰康财险: "auditStatusQuery",
  1400. 华农财险: "auditStatusQuery",
  1401. 恒邦财险: "auditStatusQuery",
  1402. 众安财险: "auditStatusQuery",
  1403. 中国人寿: "auditStatusQuery",
  1404. 安盛天平: "auditStatusQuery",
  1405. 诚泰财险: "auditStatusQuery",
  1406. 紫金财险: "auditStatusQueryZijin",
  1407. 渤海财险: "orderStatusbohai",
  1408. };
  1409. Object.keys(inscompany).forEach((val) => {
  1410. if (val == item.inscompany) {
  1411. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  1412. (res) => {
  1413. if (res.code == 200) {
  1414. this.$message({
  1415. message: res.msg ? res.msg : "已刷新状态",
  1416. type: "success",
  1417. });
  1418. this.findPage();
  1419. } else {
  1420. this.$message({
  1421. showClose: true,
  1422. dangerouslyUseHTMLString: true,
  1423. message: res.msg.replace(/\n/g, "<br><br>"),
  1424. type: "error",
  1425. duration: 7000,
  1426. });
  1427. // this.$message({ message: res.msg, type: "error" });
  1428. }
  1429. }
  1430. );
  1431. }
  1432. });
  1433. if (item.inscompany == "永诚财险") {
  1434. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  1435. if (res.code == 200) {
  1436. this.$message({
  1437. message: res.msg ? res.msg : "已刷新状态",
  1438. type: "success",
  1439. });
  1440. this.findPage();
  1441. } else {
  1442. this.$message({
  1443. showClose: true,
  1444. dangerouslyUseHTMLString: true,
  1445. message: res.msg.replace(/\n/g, "<br><br>"),
  1446. type: "error",
  1447. duration: 7000,
  1448. });
  1449. }
  1450. });
  1451. }
  1452. if (item.inscompany == "华泰财险") {
  1453. let HtApiType =
  1454. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  1455. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1456. if (res.code == 200) {
  1457. this.$message({
  1458. message: res.msg ? res.msg : "已刷新状态",
  1459. type: "success",
  1460. });
  1461. this.findPage();
  1462. } else {
  1463. this.$message({
  1464. showClose: true,
  1465. dangerouslyUseHTMLString: true,
  1466. message: res.msg.replace(/\n/g, "<br><br>"),
  1467. type: "error",
  1468. duration: 7000,
  1469. });
  1470. }
  1471. });
  1472. }
  1473. if (item.inscompany == "大家财险") {
  1474. let HtApiType =
  1475. item.apiType == 2 ? "auditStatusQuery" : "updateOrderInfoDajia";
  1476. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1477. if (res.code == 200) {
  1478. this.$message({
  1479. message: res.msg ? res.msg : "已刷新状态",
  1480. type: "success",
  1481. });
  1482. this.findPage();
  1483. } else {
  1484. this.$message({
  1485. showClose: true,
  1486. dangerouslyUseHTMLString: true,
  1487. message: res.msg.replace(/\n/g, "<br><br>"),
  1488. type: "error",
  1489. duration: 7000,
  1490. });
  1491. }
  1492. });
  1493. }
  1494. },
  1495. //华泰刷新核保状态
  1496. updateStatusHuatai(item) {
  1497. let HtApiType =
  1498. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  1499. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1500. if (res.code == 200) {
  1501. this.$message({
  1502. message: res.msg ? res.msg : "已刷新状态",
  1503. type: "success",
  1504. });
  1505. this.findPage();
  1506. } else {
  1507. this.$message({
  1508. showClose: true,
  1509. dangerouslyUseHTMLString: true,
  1510. message: res.msg.replace(/\n/g, "<br><br>"),
  1511. type: "error",
  1512. duration: 7000,
  1513. });
  1514. }
  1515. });
  1516. },
  1517. //查询缴费状态
  1518. querystatus(item, index) {
  1519. this.querystatusLoaing = true;
  1520. let inscompany = {
  1521. 国任财险: "updateOrderInfoGuoren",
  1522. 大家财险: "updateOrderInfoDajia",
  1523. 紫金财险: "getOrderDetail",
  1524. 中煤财险: "paymentEnquiry",
  1525. 渤海财险: "getOrderDetailboHai",
  1526. 平安财险: "getDocumentStatusList",
  1527. };
  1528. Object.keys(inscompany).forEach((val) => {
  1529. if (val == item.inscompany) {
  1530. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  1531. (res) => {
  1532. if (res.code == 200) {
  1533. this.$message({
  1534. message: res.msg ? res.msg : "已刷新状态",
  1535. type: "success",
  1536. });
  1537. this.quotationhistorydialogVisible
  1538. ? this.RadioHistoryChange()
  1539. : "";
  1540. this.findPage();
  1541. this.querystatusLoaing = false;
  1542. } else {
  1543. this.querystatusLoaing = false;
  1544. this.$message({ message: res.msg, type: "error" });
  1545. }
  1546. }
  1547. );
  1548. }
  1549. });
  1550. if (item.inscompany == "永诚财险") {
  1551. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  1552. if (res.code == 200) {
  1553. this.$message({
  1554. message: res.msg ? res.msg : "已刷新状态",
  1555. type: "success",
  1556. });
  1557. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1558. this.findPage();
  1559. this.querystatusLoaing = false;
  1560. } else {
  1561. this.querystatusLoaing = false;
  1562. this.$message({ message: res.msg, type: "error" });
  1563. }
  1564. });
  1565. }
  1566. if (item.inscompany == "华泰财险") {
  1567. let HtApiType =
  1568. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoHuatai";
  1569. this.$api.letter[HtApiType]({
  1570. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1571. }).then((res) => {
  1572. if (res.code == 200) {
  1573. this.$message({
  1574. message: res.msg ? res.msg : "已刷新状态",
  1575. type: "success",
  1576. });
  1577. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1578. this.findPage();
  1579. this.querystatusLoaing = false;
  1580. } else {
  1581. this.querystatusLoaing = false;
  1582. this.$message({ message: res.msg, type: "error" });
  1583. }
  1584. });
  1585. }
  1586. if (item.inscompany == "大家财险") {
  1587. let DJApiType =
  1588. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoDajia";
  1589. this.$api.letter[DJApiType]({
  1590. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1591. }).then((res) => {
  1592. if (res.code == 200) {
  1593. this.$message({
  1594. message: res.msg ? res.msg : "已刷新状态",
  1595. type: "success",
  1596. });
  1597. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1598. this.findPage();
  1599. this.querystatusLoaing = false;
  1600. } else {
  1601. this.querystatusLoaing = false;
  1602. this.$message({ message: res.msg, type: "error" });
  1603. }
  1604. });
  1605. }
  1606. if (
  1607. item.inscompany == "诚泰财险" ||
  1608. item.inscompany == "恒邦财险" ||
  1609. item.inscompany == "众安财险" ||
  1610. item.inscompany == "中国人寿" ||
  1611. item.inscompany == "安盛天平" ||
  1612. item.inscompany == "太平财险" ||
  1613. item.inscompany == "泰康财险" ||
  1614. item.inscompany == "华农财险"
  1615. ) {
  1616. this.$api.letter
  1617. .pychonverifyPayment({ subOrderNo: item.id })
  1618. .then((res) => {
  1619. if (res.code == "200") {
  1620. this.$message({
  1621. message: "订单支付成功,正在更改状态",
  1622. type: "success",
  1623. });
  1624. this.quotationhistorydialogVisible
  1625. ? this.RadioHistoryChange()
  1626. : "";
  1627. this.findPage();
  1628. this.querystatusLoaing = false;
  1629. } else {
  1630. this.querystatusLoaing = false;
  1631. this.$message({ message: res.msg, type: "error" });
  1632. }
  1633. });
  1634. }
  1635. },
  1636. cancelorder(item) {
  1637. this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
  1638. if (res.code == 200) {
  1639. this.$message({
  1640. message: res.msg,
  1641. type: "success",
  1642. });
  1643. this.findPage();
  1644. }
  1645. });
  1646. },
  1647. //二维码
  1648. carcode(item) {
  1649. this.apiType = item.apiType;
  1650. this.$api.letter.getQrCode(item.id).then((res) => {
  1651. if (res.code == "200") {
  1652. this.inscompany = res.data.inscompany; //保险公司
  1653. this.sumpremium = res.data.sumpremium; //总价
  1654. this.licenseNo = res.data.cPlateNo; //车牌号
  1655. this.applyName = res.data.cInsuredNme; //车主
  1656. this.jqpremium = res.data.jqpremium; //交强
  1657. this.sypremium = res.data.sypremium; //商业
  1658. this.taxamount = res.data.taxamount; //车船税
  1659. this.jypremium = res.data.jypremium; //驾意险
  1660. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  1661. this.systartdate = res.data.syStartDate; //商业起保日期
  1662. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1663. let qrCodeUrl = res.data.qrCodeUrl;
  1664. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  1665. if (res.code == 200) {
  1666. if (res.data[0] == "GD") {
  1667. this.codedialogVisiblePro = true;
  1668. this.qrcodeWidth = "154";
  1669. this.qrcodeHeight = "154";
  1670. } else {
  1671. this.codedialogVisible = true;
  1672. }
  1673. this.$nextTick(function () {
  1674. if (item.inscompany == "太平财险") {
  1675. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1676. let animgBase64 = `data:image/png;base64,${anresult}`;
  1677. base64ToPath(animgBase64).then((path) => {
  1678. this.paycodeimg = path;
  1679. });
  1680. } else if (item.inscompany == "华泰财险") {
  1681. switch (item.apiType) {
  1682. case 1:
  1683. this.creatQrCode(qrCodeUrl);
  1684. break;
  1685. case 2:
  1686. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1687. let animgBase64 = `data:image/png;base64,${anresult}`;
  1688. base64ToPath(animgBase64).then((path) => {
  1689. console.log(path)
  1690. this.paycodeimg = path;
  1691. });
  1692. break;
  1693. }
  1694. } else if (item.inscompany == "大家财险") {
  1695. switch (item.apiType) {
  1696. case 1:
  1697. this.creatQrCode(qrCodeUrl);
  1698. break;
  1699. case 2:
  1700. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1701. let animgBase64 = `data:image/png;base64,${anresult}`;
  1702. base64ToPath(animgBase64).then((path) => {
  1703. this.paycodeimg = path;
  1704. });
  1705. break;
  1706. }
  1707. } else {
  1708. this.creatQrCode(qrCodeUrl);
  1709. }
  1710. });
  1711. }
  1712. });
  1713. } else {
  1714. this.$message({ message: res.msg, type: "warning" });
  1715. }
  1716. });
  1717. // this.$api.letter.getByCompanyId(params).then(res => {
  1718. // if (res.code == '200') {
  1719. // this.inscompany = res.data.inscompany;//保险公司
  1720. // this.sumpremium = res.data.sumpremium;//总价
  1721. // this.licenseNo = res.data.carinfo.licenseNo;//车牌号
  1722. // this.applyName = res.data.insuredname;//车主
  1723. // this.jqpremium = res.data.jqpremium;//交强
  1724. // this.sypremium = res.data.sypremium;//商业
  1725. // this.taxamount = res.data.taxamount;//车船税
  1726. // this.jypremium = res.data.jypremium;//驾意险
  1727. // this.jqstartdate = res.data.jqstartdate;//交强起保日期
  1728. // this.systartdate = res.data.systartdate;//商业起保日期
  1729. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1730. // switch (item.inscompany) {
  1731. // case "永安财险":
  1732. // let url = this.global.h5BaseUrl + '/#/pages/carInsure1/yonganCode?companyId=' + item.id + '&mobile=' + this.mobile;
  1733. // this.$nextTick(() => {
  1734. // this.creatQrCode(url);
  1735. // });
  1736. // break;
  1737. // case "人保财险":
  1738. // case "中煤财险":
  1739. // case "华泰财险":
  1740. // case "永诚财险":
  1741. // case "紫金财险":
  1742. // this.$nextTick(() => {
  1743. // this.creatQrCode(res.data.paymentLink);
  1744. // });
  1745. // break;
  1746. // case "众安财险":
  1747. // this.paycodeimg = res.data.paymentLink;
  1748. // break;
  1749. // case "中国人寿":
  1750. // this.$nextTick(() => {
  1751. // this.creatQrCode(res.data.paymentLink);
  1752. // });
  1753. // break;
  1754. // case "恒邦财险":
  1755. // this.paycodeimg = res.data.paymentLink;
  1756. // break;
  1757. // case "国任财险":
  1758. // this.paycodeimg = res.data.paymentLink;
  1759. // break;
  1760. // case "安盛天平":
  1761. // let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
  1762. // let animgBase64 = `data:image/png;base64,${anresult}`;
  1763. // base64ToPath(animgBase64)
  1764. // .then(path => {
  1765. // this.paycodeimg = path;
  1766. // })
  1767. // break;
  1768. // default:
  1769. // this.$message({ message: "识别不到保险公司,请检查", type: "warning" })
  1770. // }
  1771. // this.codedialogVisible = true;
  1772. // } else {
  1773. // this.$message({ message: res.msg, type: "warning" })
  1774. // }
  1775. // })
  1776. },
  1777. signature(row) {
  1778. this.$api.letter.pingAnsignEleApply({ companyId: row.id }).then((res) => {
  1779. if (res.code == 200 && res.data) {
  1780. this.resultMessageImg=process.env.BASE_URL+res.data.resultMessage
  1781. this.signaturedialogVisible = true;
  1782. // 查找并删除旧的二维码DOM元素
  1783. // let element = document.getElementById("signaturecode");
  1784. // while (element.firstChild) {
  1785. // element.removeChild(element.firstChild);
  1786. // }
  1787. // this.signaturecode = new QRCode("signaturecode", {
  1788. // text: resultMessage,
  1789. // width: 180,
  1790. // height: 180,
  1791. // colorDark: "#000000",
  1792. // colorLight: "#ffffff",
  1793. // correctLevel: QRCode.CorrectLevel.H,
  1794. // });
  1795. } else {
  1796. this.$message({
  1797. message: res.msg || "暂无数据!",
  1798. type: "warning",
  1799. });
  1800. }
  1801. });
  1802. },
  1803. orderTrajectory(row, item) {
  1804. this.$api.letter.queryBySuborder(item.id).then((res) => {
  1805. if (res.code == 200 && res.data.length > 0) {
  1806. this.ddgjdialogVisible = true;
  1807. this.trajectoryTable = res.data;
  1808. } else {
  1809. this.$message({
  1810. message: res.msg || "暂无数据!",
  1811. type: "warning",
  1812. });
  1813. }
  1814. });
  1815. },
  1816. capTypedictTag(val, option) {
  1817. if (option.find((item) => item.dictValue == val)) {
  1818. return option.find((item) => item.dictValue == val).dictTag;
  1819. } else {
  1820. return "-";
  1821. }
  1822. },
  1823. //应用详情
  1824. OrderDetails(dy, item) {
  1825. this.carImageList = [];
  1826. this.ownerImageList = []; //车主影像
  1827. this.policyImageList = []; //投保人影像
  1828. this.insuredImageList = []; //被保人影像
  1829. this.carCheckImageList = []; //验车照影像
  1830. // 影像控制
  1831. this.pic1Control = false;
  1832. this.pic2Control = false;
  1833. this.pic3Control = false;
  1834. this.pic4Control = false;
  1835. this.pic5Control = false;
  1836. for (let i = 0; i < this.global.insureList.length; i++) {
  1837. this.global.insureList[i].coveragePremium = "";
  1838. this.global.insureList[i].amount = 0;
  1839. }
  1840. let params = {
  1841. companyId: item.id,
  1842. };
  1843. this.$api.letter.getByCompanyId(params).then((res) => {
  1844. if (res.code == 200) {
  1845. this.licenseNo = res.data.licenseno; //车牌号
  1846. this.inscompany = res.data.inscompany; //保险公司
  1847. // res.data.carinfo.carnature = this.natureOfVehicleUseCap(
  1848. // res.data.carinfo.carnature
  1849. // );
  1850. if (
  1851. (res.data.carinfo.carnature &&
  1852. res.data.carinfo.carnature == "02") ||
  1853. res.data.carinfo.carnature == "非营业"
  1854. ) {
  1855. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1856. res.data.carinfo.vehicleUse,
  1857. this.outOfBusinessVehicleUseoptions
  1858. );
  1859. } else {
  1860. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1861. res.data.carinfo.vehicleUse,
  1862. this.businessVehicleUseoptions
  1863. );
  1864. }
  1865. res.data.carinfo.carnature = this.capTypedictTag(
  1866. res.data.carinfo.carnature,
  1867. this.natureOfVehicleUseoptions
  1868. );
  1869. res.data.carinfo.cartype = res.data.carinfo.cartype
  1870. ? this.capTypedictTag(
  1871. res.data.carinfo.cartype,
  1872. this.trafficManagementVehicleTypeoptions
  1873. )
  1874. : "";
  1875. res.data.carinfo.cimodelclass = res.data.carinfo.cimodelclass
  1876. ? this.capTypedictTag(
  1877. res.data.carinfo.cimodelclass,
  1878. this.vehicleTypeoptions
  1879. )
  1880. : "";
  1881. res.data.carinfo.energyType = res.data.carinfo.energyType
  1882. ? this.capTypedictTag(
  1883. res.data.carinfo.energyType,
  1884. this.energyTypeoptions
  1885. )
  1886. : "";
  1887. if (res.data.accidentInfo) {
  1888. res.data.accidentInfo.constructor === Object
  1889. ? [res.data.accidentInfo]
  1890. : res.data.accidentInfo;
  1891. }
  1892. Object.assign(this.orderInfo, res.data);
  1893. if (this.orderInfo.riskinfo && this.orderInfo.riskinfo.length > 0) {
  1894. for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
  1895. if (this.orderInfo.riskinfo[i].riskCode == "0510") {
  1896. for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
  1897. for (let m = 0; m < this.global.insureList.length; m++) {
  1898. if (
  1899. this.orderInfo.kindinfo[j].kindCode ==
  1900. this.global.insureList[m].kindCode
  1901. ) {
  1902. this.global.insureList[m].coveragePremium =
  1903. this.orderInfo.kindinfo[j].coveragePremium;
  1904. if (this.orderInfo.kindinfo[j].kindCode == "B") {
  1905. this.global.insureList[9].amtList[0].value =
  1906. this.orderInfo.kindinfo[j].amount;
  1907. }
  1908. if (this.orderInfo.kindinfo[j].kindCode == "A") {
  1909. this.global.insureList[m].amount = "1";
  1910. } else if (this.global.insureList[m].kindCode == "D4") {
  1911. this.global.insureList[m].amount =
  1912. this.orderInfo.kindinfo[j].unitAmount;
  1913. } else if (
  1914. this.global.insureList[m].isMainRisk ||
  1915. this.global.insureList[m].kindCode == "BD" ||
  1916. this.global.insureList[m].kindCode == "L"
  1917. ) {
  1918. this.global.insureList[m].amount =
  1919. this.orderInfo.kindinfo[j].amount;
  1920. } else {
  1921. this.global.insureList[m].amount =
  1922. this.orderInfo.kindinfo[j].deductibleRate;
  1923. }
  1924. }
  1925. }
  1926. }
  1927. }
  1928. }
  1929. }
  1930. // 获取影像
  1931. this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
  1932. Object.keys(resImage.data).forEach((keys) => {
  1933. if (resImage.data[keys]) {
  1934. resImage.data[keys].url = resImage.data[keys].url
  1935. ? process.env.BASE_URL + resImage.data[keys].url
  1936. : null;
  1937. switch (keys) {
  1938. case "C01":
  1939. case "D01":
  1940. resImage.data[keys].url
  1941. ? this.carImageList.push(resImage.data[keys].url)
  1942. : "";
  1943. break;
  1944. case "C02":
  1945. case "D02":
  1946. resImage.data[keys].url
  1947. ? this.ownerImageList.push(resImage.data[keys].url)
  1948. : "";
  1949. break;
  1950. case "C03":
  1951. case "D03":
  1952. resImage.data[keys].url
  1953. ? this.policyImageList.push(resImage.data[keys].url)
  1954. : "";
  1955. break;
  1956. case "C04":
  1957. case "D04":
  1958. resImage.data[keys].url
  1959. ? this.insuredImageList.push(resImage.data[keys].url)
  1960. : "";
  1961. break;
  1962. case "XC00":
  1963. case "GC00":
  1964. case "GX00":
  1965. resImage.data[keys].url
  1966. ? this.carCheckImageList.push(resImage.data[keys].url)
  1967. : "";
  1968. break;
  1969. default:
  1970. break;
  1971. }
  1972. }
  1973. });
  1974. let obj = {
  1975. carImageList: this.carImageList,
  1976. ownerImageList: this.ownerImageList,
  1977. policyImageList: this.policyImageList,
  1978. insuredImageList: this.insuredImageList,
  1979. carCheckImageList: this.carCheckImageList,
  1980. };
  1981. this.$refs.detailsDialog.imageFun(obj);
  1982. });
  1983. this.pic1Control = false;
  1984. this.pic2Control = false;
  1985. this.pic3Control = false;
  1986. this.pic4Control = false;
  1987. this.pic5Control = false;
  1988. this.oldfileList = [];
  1989. let businessList = [];
  1990. let accidentList = [];
  1991. if (res.data.orderstatus == "3") {
  1992. if (res.data.isExternal == 1) {
  1993. this.$api.letter
  1994. .getPolicyPrintexternalOrder(res.data.id)
  1995. .then((res1) => {
  1996. if (res1.code == 200) {
  1997. if (res1.data.jqPolicy) {
  1998. this.oldfileList.push({
  1999. fileTitle: "交强电子保单",
  2000. filename: this.orderInfo.jqpolicyno,
  2001. fileurl: res1.data.jqPolicy,
  2002. });
  2003. }
  2004. if (res1.data.jqSign) {
  2005. this.oldfileList.push({
  2006. fileTitle: "交强电子标志",
  2007. filename: this.orderInfo.jqpolicyno,
  2008. fileurl: res1.data.jqSign,
  2009. });
  2010. }
  2011. if (res1.data.jqSign) {
  2012. accidentList.push({
  2013. fileTitle: "商业电子保单",
  2014. filename: this.orderInfo.sypolicyno,
  2015. fileurl: res1.data.jqSign,
  2016. });
  2017. }
  2018. if (res1.data.noPolicy) {
  2019. accidentList.push({
  2020. fileTitle: "驾意险保单",
  2021. filename: "驾意险保单",
  2022. fileurl: res1.data.noPolicy,
  2023. });
  2024. }
  2025. } else {
  2026. this.$message.error(res1.msg);
  2027. }
  2028. });
  2029. } else {
  2030. switch (res.data.inscompany) {
  2031. case "永安财险":
  2032. if (this.orderInfo.jqpolicyno) {
  2033. this.$api.letter
  2034. .getPolicyPrint({
  2035. companyId: item.id,
  2036. policytype: "jq",
  2037. })
  2038. .then((res) => {
  2039. //交强保单
  2040. if (res.data) {
  2041. let result = res.data.replace(/[\r\n]/g, "");
  2042. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2043. base64ToPath(pdfBase64).then((path) => {
  2044. if (path) {
  2045. this.oldfileList.push({
  2046. fileTitle: "交强电子保单",
  2047. filename: this.orderInfo.jqpolicyno,
  2048. fileurl: path,
  2049. });
  2050. }
  2051. });
  2052. }
  2053. });
  2054. this.$api.letter
  2055. .getPolicyPrint2({
  2056. companyId: item.id,
  2057. policytype: "jq",
  2058. })
  2059. .then((res) => {
  2060. //交强保单
  2061. if (res.data) {
  2062. let result = res.data.replace(/[\r\n]/g, "");
  2063. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2064. base64ToPath(pdfBase64).then((path) => {
  2065. if (path) {
  2066. this.oldfileList.push({
  2067. fileTitle: "交强电子标志",
  2068. filename: this.orderInfo.jqpolicyno,
  2069. fileurl: path,
  2070. });
  2071. }
  2072. });
  2073. }
  2074. });
  2075. }
  2076. if (this.orderInfo.sypolicyno) {
  2077. this.$api.letter
  2078. .getPolicyPrint({
  2079. companyId: item.id,
  2080. policytype: "sy",
  2081. })
  2082. .then((res) => {
  2083. //商业保单
  2084. if (res.data) {
  2085. let result = res.data.replace(/[\r\n]/g, "");
  2086. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2087. base64ToPath(pdfBase64).then((path) => {
  2088. if (path) {
  2089. businessList.push({
  2090. fileTitle: "商业电子保单",
  2091. filename: this.orderInfo.sypolicyno,
  2092. fileurl: path,
  2093. });
  2094. }
  2095. });
  2096. }
  2097. });
  2098. }
  2099. break;
  2100. case "华泰财险":
  2101. switch (item.apiType) {
  2102. case 1:
  2103. if (this.orderInfo.jqpolicyno) {
  2104. this.$api.letter
  2105. .HuataigetPolicyPrint({
  2106. companyId: item.id,
  2107. riskCode: "0507",
  2108. type: "2", //2:保单
  2109. })
  2110. .then((res) => {
  2111. if (res.data) {
  2112. if (res.data.jqxPolicyUrl) {
  2113. this.oldfileList.push({
  2114. fileTitle: "交强电子保单",
  2115. filename: this.orderInfo.jqpolicyno,
  2116. fileurl: res.data.jqxPolicyUrl,
  2117. });
  2118. }
  2119. if (res.data.jqxFlagUrl) {
  2120. this.oldfileList.push({
  2121. fileTitle: "交强电子标志",
  2122. filename: this.orderInfo.jqpolicyno,
  2123. fileurl: res.data.jqxFlagUrl,
  2124. });
  2125. }
  2126. } else {
  2127. this.$message.error(res.msg);
  2128. }
  2129. });
  2130. }
  2131. if (this.orderInfo.sypolicyno) {
  2132. this.$api.letter
  2133. .HuataigetPolicyPrint({
  2134. companyId: item.id,
  2135. riskCode: "0510",
  2136. type: "2", //2:保单
  2137. })
  2138. .then((res) => {
  2139. if (res.data && res.data.syxPolicyUrl) {
  2140. businessList.push({
  2141. fileTitle: "商业电子保单",
  2142. filename: this.orderInfo.sypolicyno,
  2143. fileurl: res.data.syxPolicyUrl,
  2144. });
  2145. } else {
  2146. this.$message.error(res.msg);
  2147. }
  2148. });
  2149. }
  2150. break;
  2151. case 2:
  2152. if (
  2153. this.orderInfo.jqpolicyno ||
  2154. this.orderInfo.sypolicyno
  2155. ) {
  2156. this.$api.letter
  2157. .pythongetPolicyPrint({
  2158. subOrderNo: item.id,
  2159. })
  2160. .then((res) => {
  2161. if (res.code == 200 && res.data) {
  2162. if (res.data.jqxPolicyUrl) {
  2163. this.oldfileList.push({
  2164. fileTitle: "交强电子保单",
  2165. filename: this.orderInfo.jqpolicyno,
  2166. fileurl: res.data.jqxPolicyUrl,
  2167. });
  2168. }
  2169. if (res.data.jqxFlagUrl) {
  2170. this.oldfileList.push({
  2171. fileTitle: "交强电子标志",
  2172. filename: this.orderInfo.jqpolicyno,
  2173. fileurl: res.data.jqxFlagUrl,
  2174. });
  2175. }
  2176. if (res.data.syxPolicyUrl) {
  2177. businessList.push({
  2178. fileTitle: "商业电子保单",
  2179. filename: this.orderInfo.sypolicyno,
  2180. fileurl: res.data.syxPolicyUrl,
  2181. });
  2182. }
  2183. if (
  2184. res.data.jyxInfoList &&
  2185. res.data.jyxInfoList.length > 0
  2186. ) {
  2187. res.data.jyxInfoList.forEach((val) => {
  2188. accidentList.push({
  2189. fileTitle: "驾意险保单",
  2190. filename: "驾意险保单",
  2191. fileurl: val.jyx_policy_url,
  2192. });
  2193. });
  2194. }
  2195. } else {
  2196. this.$message.error(res.msg);
  2197. }
  2198. });
  2199. }
  2200. break;
  2201. }
  2202. break;
  2203. case "中煤财险":
  2204. if (this.orderInfo.jqpolicyno) {
  2205. this.$api.letter
  2206. .ZhongmeigetPolicyPrint({
  2207. companyId: item.id,
  2208. riskCode: "0507",
  2209. type: "2", //2:保单
  2210. })
  2211. .then((res) => {
  2212. if (res.data && res.data[0]) {
  2213. this.oldfileList.push({
  2214. fileTitle: "交强电子保单",
  2215. filename: this.orderInfo.jqpolicyno,
  2216. fileurl: res.data[0],
  2217. });
  2218. } else {
  2219. this.$message.error(res.msg);
  2220. }
  2221. });
  2222. this.$api.letter
  2223. .ZhongmeigetPolicyPrint({
  2224. companyId: item.id,
  2225. riskCode: "0507",
  2226. type: "1", // 1:标志
  2227. })
  2228. .then((res) => {
  2229. if (res.data && res.data[0]) {
  2230. this.oldfileList.push({
  2231. fileTitle: "交强电子标志",
  2232. filename: this.orderInfo.jqpolicyno,
  2233. fileurl: res.data[0],
  2234. });
  2235. } else {
  2236. this.$message.error(res.msg);
  2237. }
  2238. });
  2239. }
  2240. if (this.orderInfo.sypolicyno) {
  2241. this.$api.letter
  2242. .ZhongmeigetPolicyPrint({
  2243. companyId: item.id,
  2244. riskCode: "0510",
  2245. type: "2", //2:保单
  2246. })
  2247. .then((res) => {
  2248. if (res.data && res.data[0]) {
  2249. businessList.push({
  2250. fileTitle: "商业电子保单",
  2251. filename: this.orderInfo.sypolicyno,
  2252. fileurl: res.data[0],
  2253. });
  2254. } else {
  2255. this.$message.error(res.msg);
  2256. }
  2257. });
  2258. }
  2259. if (this.orderInfo.crossInsurance.length > 0) {
  2260. this.orderInfo.crossInsurance.map((ele) => {
  2261. this.$api.letter
  2262. .ZhongmeigetPolicyPrint({
  2263. ridePolicyNo: ele.ridePolicyNo,
  2264. companyId: item.id,
  2265. riskCode: "0513",
  2266. type: "2", //2:保单
  2267. })
  2268. .then((res) => {
  2269. if (res.code == 200 && res.data) {
  2270. accidentList.push({
  2271. fileTitle: "驾意险保单",
  2272. filename: this.orderInfo.sypolicyno,
  2273. fileurl: res.data[0],
  2274. });
  2275. } else {
  2276. this.$message.error(res.msg);
  2277. }
  2278. });
  2279. });
  2280. }
  2281. break;
  2282. case "永诚财险":
  2283. if (this.orderInfo.jqpolicyno) {
  2284. this.$api.letter
  2285. .yongchenggetPolicyPrint({
  2286. companyId: item.id,
  2287. riskCode: "0507",
  2288. type: "2", //2:保单
  2289. })
  2290. .then((res) => {
  2291. if (res.code == 200 && res.data) {
  2292. if (res.data.jqUrl) {
  2293. this.oldfileList.push({
  2294. fileTitle: "交强电子保单",
  2295. filename: this.orderInfo.jqpolicyno,
  2296. fileurl: res.data.jqUrl,
  2297. });
  2298. }
  2299. if (res.data.jqFlagUrl) {
  2300. this.oldfileList.push({
  2301. fileTitle: "交强电子标志",
  2302. filename: this.orderInfo.jqpolicyno,
  2303. fileurl: res.data.jqFlagUrl,
  2304. });
  2305. }
  2306. } else {
  2307. this.$message.error(res.msg);
  2308. }
  2309. });
  2310. }
  2311. if (this.orderInfo.sypolicyno) {
  2312. this.$api.letter
  2313. .yongchenggetPolicyPrint({
  2314. companyId: item.id,
  2315. riskCode: "0510",
  2316. type: "2", //2:保单
  2317. })
  2318. .then((res) => {
  2319. if (res.data && res.data.syUrl) {
  2320. businessList.push({
  2321. fileTitle: "商业电子保单",
  2322. filename: this.orderInfo.sypolicyno,
  2323. fileurl: res.data.syUrl,
  2324. });
  2325. } else {
  2326. this.$message.error(res.msg);
  2327. }
  2328. });
  2329. }
  2330. if (this.orderInfo.crossInsurance.length > 0) {
  2331. this.orderInfo.crossInsurance.map((ele) => {
  2332. this.$api.letter
  2333. .yongchenggetPolicyPrint({
  2334. companyId: item.id,
  2335. policyNumber: ele.policyNumber,
  2336. riskCode: "0513",
  2337. type: "2", //2:保单
  2338. })
  2339. .then((res) => {
  2340. if (res.code == 200 && res.data) {
  2341. accidentList.push({
  2342. fileTitle: "驾意险保单",
  2343. filename: ele.policyNumber,
  2344. fileurl: res.data.jyUrl,
  2345. });
  2346. } else {
  2347. this.$message.error(res.msg);
  2348. }
  2349. });
  2350. });
  2351. }
  2352. break;
  2353. case "国任财险":
  2354. if (this.orderInfo.jqpolicyno) {
  2355. this.$api.letter
  2356. .guoRengetPolicyPrint({
  2357. companyId: item.id,
  2358. riskCode: "0507",
  2359. type: "2", //2:保单
  2360. })
  2361. .then((res) => {
  2362. if (res.data) {
  2363. this.oldfileList.push({
  2364. fileTitle: "交强电子保单",
  2365. filename: this.orderInfo.jqpolicyno,
  2366. fileurl: res.data,
  2367. });
  2368. } else {
  2369. this.$message.error(res.msg);
  2370. }
  2371. });
  2372. this.$api.letter
  2373. .guoRengetPolicyPrint({
  2374. companyId: item.id,
  2375. riskCode: "0507",
  2376. type: "1", //1:标志
  2377. })
  2378. .then((res) => {
  2379. if (res.data) {
  2380. this.oldfileList.push({
  2381. fileTitle: "交强电子标志",
  2382. filename: this.orderInfo.jqpolicyno,
  2383. fileurl: res.data,
  2384. });
  2385. } else {
  2386. this.$message.error(res.msg);
  2387. }
  2388. });
  2389. }
  2390. if (this.orderInfo.sypolicyno) {
  2391. this.$api.letter
  2392. .guoRengetPolicyPrint({
  2393. companyId: item.id,
  2394. riskCode: "0510",
  2395. type: "2", //2:保单
  2396. })
  2397. .then((res) => {
  2398. if (res.data) {
  2399. businessList.push({
  2400. fileTitle: "商业电子保单",
  2401. filename: this.orderInfo.sypolicyno,
  2402. fileurl: res.data,
  2403. });
  2404. } else {
  2405. this.$message.error(res.msg);
  2406. }
  2407. });
  2408. }
  2409. if (this.orderInfo.crossInsurance.length > 0) {
  2410. this.orderInfo.crossInsurance.map((ele) => {
  2411. this.$api.letter
  2412. .guoRengetPolicyPrint({
  2413. companyId: item.id,
  2414. policyNumber: ele.policyNumber,
  2415. riskCode: "0513",
  2416. type: "2", //2:保单
  2417. })
  2418. .then((res) => {
  2419. if (res.data) {
  2420. accidentList.push({
  2421. fileTitle: "驾意险保单",
  2422. filename: ele.policyNumber,
  2423. fileurl: res.data,
  2424. });
  2425. } else {
  2426. this.$message.error(res.msg);
  2427. }
  2428. });
  2429. });
  2430. }
  2431. break;
  2432. case "紫金财险":
  2433. if (this.orderInfo.jqpolicyno) {
  2434. this.$api.letter
  2435. .zijingetPolicyPrint({
  2436. companyId: item.id,
  2437. riskCode: "0507",
  2438. type: "2", //2:保单
  2439. })
  2440. .then((res) => {
  2441. if (res.data) {
  2442. this.oldfileList.push({
  2443. fileTitle: "交强电子保单",
  2444. filename: this.orderInfo.jqpolicyno,
  2445. fileurl: res.data,
  2446. });
  2447. } else {
  2448. this.$message.error(res.msg);
  2449. }
  2450. });
  2451. this.$api.letter
  2452. .zijingetPolicyPrint({
  2453. companyId: item.id,
  2454. riskCode: "0507",
  2455. type: "1", //1:标志
  2456. })
  2457. .then((res) => {
  2458. if (res.data) {
  2459. this.oldfileList.push({
  2460. fileTitle: "交强电子标志",
  2461. filename: this.orderInfo.jqpolicyno,
  2462. fileurl: res.data,
  2463. });
  2464. } else {
  2465. this.$message.error(res.msg);
  2466. }
  2467. });
  2468. }
  2469. if (this.orderInfo.sypolicyno) {
  2470. this.$api.letter
  2471. .zijingetPolicyPrint({
  2472. companyId: item.id,
  2473. riskCode: "0510",
  2474. type: "2", //2:保单
  2475. })
  2476. .then((res) => {
  2477. if (res.data) {
  2478. businessList.push({
  2479. fileTitle: "商业电子保单",
  2480. filename: this.orderInfo.sypolicyno,
  2481. fileurl: res.data,
  2482. });
  2483. } else {
  2484. this.$message.error(res.msg);
  2485. }
  2486. });
  2487. }
  2488. if (this.orderInfo.crossInsurance.length > 0) {
  2489. this.orderInfo.crossInsurance.map((ele) => {
  2490. this.$api.letter
  2491. .zijingetPolicyPrint({
  2492. companyId: item.id,
  2493. policyNumber: ele.policyNumber,
  2494. riskCode: "0513",
  2495. type: "2", //2:保单
  2496. })
  2497. .then((res) => {
  2498. if (res.data) {
  2499. accidentList.push({
  2500. fileTitle: "驾意险保单",
  2501. filename: ele.policyNumber,
  2502. fileurl: res.data,
  2503. });
  2504. } else {
  2505. this.$message.error(res.msg);
  2506. }
  2507. });
  2508. });
  2509. }
  2510. break;
  2511. case "渤海财险":
  2512. if (this.orderInfo.jqpolicyno) {
  2513. this.$api.letter
  2514. .getPolicyPrintboHai({
  2515. companyId: item.id,
  2516. })
  2517. .then((res) => {
  2518. if (res.code == 200 && res.data) {
  2519. if (res.data.jqxPolicyUrl) {
  2520. this.oldfileList.push({
  2521. fileTitle: "交强电子保单",
  2522. filename: this.orderInfo.jqpolicyno,
  2523. fileurl: res.data.jqxPolicyUrl,
  2524. });
  2525. }
  2526. if (res.data.jqxFlagUrl) {
  2527. this.oldfileList.push({
  2528. fileTitle: "交强电子标志",
  2529. filename: this.orderInfo.jqpolicyno,
  2530. fileurl: res.data.jqxFlagUrl,
  2531. });
  2532. }
  2533. if (res.data.syxPolicyUrl) {
  2534. businessList.push({
  2535. fileTitle: "商业电子保单",
  2536. filename: this.orderInfo.sypolicyno,
  2537. fileurl: res.data.syxPolicyUrl,
  2538. });
  2539. }
  2540. if (
  2541. res.data.jyxInfoList &&
  2542. res.data.jyxInfoList.length > 0
  2543. ) {
  2544. res.data.jyxInfoList.forEach((val) => {
  2545. accidentList.push({
  2546. fileTitle: "驾意险保单",
  2547. filename: "驾意险保单",
  2548. fileurl: val.jyx_policy_url,
  2549. });
  2550. });
  2551. }
  2552. } else {
  2553. this.$message.error(res.msg);
  2554. }
  2555. });
  2556. }
  2557. break;
  2558. case "平安财险":
  2559. if (this.orderInfo.jqpolicyno) {
  2560. this.$api.letter
  2561. .pingangetPolicyPrint({
  2562. companyId: item.id,
  2563. })
  2564. .then((res) => {
  2565. if (res.code == 200 && res.data) {
  2566. if (res.data.jqxPolicyUrl) {
  2567. this.oldfileList.push({
  2568. fileTitle: "交强电子保单",
  2569. filename: this.orderInfo.jqpolicyno,
  2570. fileurl: process.env.BASE_URL+res.data.jqxPolicyUrl,
  2571. });
  2572. }
  2573. if (res.data.jqxFlagUrl) {
  2574. this.oldfileList.push({
  2575. fileTitle: "交强电子标志",
  2576. filename: this.orderInfo.jqpolicyno,
  2577. fileurl: process.env.BASE_URL+res.data.jqxFlagUrl,
  2578. });
  2579. }
  2580. if (res.data.syxPolicyUrl) {
  2581. businessList.push({
  2582. fileTitle: "商业电子保单",
  2583. filename: this.orderInfo.sypolicyno,
  2584. fileurl: process.env.BASE_URL + res.data.syxPolicyUrl,
  2585. });
  2586. }
  2587. if (
  2588. res.data.jyxInfoList &&
  2589. res.data.jyxInfoList.length > 0
  2590. ) {
  2591. res.data.jyxInfoList.forEach((val) => {
  2592. accidentList.push({
  2593. fileTitle: "驾意险保单",
  2594. filename: "驾意险保单",
  2595. fileurl: process.env.BASE_URL+val.jyx_policy_url,
  2596. });
  2597. });
  2598. }
  2599. } else {
  2600. this.$message.error(res.msg);
  2601. }
  2602. });
  2603. }
  2604. break;
  2605. case "诚泰财险":
  2606. case "恒邦财险":
  2607. case "安盛天平":
  2608. case "中国人寿":
  2609. case "太平财险":
  2610. case "华农财险":
  2611. case "众安财险":
  2612. case "泰康财险":
  2613. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2614. this.$api.letter
  2615. .pythongetPolicyPrint({
  2616. subOrderNo: item.id,
  2617. })
  2618. .then((res) => {
  2619. if (res.code == 200 && res.data) {
  2620. if (res.data.jqxPolicyUrl) {
  2621. this.oldfileList.push({
  2622. fileTitle: "交强电子保单",
  2623. filename: this.orderInfo.jqpolicyno,
  2624. fileurl: res.data.jqxPolicyUrl,
  2625. });
  2626. }
  2627. if (res.data.jqxFlagUrl) {
  2628. this.oldfileList.push({
  2629. fileTitle: "交强电子标志",
  2630. filename: this.orderInfo.jqpolicyno,
  2631. fileurl: res.data.jqxFlagUrl,
  2632. });
  2633. }
  2634. if (res.data.syxPolicyUrl) {
  2635. businessList.push({
  2636. fileTitle: "商业电子保单",
  2637. filename: this.orderInfo.sypolicyno,
  2638. fileurl: res.data.syxPolicyUrl,
  2639. });
  2640. }
  2641. if (
  2642. res.data.jyxInfoList &&
  2643. res.data.jyxInfoList.length > 0
  2644. ) {
  2645. res.data.jyxInfoList.forEach((val) => {
  2646. accidentList.push({
  2647. fileTitle: "驾意险保单",
  2648. filename: "驾意险保单",
  2649. fileurl: val.jyx_policy_url,
  2650. });
  2651. });
  2652. }
  2653. } else {
  2654. this.$message.error(res.msg);
  2655. }
  2656. });
  2657. }
  2658. break;
  2659. case "大家财险":
  2660. switch (item.apiType) {
  2661. case 1:
  2662. if (this.orderInfo.jqpolicyno) {
  2663. this.$api.letter
  2664. .obtainWarranty({
  2665. companyId: item.id,
  2666. riskCode: "0507",
  2667. type: "2", //2:保单
  2668. })
  2669. .then((res) => {
  2670. if (res.data) {
  2671. this.oldfileList.push({
  2672. fileTitle: "交强电子保单",
  2673. filename: this.orderInfo.jqpolicyno,
  2674. fileurl: res.data,
  2675. });
  2676. } else {
  2677. this.$message.error(res.msg);
  2678. }
  2679. });
  2680. this.$api.letter
  2681. .obtainWarranty({
  2682. companyId: item.id,
  2683. riskCode: "0507",
  2684. type: "1", //1:标志
  2685. })
  2686. .then((res) => {
  2687. if (res.data) {
  2688. this.oldfileList.push({
  2689. fileTitle: "交强电子标志",
  2690. filename: this.orderInfo.jqpolicyno,
  2691. fileurl: res.data,
  2692. });
  2693. } else {
  2694. this.$message.error(res.msg);
  2695. }
  2696. });
  2697. }
  2698. if (this.orderInfo.sypolicyno) {
  2699. this.$api.letter
  2700. .obtainWarranty({
  2701. companyId: item.id,
  2702. riskCode: "0510",
  2703. type: "2", //2:保单
  2704. })
  2705. .then((res) => {
  2706. if (res.data) {
  2707. businessList.push({
  2708. fileTitle: "商业电子保单",
  2709. filename: this.orderInfo.sypolicyno,
  2710. fileurl: res.data,
  2711. });
  2712. }
  2713. });
  2714. }
  2715. if (this.orderInfo.crossInsurance.length > 0) {
  2716. this.orderInfo.crossInsurance.map((ele) => {
  2717. this.$api.letter
  2718. .zijingetPolicyPrint({
  2719. companyId: item.id,
  2720. policyNumber: ele.policyNumber,
  2721. riskCode: "0513",
  2722. type: "2", //2:保单
  2723. })
  2724. .then((res) => {
  2725. if (res.data) {
  2726. accidentList.push({
  2727. fileTitle: "驾意险保单",
  2728. filename: ele.policyNumber,
  2729. fileurl: res.data,
  2730. });
  2731. } else {
  2732. this.$message.error(res.msg);
  2733. }
  2734. });
  2735. });
  2736. }
  2737. break;
  2738. case 2:
  2739. if (
  2740. this.orderInfo.jqpolicyno ||
  2741. this.orderInfo.sypolicyno
  2742. ) {
  2743. this.$api.letter
  2744. .pythongetPolicyPrint({
  2745. subOrderNo: item.id,
  2746. })
  2747. .then((res) => {
  2748. if (res.code == 200 && res.data) {
  2749. if (res.data.jqxPolicyUrl) {
  2750. this.oldfileList.push({
  2751. fileTitle: "交强电子保单",
  2752. filename: this.orderInfo.jqpolicyno,
  2753. fileurl: res.data.jqxPolicyUrl,
  2754. });
  2755. }
  2756. if (res.data.jqxFlagUrl) {
  2757. this.oldfileList.push({
  2758. fileTitle: "交强电子标志",
  2759. filename: this.orderInfo.jqpolicyno,
  2760. fileurl: res.data.jqxFlagUrl,
  2761. });
  2762. }
  2763. if (res.data.syxPolicyUrl) {
  2764. businessList.push({
  2765. fileTitle: "商业电子保单",
  2766. filename: this.orderInfo.sypolicyno,
  2767. fileurl: res.data.syxPolicyUrl,
  2768. });
  2769. }
  2770. if (
  2771. res.data.jyxInfoList &&
  2772. res.data.jyxInfoList.length > 0
  2773. ) {
  2774. res.data.jyxInfoList.forEach((val) => {
  2775. accidentList.push({
  2776. fileTitle: "驾意险保单",
  2777. filename: "驾意险保单",
  2778. fileurl: val.jyx_policy_url,
  2779. });
  2780. });
  2781. }
  2782. } else {
  2783. this.$message.error(res.msg);
  2784. }
  2785. });
  2786. }
  2787. break;
  2788. }
  2789. break;
  2790. default:
  2791. }
  2792. }
  2793. let obj = {
  2794. oldfileList: this.oldfileList,
  2795. businessList,
  2796. accidentList,
  2797. };
  2798. this.$refs.detailsDialog.warrantyFun(obj);
  2799. }
  2800. this.showInsureList = false;
  2801. this.$refs.detailsDialog.setBackupVisible(true);
  2802. } else {
  2803. this.$message.error("订单获取失败");
  2804. }
  2805. });
  2806. },
  2807. //联级选择器触发事件
  2808. handleChange(val) {
  2809. if (val.length !== 0) {
  2810. this.pageRequest.deptId = val.at(-1);
  2811. } else {
  2812. this.pageRequest.deptId = "";
  2813. }
  2814. },
  2815. handleClose(done) {
  2816. this.$confirm("确认关闭?")
  2817. .then((_) => {
  2818. done();
  2819. })
  2820. .catch((_) => { });
  2821. },
  2822. httpRequest(options) {
  2823. let file = options.file;
  2824. let filename = options.filename;
  2825. let reader = new FileReader();
  2826. if (file) {
  2827. reader.readAsDataURL(file);
  2828. }
  2829. reader.onload = () => {
  2830. let base64Str = reader.result;
  2831. this[options.filename].push(base64Str);
  2832. };
  2833. },
  2834. // 设置每页条数
  2835. applyhandleSizeChange(val) {
  2836. this.pageSize = val;
  2837. this.pageNum = 1;
  2838. this.pageRequest.pageNum = 1;
  2839. this.pageRequest.pageSize = val;
  2840. this.findPage();
  2841. },
  2842. // 当前页
  2843. applyhandleCurrentChange(val) {
  2844. this.pageNum = val;
  2845. this.pageRequest.pageNum = val;
  2846. this.findPage();
  2847. },
  2848. saveAs(blob, filename) {
  2849. var link = document.createElement("a");
  2850. link.href = window.URL.createObjectURL(blob);
  2851. link.target = "_ blank";
  2852. link.download = filename;
  2853. link.click();
  2854. },
  2855. //预览文件
  2856. viewfile(index) {
  2857. let name = index.fileurl.lastIndexOf("/");
  2858. fetch(index.fileurl)
  2859. .then((response) => response.blob())
  2860. .then((blob) => {
  2861. this.saveAs(
  2862. blob,
  2863. index.fileurl.substring(name + 1, index.fileurl.length)
  2864. );
  2865. })
  2866. .catch((error) => { });
  2867. // const a = document.createElement('a')
  2868. // a.style.display = 'none'
  2869. // a.href = index.fileurl
  2870. // a.target = '_ blank';
  2871. // a.download = this.licenseNo+ '.pdf'; // 下载文件的名字
  2872. // document.body.appendChild(a)
  2873. // a.click()
  2874. },
  2875. // jump(obj) {
  2876. // var s = document.getElementById(obj);
  2877. // var parent = s.parentNode;
  2878. // for (let i = 0; i < parent.childNodes.length; i++) {
  2879. // if (parent.childNodes[i].tagName == "DIV") {
  2880. // if (parent.childNodes[i].childNodes[0].classList.contains("active")) {
  2881. // parent.childNodes[i].childNodes[0].classList.remove("active");
  2882. // }
  2883. // }
  2884. // }
  2885. // s.childNodes[0].classList.add("active");
  2886. // },
  2887. // //表格行点击下拉事件
  2888. // handleRowClick(row) {
  2889. // if(!row.expanded){
  2890. // this.$api.letter.querySonOrders({orderNo:row.orderno}).then(res=>{
  2891. // if(res.code=='200' && res.data.length!=0){
  2892. // this.pageResult.map(item=>{
  2893. // if(item.orderno===row.orderno){
  2894. // item.insAreaCompanyList=res.data;
  2895. // }
  2896. // return item;
  2897. // })
  2898. // row.expanded = !row.expanded;
  2899. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2900. // }else{
  2901. // this.$message.info("暂无数据");
  2902. // }
  2903. // })
  2904. // }else{
  2905. // row.expanded = !row.expanded;
  2906. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2907. // }
  2908. // },
  2909. // handleRowChange:debounce(function(row,expandedRows) {
  2910. // console.log(expandedRows);
  2911. // if (expandedRows.length>0) {
  2912. // this.$api.letter
  2913. // .querySonOrders({ orderNo: row.orderno })
  2914. // .then((res) => {
  2915. // if (res.code == "200" && res.data.length != 0) {
  2916. // this.pageResult.map((item) => {
  2917. // if (item.orderno === row.orderno) {
  2918. // item.insAreaCompanyList = res.data;
  2919. // }
  2920. // return item;
  2921. // });
  2922. // row.expanded = !row.expanded;
  2923. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2924. // } else {
  2925. // this.$message.info("暂无数据");
  2926. // }
  2927. // });
  2928. // }
  2929. // // else {
  2930. // // row.expanded = !row.expanded;
  2931. // // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2932. // // }
  2933. // }, 500), // 300 毫秒内不会重复触发,
  2934. handleRowChange(row) {
  2935. if (!row.expanded) {
  2936. this.$api.letter.querySonOrders({ orderNo: row.orderno }).then(res => {
  2937. if (res.code == "200" && res.data.length != 0) {
  2938. this.pageResult.map(item => {
  2939. if (item.orderno === row.orderno) {
  2940. item.insAreaCompanyList = res.data;
  2941. }
  2942. return item;
  2943. });
  2944. row.expanded = !row.expanded;
  2945. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2946. } else {
  2947. this.$message.info("暂无数据");
  2948. }
  2949. });
  2950. } else {
  2951. row.expanded = !row.expanded;
  2952. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2953. }
  2954. },
  2955. //数据
  2956. findPage() {
  2957. this.orderLoaing = true;
  2958. let orderStatus = "";
  2959. if (this.isLetterOrder) {
  2960. orderStatus =
  2961. this.pageRequest.orderStatus == 888
  2962. ? ""
  2963. : this.pageRequest.orderStatus;
  2964. this.$api.letter
  2965. .queryOrders({ ...this.pageRequest, orderStatus })
  2966. .then((res) => {
  2967. if (res.code == "200") {
  2968. this.orderLoaing = false;
  2969. this.pageResult = res.data.content;
  2970. this.pageNum = res.data.pageNum;
  2971. this.totalSize = res.data.totalSize;
  2972. this.pageResult.forEach((val, index) => {
  2973. this.$set(val, "expanded", false);
  2974. });
  2975. } else {
  2976. this.$message.error(res.msg);
  2977. this.orderLoaing = false;
  2978. }
  2979. });
  2980. } else {
  2981. orderStatus = this.statusPor == 888 ? "" : this.statusPor;
  2982. this.$api.task
  2983. .queryPageHospitalityOrder({
  2984. ...this.pageRequest,
  2985. orderStatus,
  2986. userId: this.userIdPor,
  2987. deptId: this.deptIdPor,
  2988. })
  2989. .then((res) => {
  2990. if (res.code == "200") {
  2991. this.orderLoaing = false;
  2992. this.$nextTick(() => {
  2993. this.pageResult = res.data.content;
  2994. this.pageNum = res.data.pageNum;
  2995. this.totalSize = res.data.totalSize;
  2996. this.pageResult.forEach((val, index) => {
  2997. this.$set(val, "expanded", false);
  2998. });
  2999. });
  3000. } else {
  3001. this.$message.error(res.msg);
  3002. this.orderLoaing = false;
  3003. }
  3004. });
  3005. }
  3006. },
  3007. //查询
  3008. onSubmit() {
  3009. this.pageRequest.pageNum = 1;
  3010. this.pageRequest.pageSize = 20;
  3011. this.findPage();
  3012. },
  3013. //时间js
  3014. monthChange(e) {
  3015. if (e === null) {
  3016. this.pageRequest.startDate = e;
  3017. this.pageRequest.endDate = e;
  3018. } else {
  3019. this.pageRequest.startDate = e[0];
  3020. this.pageRequest.endDate = e[1];
  3021. }
  3022. },
  3023. // downloadFile(url, fileName, type) {
  3024. // const xhr = new XMLHttpRequest();
  3025. // xhr.open("GET", url, true);
  3026. // xhr.responseType = "blob"; // 获取文件blob数据
  3027. // xhr.onload = function() {
  3028. // if (xhr.status !== 200) {
  3029. // this.$notify.error({
  3030. // title: "错误",
  3031. // message: "下载出现错误"
  3032. // });
  3033. // return;
  3034. // }
  3035. // const newUrl = window.URL.createObjectURL(xhr.response); // 生成一个可用的临时url
  3036. // const a = document.createElement("a"); // 生成a标签调用点击事件
  3037. // a.setAttribute("href", newUrl);
  3038. // a.setAttribute("target", "_blank");
  3039. // a.setAttribute("download", fileName); // 自定义文件名
  3040. // document.body.appendChild(a);
  3041. // a.click();
  3042. // document.body.removeChild(a);
  3043. // };
  3044. // xhr.send();
  3045. // }
  3046. },
  3047. };
  3048. </script>
  3049. <style lang="scss" scoped>
  3050. .scan-code {
  3051. div {
  3052. margin-top: 10px;
  3053. }
  3054. }
  3055. .green_color {
  3056. color: #068069;
  3057. border: 1px solid #068069;
  3058. padding: 7px 8px;
  3059. }
  3060. .red_color {
  3061. color: var(--themeColor);
  3062. border: 1px solid var(--themeColor);
  3063. padding: 7px 8px;
  3064. }
  3065. .blue_color {
  3066. color: #2d4d89;
  3067. border: 1px solid #2d4d89;
  3068. padding: 7px 8px;
  3069. }
  3070. .el-dropdown {
  3071. font-size: 12px;
  3072. }
  3073. .el-step__description>span {
  3074. margin-right: 10px;
  3075. }
  3076. /deep/ {
  3077. .proSaomazhifucodeClass .el-dialog__header {
  3078. background: rgba(45, 77, 137, 0.1);
  3079. font-weight: bold;
  3080. }
  3081. .proSaomazhifucodeClass .el-dialog__footer {
  3082. border-top: 1px solid #eef1f6;
  3083. }
  3084. .el-step__head {
  3085. min-height: 90px;
  3086. }
  3087. .el-table .row-expand-cover .cell .el-table__expand-icon {
  3088. display: none;
  3089. }
  3090. .el-descriptions-item__label {
  3091. &:not(.is-bordered-label) {
  3092. color: #333;
  3093. }
  3094. }
  3095. .saomazhifucodeClass .el-dialog__body,
  3096. .saomazhifucodeClass .el-dialog__header,
  3097. .saomazhifucodeClass .el-dialog__footer {
  3098. padding: 0;
  3099. background: #f4e9e9;
  3100. }
  3101. .saomazhifucodeClass .el-dialog__body {
  3102. padding: 15px;
  3103. }
  3104. .saomazhifucodeClass .el-dialog__footer {
  3105. background: #f4e9e9;
  3106. padding-bottom: 15px;
  3107. }
  3108. .saomazhifucodeClass .el-dialog__headerbtn {
  3109. margin-top: 10px;
  3110. }
  3111. .el-input.is-disabled .el-input__inner {
  3112. color: #333;
  3113. }
  3114. }
  3115. .ORcodebody {
  3116. height: auto;
  3117. // background: url(../../../assets/image/group.png) #fff;
  3118. padding: 16px;
  3119. background-color: #fff;
  3120. }
  3121. .ORcode {
  3122. width: 100%;
  3123. height: auto;
  3124. display: flex;
  3125. justify-content: center;
  3126. align-items: center;
  3127. padding: 30px;
  3128. box-sizing: border-box;
  3129. &>div {
  3130. width: 176px;
  3131. height: 176px;
  3132. border: 1px solid var(--themeColor);
  3133. border-radius: 5px;
  3134. }
  3135. }
  3136. .ORtitle {
  3137. width: 100%;
  3138. padding-bottom: 20px;
  3139. box-sizing: border-box;
  3140. &>div {
  3141. width: 100%;
  3142. margin: 10px 0;
  3143. font-size: 14px;
  3144. &>span {
  3145. &:nth-child(1) {
  3146. color: #868b98;
  3147. text-align: end;
  3148. width: 150px;
  3149. }
  3150. &:nth-child(2) {
  3151. color: #333333;
  3152. }
  3153. }
  3154. }
  3155. }
  3156. </style>
  3157. <style scoped lang="scss">
  3158. #qqq {
  3159. background-color: #111;
  3160. width: 300px;
  3161. height: 300px;
  3162. margin: 0 auto;
  3163. /*水平居中*/
  3164. position: relative;
  3165. }
  3166. #qrCode {
  3167. display: inline-block;
  3168. margin: 0 auto;
  3169. /*水平居中*/
  3170. position: relative;
  3171. top: 15%;
  3172. }
  3173. #qrCode img {
  3174. width: 200px;
  3175. height: 200px;
  3176. background-color: #fff;
  3177. padding: 6px;
  3178. }
  3179. .leftContainer {
  3180. width: 80px;
  3181. position: fixed;
  3182. top: 79px;
  3183. left: 30px;
  3184. }
  3185. .leftContainer .el-col {
  3186. width: 80px;
  3187. height: 80px;
  3188. border-bottom: 1px solid #4d5c6f;
  3189. background: #526176;
  3190. cursor: pointer;
  3191. color: #a6aeb9;
  3192. border-radius: 0;
  3193. }
  3194. .leftContainer .el-col a {
  3195. display: block;
  3196. color: #a6aeb9;
  3197. text-decoration: none;
  3198. }
  3199. .leftContainer .el-col a:hover {
  3200. color: #fff;
  3201. }
  3202. .leftContainer .el-col a.active {
  3203. color: #fff;
  3204. }
  3205. .leftContainer .el-col i {
  3206. font-size: 30px;
  3207. margin: 15px 0px 5px;
  3208. }
  3209. .rightContainer {
  3210. width: calc(100vw - 160px);
  3211. margin-left: 100px;
  3212. }
  3213. .rightContainer .header .el-col {
  3214. font-size: 18px;
  3215. font-weight: bold;
  3216. }
  3217. .rightContainer .bodyTitle {
  3218. height: 40px;
  3219. background: #f3f3f3;
  3220. border: 1px solid #dddddd;
  3221. }
  3222. .rightContainer .bodyTitle>label {
  3223. margin: 0px 15px;
  3224. font-weight: bold;
  3225. }
  3226. .rightContainer #demo2 .body,
  3227. .rightContainer #demo6 .body {
  3228. border: 1px solid #ddd;
  3229. padding: 15px;
  3230. border-top: none;
  3231. }
  3232. .rightContainer .el-card {
  3233. margin-bottom: 15px;
  3234. }
  3235. .body .el-row .el-col label {
  3236. text-align: right;
  3237. width: 80px;
  3238. font-size: 14px;
  3239. width: 100%;
  3240. line-height: 36px;
  3241. display: inline-block;
  3242. box-sizing: border-box;
  3243. }
  3244. .disabledInput {
  3245. width: 80% !important;
  3246. background-color: #f5f7fa;
  3247. text-align: center !important;
  3248. max-width: 200px;
  3249. border: 1px solid #e4e7ed;
  3250. color: #c0c4cc;
  3251. cursor: not-allowed;
  3252. border-radius: 4px;
  3253. box-sizing: border-box;
  3254. padding: 0px 10px;
  3255. height: 36px;
  3256. margin: 20px 10%;
  3257. }
  3258. /* 上传图片样式Start */
  3259. .avatar-uploader .el-upload {
  3260. border: 1px dashed #d9d9d9;
  3261. border-radius: 6px;
  3262. cursor: pointer;
  3263. position: relative;
  3264. overflow: hidden;
  3265. }
  3266. .avatar-uploader .el-upload:hover {
  3267. border-color: #409eff;
  3268. }
  3269. .avatar-uploader-icon {
  3270. font-size: 28px;
  3271. color: #8c939d;
  3272. width: 100px;
  3273. height: 100px;
  3274. line-height: 100px;
  3275. text-align: center;
  3276. border: 1px dashed #d9d9d9;
  3277. }
  3278. .avatar {
  3279. border: 1px dashed #d9d9d9;
  3280. padding: 5px;
  3281. border-radius: 6px;
  3282. width: 100px;
  3283. height: 100px;
  3284. display: block;
  3285. }
  3286. .imageStyle {
  3287. display: inline-block;
  3288. width: 100px;
  3289. height: 100px;
  3290. box-shadow: #ddd 0px 0px 5px;
  3291. margin-right: 20px;
  3292. }
  3293. /* 上传图片样式End */
  3294. .dis {
  3295. display: flex;
  3296. }
  3297. .align {
  3298. align-items: center;
  3299. }
  3300. .jus {
  3301. justify-content: space-between;
  3302. }
  3303. .display {
  3304. display: flex;
  3305. justify-content: center;
  3306. align-items: center;
  3307. box-sizing: border-box;
  3308. }
  3309. .block {
  3310. margin-top: 10px;
  3311. }
  3312. .page {
  3313. padding: 14px;
  3314. box-sizing: border-box;
  3315. }
  3316. .el-select--medium {
  3317. vertical-align: bottom !important;
  3318. }
  3319. .widths {
  3320. width: 200px;
  3321. }
  3322. .demo-table-expand {
  3323. /* width:96vw; */
  3324. height: auto;
  3325. padding: 10px 20px 10px 50px;
  3326. font-size: 14px;
  3327. }
  3328. .demo-table-expand-time {
  3329. width: 40%;
  3330. }
  3331. .demo-table-expand-time>div {
  3332. margin: 0 10px;
  3333. }
  3334. .icon-img {
  3335. width: 30px;
  3336. height: 30px;
  3337. vertical-align: bottom;
  3338. }
  3339. .Enclosure {
  3340. width: 100%;
  3341. background-color: #fff;
  3342. padding: 20px;
  3343. box-sizing: border-box;
  3344. margin-bottom: 15px;
  3345. border-radius: 6px;
  3346. border: 1px solid #ebeef5;
  3347. transition: all 0.2s ease-in-out;
  3348. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  3349. }
  3350. .headers {
  3351. display: flex;
  3352. align-items: center;
  3353. justify-content: space-between;
  3354. flex-wrap: wrap;
  3355. margin: 5px 0;
  3356. font-weight: bold;
  3357. color: #333;
  3358. }
  3359. /* 内容待定 */
  3360. .headers_Custom {
  3361. div {
  3362. padding: 2px 0px;
  3363. font-size: 14px;
  3364. &>span {
  3365. color: rgb(226, 118, 10);
  3366. }
  3367. }
  3368. }
  3369. .back {
  3370. color: #303133;
  3371. font-weight: 700;
  3372. }
  3373. .u-f-ac {
  3374. -webkit-box-align: center;
  3375. align-items: center;
  3376. /* padding: 10px; */
  3377. }
  3378. .bodyTitle {
  3379. height: 40px;
  3380. background: #f3f3f3;
  3381. border: 1px solid #dddddd;
  3382. line-height: 40px;
  3383. padding: 0 20px;
  3384. box-sizing: border-box;
  3385. }
  3386. .Risk {
  3387. width: 100%;
  3388. height: auto;
  3389. display: flex;
  3390. flex-direction: column;
  3391. align-items: center;
  3392. font-size: 12px;
  3393. }
  3394. .Risk_title {
  3395. width: 100%;
  3396. height: 40px;
  3397. }
  3398. .Risk_title>div {
  3399. background: rgb(199, 20, 45);
  3400. color: rgb(255, 255, 255);
  3401. height: 100%;
  3402. font-weight: 500;
  3403. width: 33.3%;
  3404. padding: 10px 20px;
  3405. box-sizing: border-box;
  3406. border: #fff solid 1px;
  3407. display: flex;
  3408. justify-content: center;
  3409. align-items: center;
  3410. border-bottom: none;
  3411. }
  3412. .Risk_title>div:nth-child(1) {}
  3413. .Risk_title>div:nth-child(2) {
  3414. border-left: none;
  3415. border-right: none;
  3416. }
  3417. .Risk_data {
  3418. width: 100%;
  3419. height: 40px;
  3420. }
  3421. .Risk_data>div {
  3422. background: #fbf6f7;
  3423. color: rgb(51, 51, 51);
  3424. height: 100%;
  3425. font-weight: 500;
  3426. width: 33.3%;
  3427. padding: 10px 20px;
  3428. box-sizing: border-box;
  3429. border: #fff solid 1px;
  3430. display: flex;
  3431. justify-content: center;
  3432. align-items: center;
  3433. border-bottom: none;
  3434. }
  3435. .Risk_data>div :nth-child(2) {
  3436. border-left: none;
  3437. border-right: none;
  3438. }
  3439. .Risk_title>div :nth-child(3) {
  3440. border-top-right-radius: 10px;
  3441. }
  3442. .jyxStyle>span {
  3443. display: inline-block;
  3444. text-align: center;
  3445. }
  3446. /* .el-step__description{
  3447. color:#333
  3448. } */
  3449. /deep/ {
  3450. .el-step__title,
  3451. .el-step__icon-inner {
  3452. color: var(--themeColor);
  3453. }
  3454. .el-step__description.is-finish,
  3455. .el-step__head.is-finish {
  3456. color: #333;
  3457. border: none;
  3458. }
  3459. .el-step__icon.is-text {
  3460. border: none;
  3461. box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
  3462. }
  3463. .el-step__icon.is-text {
  3464. font-size: 22px;
  3465. }
  3466. .el-step__icon {
  3467. width: 28px;
  3468. height: 28px;
  3469. }
  3470. .el-step.is-vertical .el-step__main {
  3471. padding-left: 20px;
  3472. }
  3473. .el-step__line,
  3474. .el-step.is-vertical .el-step__line {
  3475. left: 14px;
  3476. background-color: #e2e5eb;
  3477. width: 1px;
  3478. }
  3479. .el-step__line-inner {
  3480. height: 0;
  3481. display: none;
  3482. }
  3483. .is-flex {
  3484. .el-step__icon {
  3485. background: var(--themeColor);
  3486. }
  3487. .el-step__icon-inner {
  3488. color: #fff;
  3489. }
  3490. }
  3491. .styleB {
  3492. height: 128px;
  3493. }
  3494. .styleB .el-upload--picture-card {
  3495. display: none;
  3496. }
  3497. }
  3498. .tab-style {
  3499. width: 110px;
  3500. li {
  3501. text-align: right;
  3502. padding-right: 20px;
  3503. line-height: 40px;
  3504. cursor: pointer;
  3505. box-sizing: border-box;
  3506. border-right: 1px solid #e2e5eb;
  3507. }
  3508. li:focus {
  3509. background: rgba(212, 36, 38, 0.1);
  3510. border-right: 2px solid var(--themeColor);
  3511. color: var(--themeColor);
  3512. }
  3513. }
  3514. .tabLi-style {
  3515. background: rgba(212, 36, 38, 0.1);
  3516. border-right: 2px solid var(--themeColor);
  3517. color: var(--themeColor);
  3518. }
  3519. .aaa {
  3520. /deep/ {
  3521. margin-bottom: 20px;
  3522. margin-right: 50px;
  3523. span {
  3524. display: inline-block;
  3525. margin-bottom: 10px;
  3526. }
  3527. .el-upload .el-upload-dragger {
  3528. width: 180px;
  3529. height: 120px;
  3530. border: 1px dashed #c0ccda;
  3531. padding: 0;
  3532. }
  3533. .el-upload-list--picture-card .el-upload-list__item {
  3534. width: 180px;
  3535. height: 120px;
  3536. }
  3537. .el-upload-list__item:first-child {
  3538. margin-top: 0;
  3539. }
  3540. .el-upload--picture-card {
  3541. width: 180px;
  3542. height: 120px;
  3543. }
  3544. .el-upload-list__item {
  3545. width: 180px;
  3546. height: 120px;
  3547. margin: 0 !important;
  3548. display: block !important;
  3549. }
  3550. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  3551. width: 180px;
  3552. height: 120px;
  3553. }
  3554. }
  3555. }
  3556. .styleB .el-upload--picture-card {
  3557. // display: none;
  3558. opacity: 0;
  3559. }</style>