index.vue 157 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692
  1. <template>
  2. <div class="insurancePolicy">
  3. <el-form ref="InsurancePolicyRefs" :model="insurancePolicyForm" :rules="insurancePolicyRules">
  4. <el-row :gutter="20" class="formItem">
  5. <el-col :span="6">
  6. <el-form-item label="业务员:" style="margin-top: 10px">
  7. <el-input v-model="insurancePolicyForm.salesman" placeholder="输入业务员工姓名,手机号,工号查找" @click="handleFocus"></el-input>
  8. </el-form-item>
  9. </el-col>
  10. <el-col :span="6" v-if="insurancePolicyForm.salesman">
  11. <el-form-item label="手机号:" style="margin-top: 10px">
  12. <el-input v-model="insurancePolicyForm.mobile" disabled></el-input>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :span="6" v-if="insurancePolicyForm.salesman">
  16. <el-form-item label="归属:" style="margin-top: 10px">
  17. <el-cascader
  18. clearable
  19. style="width: 100%"
  20. v-model="insurancePolicyForm.deptId"
  21. :options="institutionList"
  22. :props="tableProps"
  23. ></el-cascader>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :span="6" v-if="insurancePolicyForm.salesman">
  27. <el-button link type="primary" @click="handleFocus" style="margin-top: 10px">更换业务员</el-button>
  28. </el-col>
  29. </el-row>
  30. <el-collapse v-model="activeName">
  31. <el-collapse-item name="car">
  32. <template #title>
  33. <span class="title">车辆信息</span>
  34. </template>
  35. <el-row :gutter="20" class="formItem formBlock">
  36. <el-col :span="6">
  37. <el-form-item label="车辆是否上牌?" prop="isRegistered">
  38. <el-radio-group v-model="insurancePolicyForm.isRegistered">
  39. <el-radio value="1">是</el-radio>
  40. <el-radio value="2">否</el-radio>
  41. </el-radio-group>
  42. </el-form-item>
  43. </el-col>
  44. <el-col :span="6">
  45. <el-form-item :disabled="insurancePolicyForm.isRegistered==2" label="车牌" prop="licenseNo">
  46. <el-input v-model="insurancePolicyForm.licenseNo" minlength="7" maxlength="8" placeholder="输入车牌号" @change="getQuoteNumber"></el-input>
  47. </el-form-item>
  48. </el-col>
  49. <el-col :span="6">
  50. <el-form-item label="车牌识别代码" prop="vinNo">
  51. <el-input v-model="insurancePolicyForm.vinNo" placeholder="请输入车辆识别代码" @change="getQuoteNumber">
  52. <template #append>
  53. <el-button icon="Search" @click="handleCarNumber" />
  54. </template>
  55. </el-input>
  56. </el-form-item>
  57. </el-col>
  58. <el-col :span="6">
  59. <el-form-item label="品牌型号" prop="brandName">
  60. <el-input v-model="insurancePolicyForm.brandName" placeholder="请输入品牌型号">
  61. <template #append>
  62. <el-button icon="Search" @click="handleCarCode" />
  63. </template>
  64. </el-input>
  65. </el-form-item>
  66. </el-col>
  67. <el-col :span="6">
  68. <el-form-item label="发动机号" prop="engineNo">
  69. <el-input v-model="insurancePolicyForm.engineNo" placeholder="请输入发动机号" @change="getQuoteNumber"></el-input>
  70. </el-form-item>
  71. </el-col>
  72. <el-col :span="6">
  73. <el-form-item label="使用性质" prop="carNatureCode">
  74. <el-select v-model="insurancePolicyForm.carNatureCode" placeholder="请选择">
  75. <el-option v-for="(item, index) in optionObj.car_nature_code" :label="item.label" :value="item.value" :key="item.value"></el-option>
  76. </el-select>
  77. </el-form-item>
  78. </el-col>
  79. <el-col :span="6">
  80. <el-form-item label="车辆用途" prop="vehicleUseCode">
  81. <el-select v-model="insurancePolicyForm.vehicleUseCode" placeholder="请选择">
  82. <el-option v-for="(item, index) in optionObj.vehicle_use_code" :label="item.label" :value="item.value" :key="item.value"></el-option>
  83. </el-select>
  84. </el-form-item>
  85. </el-col>
  86. <el-col :span="6">
  87. <el-form-item label="车辆种类" prop="plateType">
  88. <el-select v-model="insurancePolicyForm.plateType" placeholder="请选择">
  89. <el-option v-for="(item, index) in optionObj.car_kind_code" :label="item.label" :value="item.value" :key="item.value"></el-option>
  90. </el-select>
  91. </el-form-item>
  92. </el-col>
  93. <el-col :span="6">
  94. <el-form-item label="车辆类型" prop="carTypeCode">
  95. <el-select v-model="insurancePolicyForm.carTypeCode" placeholder="请选择">
  96. <el-option v-for="(item, index) in optionObj.car_type_code" :label="item.label" :value="item.value" :key="item.value"></el-option>
  97. </el-select>
  98. </el-form-item>
  99. </el-col>
  100. <el-col :span="6">
  101. <el-form-item label="能源种类" prop="energyTypeCode">
  102. <el-select v-model="insurancePolicyForm.energyTypeCode" placeholder="请选择">
  103. <el-option v-for="(item, index) in optionObj.energy_type_code" :label="item.label" :value="item.value" :key="item.value"></el-option>
  104. </el-select>
  105. </el-form-item>
  106. </el-col>
  107. <el-col :span="6">
  108. <el-form-item label="注册日期" prop="registerDate">
  109. <el-date-picker
  110. v-model="insurancePolicyForm.registerDate"
  111. type="date"
  112. placeholder="请选择"
  113. value-format="YYYY-MM-DD"
  114. style="width: 100%"
  115. />
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="6">
  119. <el-form-item label="发证日期" prop="issueDate">
  120. <el-date-picker
  121. v-model="insurancePolicyForm.issueDate"
  122. type="date"
  123. placeholder="请选择"
  124. value-format="YYYY-MM-DD"
  125. style="width: 100%"
  126. @change="issueDateChange"
  127. />
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="6">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="insurancePolicyForm.completeKerbMass" placeholder="输入整备质量">
  133. <template #append>
  134. <span>千克(KG)</span>
  135. </template>
  136. </el-input>
  137. </el-form-item>
  138. </el-col>
  139. <el-col :span="6">
  140. <el-form-item label="核定载质量" prop="limitLoad">
  141. <el-input v-model="insurancePolicyForm.limitLoad" placeholder="请输入核定载质量">
  142. <template #append>
  143. <span>千克(KG)</span>
  144. </template>
  145. </el-input>
  146. </el-form-item>
  147. </el-col>
  148. <el-col :span="6">
  149. <el-form-item label="座位数" prop="seatCount">
  150. <el-input v-model="insurancePolicyForm.seatCount" placeholder="请输入座位数">
  151. <template #append>
  152. <span>座</span>
  153. </template>
  154. </el-input>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :span="6">
  158. <el-form-item label="年款" prop="carYear">
  159. <el-input v-model="insurancePolicyForm.carYear" placeholder="请输入年款"></el-input>
  160. </el-form-item>
  161. </el-col>
  162. <el-col :span="6">
  163. <el-form-item label="新车购置价" prop="purchasePrice">
  164. <el-input v-model="insurancePolicyForm.purchasePrice" placeholder="请输入新车购置价">
  165. <template #append>
  166. <span>元</span>
  167. </template>
  168. </el-input>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="6">
  172. <el-form-item label="排量" prop="displacement">
  173. <el-input v-model="insurancePolicyForm.displacement" placeholder="请输入排量">
  174. <template #append>
  175. <span>升(L)</span>
  176. </template>
  177. </el-input>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="6">
  181. <el-form-item label="功率" prop="powerScale">
  182. <el-input v-model="insurancePolicyForm.powerScale" placeholder="输入功率">
  183. <template #append>
  184. <span>千瓦(KW)</span>
  185. </template>
  186. </el-input>
  187. </el-form-item>
  188. </el-col>
  189. <el-col v-if="insurancePolicyForm.transfer" :span="6">
  190. <el-form-item label="转移登记日期" prop="transferDate">
  191. <el-date-picker
  192. v-model="insurancePolicyForm.transferDate"
  193. type="date"
  194. placeholder="请选择"
  195. value-format="YYYY-MM-DD"
  196. style="width: 100%"
  197. />
  198. </el-form-item>
  199. </el-col>
  200. </el-row>
  201. <template #icon="{ isActive }">
  202. <span class="icon">
  203. <el-button link type="primary" @click.stop="handleRecognition('clxx')"><img src="@/assets/images/insurancePolicy/sao.png" class="myIcon" />证件识别</el-button>
  204. <span class="icon-ele">
  205. {{ isActive ? '收起' : '展开' }}
  206. </span>
  207. </span>
  208. </template>
  209. </el-collapse-item>
  210. <el-collapse-item name="owner">
  211. <template #title>
  212. <span class="title">车主信息</span>
  213. </template>
  214. <el-row :gutter="20" class="formItem formBlock">
  215. <el-col :span="6">
  216. <el-form-item label="车主姓名" prop="name1">
  217. <el-input v-model="insurancePolicyForm.name1" placeholder="输入车主姓名"></el-input>
  218. </el-form-item>
  219. </el-col>
  220. <el-col :span="6">
  221. <el-form-item label="车主手机号" prop="mobile1">
  222. <el-input v-model="insurancePolicyForm.mobile1" placeholder="请输入车主手机号" maxlength="11" show-word-limit></el-input>
  223. </el-form-item>
  224. </el-col>
  225. <el-col :span="6">
  226. <el-form-item label="证件类型" prop="personType1">
  227. <el-select v-model="insurancePolicyForm.identifyType1" placeholder="请选择">
  228. <el-option label="身份证" value="01" key="01"></el-option>
  229. <el-option label="营业执照" value="02" key="02"></el-option>
  230. </el-select>
  231. </el-form-item>
  232. </el-col>
  233. <el-col v-if="insurancePolicyForm.identifyType1 === '01'" :span="6">
  234. <el-form-item label="证件号码" prop="identifyNumber1">
  235. <el-input v-model="insurancePolicyForm.identifyNumber1" placeholder="请输入证件号码" @change="getAgeByIdCard($event, insurancePolicyForm)"></el-input>
  236. </el-form-item>
  237. </el-col>
  238. <el-col v-else :span="6">
  239. <el-form-item label="统一社会信用代码" prop="identifyNumber1">
  240. <el-input v-model="insurancePolicyForm.identifyNumber1" placeholder="请输入证件号码"></el-input>
  241. </el-form-item>
  242. </el-col>
  243. <el-col :span="6">
  244. <el-form-item prop="identifyValidDate1" label="有效期起期">
  245. <el-date-picker
  246. v-model="insurancePolicyForm.identifyValidDate1"
  247. type="date"
  248. placeholder="请选择"
  249. value-format="YYYY-MM-DD"
  250. style="width: 100%"
  251. @blur="(e) => insurancePolicyForm.identifyValidDate1 = changeDate(e)"
  252. />
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="6">
  256. <el-form-item prop="identifyValidEndDate1" label="有效期止期">
  257. <div style="display: flex; align-items: center; justify-content: flex-start; width: 100%">
  258. <el-date-picker
  259. v-model="insurancePolicyForm.identifyValidEndDate1"
  260. type="date"
  261. placeholder="请选择"
  262. value-format="YYYY-MM-DD"
  263. style="width: calc(100% - 64px)"
  264. @blur="(e) => insurancePolicyForm.identifyValidEndDate1 = changeDate(e)"
  265. />
  266. <el-button type="primary" @click="longTime">长期</el-button>
  267. </div>
  268. </el-form-item>
  269. </el-col>
  270. <el-col :span="6">
  271. <el-form-item label="地址" prop="addr1">
  272. <el-input v-model="insurancePolicyForm.addr1" placeholder="请输入地址"></el-input>
  273. </el-form-item>
  274. </el-col>
  275. <el-col :span="6">
  276. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" label="投保人座机" prop="telephone">
  277. <el-input v-model="insurancePolicyForm.telephone1" placeholder="请输入投保人座机"></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="6">
  281. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" label="投保人联系人" prop="person">
  282. <el-input v-model="insurancePolicyForm.person1" placeholder="请输入投保人联系人"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="6">
  286. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" label="联系人证件号码" prop="age">
  287. <el-input v-model.number="insurancePolicyForm.age1" placeholder="请输入联系人证件号码"></el-input>
  288. </el-form-item>
  289. </el-col>
  290. <el-col :span="6">
  291. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" prop="identifyValidEndDate" label="有效期止期">
  292. <el-date-picker
  293. v-model="insurancePolicyForm.identifyValidEndDate1"
  294. type="date"
  295. placeholder="请选择"
  296. value-format="YYYY-MM-DD"
  297. style="width: 100%"
  298. />
  299. </el-form-item>
  300. </el-col>
  301. <el-col :span="6">
  302. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" prop="area" label="地区">
  303. <el-cascader
  304. clearable
  305. style="width: 100%"
  306. v-model="insurancePolicyForm.address1"
  307. :options="areaOptins"
  308. :props="areaProps"
  309. ></el-cascader>
  310. </el-form-item>
  311. </el-col>
  312. <el-col :span="6">
  313. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" label="注册资金" prop="money">
  314. <el-input v-model="insurancePolicyForm.registeredCapital1" placeholder="请输入注册资金">
  315. <template #append>
  316. <span>元</span>
  317. </template>
  318. </el-input>
  319. </el-form-item>
  320. </el-col>
  321. <el-col :span="6">
  322. <el-form-item v-if="insurancePolicyForm.identifyType1 === '02'" label="电子邮箱" prop="email">
  323. <el-input v-model="insurancePolicyForm.email1" placeholder="请输入电子邮箱"></el-input>
  324. </el-form-item>
  325. </el-col>
  326. <!-- <el-col :span="6">
  327. <el-form-item label="是否二手车" prop="gender">
  328. <el-select v-model="insurancePolicyForm.gender" placeholder="请选择">
  329. <el-option label="是" value="1" key="1"></el-option>
  330. <el-option label="否" value="2" key="2"></el-option>
  331. </el-select>
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="6">
  335. <el-form-item label="商业险是否过户" prop="gender">
  336. <el-select v-model="insurancePolicyForm.gender" placeholder="请选择">
  337. <el-option label="是" value="1" key="1"></el-option>
  338. <el-option label="否" value="2" key="2"></el-option>
  339. </el-select>
  340. </el-form-item>
  341. </el-col>-->
  342. </el-row>
  343. <template #icon="{ isActive }">
  344. <span class="icon">
  345. <el-button link type="primary" @click.stop="handleRecognition('czxx')"><img src="@/assets/images/insurancePolicy/sao.png" class="myIcon" />证件识别</el-button>
  346. <span class="icon-ele">
  347. {{ isActive ? '收起' : '展开' }}
  348. </span>
  349. </span>
  350. </template>
  351. </el-collapse-item>
  352. <el-collapse-item name="owner1">
  353. <template #title>
  354. <span class="title">
  355. 投保人信息
  356. <span class="ordinary" :class="{'active': item.checked}" v-for="(item, index) in btns.owner1" :key="item" @click.stop="handleChange(item, 'owner1')">
  357. {{ item.text }}
  358. </span>
  359. </span>
  360. </template>
  361. <el-row :gutter="20" class="formItem formBlock" v-if="btns.owner1Text === '其他人'">
  362. <el-col :span="6">
  363. <el-form-item label="车主姓名" prop="name2">
  364. <el-input v-model="insurancePolicyForm.name2" placeholder="输入车主姓名"></el-input>
  365. </el-form-item>
  366. </el-col>
  367. <el-col :span="6">
  368. <el-form-item label="车主手机号" prop="mobile2">
  369. <el-input v-model="insurancePolicyForm.mobile2" placeholder="请输入车主手机号"></el-input>
  370. </el-form-item>
  371. </el-col>
  372. <el-col :span="6">
  373. <el-form-item label="证件类型" prop="personType2">
  374. <el-select v-model="insurancePolicyForm.identifyType2" placeholder="请选择">
  375. <el-option label="身份证" value="01" key="01"></el-option>
  376. <el-option label="营业执照" value="02" key="02"></el-option>
  377. </el-select>
  378. </el-form-item>
  379. </el-col>
  380. <el-col v-if="insurancePolicyForm.identifyType2 === '01'" :span="6">
  381. <el-form-item label="证件号码" prop="identifyNumber2">
  382. <el-input v-model="insurancePolicyForm.identifyNumber2" placeholder="请输入证件号码" @change="getAgeByIdCard($event, insurancePolicyForm)"></el-input>
  383. </el-form-item>
  384. </el-col>
  385. <el-col v-else :span="6">
  386. <el-form-item label="统一社会信用代码" prop="identifyNumber2">
  387. <el-input v-model="insurancePolicyForm.identifyNumber2" placeholder="请输入证件号码"></el-input>
  388. </el-form-item>
  389. </el-col>
  390. <el-col :span="6">
  391. <el-form-item prop="identifyValidDate2" label="有效期起期">
  392. <el-date-picker
  393. v-model="insurancePolicyForm.identifyValidDate2"
  394. type="date"
  395. placeholder="请选择"
  396. value-format="YYYY-MM-DD"
  397. style="width: 100%"
  398. @blur="(e) => insurancePolicyForm.identifyValidDate2 = changeDate(e)"
  399. />
  400. </el-form-item>
  401. </el-col>
  402. <el-col :span="6">
  403. <el-form-item prop="identifyValidEndDate2" label="有效期止期">
  404. <el-date-picker
  405. v-model="insurancePolicyForm.identifyValidEndDate2"
  406. type="date"
  407. placeholder="请选择"
  408. value-format="YYYY-MM-DD"
  409. style="width: 100%"
  410. @blur="(e) => insurancePolicyForm.identifyValidEndDate2 = changeDate(e)"
  411. />
  412. </el-form-item>
  413. </el-col>
  414. <el-col :span="6">
  415. <el-form-item label="地址" prop="addr2">
  416. <el-input v-model="insurancePolicyForm.addr2" placeholder="请输入地址"></el-input>
  417. </el-form-item>
  418. </el-col>
  419. <el-col :span="6">
  420. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" label="投保人座机" prop="telephone">
  421. <el-input v-model="insurancePolicyForm.telephone2" placeholder="请输入投保人座机"></el-input>
  422. </el-form-item>
  423. </el-col>
  424. <el-col :span="6">
  425. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" label="投保人联系人" prop="person">
  426. <el-input v-model="insurancePolicyForm.person2" placeholder="请输入投保人联系人"></el-input>
  427. </el-form-item>
  428. </el-col>
  429. <el-col :span="6">
  430. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" label="联系人证件号码" prop="age">
  431. <el-input v-model.number="insurancePolicyForm.age2" placeholder="请输入联系人证件号码"></el-input>
  432. </el-form-item>
  433. </el-col>
  434. <el-col :span="6">
  435. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" prop="identifyValidEndDate" label="有效期止期">
  436. <el-date-picker
  437. v-model="insurancePolicyForm.identifyValidEndDate2"
  438. type="date"
  439. placeholder="请选择"
  440. value-format="YYYY-MM-DD"
  441. style="width: 100%"
  442. />
  443. </el-form-item>
  444. </el-col>
  445. <el-col :span="6">
  446. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" prop="area" label="地区">
  447. <el-cascader
  448. clearable
  449. style="width: 100%"
  450. v-model="insurancePolicyForm.address2"
  451. :options="areaOptins"
  452. :props="areaProps"
  453. ></el-cascader>
  454. </el-form-item>
  455. </el-col>
  456. <el-col :span="6">
  457. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" label="注册资金" prop="money">
  458. <el-input v-model="insurancePolicyForm.registeredCapital2" placeholder="请输入注册资金">
  459. <template #append>
  460. <span>元</span>
  461. </template>
  462. </el-input>
  463. </el-form-item>
  464. </el-col>
  465. <el-col :span="6">
  466. <el-form-item v-if="insurancePolicyForm.identifyType2 === '02'" label="电子邮箱" prop="email">
  467. <el-input v-model="insurancePolicyForm.email2" placeholder="请输入电子邮箱"></el-input>
  468. </el-form-item>
  469. </el-col>
  470. <!-- <el-col :span="6">
  471. <el-form-item label="是否二手车" prop="gender">
  472. <el-select v-model="insurancePolicyForm.policyHolderInfo.gender" placeholder="请选择">
  473. <el-option label="是" value="1" key="1"></el-option>
  474. <el-option label="否" value="2" key="2"></el-option>
  475. </el-select>
  476. </el-form-item>
  477. </el-col>
  478. <el-col :span="6">
  479. <el-form-item label="商业险是否过户" prop="gender">
  480. <el-select v-model="insurancePolicyForm.policyHolderInfo.gender" placeholder="请选择">
  481. <el-option label="是" value="1" key="1"></el-option>
  482. <el-option label="否" value="2" key="2"></el-option>
  483. </el-select>
  484. </el-form-item>
  485. </el-col>-->
  486. </el-row>
  487. <template #icon="{ isActive }">
  488. <span class="icon">
  489. <el-button link type="primary" @click.stop="handleRecognition('tbrxx')"><img src="@/assets/images/insurancePolicy/sao.png" class="myIcon" />证件识别</el-button>
  490. <span class="icon-ele">
  491. {{ isActive ? '收起' : '展开' }}
  492. </span>
  493. </span>
  494. </template>
  495. </el-collapse-item>
  496. <el-collapse-item name="owner2">
  497. <template #title>
  498. <span class="title">
  499. 被保人信息
  500. <span class="ordinary" :class="{'active': item.checked}" v-for="(item, index) in btns.owner2" :key="item" @click.stop="handleChange(item, 'owner2')">
  501. {{ item.text }}
  502. </span>
  503. </span>
  504. </template>
  505. <el-row :gutter="20" class="formItem formBlock" v-if="btns.owner2Text === '其他人'">
  506. <el-col :span="6">
  507. <el-form-item label="车主姓名" prop="name3">
  508. <el-input v-model="insurancePolicyForm.name3" placeholder="输入车主姓名"></el-input>
  509. </el-form-item>
  510. </el-col>
  511. <el-col :span="6">
  512. <el-form-item label="车主手机号" prop="mobile3">
  513. <el-input v-model="insurancePolicyForm.mobile3" placeholder="请输入车主手机号"></el-input>
  514. </el-form-item>
  515. </el-col>
  516. <el-col :span="6">
  517. <el-form-item label="证件类型" prop="personType3">
  518. <el-select v-model="insurancePolicyForm.identifyType3" placeholder="请选择">
  519. <el-option label="身份证" value="01" key="01"></el-option>
  520. <el-option label="营业执照" value="02" key="02"></el-option>
  521. </el-select>
  522. </el-form-item>
  523. </el-col>
  524. <el-col v-if="insurancePolicyForm.identifyType3 === '01'" :span="6">
  525. <el-form-item label="证件号码" prop="identifyNumber3">
  526. <el-input v-model="insurancePolicyForm.identifyNumber3" placeholder="请输入证件号码" @change="getAgeByIdCard($event, insurancePolicyForm)"></el-input>
  527. </el-form-item>
  528. </el-col>
  529. <el-col v-else :span="6">
  530. <el-form-item label="统一社会信用代码" prop="identifyNumber3">
  531. <el-input v-model="insurancePolicyForm.identifyNumber3" placeholder="请输入证件号码"></el-input>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="6">
  535. <el-form-item prop="identifyValidDate3" label="有效期起期">
  536. <el-date-picker
  537. v-model="insurancePolicyForm.identifyValidDate3"
  538. type="date"
  539. placeholder="请选择"
  540. value-format="YYYY-MM-DD"
  541. style="width: 100%"
  542. @blur="(e) => insurancePolicyForm.identifyValidDate3 = changeDate(e)"
  543. />
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="6">
  547. <el-form-item prop="identifyValidEndDate3" label="有效期止期">
  548. <el-date-picker
  549. v-model="insurancePolicyForm.identifyValidEndDate3"
  550. type="date"
  551. placeholder="请选择"
  552. value-format="YYYY-MM-DD"
  553. style="width: 100%"
  554. @blur="(e) => insurancePolicyForm.identifyValidEndDate3 = changeDate(e)"
  555. />
  556. </el-form-item>
  557. </el-col>
  558. <el-col :span="6">
  559. <el-form-item label="地址" prop="addr3">
  560. <el-input v-model="insurancePolicyForm.addr3" placeholder="请输入地址"></el-input>
  561. </el-form-item>
  562. </el-col>
  563. <el-col :span="6">
  564. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" label="投保人座机" prop="telephone">
  565. <el-input v-model="insurancePolicyForm.telephone3" placeholder="请输入投保人座机"></el-input>
  566. </el-form-item>
  567. </el-col>
  568. <el-col :span="6">
  569. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" label="投保人联系人" prop="person">
  570. <el-input v-model="insurancePolicyForm.person3" placeholder="请输入投保人联系人"></el-input>
  571. </el-form-item>
  572. </el-col>
  573. <el-col :span="6">
  574. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" label="联系人证件号码" prop="age">
  575. <el-input v-model.number="insurancePolicyForm.age3" placeholder="请输入联系人证件号码"></el-input>
  576. </el-form-item>
  577. </el-col>
  578. <el-col :span="6">
  579. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" prop="identifyValidEndDate" label="有效期止期">
  580. <el-date-picker
  581. v-model="insurancePolicyForm.identifyValidEndDate3"
  582. type="date"
  583. placeholder="请选择"
  584. value-format="YYYY-MM-DD"
  585. style="width: 100%"
  586. />
  587. </el-form-item>
  588. </el-col>
  589. <el-col :span="6">
  590. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" prop="area" label="地区">
  591. <el-cascader
  592. clearable
  593. style="width: 100%"
  594. v-model="insurancePolicyForm.address3"
  595. :options="areaOptins"
  596. :props="areaProps"
  597. ></el-cascader>
  598. </el-form-item>
  599. </el-col>
  600. <el-col :span="6">
  601. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" label="注册资金" prop="money">
  602. <el-input v-model="insurancePolicyForm.registeredCapital3" placeholder="请输入注册资金">
  603. <template #append>
  604. <span>元</span>
  605. </template>
  606. </el-input>
  607. </el-form-item>
  608. </el-col>
  609. <el-col :span="6">
  610. <el-form-item v-if="insurancePolicyForm.identifyType3 === '02'" label="电子邮箱" prop="email">
  611. <el-input v-model="insurancePolicyForm.email3" placeholder="请输入电子邮箱"></el-input>
  612. </el-form-item>
  613. </el-col>
  614. <!-- <el-col :span="6">
  615. <el-form-item label="是否二手车" prop="gender">
  616. <el-select v-model="insurancePolicyForm.gender3" placeholder="请选择">
  617. <el-option label="是" value="1" key="1"></el-option>
  618. <el-option label="否" value="2" key="2"></el-option>
  619. </el-select>
  620. </el-form-item>
  621. </el-col>
  622. <el-col :span="6">
  623. <el-form-item label="商业险是否过户" prop="gender">
  624. <el-select v-model="insurancePolicyForm.gender3" placeholder="请选择">
  625. <el-option label="是" value="1" key="1"></el-option>
  626. <el-option label="否" value="2" key="2"></el-option>
  627. </el-select>
  628. </el-form-item>
  629. </el-col>-->
  630. </el-row>
  631. <template #icon="{ isActive }">
  632. <span class="icon">
  633. <el-button link type="primary" @click.stop="handleRecognition('bbrxx')"><img src="@/assets/images/insurancePolicy/sao.png" class="myIcon" />证件识别</el-button>
  634. <span class="icon-ele">
  635. {{ isActive ? '收起' : '展开' }}
  636. </span>
  637. </span>
  638. </template>
  639. </el-collapse-item>
  640. <el-collapse-item name="tax">
  641. <template #title>
  642. <span class="title">
  643. 车船税
  644. <span class="ordinary" :class="{'active': item.checked}" v-for="(item, index) in btns.owner3" :key="item" @click.stop="handleChange(item, 'owner3')">
  645. {{ item.text }}
  646. </span>
  647. </span>
  648. </template>
  649. <div v-if="btns.owner3show === '正常交税'" style="width: 100%">
  650. <el-row :gutter="20" class="formItem formBlock">
  651. <el-col :span="6">
  652. <el-form-item label="纳税人名称" prop="taxpayerName">
  653. <el-input v-model="insurancePolicyForm.taxpayerName" placeholder="请输入纳税人名称" maxlength="50"></el-input>
  654. </el-form-item>
  655. </el-col>
  656. <el-col :span="6">
  657. <el-form-item label="证件类型" prop="taxpayerIdentifier">
  658. <el-select v-model="insurancePolicyForm.taxpayerIdentifier" placeholder="请选择">
  659. <el-option label="身份证" value="01" key="01"></el-option>
  660. <el-option label="营业执照" value="02" key="02"></el-option>
  661. </el-select>
  662. </el-form-item>
  663. </el-col>
  664. <el-col :span="6">
  665. <el-form-item label="证件号码" prop="identifyNumber">
  666. <el-input v-model="insurancePolicyForm.identifyNumber" placeholder="请输入证件号码" maxlength="50"></el-input>
  667. </el-form-item>
  668. </el-col>
  669. </el-row>
  670. </div>
  671. <div v-if="btns.owner3show === '免税'" style="width: 100%">
  672. <el-row :gutter="20" class="formItem formBlock">
  673. <el-col :span="6">
  674. <el-form-item label="减免税凭证号" prop="extendChar2">
  675. <el-input v-model="insurancePolicyForm.extendChar2" placeholder="请输入减免税凭证号" maxlength="50"></el-input>
  676. </el-form-item>
  677. </el-col>
  678. <el-col :span="6">
  679. <el-form-item label="减免税原因" prop="relifReason">
  680. <el-select v-model="insurancePolicyForm.relifReason" placeholder="请选择">
  681. <el-option label="原因1" value="1" key="1"></el-option>
  682. </el-select>
  683. </el-form-item>
  684. </el-col>
  685. <el-col :span="6">
  686. <el-form-item label="税务机关代码" prop="taxComCode">
  687. <el-input v-model="insurancePolicyForm.taxComCode" placeholder="请输入税务机关代码" maxlength="50"></el-input>
  688. </el-form-item>
  689. </el-col>
  690. <el-col :span="6">
  691. <el-form-item label="税务机关名称" prop="taxComName">
  692. <el-input v-model="insurancePolicyForm.taxComName" placeholder="请输入税务机关名称" maxlength="50"></el-input>
  693. </el-form-item>
  694. </el-col>
  695. </el-row>
  696. </div>
  697. <div v-if="btns.owner3show === '减税'" style="width: 100%">
  698. <el-row :gutter="20" class="formItem formBlock">
  699. <el-col :span="6">
  700. <el-form-item label="减免税凭证号" prop="extendChar2">
  701. <el-input v-model="insurancePolicyForm.extendChar2" placeholder="请输入减免税凭证号" maxlength="50"></el-input>
  702. </el-form-item>
  703. </el-col>
  704. <el-col :span="6">
  705. <el-form-item label="减免税原因" prop="relifReason">
  706. <el-select v-model="insurancePolicyForm.relifReason" placeholder="请选择">
  707. <el-option label="原因1" value="1" key="1"></el-option>
  708. </el-select>
  709. </el-form-item>
  710. </el-col>
  711. <el-col :span="6">
  712. <el-form-item label="税务机关代码" prop="taxComCode">
  713. <el-input v-model="insurancePolicyForm.taxComCode" placeholder="请输入税务机关代码" maxlength="50"></el-input>
  714. </el-form-item>
  715. </el-col>
  716. <el-col :span="6">
  717. <el-form-item label="税务机关名称" prop="taxComName">
  718. <el-input v-model="insurancePolicyForm.taxComName" placeholder="请输入税务机关名称" maxlength="50"></el-input>
  719. </el-form-item>
  720. </el-col>
  721. <el-col :span="6">
  722. <el-form-item label="减税比例" prop="taxRelief">
  723. <el-input v-model="insurancePolicyForm.taxRelief" placeholder="请输入减税比例">
  724. <template #append>
  725. <span>%</span>
  726. </template>
  727. </el-input>
  728. </el-form-item>
  729. </el-col>
  730. </el-row>
  731. </div>
  732. <div v-if="btns.owner3show === '完税'" style="width: 100%">
  733. <el-row :gutter="20" class="formItem formBlock">
  734. <el-col :span="6">
  735. <el-form-item label="完税凭证号" prop="extendChar2">
  736. <el-input v-model="insurancePolicyForm.extendChar2" placeholder="请输入完税凭证号" maxlength="50"></el-input>
  737. </el-form-item>
  738. </el-col>
  739. <el-col :span="6">
  740. <el-form-item label="税务机关代码" prop="taxComCode">
  741. <el-input v-model="insurancePolicyForm.taxComCode" placeholder="请输入税务机关代码" maxlength="50"></el-input>
  742. </el-form-item>
  743. </el-col>
  744. <el-col :span="6">
  745. <el-form-item label="税务机关名称" prop="taxComName">
  746. <el-input v-model="insurancePolicyForm.taxComName" placeholder="请输入税务机关名称" maxlength="50"></el-input>
  747. </el-form-item>
  748. </el-col>
  749. <el-col :span="6">
  750. <el-form-item prop="taxDocumentDate" label="完税凭证填发日期">
  751. <el-date-picker
  752. v-model="insurancePolicyForm.taxDocumentDate"
  753. type="date"
  754. placeholder="请选择"
  755. value-format="YYYY-MM-DD"
  756. style="width: 100%"
  757. />
  758. </el-form-item>
  759. </el-col>
  760. <el-col :span="6">
  761. <el-form-item prop="taxPaidAreaCode" label="完税凭证地区">
  762. <el-cascader
  763. clearable
  764. style="width: 100%"
  765. v-model="insurancePolicyForm.taxPaidAreaCode"
  766. :options="areaOptins"
  767. :props="areaProps"
  768. ></el-cascader>
  769. </el-form-item>
  770. </el-col>
  771. </el-row>
  772. </div>
  773. <template #icon="{ isActive }">
  774. <span class="icon">
  775. <span class="icon-ele">
  776. {{ isActive ? '收起' : '展开' }}
  777. </span>
  778. </span>
  779. </template>
  780. </el-collapse-item>
  781. <el-collapse-item name="insurance">
  782. <template #title>
  783. <span class="title">
  784. 投保信息
  785. <span class="ordinary" :class="{'active': item.checked}" v-for="(item, index) in optionObj.insuranceType" :key="item.value" @click.stop="handleChange(item, 'insurance')">
  786. {{ item.label }}
  787. </span>
  788. </span>
  789. </template>
  790. <el-form-item class="white-m-p24" label="车辆其他信息">
  791. <el-checkbox v-model="insurancePolicyForm.transfer" value="1">是否过户</el-checkbox>
  792. <el-checkbox v-model="insurancePolicyForm.biTransfer" value="2">商业险是否过户</el-checkbox>
  793. <el-checkbox v-model="insurancePolicyForm.secondHandCar" value="3">二手车</el-checkbox>
  794. </el-form-item>
  795. <div class="insurance-jq" v-if="insurancePolicyForm.productId === '0330' || insurancePolicyForm.productId === '0330034002' || insurancePolicyForm.productId === '0330034001'">
  796. <span>交强险</span>
  797. <span class="checkbox" :class="{'cehcked': item.checked}" v-for="item in jqWork" :key="item" @click="JQChange(item)">{{ item.text }}</span>
  798. <div class="time">
  799. <el-form-item prop="startDate" label="">
  800. <el-date-picker
  801. v-model="insurancePolicyForm.JQStartDate"
  802. type="datetime"
  803. placeholder="请选择"
  804. value-format="YYYY-MM-DD HH:mm:ss"
  805. style="width: 100%"
  806. @change="jqChange"
  807. />
  808. </el-form-item>
  809. &nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  810. <el-form-item prop="endDate" label="">
  811. <el-date-picker
  812. v-model="insurancePolicyForm.JQEndDate"
  813. type="datetime"
  814. placeholder="请选择"
  815. value-format="YYYY-MM-DD HH:mm:ss"
  816. style="width: 100%"
  817. />
  818. </el-form-item>
  819. </div>
  820. </div>
  821. <div class="insurance-jq" v-if="insurancePolicyForm.productId === '034001' || insurancePolicyForm.productId === '034002' || insurancePolicyForm.productId === '0330034002' || insurancePolicyForm.productId === '0330034001'">
  822. <span>商业险</span>
  823. <span class="checkbox" :class="{'cehcked': item.checked}" v-for="item in syWork" :key="item" @click="SYChange(item)">{{ item.text }}</span>
  824. <div class="time">
  825. <el-form-item prop="startDate" label="">
  826. <el-date-picker
  827. v-model="insurancePolicyForm.SYStartDate"
  828. type="datetime"
  829. placeholder="请选择"
  830. value-format="YYYY-MM-DD HH:mm:ss"
  831. style="width: 100%"
  832. @change="syChange"
  833. />
  834. </el-form-item>
  835. &nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  836. <el-form-item prop="endDate" label="">
  837. <el-date-picker
  838. v-model="insurancePolicyForm.SYEndDate"
  839. type="datetime"
  840. placeholder="请选择"
  841. value-format="YYYY-MM-DD HH:mm:ss"
  842. style="width: 100%"
  843. />
  844. </el-form-item>
  845. </div>
  846. </div>
  847. <template #icon="{ isActive }">
  848. <span class="icon">
  849. <span class="icon-ele">
  850. {{ isActive ? '收起' : '展开' }}
  851. </span>
  852. </span>
  853. </template>
  854. </el-collapse-item>
  855. <el-collapse-item name="company">
  856. <template #title>
  857. <span class="title">
  858. 报价公司
  859. </span>
  860. </template>
  861. <el-table
  862. :data="quoteData"
  863. style="width: calc(100% - 48px); margin: 0 24px"
  864. row-key="id"
  865. :preserve-expanded-content="true"
  866. @selection-change="handleSelect"
  867. @select="handelSelectRow"
  868. @row-click="handleClickRow"
  869. @expand-change="handelExpend"
  870. >
  871. <el-table-column type="expand">
  872. <template #default="scope">
  873. <div class="expandFlex">
  874. <p class="expandTitle">车险方案</p>
  875. <div style="width: calc(100% - 50px); overflow-x: hidden">
  876. <div class="product">
  877. <span class="productItem" :class="{'productActive': productIndex === index}" v-for="(item, index) in scope.row.projectList" @click.stop="handleProduct(item, index)">{{ item.schemeName }}</span>
  878. </div>
  879. <el-row :gutter="20">
  880. <el-col :span="12">
  881. <div class="quoteTitle">方案明细</div>
  882. <el-table
  883. :data="scope.row.projectList?.[productIndex]?.kinds"
  884. >
  885. <el-table-column width="50" align="center" v-if="scope.row.projectList?.[productIndex]?.schemeType !='1'">
  886. <template #header>
  887. <el-icon style="cursor: pointer;" @click="handlePopover(scope)"><CirclePlus /></el-icon>
  888. </template>
  889. <template #default="props">
  890. <el-icon @click="handleInsuranceDel(scope, props)"><Delete /></el-icon>
  891. </template>
  892. </el-table-column>
  893. <el-table-column label="险种" prop="kindName" align="center"></el-table-column>
  894. <el-table-column label="保额" align="center">
  895. <template #default="props">
  896. <el-select v-model="props.row.amount" :disabled="scope.row.projectList?.[productIndex]?.schemeType == '1'">
  897. <el-option v-for="item in props.row.options" :label="item.label" :value="item.value"></el-option>
  898. </el-select>
  899. </template>
  900. </el-table-column>
  901. <el-table-column label="保费" prop="unitAmount" align="center"></el-table-column>
  902. </el-table>
  903. <div class="quoteTitle" v-if="scope.row.projectList?.[productIndex]?.rescue && scope.row.projectList?.[productIndex]?.detection && scope.row.projectList?.[productIndex]?.driver && scope.row.projectList?.[productIndex]?.inspect ">增值服务</div>
  904. <el-row :gutter="20" v-if="scope.row.projectList?.[productIndex]?.rescue && scope.row.projectList?.[productIndex]?.detection && scope.row.projectList?.[productIndex]?.driver && scope.row.projectList?.[productIndex]?.inspect ">
  905. <el-col :span="6" class="quoteFlex">
  906. 救援
  907. <el-select v-model="scope.row.projectList[productIndex].rescue" :disabled="scope.row.projectList?.[productIndex]?.schemeType =='1'" size="small" style="width: 80px; margin: 0 10px">
  908. <el-option label="1" value="1"></el-option>
  909. </el-select>
  910. </el-col>
  911. <el-col :span="6" class="quoteFlex">
  912. 检测
  913. <el-select v-model="scope.row.projectList[productIndex].detection" :disabled="scope.row.projectList?.[productIndex]?.schemeType =='1'" size="small" style="width: 80px; margin: 0 10px">
  914. <el-option label="1" value="1"></el-option>
  915. </el-select>
  916. </el-col>
  917. <el-col :span="6" class="quoteFlex">
  918. 代驾
  919. <el-select v-model="scope.row.projectList[productIndex].driver" :disabled="scope.row.projectList?.[productIndex]?.schemeType =='1'" size="small" style="width: 80px; margin: 0 10px">
  920. <el-option label="1" value="1"></el-option>
  921. </el-select>
  922. </el-col>
  923. <el-col :span="6" class="quoteFlex">
  924. 送检
  925. <el-select v-model="scope.row.projectList[productIndex].inspect" :disabled="scope.row.projectList?.[productIndex]?.schemeType =='1'" size="small" style="width: 80px; margin: 0 10px">
  926. <el-option label="1" value="1"></el-option>
  927. </el-select>
  928. </el-col>
  929. </el-row>
  930. <div class="quoteTitle">驾意险</div>
  931. <el-table
  932. :data="scope.row.projectList?.[productIndex]?.drivings"
  933. >
  934. <el-table-column width="50" align="center" v-if="scope.row.projectList?.[productIndex]?.schemeType !='1'">
  935. <template #header>
  936. <el-icon @click="handleDriving(scope)"><CirclePlus /></el-icon>
  937. </template>
  938. <template #default="props">
  939. <el-icon @click="handleDrivingDel(scope, props)"><Delete /></el-icon>
  940. </template>
  941. </el-table-column>
  942. <el-table-column label="产品名称" prop="productName" align="center">
  943. <template #default="props">
  944. <el-button link type="primary" @click="getJYXDetail(props.row)">{{ props.row.productName }}</el-button>
  945. </template>
  946. </el-table-column>
  947. <el-table-column label="数量" align="center">
  948. <template #default="props">
  949. <el-input :disabled="scope.row.projectList?.[productIndex]?.schemeType === '1'" v-model="props.row.quantity" style="width: 140px">
  950. <template #append>
  951. <span>份</span>
  952. </template>
  953. </el-input>
  954. </template>
  955. </el-table-column>
  956. <el-table-column label="保费" prop="premium" align="center"></el-table-column>
  957. </el-table>
  958. <el-button size="small" link type="primary" @click="handleSelectSpecial(scope)">选择特约</el-button>
  959. <el-table :data="scope.row.specialSelectedList" v-show="scope.row.specialSelectedList?.length > 0">
  960. <el-table-column prop="clauseName" label="特约名称"></el-table-column>
  961. </el-table>
  962. </el-col>
  963. <el-col :span="12" style="border-left: 1px dashed #eeeeee">
  964. <p style="text-align: center">保费因素</p>
  965. <el-table
  966. class="factorTable"
  967. :data="scope.row.factorData"
  968. >
  969. <el-table-column label="评分" prop="" width="50">--</el-table-column>
  970. <el-table-column label="交强险折扣系数" prop="">--</el-table-column>
  971. <el-table-column label="鼎然车辆风险评分" prop="">--</el-table-column>
  972. <el-table-column label="交强评分" prop="" width="70">--</el-table-column>
  973. <el-table-column label="商业评分" prop="" width="70">--</el-table-column>
  974. <el-table-column label="出险信息" prop="" width="70">--</el-table-column>
  975. <el-table-column label="总赔付率" prop="" width="70">--</el-table-column>
  976. <el-table-column label="交强赔付率" prop="" width="80">--</el-table-column>
  977. <el-table-column label="商业赔付率" prop="" width="80">--</el-table-column>
  978. </el-table>
  979. <el-table
  980. class="factorTable"
  981. :data="scope.row.factorData"
  982. >
  983. <el-table-column label="类型" prop="" width="50">--</el-table-column>
  984. <el-table-column prop="">
  985. <template #header>
  986. <div style="display: flex; align-items: center; justify-content: center">
  987. <span>商业险折扣系数</span>
  988. <el-popover placement="bottom" width="200">
  989. <div style="display: flex; align-items: center; justify-content: space-between;">
  990. <span>NCD折扣系数</span>
  991. <span>0.8</span>
  992. </div>
  993. <div style="display: flex; align-items: center; justify-content: space-between;">
  994. <span>NCD折扣系数11</span>
  995. <span>0.811</span>
  996. </div>
  997. <template #reference>
  998. <div class="more">
  999. <el-icon><MoreFilled /></el-icon>
  1000. </div>
  1001. </template>
  1002. </el-popover>
  1003. </div>
  1004. </template>
  1005. <template #default="props">
  1006. <div style="display: flex; align-items: center; justify-content: center">
  1007. <span>--</span>
  1008. <el-popover placement="bottom" width="240" trigger="click">
  1009. <div class="number">
  1010. <p>商业险折扣系数和自主定价系数只能修改一个,修改后系统会重新报价,计算修改后的保费</p>
  1011. <el-radio-group>
  1012. <el-radio value="1" size="small" style="margin-bottom: 10px">
  1013. <template #default>
  1014. <div style="display: flex; justify-content: space-between; align-items: center; width: 180px">
  1015. <span>商业险折扣系数</span>
  1016. <el-input style="width: 80px" size="small"></el-input>
  1017. </div>
  1018. </template>
  1019. </el-radio>
  1020. <el-radio value="2" size="small">
  1021. <template #default>
  1022. <div style="display: flex; justify-content: space-between; align-items: center; width: 180px">
  1023. <span>自主定价系数</span>
  1024. <el-input style="width: 80px" size="small"></el-input>
  1025. </div>
  1026. </template>
  1027. </el-radio>
  1028. </el-radio-group>
  1029. </div>
  1030. <template #reference>
  1031. <el-icon style="font-size: 14px; color:#0083FF "><Edit /></el-icon>
  1032. </template>
  1033. </el-popover>
  1034. </div>
  1035. </template>
  1036. </el-table-column>
  1037. <el-table-column label="交强出险次数" prop="" width="100">--</el-table-column>
  1038. <el-table-column label="商业出险次数" prop="" width="100">--</el-table-column>
  1039. <el-table-column label="交强续保" prop="" width="70">--</el-table-column>
  1040. <el-table-column label="商业续保" prop="" width="70">--</el-table-column>
  1041. <el-table-column label="总折扣率" prop="" width="70">--</el-table-column>
  1042. <el-table-column label="商业折扣" prop="" width="70">--</el-table-column>
  1043. <el-table-column label="交强折扣" prop="" width="70">--</el-table-column>
  1044. </el-table>
  1045. </el-col>
  1046. <el-col :span="12" style="border-left: 1px dashed #eeeeee">
  1047. <p style="text-align: center">优惠信息</p>
  1048. <el-table
  1049. class="factorTable"
  1050. :data="scope.row.discounts"
  1051. >
  1052. <el-table-column label="险种" prop="name"></el-table-column>
  1053. <el-table-column label="比例" prop="commissionRatio"></el-table-column>
  1054. <el-table-column label="优惠金额" prop="commissionPremium"></el-table-column>
  1055. <el-table-column label="返还结算比例" prop="exportRatio"></el-table-column>
  1056. <el-table-column label="返还金额" prop="exportPremium"></el-table-column>
  1057. </el-table>
  1058. </el-col>
  1059. </el-row>
  1060. </div>
  1061. </div>
  1062. </template>
  1063. </el-table-column>
  1064. <el-table-column type="selection" width="55" />
  1065. <el-table-column label="保险公司" prop="" align="center" width="200">
  1066. <template #default="scope">
  1067. <div class="company">
  1068. <img :src="scope.row.logo"/>
  1069. <span>{{ scope.row.name }}</span>
  1070. </div>
  1071. </template>
  1072. </el-table-column>
  1073. <el-table-column label="报价协议" prop="" align="center" width="260">
  1074. <template #default="scope">
  1075. <el-select v-model="scope.row.agreement" :disabled="scope.row.isDispatch || scope.row.agreements.length == 1" v-if="currentRow.some(a => a.id === scope.row.id)" :placeholder="scope.row.isDispatch?'默认':'请选择'">
  1076. <el-option v-for="item in scope.row.agreements" :value="item.id" :label="item.agreementName"></el-option>
  1077. </el-select>
  1078. </template>
  1079. </el-table-column>
  1080. <el-table-column prop="" align="center">
  1081. <template #header>
  1082. <div style="display: flex; align-items: center; justify-content: center">
  1083. <span style="margin-right: 10px">报价结果</span>
  1084. <el-checkbox @change="handleViewSuccess">仅查看报价成功</el-checkbox>
  1085. </div>
  1086. </template>
  1087. <template #default="scope">
  1088. <div class="result" v-if="currentRow.some(a => a.id === scope.row.id)">
  1089. <span class="resultItem">
  1090. <span v-if="scope.row.quoteResult?.costs?.sumPremium">总保费:{{ scope.row.quoteResult?.costs?.sumPremium }}</span>
  1091. <span class="resultTips" v-if="scope.row.quoteResult?.feeNoDescription" @click="handleOpen(scope)">
  1092. <el-icon style="color: #FF4545; font-size: 14px"><Warning /></el-icon>&nbsp;&nbsp;未匹配费用
  1093. </span>
  1094. </span>
  1095. <div class="resultItem">
  1096. <span v-if="scope.row.quoteResult?.costs?.ciPremium" style="text-align: left; margin-right: 10px">交强:{{ `¥${scope.row.quoteResult?.costs?.ciPremium}` }}</span>
  1097. <span v-if="scope.row.quoteResult?.costs?.vvTax" style="text-align: left; margin-right: 10px">车船税:{{ `¥${scope.row.quoteResult?.costs?.vvTax}` }}</span>
  1098. </div>
  1099. <div class="resultItem">
  1100. <span v-if="scope.row.quoteResult?.costs?.biPremium" style="text-align: left; margin-right: 10px">商业险:{{ `¥${scope.row.quoteResult.costs?.biPremium}` }}</span>
  1101. <span v-if="scope.row.quoteResult?.costs?.niPremium" style="text-align: left; margin-right: 10px">驾意险:{{ `¥${scope.row.quoteResult?.costs?.niPremium}` }}</span>
  1102. </div>
  1103. <span class="resultItem" v-if="scope.row.quoteResult?.ciRiskInfoVo?.startDate || scope.row.quoteResult?.ciRiskInfoVo?.endDate ">
  1104. <span>交强险保险期:{{ `${scope.row.quoteResult?.ciRiskInfoVo?.startDate} 至 ${scope.row.quoteResult?.ciRiskInfoVo?.endDate}` }}</span>
  1105. </span>
  1106. <span class="resultItem" v-if="scope.row.quoteResult?.biRiskInfoVo?.startDate || scope.row.quoteResult?.biRiskInfoVo?.endDate">
  1107. <span>商业险保险期:{{ `${scope.row.quoteResult?.biRiskInfoVo?.startDate} 至 ${scope.row.quoteResult?.biRiskInfoVo?.endDate}` }}</span>
  1108. </span>
  1109. <div>
  1110. <div class="quoteFail" v-if="scope.row.quoteResult?.failMsg">
  1111. <el-icon style="color: #FF4545; font-size: 14px" @click="handleOpen"><Warning /></el-icon>&nbsp;&nbsp;报价失败
  1112. </div>
  1113. <!-- <div class="quoteReason">{{ scope.row.quoteResult?.failMsg }}</div>-->
  1114. </div>
  1115. </div>
  1116. <div class="loader" v-show="scope.row.loading">
  1117. <!-- <i style="color: #d42426" class="el-icon-loading"></i> -->
  1118. <p class="text">
  1119. <span class="letter letter1">掌</span>
  1120. <span class="letter letter2">柜</span>
  1121. <span class="letter letter3">正</span>
  1122. <span class="letter letter4">在</span>
  1123. <span class="letter letter5">为</span>
  1124. <span class="letter letter6">您</span>
  1125. <span class="letter letter7">报</span>
  1126. <span class="letter letter8">价</span>
  1127. <span class="letter letter9">.</span>
  1128. <span class="letter letter10">.</span>
  1129. <span class="letter letter11">.</span>
  1130. </p>
  1131. </div>
  1132. </template>
  1133. </el-table-column>
  1134. <el-table-column label="费用因子" align="center">
  1135. <template #default="scope">
  1136. <div style="width: 100%;" v-if="scope.row.quoteResult?.scoreVo?.scoreJson">
  1137. <template v-for="(item, index) in scope.row.quoteResult?.scoreVo?.scoreJson" :key="index">
  1138. <div class="costFactor">
  1139. <span>{{ item.scoreName }}:</span><span>{{ item.score || '--' }}</span>
  1140. </div>
  1141. <div class="costFactor" v-if="scope.row.quoteResult?.scoreVo">
  1142. <span>交强险系数:</span><span>{{ item.jqLossRation || '--' }}</span>
  1143. </div>
  1144. <div class="costFactor" v-if="scope.row.quoteResult?.scoreVo">
  1145. <span>商业险系数:</span><span>{{ item.syLossRation || '--' }}</span>
  1146. </div>
  1147. <div class="costFactor" v-if="scope.row.quoteResult?.scoreVo">
  1148. <el-popover
  1149. :width="200"
  1150. placement="bottom"
  1151. trigger="hover"
  1152. >
  1153. <template #reference>
  1154. <span style="display: flex; align-items: center">更多信息:<el-icon color="#409eff"><InfoFilled /></el-icon></span>
  1155. </template>
  1156. <div class="moreFactor">
  1157. <span>NCD折扣系数:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1158. </div>
  1159. <div class="moreFactor">
  1160. <span>交通违法系数:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1161. </div>
  1162. <div class="moreFactor">
  1163. <span>自主定价系数:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1164. </div>
  1165. <div class="moreFactor">
  1166. <span>自助渠道系数:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1167. </div>
  1168. <div class="moreFactor">
  1169. <span>鼎然车险风险评分:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1170. </div>
  1171. <div class="moreFactor">
  1172. <span>交强评分:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1173. </div>
  1174. <div class="moreFactor">
  1175. <span>商业评分:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1176. </div>
  1177. <div class="moreFactor">
  1178. <span>出险信息:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1179. </div>
  1180. <div class="moreFactor">
  1181. <span>总赔付率:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1182. </div>
  1183. <div class="moreFactor">
  1184. <span>商业赔付率:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1185. </div>
  1186. <div class="moreFactor">
  1187. <span>总折扣率:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1188. </div>
  1189. <div class="moreFactor">
  1190. <span>交强折扣:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1191. </div>
  1192. <div class="moreFactor">
  1193. <span>商业折扣:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1194. </div>
  1195. <div class="moreFactor">
  1196. <span>类型:</span><span>{{ scope.row.quoteResult?.scoreVo?.syLossRation || '--' }}</span>
  1197. </div>
  1198. </el-popover>
  1199. </div>
  1200. </template>
  1201. </div>
  1202. </template>
  1203. </el-table-column>
  1204. <el-table-column label="操作" align="center" width="360">
  1205. <template #default="scope">
  1206. <div v-if="currentRow.some(a => a.id === scope.row.id)">
  1207. <el-button v-if="scope.row.quoteResult" link type="primary" @click="handleCount(scope)">优惠测算</el-button>
  1208. <el-button v-if="scope.row.quoteResult" link type="primary" @click="toDetail(scope)">详情</el-button>
  1209. <el-button link type="primary" :loading="scope.row.loading" @click="handleSubmit(InsurancePolicyRefs,scope)">计算保费</el-button>
  1210. <el-button v-if="scope.row.quoteResult" link type="primary" @click="handleShare(scope)">分享</el-button>
  1211. <el-button v-if="scope.row.quoteResult" link type="primary" @click="handleUnderwriting(scope)">核保</el-button>
  1212. </div>
  1213. </template>
  1214. </el-table-column>
  1215. </el-table>
  1216. <template #icon="{ isActive }">
  1217. <span class="icon">
  1218. <span class="icon-ele">
  1219. {{ isActive ? '收起' : '展开' }}
  1220. </span>
  1221. </span>
  1222. </template>
  1223. </el-collapse-item>
  1224. <el-collapse-item name="history">
  1225. <template #title>
  1226. <span class="title">
  1227. 报价历史
  1228. </span>
  1229. </template>
  1230. <el-table
  1231. :data="tableData"
  1232. style="width: calc(100% - 48px); margin: 0 24px"
  1233. >
  1234. <el-table-column label="保险公司" prop="companyName"></el-table-column>
  1235. <el-table-column label="报价时间" prop="quoteTime"></el-table-column>
  1236. <el-table-column label="险种" prop="productName"></el-table-column>
  1237. <el-table-column label="状态" prop="orderStatusName">
  1238. <template #default="scope">
  1239. <span v-if="scope.row.orderStatusName=='报价成功'" class="success">报价成功</span>
  1240. <span v-if="scope.row.orderStatus=='6' || scope.row.orderStatus=='7'" style="display: flex; align-items: center">
  1241. <span class="fail">{{ scope.row.orderStatusName }}</span>
  1242. <el-tooltip
  1243. class="box-item"
  1244. effect="dark"
  1245. :content="scope.row.errorMessage"
  1246. placement="bottom"
  1247. >
  1248. <el-icon style="color: #FF4545; font-size: 18px"><Warning /></el-icon>
  1249. </el-tooltip>
  1250. </span>
  1251. </template>
  1252. </el-table-column>
  1253. <el-table-column label="保费计算" prop="sumPremium"></el-table-column>
  1254. <el-table-column label="交强险" prop="jqPremium"></el-table-column>
  1255. <el-table-column label="商业险" prop="syPremium"></el-table-column>
  1256. <el-table-column label="驾意险" prop="jyPremium"></el-table-column>
  1257. <el-table-column label="操作">
  1258. <template #default="scope">
  1259. <el-button link type="primary" @click="toDetail(scope.row.orderNo)">详情</el-button>
  1260. <el-popover
  1261. v-if="scope.row.orderStatus === '5'"
  1262. :width="200"
  1263. placement="bottom"
  1264. trigger="click"
  1265. >
  1266. <template #reference>
  1267. <el-button size="small" type="primary" link @click="handleCode(scope.row.orderNo)">分享</el-button>
  1268. </template>
  1269. <div class="popover">
  1270. <img style="display: block; width: 128px; height: 128px; margin: 5px auto;" :src="payCodeUrl">
  1271. <p>使用微信扫码,查看报价单</p>
  1272. <div class="popoverBtns">
  1273. <el-button size="small" type="primary" plain @click="handlePopoverCancel">保存二维码</el-button>
  1274. <el-button size="small" type="primary" plain @click="handlePopoverConfirm">复制链接</el-button>
  1275. </div>
  1276. </div>
  1277. </el-popover>
  1278. <el-button link type="primary" v-if="scope.row.orderStatus === '1'" @click="handleUnderwriting(scope)">核保</el-button>
  1279. <el-button link type="primary" v-if="scope.row.orderStatus === '4'" @click="getPayCode(scope.row.orderNo)">支付码</el-button>
  1280. <!-- <el-button link type="primary" v-if="scope.row.orderStatus === '1'" @click="handleImageSave(scope)">上传影像</el-button>-->
  1281. <el-button link type="primary" v-if="scope.row.orderStatus === '7'" @click="handleUnderwriting(scope)">重新核保</el-button>
  1282. </template>
  1283. </el-table-column>
  1284. </el-table>
  1285. <template #icon="{ isActive }">
  1286. <span class="icon">
  1287. <span class="icon-ele">
  1288. {{ isActive ? '收起' : '展开' }}
  1289. </span>
  1290. </span>
  1291. </template>
  1292. </el-collapse-item>
  1293. </el-collapse>
  1294. </el-form>
  1295. <div class="footer">
  1296. <span>已选保司:{{ currentRow.length }}家</span>&nbsp;&nbsp;&nbsp;
  1297. <el-button type="primary" :loading="loading" @click="handleSubmit(InsurancePolicyRefs)">确定</el-button>
  1298. </div>
  1299. <el-dialog
  1300. title="选择业务员"
  1301. v-model="salesmanShow"
  1302. width="700"
  1303. >
  1304. <salesmanSelect ref="SalesmanSelectRef" @close="handleSalesmanSelect"></salesmanSelect>
  1305. </el-dialog>
  1306. <el-dialog
  1307. v-model="shareShow"
  1308. width="300"
  1309. title="分享"
  1310. >
  1311. <div class="imageCode">
  1312. <img :src="shareImageUrl" />
  1313. </div>
  1314. <template #footer>
  1315. <el-button plain type="primary" @click="handleSaveImage">保存图片</el-button>
  1316. <el-button plain type="primary" @click="handleCopyLink">复制链接</el-button>
  1317. </template>
  1318. </el-dialog>
  1319. <el-dialog
  1320. title="优惠测算"
  1321. v-model="calculatingShow"
  1322. width="600"
  1323. >
  1324. <calculating ref="calculatingRefs"></calculating>
  1325. </el-dialog>
  1326. <el-dialog
  1327. title="提交核保"
  1328. width="1100"
  1329. v-model="underwritingShow"
  1330. >
  1331. <underwriting ref="UnderwritingRefs" @close="handleUnderwritingClose"></underwriting>
  1332. </el-dialog>
  1333. <el-dialog
  1334. title="证件识别"
  1335. width="800"
  1336. v-model="imageShow"
  1337. >
  1338. <recognition ref="RecognitionRefs" :option="optionObj.car_type_code" @close="handleImageClose"></recognition>
  1339. </el-dialog>
  1340. <el-dialog
  1341. v-model="insuranceShow"
  1342. title="选择险种"
  1343. width="500"
  1344. >
  1345. <insurance ref="InsuranceTypeRef" @close="handleClose" ></insurance>
  1346. </el-dialog>
  1347. <el-dialog
  1348. v-model="drivingShow"
  1349. title="选择驾意险"
  1350. width="700"
  1351. >
  1352. <driving ref="DrivingTypeRef" @close="handleDrivingClose"></driving>
  1353. </el-dialog>
  1354. <el-dialog
  1355. v-model="licenseNoShow"
  1356. width="900"
  1357. title="车型查询"
  1358. >
  1359. <el-table
  1360. ref="LicenseNoTable"
  1361. :data="licenseNoData"
  1362. row-key="id"
  1363. @select="handleSelectedChange"
  1364. @row-dblclick="handleSelectedRow"
  1365. >
  1366. <el-table-column type="selection"></el-table-column>
  1367. <el-table-column prop="modelCode" label="厂牌型号代码"></el-table-column>
  1368. <el-table-column prop="modelName" label="厂牌型号"></el-table-column>
  1369. <el-table-column prop="replacementValue" label="新车购置价"></el-table-column>
  1370. <el-table-column prop="marketYear" label="年款"></el-table-column>
  1371. <el-table-column prop="ratedPassengerCapacity" label="座位数"></el-table-column>
  1372. <el-table-column prop="displacement" label="排量"></el-table-column>
  1373. <el-table-column prop="vehicleDescription" label="配置"></el-table-column>
  1374. </el-table>
  1375. <div class="footer">
  1376. <el-button plain @click="licenseNoDataCancel">取消</el-button>
  1377. <el-button type="primary" @click="licenseNoDataSubmit">确定</el-button>
  1378. </div>
  1379. </el-dialog>
  1380. <el-dialog
  1381. v-model="JYXDetailShow"
  1382. title="驾意险详情"
  1383. width="600"
  1384. >
  1385. <detail ref="JYXDetail"></detail>
  1386. </el-dialog>
  1387. <el-dialog
  1388. v-model="specialShow"
  1389. width="700"
  1390. title="选择特约"
  1391. >
  1392. <el-table
  1393. :data="specialTableData"
  1394. @selection-change="handleSpecialSelectChage"
  1395. >
  1396. <el-table-column type="selection" width="50" align="center"></el-table-column>
  1397. <el-table-column label="特约类型" prop="riskCode" align="center"></el-table-column>
  1398. <el-table-column label="特约名称" prop="clauseName" align="center"></el-table-column>
  1399. <el-table-column label="编码" prop="clauseCode" align="center"></el-table-column>
  1400. <el-table-column label="特别约定内容" prop="clauseContent" width="300" align="center"></el-table-column>
  1401. </el-table>
  1402. <div class="footer">
  1403. <el-button plain type="primary" @click="handleSpecialTableDataCancel">取消</el-button>
  1404. <el-button type="primary" @click="handleSpecialTableDataSubmit">确定</el-button>
  1405. </div>
  1406. </el-dialog>
  1407. </div>
  1408. </template>
  1409. <script setup lang="ts">
  1410. import type { FormInstance, FormRules } from 'element-plus'
  1411. import api from "@/api";
  1412. import { ElMessage, ElNotification } from "element-plus";
  1413. import { useRoute, useRouter } from 'vue-router'
  1414. import underwriting from './modules/underwriting.vue'
  1415. import recognition from './modules/recognition.vue'
  1416. import calculating from './modules/calculating.vue'
  1417. import salesmanSelect from '../additionalOrder/additional/modules/salesmanSelect.vue'
  1418. import insurance from "../additionalOrder/additional/modules/insuranceSelect.vue";
  1419. import driving from '../../layouts/components/DrivingType/index.vue'
  1420. import detail from '../../layouts/components/JYXDetail/index.vue'
  1421. import QRCode from 'qrcode'
  1422. import dayjs from "dayjs";
  1423. const RecognitionRefs = ref()
  1424. const SalesmanSelectRef = ref()
  1425. const InsuranceTypeRef = ref()
  1426. const DrivingTypeRef = ref()
  1427. const UnderwritingRefs = ref()
  1428. const LicenseNoTable = ref()
  1429. const JYXDetail = ref()
  1430. const myRoute = useRoute()
  1431. const router = useRouter()
  1432. const changeDate = (e) => {
  1433. return dayjs(e.target.value).format('YYYY-MM-DD')
  1434. }
  1435. const initDetail = () => {
  1436. api.insurancePolicyApi.getOrderDetail(myRoute.query.orderNo).then((res: any) => {
  1437. if(res.code == 200) {
  1438. let obj = res.data
  1439. // 业务员信息
  1440. insurancePolicyForm.value.salesman = obj?.salesmanInfo?.name
  1441. insurancePolicyForm.value.mobile = obj?.salesmanInfo?.mobile
  1442. insurancePolicyForm.value.deptId = obj?.salesmanInfo?.deptId
  1443. // 车辆信息
  1444. insurancePolicyForm.value.isRegistered = obj?.carInfoVo?.isRegistered || '1'
  1445. insurancePolicyForm.value.licenseNo = obj?.carInfoVo?.licenseNo
  1446. insurancePolicyForm.value.vinNo = obj?.carInfoVo?.vinNo
  1447. insurancePolicyForm.value.brandName = obj?.carInfoVo?.brandName
  1448. insurancePolicyForm.value.engineNo = obj?.carInfoVo?.engineNo
  1449. insurancePolicyForm.value.carNatureCode = obj?.carInfoVo?.carNatureCode
  1450. insurancePolicyForm.value.vehicleUseCode = obj?.carInfoVo?.vehicleUseCode
  1451. insurancePolicyForm.value.plateType = obj?.carInfoVo?.carKindCode
  1452. insurancePolicyForm.value.carTypeCode = obj?.carInfoVo?.carTypeCode
  1453. insurancePolicyForm.value.energyTypeCode = obj?.carInfoVo?.energyTypeCode
  1454. insurancePolicyForm.value.registerDate = obj?.carInfoVo?.registerDate
  1455. insurancePolicyForm.value.issueDate = obj?.carInfoVo?.issueDate
  1456. insurancePolicyForm.value.completeKerbMass = obj?.carInfoVo?.completeKerbMass
  1457. insurancePolicyForm.value.limitLoad = obj?.carInfoVo?.limitLoad
  1458. insurancePolicyForm.value.seatCount = obj?.carInfoVo?.seatCount
  1459. insurancePolicyForm.value.carYear = obj?.carInfoVo?.carYear
  1460. insurancePolicyForm.value.purchasePrice = obj?.carInfoVo?.purchasePrice
  1461. insurancePolicyForm.value.displacement = obj?.carInfoVo?.displacement
  1462. insurancePolicyForm.value.powerScale = obj?.carInfoVo?.powerScale
  1463. // 车主信息
  1464. insurancePolicyForm.value.name1 = obj?.ownersInfo?.name
  1465. insurancePolicyForm.value.mobile1 = obj?.ownersInfo?.mobile
  1466. insurancePolicyForm.value.identifyType1 = obj?.ownersInfo?.identifyType
  1467. insurancePolicyForm.value.identifyNumber1 = obj?.ownersInfo?.identifyNumber
  1468. insurancePolicyForm.value.identifyValidDate1 = obj?.ownersInfo?.identifyValidDate
  1469. insurancePolicyForm.value.addr1 = obj?.ownersInfo?.addr
  1470. insurancePolicyForm.value.telephone1 = obj?.ownersInfo?.telephone
  1471. insurancePolicyForm.value.person1 = obj?.ownersInfo?.person
  1472. insurancePolicyForm.value.age1 = obj?.ownersInfo?.age
  1473. insurancePolicyForm.value.identifyValidEndDate1 = obj?.ownersInfo?.identifyValidEndDate
  1474. insurancePolicyForm.value.address1 = obj?.ownersInfo?.address
  1475. insurancePolicyForm.value.registeredCapital1 = obj?.ownersInfo?.registeredCapital
  1476. insurancePolicyForm.value.email1 = obj?.ownersInfo?.email
  1477. insurancePolicyForm.value.taxpayerName = obj?.ownersInfo?.name
  1478. insurancePolicyForm.value.taxpayerIdentifier = obj?.ownersInfo?.identifyType
  1479. insurancePolicyForm.value.identifyNumber = obj?.ownersInfo?.identifyNumber
  1480. // 投保人信息
  1481. insurancePolicyForm.value.name2 = obj?.policyHolderInfo?.name
  1482. insurancePolicyForm.value.mobile2 = obj?.policyHolderInfo?.mobile
  1483. insurancePolicyForm.value.identifyType2 = obj?.policyHolderInfo?.identifyType
  1484. insurancePolicyForm.value.identifyNumber2 = obj?.policyHolderInfo?.identifyNumber
  1485. insurancePolicyForm.value.identifyValidDate2 = obj?.policyHolderInfo?.identifyValidDate
  1486. insurancePolicyForm.value.addr2 = obj?.policyHolderInfo?.addr
  1487. insurancePolicyForm.value.telephone2 = obj?.policyHolderInfo?.telephone
  1488. insurancePolicyForm.value.person2 = obj?.policyHolderInfo?.person
  1489. insurancePolicyForm.value.age2 = obj?.policyHolderInfo?.age
  1490. insurancePolicyForm.value.identifyValidEndDate2 = obj?.policyHolderInfo?.identifyValidEndDate
  1491. insurancePolicyForm.value.address2 = obj?.policyHolderInfo?.address
  1492. insurancePolicyForm.value.registeredCapital2 = obj?.policyHolderInfo?.registeredCapital
  1493. insurancePolicyForm.value.email2 = obj?.policyHolderInfo?.email
  1494. // 被保人信息
  1495. insurancePolicyForm.value.name3 = obj?.insuredPersonInfo?.name
  1496. insurancePolicyForm.value.mobile3 = obj?.insuredPersonInfo?.mobile
  1497. insurancePolicyForm.value.identifyType3 = obj?.insuredPersonInfo?.identifyType
  1498. insurancePolicyForm.value.identifyNumber3 = obj?.insuredPersonInfo?.identifyNumber
  1499. insurancePolicyForm.value.identifyValidDate3 = obj?.insuredPersonInfo?.identifyValidDate
  1500. insurancePolicyForm.value.addr3 = obj?.insuredPersonInfo?.addr
  1501. insurancePolicyForm.value.telephone3 = obj?.insuredPersonInfo?.telephone
  1502. insurancePolicyForm.value.person3 = obj?.insuredPersonInfo?.person
  1503. insurancePolicyForm.value.age3 = obj?.insuredPersonInfo?.age
  1504. insurancePolicyForm.value.identifyValidEndDate3 = obj?.insuredPersonInfo?.identifyValidEndDate
  1505. insurancePolicyForm.value.address3 = obj?.insuredPersonInfo?.address
  1506. insurancePolicyForm.value.registeredCapital3 = obj?.insuredPersonInfo?.registeredCapital
  1507. insurancePolicyForm.value.email3 = obj?.insuredPersonInfo?.email
  1508. btns.value.owner1.forEach(a => {
  1509. a.checked = false
  1510. })
  1511. btns.value.owner2.forEach(a => {
  1512. a.checked = false
  1513. })
  1514. if(obj?.ownersInfo?.identifyNumber == obj?.policyHolderInfo?.identifyNumber) {
  1515. btns.value.owner1[0].checked = true
  1516. btns.value.owner1Text = '同车主'
  1517. } else {
  1518. btns.value.owner1[1].checked = true
  1519. btns.value.owner1Text = '其他人'
  1520. }
  1521. if(obj?.ownersInfo?.identifyNumber == obj?.insuredPersonInfo?.identifyNumber) {
  1522. btns.value.owner2[1].checked = true
  1523. btns.value.owner2Text = '同车主'
  1524. } else if(obj?.policyHolderInfo?.identifyNumber == obj?.insuredPersonInfo?.identifyNumber) {
  1525. btns.value.owner2[0].checked = true
  1526. btns.value.owner2Text = '同投保人'
  1527. } else {
  1528. btns.value.owner2[2].checked = true
  1529. btns.value.owner2Text = '其他人'
  1530. }
  1531. // 车船税
  1532. insurancePolicyForm.value.extendChar2 = obj?.vehicleAndVesselTaxVo?.extendChar2
  1533. insurancePolicyForm.value.relifReason = obj?.vehicleAndVesselTaxVo?.relifReason
  1534. insurancePolicyForm.value.taxComCode = obj?.vehicleAndVesselTaxVo?.taxComCode
  1535. insurancePolicyForm.value.taxComName = obj?.vehicleAndVesselTaxVo?.taxComName
  1536. insurancePolicyForm.value.taxRelief = obj?.vehicleAndVesselTaxVo?.taxRelief
  1537. insurancePolicyForm.value.taxDocumentDate = obj?.vehicleAndVesselTaxVo?.taxDocumentDate
  1538. insurancePolicyForm.value.taxPaidAreaCode = obj?.vehicleAndVesselTaxVo?.taxPaidAreaCode
  1539. btns.value.owner3.forEach(a => {
  1540. a.checked = false
  1541. })
  1542. switch (obj?.vehicleAndVesselTaxVo?.taxRelifFlag) {
  1543. case '1':
  1544. btns.value.owner3[0].checked = true
  1545. btns.value.owner3show = '正常交税'
  1546. break;
  1547. case '2':
  1548. btns.value.owner3[1].checked = true
  1549. btns.value.owner3show = '免税'
  1550. break;
  1551. case '3':
  1552. btns.value.owner3[2].checked = true
  1553. btns.value.owner3show = '减税'
  1554. break;
  1555. case '4':
  1556. btns.value.owner3[3].checked = true
  1557. btns.value.owner3show = '完税'
  1558. break;
  1559. }
  1560. // 投保信息
  1561. insurancePolicyForm.value.productId = obj?.order?.productId
  1562. jqWork.value[0].checked = obj?.ciRiskInfoVo?.instantFlag
  1563. insurancePolicyForm.value.JQStartDate = obj?.ciRiskInfoVo?.startDate
  1564. insurancePolicyForm.value.JQEndDate = obj?.ciRiskInfoVo?.endDate
  1565. optionObj.value.insuranceType.forEach(a => {
  1566. if(a.value == obj?.order?.productId) {
  1567. a.checked = true
  1568. } else {
  1569. a.checked = false
  1570. }
  1571. })
  1572. let newObj = optionObj.value.insuranceType.find(a => a.checked)
  1573. if(newObj) {
  1574. ruleFilterCompany(newObj)
  1575. }
  1576. syWork.value[0].checked = obj?.biRiskInfoVo?.instantFlag
  1577. insurancePolicyForm.value.SYStartDate = obj?.biRiskInfoVo?.startDate
  1578. insurancePolicyForm.value.SYEndDate = obj?.biRiskInfoVo?.endDate
  1579. insurancePolicyForm.value.imageVoList = obj?.imageVoList
  1580. getQuoteNumber()
  1581. }
  1582. })
  1583. }
  1584. // 选择业务员
  1585. let salesmanShow = ref(false)
  1586. const handleFocus = () => {
  1587. salesmanShow.value = true
  1588. nextTick(() => {
  1589. SalesmanSelectRef.value.initEditData()
  1590. })
  1591. }
  1592. const handleSalesmanSelect = (data) => {
  1593. salesmanShow.value = false
  1594. if(data) {
  1595. if(insurancePolicyForm.value.salesman&&insurancePolicyForm.value.mobile&&insurancePolicyForm.value.deptId&&insurancePolicyForm.value.productId) {
  1596. quoteData.value = []
  1597. ruleFilterCompany({
  1598. value: insurancePolicyForm.value.productId
  1599. })
  1600. }
  1601. insurancePolicyForm.value.salesman = data.name
  1602. insurancePolicyForm.value.mobile = data.mobile
  1603. insurancePolicyForm.value.deptId = data.deptId
  1604. }
  1605. }
  1606. // 归属
  1607. let institutionList = ref([])
  1608. const tableProps = ref({
  1609. value: "id",
  1610. label: "name",
  1611. children: "children",
  1612. checkStrictly: true,
  1613. })
  1614. const initDept = () => {
  1615. api.insuranceApi.getDeptTree({ sysCode: localStorage.getItem('login_system')}).then((res: any) => {
  1616. if(res.code == 200) {
  1617. institutionList.value = res.data
  1618. } else {
  1619. ElMessage({
  1620. message: res.msg,
  1621. type: 'warning'
  1622. })
  1623. }
  1624. })
  1625. }
  1626. //折叠面板
  1627. let activeName = ref(['car','owner','owner1','owner2','tax','insurance','company','history'])
  1628. const InsurancePolicyRefs = ref<FormInstance>()
  1629. let insurancePolicyForm = ref({
  1630. systemType: '2',
  1631. propertyCode: '1',
  1632. isRegistered: '1',
  1633. // 车辆
  1634. licenseNo: '',
  1635. vinNo: '',
  1636. brandName: '',
  1637. engineNo: '',
  1638. carNatureCode: '',
  1639. vehicleUseCode: '',
  1640. carTypeCode: '',
  1641. plateType: '',
  1642. energyTypeCode: '',
  1643. registerDate: '',
  1644. issueDate: '',
  1645. completeKerbMass: '',
  1646. limitLoad: '',
  1647. seatCount: '',
  1648. carYear: '',
  1649. purchasePrice: '',
  1650. displacement: '',
  1651. powerScale: '',
  1652. carOwner: '',
  1653. transferDate: '',
  1654. // 险种类型
  1655. productId: '',
  1656. // 车主信息
  1657. name1: '',
  1658. mobile1: '',
  1659. identifyType1: '01',
  1660. identifyNumber1: '',
  1661. identifyValidDate1: '',
  1662. identifyValidEndDate1: '',
  1663. addr1: '',
  1664. telephone1: '',
  1665. person1: '',
  1666. age1: '',
  1667. address1: '',
  1668. registeredCapital1: '',
  1669. email1: '',
  1670. personType1: '1',
  1671. // 投保人信息
  1672. name2: '',
  1673. mobile2: '',
  1674. identifyType2: '01',
  1675. identifyNumber2: '',
  1676. identifyValidDate2: '',
  1677. identifyValidEndDate2: '',
  1678. addr2: '',
  1679. telephone2: '',
  1680. person2: '',
  1681. age2: '',
  1682. address2: '',
  1683. registeredCapital2: '',
  1684. email2: '',
  1685. personType2: '1',
  1686. // 被保人信息
  1687. name3: '',
  1688. mobile3: '',
  1689. identifyType3: '01',
  1690. identifyNumber3: '',
  1691. identifyValidDate3: '',
  1692. identifyValidEndDate3: '',
  1693. addr3: '',
  1694. telephone3: '',
  1695. person3: '',
  1696. age3: '',
  1697. address3: '',
  1698. registeredCapital3: '',
  1699. email3: '',
  1700. personType3: '1',
  1701. order: {},
  1702. // 车船税
  1703. taxRelifFlag: '1',
  1704. extendChar2: '',
  1705. relifReason: '',
  1706. taxComCode: '',
  1707. taxComName: '',
  1708. taxRelief: '',
  1709. taxDocumentDate: '',
  1710. taxPaidAreaCode: '',
  1711. taxpayerName: '',
  1712. taxpayerIdentifier: '',
  1713. identifyNumber: '',
  1714. JQRiskCode: '0507',
  1715. JQStartDate: '',
  1716. JQEndDate: '',
  1717. JQInstantFlag: false,
  1718. SYRiskCode: '0507',
  1719. SYStartDate: '',
  1720. SYEndDate: '',
  1721. SYInstantFlag: false,
  1722. transfer: false,
  1723. biTransfer: false,
  1724. secondHandCar: false,
  1725. imageVoList: []
  1726. })
  1727. let insurancePolicyRules = ref<FormRules>({
  1728. isRegistered: [
  1729. { required: true, trigger: 'change', message: '请选择车辆是否上牌' },
  1730. ],
  1731. licenseNo: [
  1732. { required: true, trigger: 'blur', message: '请输入车牌' }
  1733. ],
  1734. vinNo: [
  1735. { required: true, trigger: 'blur', message: '请输入车牌识别代码' }
  1736. ],
  1737. brandName: [
  1738. { required: true, trigger: 'blur', message: '请输入品牌型号' }
  1739. ],
  1740. engineNo: [
  1741. { required: true, trigger: 'blur', message: '请输入发动机号' }
  1742. ],
  1743. carNatureCode: [
  1744. { required: true, trigger: 'change', message: '请选择车辆是否上牌' },
  1745. ],
  1746. vehicleUseCode: [
  1747. { required: true, trigger: 'change', message: '请选择车辆是否上牌' },
  1748. ],
  1749. carTypeCode: [
  1750. { required: true, trigger: 'change', message: '请选择车辆是否上牌' },
  1751. ],
  1752. plateType: [
  1753. { required: true, trigger: 'change', message: '请选择车辆类型' },
  1754. ],
  1755. energyTypeCode: [
  1756. { required: true, trigger: 'change', message: '请选择能源种类' },
  1757. ],
  1758. registerDate: [
  1759. { required: true, trigger: 'change', message: '请选择注册日期' },
  1760. ],
  1761. issueDate: [
  1762. { required: true, trigger: 'change', message: '请选择发证日期' },
  1763. ],
  1764. completeKerbMass: [
  1765. { required: true, trigger: 'blur', message: '请输入整备质量' }
  1766. ],
  1767. // limitLoad: [
  1768. // { required: true, trigger: 'blur', message: '请输入核定载质量' }
  1769. // ],
  1770. seatCount: [
  1771. { required: true, trigger: 'blur', message: '请输入座位数' }
  1772. ],
  1773. // carYear: [
  1774. // { required: true, trigger: 'blur', message: '请输入年款' }
  1775. // ],
  1776. purchasePrice: [
  1777. { required: true, trigger: 'blur', message: '请输入新车购置价' }
  1778. ],
  1779. displacement: [
  1780. { required: true, trigger: 'blur', message: '请输入排量' }
  1781. ],
  1782. powerScale: [
  1783. { required: true, trigger: 'blur', message: '请输入功率' }
  1784. ],
  1785. transferDate: [
  1786. { required: true, trigger: 'change', message: '请选择转移登记日期' },
  1787. ],
  1788. name1: [
  1789. { required: true, trigger: 'blur', message: '请输入姓名' }
  1790. ],
  1791. mobile1: [
  1792. { required: true, trigger: 'blur', message: '请输入手机号' },
  1793. {
  1794. pattern: /^1[0-9]{10}$/,
  1795. message: '请填写正确的手机号',
  1796. trigger: 'blur'
  1797. }
  1798. ],
  1799. personType1: [
  1800. { required: true, trigger: 'change', message: '请选择证件类型' }
  1801. ],
  1802. identifyNumber1: [
  1803. { required: true, trigger: 'blur', message: '请输入证件号' }
  1804. ],
  1805. identifyValidDate1: [
  1806. { required: true, trigger: 'change', message: '请选择有效期起期' }
  1807. ],
  1808. identifyValidEndDate1: [
  1809. { required: true, trigger: 'change', message: '请选择有效期止期' }
  1810. ],
  1811. addr1: [
  1812. { required: true, trigger: 'blur', message: '请输入地址' }
  1813. ],
  1814. name2: [
  1815. { required: true, trigger: 'blur', message: '请输入姓名' }
  1816. ],
  1817. mobile2: [
  1818. { required: true, trigger: 'blur', message: '请输入手机号' },
  1819. {
  1820. pattern: /^1[0-9]{10}$/,
  1821. message: '请填写正确的手机号',
  1822. trigger: 'blur'
  1823. }
  1824. ],
  1825. personType2: [
  1826. { required: true, trigger: 'change', message: '请选择证件类型' }
  1827. ],
  1828. identifyNumber2: [
  1829. { required: true, trigger: 'blur', message: '请输入证件号' }
  1830. ],
  1831. identifyValidDate2: [
  1832. { required: true, trigger: 'change', message: '请选择有效期起期' }
  1833. ],
  1834. identifyValidEndDate2: [
  1835. { required: true, trigger: 'change', message: '请选择有效期止期' }
  1836. ],
  1837. addr2: [
  1838. { required: true, trigger: 'blur', message: '请输入地址' }
  1839. ],
  1840. name3: [
  1841. { required: true, trigger: 'blur', message: '请输入姓名' }
  1842. ],
  1843. mobile3: [
  1844. { required: true, trigger: 'blur', message: '请输入手机号' },
  1845. {
  1846. pattern: /^1[0-9]{10}$/,
  1847. message: '请填写正确的手机号',
  1848. trigger: 'blur'
  1849. }
  1850. ],
  1851. personType3: [
  1852. { required: true, trigger: 'change', message: '请选择证件类型' }
  1853. ],
  1854. identifyNumber3: [
  1855. { required: true, trigger: 'blur', message: '请输入证件号' }
  1856. ],
  1857. identifyValidDate3: [
  1858. { required: true, trigger: 'change', message: '请选择有效期起期' }
  1859. ],
  1860. identifyValidEndDate3: [
  1861. { required: true, trigger: 'change', message: '请选择有效期止期' }
  1862. ],
  1863. addr3: [
  1864. { required: true, trigger: 'blur', message: '请输入地址' }
  1865. ],
  1866. extendChar2: [
  1867. { required: true, trigger: 'blur', message: '请输入' },
  1868. ],
  1869. relifReason: [
  1870. { required: true, trigger: 'blur', message: '请输入' }
  1871. ],
  1872. taxComCode: [
  1873. { required: true, trigger: 'blur', message: '请输入' }
  1874. ],
  1875. taxComName: [
  1876. { required: true, trigger: 'blur', message: '请输入' }
  1877. ],
  1878. taxRelief: [
  1879. { required: true, trigger: 'blur', message: '请输入' }
  1880. ],
  1881. taxDocumentDate: [
  1882. { required: true, trigger: 'change', message: '请选择' }
  1883. ],
  1884. taxPaidAreaCode: [
  1885. { required: true, trigger: 'change', message: '请选择' }
  1886. ]
  1887. })
  1888. // 使用性质,车辆用途,车辆类型,能源种类,车辆种类
  1889. let optionObj = ref({
  1890. vehicle_use_code: [], // 车辆用途
  1891. car_nature_code: [], // 使用性质
  1892. energy_type_code: [], // 能源种类
  1893. car_kind_code: [], // 车辆种类
  1894. vehicleType: [],
  1895. taxpayerIdentifier: [], // 证件类型
  1896. insuranceType: [], // 险种类型
  1897. car_type_code: [], // 车辆类型
  1898. })
  1899. // 地区
  1900. const areaOptins = ref([]);
  1901. const areaProps = ref({
  1902. value: "areaCode",
  1903. label: "areaCname",
  1904. children: "child",
  1905. });
  1906. const getAreaList = () => {
  1907. api.areaApi.areaList({}).then((res) => {
  1908. areaOptins.value = res.data;
  1909. });
  1910. };
  1911. // 车牌识别
  1912. let licenseNoShow = ref(false)
  1913. let licenseNoData = ref([])
  1914. const handleCarNumber = () => {
  1915. api.additionalApi.vinSearch(insurancePolicyForm.value.vinNo).then((res: any) => {
  1916. if(res.code == 200) {
  1917. licenseNoShow.value = true
  1918. licenseNoData.value = res.data
  1919. } else {
  1920. ElMessage({
  1921. message: res.msg,
  1922. type: 'warning'
  1923. })
  1924. }
  1925. })
  1926. }
  1927. let selectRowData = ref({})
  1928. const handleSelectedRow = (row: any, column: any) => {
  1929. licenseNoData.value.forEach((item) => {
  1930. LicenseNoTable.value.toggleRowSelection(item, false)
  1931. })
  1932. LicenseNoTable.value.toggleRowSelection(row, true)
  1933. selectRowData.value = row
  1934. licenseNoDataSubmit()
  1935. }
  1936. const handleSelectedChange = (rows: any, row: any) => {
  1937. licenseNoData.value.forEach((item) => {
  1938. LicenseNoTable.value.toggleRowSelection(item, false)
  1939. })
  1940. LicenseNoTable.value.toggleRowSelection(row, true)
  1941. selectRowData.value = row
  1942. }
  1943. const licenseNoDataCancel = () => {
  1944. selectRowData.value = {}
  1945. licenseNoShow.value = false
  1946. }
  1947. const licenseNoDataSubmit = () => {
  1948. insurancePolicyForm.value.seatCount = selectRowData.value.ratedPassengerCapacity
  1949. insurancePolicyForm.value.brandName = selectRowData.value.modelName
  1950. insurancePolicyForm.value.carYear = selectRowData.value.marketYear
  1951. insurancePolicyForm.value.purchasePrice = selectRowData.value.replacementValue
  1952. insurancePolicyForm.value.displacement = selectRowData.value.displacement
  1953. insurancePolicyForm.value.powerScale = selectRowData.value.powerScale
  1954. licenseNoShow.value = false
  1955. }
  1956. // 车架号识别
  1957. const handleCarCode = () => {
  1958. api.additionalApi.licenseSearch({
  1959. modelName: insurancePolicyForm.value.brandName.replace(/[^u4e00-u9fa5|,]+/gi, "")
  1960. }).then((res: any) => {
  1961. if(res.code == 200) {
  1962. licenseNoShow.value = true
  1963. licenseNoData.value = res.data
  1964. } else {
  1965. ElMessage({
  1966. message: res.msg,
  1967. type: 'warning'
  1968. })
  1969. }
  1970. })
  1971. }
  1972. // 获取报价号
  1973. const getQuoteNumber = () => {
  1974. if(insurancePolicyForm.value.licenseNo&&insurancePolicyForm.value.vinNo&&insurancePolicyForm.value.engineNo) {
  1975. api.insurancePolicyApi.getQuoteNo({
  1976. licenseNo: insurancePolicyForm.value.licenseNo,
  1977. vinNo: insurancePolicyForm.value.vinNo,
  1978. engineNo: insurancePolicyForm.value.engineNo
  1979. }).then((res: any) => {
  1980. if(res.code == 200) {
  1981. // insuranceCompanyCode
  1982. insurancePolicyForm.value.order.quoteNo = res.msg
  1983. } else {
  1984. ElMessage({
  1985. message: res.msg,
  1986. type: "warning"
  1987. })
  1988. }
  1989. })
  1990. }
  1991. if(insurancePolicyForm.value.licenseNo) {
  1992. api.insurancePolicyApi.getHistoryQuoteList({
  1993. licenseNo: insurancePolicyForm.value.licenseNo,
  1994. pages: 1,
  1995. size: 999
  1996. }).then((res: any) => {
  1997. if(res.code === 200) {
  1998. tableData.value = res.data.records
  1999. } else {
  2000. ElMessage({
  2001. message: res.msg,
  2002. type: 'warning'
  2003. })
  2004. }
  2005. })
  2006. }
  2007. }
  2008. const longTime = () => {
  2009. insurancePolicyForm.value.identifyValidEndDate1 = '9999-12-31'
  2010. }
  2011. const issueDateChange = (e) => {
  2012. insurancePolicyForm.value.transferDate = insurancePolicyForm.value.issueDate
  2013. }
  2014. // 是否同车主/同投保人
  2015. let btns = ref({
  2016. owner1Show: true,
  2017. owner2show: true,
  2018. owner1Text: '同车主',
  2019. owner2Text: '同投保人',
  2020. owner3show: '正常交税',
  2021. owner1: [{
  2022. text: '同车主',
  2023. checked: true
  2024. },{
  2025. text: '其他人',
  2026. checked: false
  2027. },],
  2028. owner2: [{
  2029. text: '同投保人',
  2030. checked: true
  2031. },{
  2032. text: '同车主',
  2033. checked: false
  2034. },{
  2035. text: '其他人',
  2036. checked: false
  2037. }],
  2038. owner3: [{
  2039. text: '正常交税',
  2040. checked: true
  2041. },{
  2042. text: '免税',
  2043. checked: false
  2044. },{
  2045. text: '减税',
  2046. checked: false
  2047. },{
  2048. text: '完税',
  2049. checked: false
  2050. }],
  2051. })
  2052. const handleChange = (item, type) => {
  2053. switch (type) {
  2054. case 'owner1':
  2055. item.checked = !item.checked
  2056. let list1 = btns.value.owner1.filter(a => a.text != item.text)
  2057. list1.forEach(a => a.checked = false)
  2058. btns.value.owner1Show = btns.value.owner1.some(a => a.checked)
  2059. let obj1 = btns.value.owner1.find(a => a.checked)
  2060. btns.value.owner1Text = obj1.text
  2061. if(obj1.text === '同车主') {
  2062. insurancePolicyForm.value.name2 = insurancePolicyForm.value.name1
  2063. insurancePolicyForm.value.mobile2 = insurancePolicyForm.value.mobile1
  2064. insurancePolicyForm.value.identifyType2 = insurancePolicyForm.value.identifyType1
  2065. insurancePolicyForm.value.identifyNumber2 = insurancePolicyForm.value.identifyNumber1
  2066. insurancePolicyForm.value.identifyValidDate2 = insurancePolicyForm.value.identifyValidDate1
  2067. insurancePolicyForm.value.identifyValidEndDate2 = insurancePolicyForm.value.identifyValidEndDate1
  2068. insurancePolicyForm.value.addr2 = insurancePolicyForm.value.addr1
  2069. insurancePolicyForm.value.telephone2 = insurancePolicyForm.value.telephone1
  2070. insurancePolicyForm.value.person2 = insurancePolicyForm.value.person1
  2071. insurancePolicyForm.value.age2 = insurancePolicyForm.value.age1
  2072. insurancePolicyForm.value.address2 = insurancePolicyForm.value.address1
  2073. insurancePolicyForm.value.registeredCapital2 = insurancePolicyForm.value.registeredCapital1
  2074. insurancePolicyForm.value.email2 = insurancePolicyForm.value.email1
  2075. }
  2076. break;
  2077. case 'owner2':
  2078. item.checked = !item.checked
  2079. let list2 = btns.value.owner2.filter(a => a.text != item.text)
  2080. list2.forEach(a => a.checked = false)
  2081. btns.value.owner2show = btns.value.owner2.some(a => a.checked)
  2082. let obj2 = btns.value.owner2.find(a => a.checked)
  2083. btns.value.owner2Text = obj2.text
  2084. if(obj2.text === '同车主') {
  2085. insurancePolicyForm.value.name3 = insurancePolicyForm.value.name1
  2086. insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile1
  2087. insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType1
  2088. insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber1
  2089. insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate1
  2090. insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate1
  2091. insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr1
  2092. insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone1
  2093. insurancePolicyForm.value.person3 = insurancePolicyForm.value.person1
  2094. insurancePolicyForm.value.age3 = insurancePolicyForm.value.age1
  2095. insurancePolicyForm.value.address3 = insurancePolicyForm.value.address1
  2096. insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital1
  2097. insurancePolicyForm.value.email3 = insurancePolicyForm.value.email1
  2098. }
  2099. if(obj2.text === '同投保人') {
  2100. insurancePolicyForm.value.name3 = insurancePolicyForm.value.name2
  2101. insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile2
  2102. insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType2
  2103. insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber2
  2104. insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate2
  2105. insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate2
  2106. insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr2
  2107. insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone2
  2108. insurancePolicyForm.value.person3 = insurancePolicyForm.value.person2
  2109. insurancePolicyForm.value.age3 = insurancePolicyForm.value.age2
  2110. insurancePolicyForm.value.address3 = insurancePolicyForm.value.address2
  2111. insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital2
  2112. insurancePolicyForm.value.email3 = insurancePolicyForm.value.email2
  2113. }
  2114. break;
  2115. case 'owner3':
  2116. item.checked = true
  2117. let list3 = btns.value.owner3.filter(a => a.text != item.text)
  2118. list3.forEach(a => a.checked = false)
  2119. btns.value.owner3show = btns.value.owner3.find(a => a.checked)?.text
  2120. insurancePolicyForm.value.taxRelifFlag = btns.value.owner3show === '正常交税'?'1':btns.value.owner3show === '免税'?'2':btns.value.owner3show === '减税'?'3':btns.value.owner3show === '完税'?'4':''
  2121. break;
  2122. case 'insurance':
  2123. ruleFilterCompany(item)
  2124. let list4 = optionObj.value.insuranceType.filter(a => a.label != item.label)
  2125. list4.forEach(a => a.checked = false)
  2126. item.checked = true
  2127. insurancePolicyForm.value.productId = item.value
  2128. if(insurancePolicyForm.value.productId === '0330' || insurancePolicyForm.value.productId === '0330034001' || insurancePolicyForm.value.productId === '0330034002') {
  2129. // let date = new Date()
  2130. // let year = date.getFullYear()
  2131. // let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
  2132. // let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
  2133. insurancePolicyForm.value.JQStartDate = transformTime1()
  2134. insurancePolicyForm.value.JQEndDate = oneYearPast1(insurancePolicyForm.value.JQStartDate)
  2135. }
  2136. if(insurancePolicyForm.value.productId === '034001' || insurancePolicyForm.value.productId === '034002' || insurancePolicyForm.value.productId === '0330034001' || insurancePolicyForm.value.productId === '0330034002') {
  2137. // let date = new Date()
  2138. // let year = date.getFullYear()
  2139. // let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
  2140. // let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
  2141. // insurancePolicyForm.value.SYStartDate = `${year}-${month}-${day} 00:00:00`
  2142. // insurancePolicyForm.value.SYEndDate = `${year + 1}-${month}-${day - 1} 23:59:59`
  2143. insurancePolicyForm.value.SYStartDate = transformTime1()
  2144. insurancePolicyForm.value.SYEndDate = oneYearPast1(insurancePolicyForm.value.SYStartDate)
  2145. }
  2146. break;
  2147. }
  2148. }
  2149. const initOption = () => {
  2150. let list = ['vehicle_use_code', 'car_nature_code', 'energy_type_code', 'car_kind_code', 'car_type_code']
  2151. list.forEach(item => {
  2152. api.additionalApi.dictDetails(item).then((res: any) => {
  2153. if(res.code == 200) {
  2154. if(res.data) {
  2155. optionObj.value[item] = res.data
  2156. }
  2157. }
  2158. })
  2159. })
  2160. api.commonApi.personInfo('insurance_type').then((res: any) => {
  2161. if(res.code == 200) {
  2162. if(res.data&&res.data.length>0) {
  2163. res.data.forEach(a => {
  2164. a.checked = false
  2165. })
  2166. optionObj.value.insuranceType = res.data
  2167. }
  2168. } else {
  2169. ElMessage({
  2170. message: res.msg,
  2171. type: 'warning'
  2172. })
  2173. }
  2174. })
  2175. }
  2176. // 交强即时生效
  2177. let jqWork = ref([
  2178. { text: '即时生效', checked: false }
  2179. ])
  2180. // 根据身份证号换算年龄
  2181. const getAgeByIdCard = (idCard: any, type?: any) => {
  2182. //获取用户身份证号码
  2183. const userCard = idCard
  2184. //如果用户身份证号码为undefined则返回空
  2185. if (!userCard) {
  2186. return ''
  2187. }
  2188. // 获取出生日期
  2189. const yearBirth = userCard.substring(6, 10)
  2190. const monthBirth = userCard.substring(10, 12)
  2191. const dayBirth = userCard.substring(12, 14)
  2192. // 获取当前年月日并计算年龄
  2193. const myDate = new Date()
  2194. const monthNow = myDate.getMonth() + 1
  2195. const dayNow = myDate.getDate()
  2196. let age = myDate.getFullYear() - yearBirth
  2197. if (monthNow > monthBirth || (monthNow == monthBirth && dayNow > dayBirth)) {
  2198. age++
  2199. }
  2200. // type.age = age
  2201. return age
  2202. }
  2203. const noeYearPast = (time) => {
  2204. let strYear: any = time.getFullYear();
  2205. let strDay: any = time.getDate();
  2206. let strMonth: any = time.getMonth() + 1;
  2207. let hh: any = time.getHours();
  2208. let minutes: any = time.getMinutes(); // 分
  2209. let Seconds: any = time.getSeconds();
  2210. if (hh < 10) {
  2211. hh = "0" + hh;
  2212. }
  2213. if (minutes < 10) {
  2214. minutes = "0" + minutes;
  2215. }
  2216. if (Seconds < 10) {
  2217. Seconds = "0" + Seconds;
  2218. }
  2219. if (strMonth < 10) {
  2220. strMonth = "0" + strMonth;
  2221. }
  2222. if (strDay < 10) {
  2223. strDay = "0" + strDay;
  2224. }
  2225. let datastr =
  2226. strYear +
  2227. "-" +
  2228. strMonth +
  2229. "-" +
  2230. strDay +
  2231. " " +
  2232. hh +
  2233. ":" +
  2234. minutes +
  2235. ":" +
  2236. Seconds;
  2237. return datastr;
  2238. }
  2239. const oneYearPast1 = (time) => {
  2240. //明年减一秒
  2241. let date = new Date(time);
  2242. date.setSeconds(date.getSeconds() - 1);
  2243. date.setFullYear(date.getFullYear() + 1); //一年后
  2244. date.setTime(date.getTime()); //一年后的前一天
  2245. let strYear: any = date.getFullYear();
  2246. let strDay: any = date.getDate();
  2247. let strMonth: any = date.getMonth() + 1;
  2248. let hh: any = date.getHours();
  2249. let minutes: any = date.getMinutes(); // 分
  2250. let Seconds: any = date.getSeconds();
  2251. if (hh < 10) {
  2252. hh = "0" + hh;
  2253. }
  2254. if (minutes < 10) {
  2255. minutes = "0" + minutes;
  2256. }
  2257. if (Seconds < 10) {
  2258. Seconds = "0" + Seconds;
  2259. }
  2260. if (strMonth < 10) {
  2261. strMonth = "0" + strMonth;
  2262. }
  2263. if (strDay < 10) {
  2264. strDay = "0" + strDay;
  2265. }
  2266. let datastr =
  2267. strYear +
  2268. "-" +
  2269. strMonth +
  2270. "-" +
  2271. strDay +
  2272. " " +
  2273. hh +
  2274. ":" +
  2275. minutes +
  2276. ":" +
  2277. Seconds;
  2278. return datastr;
  2279. }
  2280. //当前日期的次日
  2281. const transformTime1 = () => {
  2282. let date = new Date();
  2283. date.setFullYear(date.getFullYear());
  2284. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  2285. let strYear: any = date.getFullYear();
  2286. let strDay: any = date.getDate();
  2287. let strMonth: any = date.getMonth() + 1;
  2288. let hh: any = date.getHours();
  2289. if (hh < 10) {
  2290. hh = "0" + hh;
  2291. }
  2292. if (strMonth < 10) {
  2293. strMonth = "0" + strMonth;
  2294. }
  2295. if (strDay < 10) {
  2296. strDay = "0" + strDay;
  2297. }
  2298. let datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  2299. return datastr;
  2300. }
  2301. const JQChange = (item) => {
  2302. item.checked = !item.checked
  2303. if(jqWork.value.some( a => a.checked )) {
  2304. let date: any = new Date();
  2305. date.setHours(date.getHours() + 2);
  2306. date.setMinutes(0);
  2307. date.setSeconds(0);
  2308. insurancePolicyForm.value.JQStartDate = noeYearPast(date)
  2309. insurancePolicyForm.value.JQEndDate = oneYearPast1(date)
  2310. insurancePolicyForm.value.JQInstantFlag = true
  2311. } else {
  2312. insurancePolicyForm.value.JQStartDate = transformTime1()
  2313. insurancePolicyForm.value.JQEndDate = oneYearPast1(insurancePolicyForm.value.JQStartDate)
  2314. insurancePolicyForm.value.JQInstantFlag = false
  2315. }
  2316. }
  2317. const jqChange = (e) => {
  2318. insurancePolicyForm.value.JQEndDate = oneYearPast1(e)
  2319. }
  2320. // 商业即时生效
  2321. let syWork = ref([
  2322. { text: '即时生效', checked: false }
  2323. ])
  2324. const SYChange = (item) => {
  2325. item.checked = !item.checked
  2326. if(syWork.value.some( a => a.checked )) {
  2327. let date: any = new Date();
  2328. date.setHours(date.getHours() + 2);
  2329. date.setMinutes(0);
  2330. date.setSeconds(0);
  2331. insurancePolicyForm.value.SYStartDate = noeYearPast(date)
  2332. insurancePolicyForm.value.SYEndDate = oneYearPast1(date)
  2333. insurancePolicyForm.value.SYInstantFlag = true
  2334. } else {
  2335. insurancePolicyForm.value.SYStartDate = transformTime1()
  2336. insurancePolicyForm.value.SYEndDate = oneYearPast1(insurancePolicyForm.value.SYStartDate)
  2337. insurancePolicyForm.value.SYInstantFlag = false
  2338. }
  2339. }
  2340. const syChange = (e) => {
  2341. insurancePolicyForm.value.SYEndDate = oneYearPast1(e)
  2342. }
  2343. // 报价公司
  2344. let currentRow = ref([])
  2345. let quoteData = ref([])
  2346. const handleSelect = (a, b) => {
  2347. currentRow.value = a
  2348. // currentRow.value = a
  2349. // insurancePolicyForm.value.order.insuranceCompanyCode = a[0].id
  2350. }
  2351. const handelSelectRow = (a, b) => {
  2352. currentRow.value = a
  2353. if(a.some(c => c.id === b.id)) {
  2354. insurancePolicyForm.value.order.insuranceCompanyCode = b.id
  2355. if(insurancePolicyForm.value.productId) {
  2356. api.insurancePolicyApi.getSchemeResult({
  2357. companyId: b.id,
  2358. productId: insurancePolicyForm.value.productId
  2359. }).then((res: any) => {
  2360. let list = res.data?.schemes || [];
  2361. if(res.data?.optionalScheme) {
  2362. list.push(res.data.optionalScheme)
  2363. console.log(123123123, list)
  2364. }
  2365. if(list.length > 0) {
  2366. list.forEach(item => {
  2367. item.checked = false
  2368. })
  2369. }
  2370. quoteData.value.forEach(item => {
  2371. if(item.id === b.id) {
  2372. item.projectList = list.map(item => {
  2373. return {
  2374. ...item,
  2375. rescue: [],
  2376. detection: [],
  2377. driver: [],
  2378. inspect: []
  2379. }
  2380. })
  2381. }
  2382. })
  2383. })
  2384. }
  2385. } else {
  2386. insurancePolicyForm.value.order.insuranceCompanyCode = ''
  2387. }
  2388. }
  2389. const handelExpend = (e) => {
  2390. insurancePolicyForm.value.order.insuranceCompanyCode = e.id
  2391. if(insurancePolicyForm.value.productId) {
  2392. api.insurancePolicyApi.getSchemeResult({
  2393. companyId: e.id,
  2394. productId: insurancePolicyForm.value.productId
  2395. }).then((res: any) => {
  2396. let list = res.data?.schemes || [];
  2397. if(res.data?.optionalScheme) {
  2398. list.push(res.data.optionalScheme)
  2399. console.log(123123123, list)
  2400. }
  2401. if(list.length > 0) {
  2402. list.forEach(item => {
  2403. item.checked = false
  2404. })
  2405. }
  2406. quoteData.value.forEach(item => {
  2407. if(item.id === e .id) {
  2408. item.projectList = list.map(item => {
  2409. return {
  2410. ...item,
  2411. rescue: [],
  2412. detection: [],
  2413. driver: [],
  2414. inspect: []
  2415. }
  2416. })
  2417. }
  2418. })
  2419. })
  2420. }
  2421. }
  2422. const handleClickRow = (a, b) => {
  2423. }
  2424. const handleViewSuccess = (e) => {
  2425. console.log(11111, quoteData.value)
  2426. }
  2427. // 选择险种
  2428. let insuranceShow = ref(false)
  2429. const handlePopover = (scope) => {
  2430. insuranceShow.value = true
  2431. nextTick(() => {
  2432. InsuranceTypeRef.value.initEditData(scope.row.projectList[productIndex.value].kinds)
  2433. })
  2434. }
  2435. // 删除险种
  2436. const handleInsuranceDel = (scope, props) => {
  2437. let obj = scope.row.projectList[productIndex.value].kinds.filter(a => a.id != props.row.id)
  2438. quoteData.value.forEach(a => {
  2439. if(a.id === scope.row.id) {
  2440. a.projectList[productIndex.value].kinds = obj
  2441. }
  2442. })
  2443. }
  2444. const handleClose = (data) => {
  2445. insuranceShow.value = false
  2446. if(data&&data.list.length>0) {
  2447. data.list.forEach(item => {
  2448. let obj = item.options.find(a => a.checked)
  2449. item.amount = obj.value
  2450. item.unitAmount = obj.value
  2451. })
  2452. }
  2453. quoteData.value.forEach(a => {
  2454. if(insurancePolicyForm.value.order.insuranceCompanyCode === a.id) {
  2455. a.projectList[productIndex.value].kinds = data.list
  2456. }
  2457. })
  2458. }
  2459. // 选择驾意险
  2460. let drivingShow = ref(false)
  2461. let drivingRow = ref(0)
  2462. let JYXDetailShow = ref(false)
  2463. const handleDriving = (scope) => {
  2464. drivingRow.value = scope.$index
  2465. drivingShow.value = true
  2466. nextTick(() => {
  2467. DrivingTypeRef.value.initEditData(scope.row.projectList[productIndex.value].drivings, 0, insurancePolicyForm.value.order.insuranceCompanyCode)
  2468. })
  2469. }
  2470. // 删除驾意险
  2471. const handleDrivingDel = (scope, props) => {
  2472. let obj = scope.row.projectList[productIndex.value].drivings.filter(a => a.id != props.row.id)
  2473. quoteData.value.forEach(a => {
  2474. if(a.id === scope.row.id) {
  2475. a.projectList[productIndex.value].drivings = obj
  2476. }
  2477. })
  2478. }
  2479. // 驾意险详情
  2480. const getJYXDetail = (row) => {
  2481. JYXDetailShow.value = true
  2482. nextTick(() => {
  2483. JYXDetail.value.initData(row.drivingIntentionId)
  2484. })
  2485. }
  2486. const handleDrivingClose = (data) => {
  2487. if(data&&data.list.length>0) {
  2488. data.list.forEach(a => {
  2489. a.quantity = 1
  2490. })
  2491. quoteData.value[drivingRow.value].projectList[productIndex.value].drivings = [...data.list]
  2492. }
  2493. drivingShow.value = false
  2494. }
  2495. // 选择特约
  2496. let specialIndex = ref(-1)
  2497. let specialShow = ref(false)
  2498. let specialTableData = ref([])
  2499. let specialSelectList = ref([])
  2500. const handleSelectSpecial = (scope) => {
  2501. specialIndex.value = scope.$index
  2502. specialShow.value = true
  2503. api.insurancePolicyApi.getClausePage({
  2504. pages: 1,
  2505. size: 99999,
  2506. companyId: scope.row.id,//id
  2507. clauseName: "",//特约名称
  2508. riskCode: "",//特约类型
  2509. clauseCode: "",//特约编码
  2510. clauseContent: "",//特约内容
  2511. }).then((res: any) => {
  2512. if(res.code == 200) {
  2513. specialTableData.value = res.data.records
  2514. }
  2515. })
  2516. }
  2517. const handleSpecialSelectChage = (a) => {
  2518. specialSelectList.value = [...a]
  2519. }
  2520. const handleSpecialTableDataCancel = () => {
  2521. specialSelectList.value = []
  2522. specialShow.value = false
  2523. }
  2524. const handleSpecialTableDataSubmit = () => {
  2525. if(specialSelectList.value.length>0) {
  2526. quoteData.value[specialIndex.value].specialSelectedList = [...specialSelectList.value]
  2527. specialShow.value = false
  2528. } else {
  2529. ElMessage({
  2530. message: '请选择特约!',
  2531. type: 'warning'
  2532. })
  2533. }
  2534. }
  2535. // 优惠信息
  2536. let discounts = ref([])
  2537. let productIndex = ref(0)
  2538. const handleProduct = (e, index) => {
  2539. productIndex.value = index
  2540. }
  2541. // 报价历史
  2542. let tableData = ref([])
  2543. // 分享
  2544. let shareShow = ref(false)
  2545. let shareImageUrl = ref('')
  2546. const handleShare = async (scope) => {
  2547. shareShow.value = true
  2548. shareImageUrl.value = await QRCode.toDataURL('http://www.baidu.com', {
  2549. width: 150,
  2550. margin: 2
  2551. });
  2552. }
  2553. const handleSaveImage = () => {
  2554. shareShow.value = false
  2555. const link = document.createElement('a');
  2556. link.href = shareImageUrl.value;
  2557. link.download = '报价.png';
  2558. link.click();
  2559. }
  2560. const handleCopyLink = async () => {
  2561. shareShow.value = false
  2562. try {
  2563. await navigator.clipboard.writeText('你想要复制的文本');
  2564. ElMessage({
  2565. message: '复制成功!',
  2566. type: 'success'
  2567. })
  2568. } catch (err) {
  2569. ElMessage({
  2570. message: '复制失败!',
  2571. type: 'error'
  2572. })
  2573. }
  2574. }
  2575. // 优惠测算
  2576. let calculatingShow = ref(false)
  2577. const handleCount = (scope) => {
  2578. calculatingShow.value = true
  2579. }
  2580. // 详情
  2581. const toDetail = (scope: any) => {
  2582. router.push({
  2583. path: '/insurancePolicy/order/insurancePolicyOrderDetail',
  2584. query: {
  2585. orderNo: scope.row.quoteResult.ordersNo
  2586. }
  2587. })
  2588. }
  2589. // 上传影像
  2590. const handleImageSave = (scope) => {
  2591. let list = images.value.filter(a => a.checked)
  2592. if(list.length > 0) {
  2593. let arr = list.map(a => {
  2594. return {
  2595. imageCode: a.imageType,
  2596. imageBase64List: [
  2597. {
  2598. imageId: a.imageId
  2599. }
  2600. ]
  2601. }
  2602. })
  2603. api.insurancePolicyApi.imageSave({
  2604. order: {
  2605. quoteNo: insurancePolicyForm.value.order.quoteNo
  2606. },
  2607. imageVoList: arr
  2608. }).then((res: any) => {
  2609. if(res.code == 200) {
  2610. ElMessage({
  2611. message: '上传成功!',
  2612. type: 'success'
  2613. })
  2614. }
  2615. })
  2616. } else {
  2617. ElMessage({
  2618. message: '请选择影像资料!',
  2619. type: 'warning'
  2620. })
  2621. }
  2622. }
  2623. //支付码
  2624. const getPayCode = (orderNo) => {
  2625. api.insurancePolicyApi.getQrCode(orderNo).then((res: any) => {
  2626. if(res.code == 200) {
  2627. payCodeUrl.value = res.data?.qrcode
  2628. } else {
  2629. payCodeUrl.value = ''
  2630. ElMessage({
  2631. message: res.msg,
  2632. type: 'warning'
  2633. })
  2634. }
  2635. })
  2636. }
  2637. //分享
  2638. let qrImageUrl = ref('')
  2639. let payCodeUrl = ref('')
  2640. const handleCode = async (orderNo) => {
  2641. api.insurancePolicyApi.getQrCode(orderNo).then((res: any) => {
  2642. if(res.code == 200) {
  2643. payCodeUrl.value = res.data?.qrcode
  2644. qrImageUrl.value = QRCode.toDataURL(payCodeUrl.value, {
  2645. width: 150,
  2646. margin: 2
  2647. });
  2648. } else {
  2649. payCodeUrl.value = ''
  2650. ElMessage({
  2651. message: res.msg,
  2652. type: 'warning'
  2653. })
  2654. }
  2655. })
  2656. }
  2657. const handlePopoverCancel = async () => {
  2658. const link = document.createElement('a');
  2659. link.href = qrImageUrl.value;
  2660. link.download = 'qrcode.png';
  2661. link.click();
  2662. }
  2663. const handlePopoverConfirm = async () => {
  2664. try {
  2665. await navigator.clipboard.writeText('你想要复制的文本');
  2666. ElMessage({
  2667. message: '复制成功!',
  2668. type: 'success'
  2669. })
  2670. } catch (err) {
  2671. ElMessage({
  2672. message: '复制失败!',
  2673. type: 'error'
  2674. })
  2675. }
  2676. }
  2677. // 提交核保
  2678. let underwritingShow = ref(false)
  2679. const handleUnderwriting = (scope) => {
  2680. console.log('要去核保的数据', scope.row)
  2681. underwritingShow.value = true
  2682. // insurancePolicyForm.value.imageVoList
  2683. let data = {
  2684. // ordersNo: '1915570359429222400'
  2685. ordersNo: scope.row.quoteResult.ordersNo,
  2686. quoteNo: insurancePolicyForm.value.order.quoteNo,
  2687. list: images.value
  2688. }
  2689. // nextTick(() => {
  2690. // UnderwritingRefs.value.initEdit({
  2691. // ...data
  2692. // })
  2693. // })
  2694. api.insurancePolicyApi.imagesUpload({
  2695. order: {
  2696. ...data
  2697. }
  2698. }).then((res: any) => {
  2699. if(res.code === 200) {
  2700. nextTick(() => {
  2701. UnderwritingRefs.value.initEdit(data)
  2702. })
  2703. } else {
  2704. ElMessage({
  2705. message: res.msg,
  2706. type: 'warning'
  2707. })
  2708. }
  2709. })
  2710. }
  2711. const handleUnderwritingClose = () => {
  2712. underwritingShow.value = false
  2713. }
  2714. // 证件识别
  2715. let imageShow = ref(false)
  2716. let images = ref([])
  2717. const handleImageClose = (data) => {
  2718. btns.value.owner1.forEach(a => {
  2719. a.checked = false
  2720. })
  2721. btns.value.owner2.forEach(a => {
  2722. a.checked = false
  2723. })
  2724. imageShow.value = false
  2725. images.value = []
  2726. if(data) {
  2727. const { carForm, owerForm, ower1Form, ower2Form, imageVoList, list } = data
  2728. if(carForm) {
  2729. insurancePolicyForm.value.isRegistered = '1'
  2730. insurancePolicyForm.value.licenseNo = carForm.licenseNo || hadWritedData.value.licenseNo
  2731. insurancePolicyForm.value.vinNo = carForm.vinNo || hadWritedData.value.vinNo
  2732. insurancePolicyForm.value.brandName = carForm.brandName || hadWritedData.value.brandName
  2733. insurancePolicyForm.value.engineNo = carForm.engineNo || hadWritedData.value.engineNo
  2734. insurancePolicyForm.value.carNatureCode = carForm.carNatureCode || hadWritedData.value.carNatureCode
  2735. insurancePolicyForm.value.vehicleUseCode = carForm.vehicleUseCode || hadWritedData.value.vehicleUseCode
  2736. insurancePolicyForm.value.carTypeCode = carForm.carTypeCode || hadWritedData.value.carTypeCode
  2737. insurancePolicyForm.value.plateType = carForm.plateType || hadWritedData.value.plateType
  2738. insurancePolicyForm.value.energyTypeCode = carForm.energyTypeCode || hadWritedData.value.energyTypeCode || insurancePolicyForm.value.licenseNo.length == 7?'0' : insurancePolicyForm.value.licenseNo.length == 8?'1' : ''
  2739. insurancePolicyForm.value.registerDate = carForm.registerDate || hadWritedData.value.registerDate
  2740. insurancePolicyForm.value.issueDate = carForm.issueDate || hadWritedData.value.issueDate
  2741. insurancePolicyForm.value.completeKerbMass = carForm.completeKerbMass || hadWritedData.value.completeKerbMass
  2742. insurancePolicyForm.value.limitLoad = carForm.limitLoad || hadWritedData.value.limitLoad
  2743. insurancePolicyForm.value.seatCount = carForm.seatCount || hadWritedData.value.seatCount
  2744. insurancePolicyForm.value.carYear = carForm.carYear || hadWritedData.value.carYear
  2745. insurancePolicyForm.value.purchasePrice = carForm.purchasePrice || hadWritedData.value.purchasePrice
  2746. insurancePolicyForm.value.displacement = carForm.displacement || hadWritedData.value.displacement
  2747. insurancePolicyForm.value.powerScale = carForm.powerScale || hadWritedData.value.powerScale
  2748. insurancePolicyForm.value.carOwner = carForm.carOwner || hadWritedData.value.carOwner
  2749. if(carForm.licenseNo&&carForm.vinNo&&carForm.engineNo) {
  2750. getQuoteNumber()
  2751. }
  2752. }
  2753. if(owerForm) {
  2754. insurancePolicyForm.value.name1 = owerForm.name || hadWritedData.value.name1
  2755. insurancePolicyForm.value.mobile1 = owerForm.mobile || hadWritedData.value.mobile1
  2756. insurancePolicyForm.value.identifyType1 = owerForm.identifyType || hadWritedData.value.identifyType1
  2757. insurancePolicyForm.value.identifyNumber1 = owerForm.identifyNumber || hadWritedData.value.identifyNumber1
  2758. insurancePolicyForm.value.identifyValidDate1 = owerForm.identifyValidDate || hadWritedData.value.identifyValidDate1
  2759. insurancePolicyForm.value.identifyValidEndDate1 = owerForm.identifyValidEndDate || hadWritedData.value.identifyValidEndDate1
  2760. insurancePolicyForm.value.addr1 = owerForm.addr || hadWritedData.value.addr1
  2761. insurancePolicyForm.value.telephone1 = owerForm.telephone || hadWritedData.value.telephone1
  2762. insurancePolicyForm.value.person1 = owerForm.person || hadWritedData.value.person1
  2763. insurancePolicyForm.value.age1 = owerForm.age || hadWritedData.value.age1
  2764. insurancePolicyForm.value.address1 = owerForm.address || hadWritedData.value.address1
  2765. insurancePolicyForm.value.registeredCapital1 = owerForm.registeredCapital || hadWritedData.value.registeredCapital1
  2766. insurancePolicyForm.value.email1 = owerForm.email || hadWritedData.value.email1
  2767. insurancePolicyForm.value.taxpayerName = owerForm.name || hadWritedData.value.taxpayerName
  2768. insurancePolicyForm.value.taxpayerIdentifier = owerForm.identifyType || hadWritedData.value.taxpayerIdentifier
  2769. insurancePolicyForm.value.identifyNumber = owerForm.identifyNumber || hadWritedData.value.identifyNumber
  2770. }
  2771. if(ower1Form) {
  2772. insurancePolicyForm.value.name2 = ower1Form.name || hadWritedData.value.name2
  2773. insurancePolicyForm.value.mobile2 = ower1Form.mobile || hadWritedData.value.mobile2
  2774. insurancePolicyForm.value.identifyType2 = ower1Form.identifyType || hadWritedData.value.identifyType2
  2775. insurancePolicyForm.value.identifyNumber2 = ower1Form.identifyNumber || hadWritedData.value.identifyNumber2
  2776. insurancePolicyForm.value.identifyValidDate2 = ower1Form.identifyValidDate || hadWritedData.value.identifyValidDate2
  2777. insurancePolicyForm.value.identifyValidEndDate2 = ower1Form.identifyValidEndDate || hadWritedData.value.identifyValidEndDate2
  2778. insurancePolicyForm.value.addr2 = ower1Form.addr || hadWritedData.value.addr2
  2779. insurancePolicyForm.value.telephone2 = ower1Form.telephone || hadWritedData.value.telephone2
  2780. insurancePolicyForm.value.person2 = ower1Form.person || hadWritedData.value.person2
  2781. insurancePolicyForm.value.age2 = ower1Form.age || hadWritedData.value.age2
  2782. insurancePolicyForm.value.address2 = ower1Form.address || hadWritedData.value.address2
  2783. insurancePolicyForm.value.registeredCapital2 = ower1Form.registeredCapital || hadWritedData.value.registeredCapital2
  2784. insurancePolicyForm.value.email2 = ower1Form.email || hadWritedData.value.email2
  2785. if(!insurancePolicyForm.value.identifyNumber2 || insurancePolicyForm.value.identifyNumber2 && insurancePolicyForm.value.identifyNumber1 == insurancePolicyForm.value.identifyNumber2) {
  2786. btns.value.owner1[0].checked = true
  2787. btns.value.owner1Text = '同车主'
  2788. } else if(insurancePolicyForm.value.identifyNumber2 && insurancePolicyForm.value.identifyNumber1 != insurancePolicyForm.value.identifyNumber2) {
  2789. btns.value.owner1[1].checked = true
  2790. btns.value.owner1Text = '其他人'
  2791. }
  2792. }
  2793. if(ower2Form) {
  2794. insurancePolicyForm.value.name3 = ower2Form.name || hadWritedData.value.name3
  2795. insurancePolicyForm.value.mobile3 = ower2Form.mobile || hadWritedData.value.mobile3
  2796. insurancePolicyForm.value.identifyType3 = ower2Form.identifyType || hadWritedData.value.identifyType3
  2797. insurancePolicyForm.value.identifyNumber3 = ower2Form.identifyNumber || hadWritedData.value.identifyNumber3
  2798. insurancePolicyForm.value.identifyValidDate3 = ower2Form.identifyValidDate || hadWritedData.value.identifyValidDate3
  2799. insurancePolicyForm.value.identifyValidEndDate3 = ower2Form.identifyValidEndDate || hadWritedData.value.identifyValidEndDate3
  2800. insurancePolicyForm.value.addr3 = ower2Form.addr || hadWritedData.value.addr3
  2801. insurancePolicyForm.value.telephone3 = ower2Form.telephone || hadWritedData.value.telephone3
  2802. insurancePolicyForm.value.person3 = ower2Form.person || hadWritedData.value.person3
  2803. insurancePolicyForm.value.age3 = ower2Form.age || hadWritedData.value.age3
  2804. insurancePolicyForm.value.address3 = ower2Form.address || hadWritedData.value.address3
  2805. insurancePolicyForm.value.registeredCapital3 = ower2Form.registeredCapital || hadWritedData.value.registeredCapital3
  2806. insurancePolicyForm.value.email3 = ower2Form.email || hadWritedData.value.email3
  2807. if(insurancePolicyForm.value.identifyNumber3 && insurancePolicyForm.value.identifyNumber1 == insurancePolicyForm.value.identifyNumber3) {
  2808. btns.value.owner2[1].checked = true
  2809. btns.value.owner2Text = '同车主'
  2810. } else if(!insurancePolicyForm.value.identifyNumber3 || insurancePolicyForm.value.identifyNumber3 && insurancePolicyForm.value.identifyNumber2 == insurancePolicyForm.value.identifyNumber3) {
  2811. btns.value.owner2[0].checked = true
  2812. btns.value.owner2Text = '同投保人'
  2813. } else if(insurancePolicyForm.value.identifyNumber3 && insurancePolicyForm.value.identifyNumber2 != insurancePolicyForm.value.identifyNumber3) {
  2814. btns.value.owner2[2].checked = true
  2815. btns.value.owner2Text = '其他人'
  2816. }
  2817. }
  2818. if(imageVoList&&imageVoList.length>0) {
  2819. insurancePolicyForm.value.imageVoList = imageVoList.filter(a => a.imageBase64List[0].imageId)
  2820. }
  2821. if(list&&list.length>0) {
  2822. images.value = list
  2823. }
  2824. }
  2825. }
  2826. // 记录已填好的信息,防止再次进行证件识别
  2827. let hadWritedData = ref({})
  2828. const handleRecognition = (achor) => {
  2829. imageShow.value = true
  2830. hadWritedData.value = JSON.parse(JSON.stringify(insurancePolicyForm.value))
  2831. nextTick(() => {
  2832. RecognitionRefs.value.setAnchor(achor)
  2833. })
  2834. }
  2835. // 提交
  2836. let loading = ref(false)
  2837. const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope) => {
  2838. if(insurancePolicyForm.value.plateType == 'A1') {
  2839. if(!insurancePolicyForm.value.limitLoad) {
  2840. ElMessage({
  2841. message: '车辆种类为货车时,核定载质量必传!',
  2842. type: 'warning'
  2843. })
  2844. return
  2845. }
  2846. }
  2847. if(!InsurancePolicyRefs) {
  2848. InsurancePolicyRefs?.resetFields()
  2849. return
  2850. }
  2851. await InsurancePolicyRefs.validate((valid) => {
  2852. if(valid) {
  2853. // loading.value = true
  2854. quoteData.value[scope.$index].loading = true
  2855. let arr = [], brr = [], crr = []
  2856. if(quoteData.value.length>0) {
  2857. let obj = quoteData.value.find(a => a.id === insurancePolicyForm.value.order.insuranceCompanyCode)
  2858. obj.projectList[productIndex.value].kinds?.forEach(a => {
  2859. arr.push(a)
  2860. })
  2861. obj.projectList[productIndex.value].drivings?.forEach(a => {
  2862. brr.push(a)
  2863. })
  2864. if(obj.specialSelectedList?.length > 0) {
  2865. obj.specialSelectedList.forEach(a => {
  2866. crr.push(a)
  2867. })
  2868. }
  2869. // obj.projectList?.forEach(sub => {
  2870. // sub.kinds?.forEach(max => {
  2871. // arr.push(max)
  2872. // })
  2873. // sub.drivings?.forEach(max => {
  2874. // brr.push(max)
  2875. // })
  2876. // })
  2877. }
  2878. let obj1 = btns.value.owner1.find(a => a.checked)
  2879. btns.value.owner1Text = obj1.text
  2880. if(obj1.text === '同车主') {
  2881. insurancePolicyForm.value.name2 = insurancePolicyForm.value.name1
  2882. insurancePolicyForm.value.mobile2 = insurancePolicyForm.value.mobile1
  2883. insurancePolicyForm.value.identifyType2 = insurancePolicyForm.value.identifyType1
  2884. insurancePolicyForm.value.identifyNumber2 = insurancePolicyForm.value.identifyNumber1
  2885. insurancePolicyForm.value.identifyValidDate2 = insurancePolicyForm.value.identifyValidDate1
  2886. insurancePolicyForm.value.identifyValidEndDate2 = insurancePolicyForm.value.identifyValidEndDate1
  2887. insurancePolicyForm.value.addr2 = insurancePolicyForm.value.addr1
  2888. insurancePolicyForm.value.telephone2 = insurancePolicyForm.value.telephone1
  2889. insurancePolicyForm.value.person2 = insurancePolicyForm.value.person1
  2890. insurancePolicyForm.value.age2 = insurancePolicyForm.value.age1
  2891. insurancePolicyForm.value.address2 = insurancePolicyForm.value.address1
  2892. insurancePolicyForm.value.registeredCapital2 = insurancePolicyForm.value.registeredCapital1
  2893. insurancePolicyForm.value.email2 = insurancePolicyForm.value.email1
  2894. }
  2895. let obj2 = btns.value.owner2.find(a => a.checked)
  2896. btns.value.owner2Text = obj2.text
  2897. if(obj2.text === '同车主') {
  2898. insurancePolicyForm.value.name3 = insurancePolicyForm.value.name1
  2899. insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile1
  2900. insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType1
  2901. insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber1
  2902. insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate1
  2903. insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate1
  2904. insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr1
  2905. insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone1
  2906. insurancePolicyForm.value.person3 = insurancePolicyForm.value.person1
  2907. insurancePolicyForm.value.age3 = insurancePolicyForm.value.age1
  2908. insurancePolicyForm.value.address3 = insurancePolicyForm.value.address1
  2909. insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital1
  2910. insurancePolicyForm.value.email3 = insurancePolicyForm.value.email1
  2911. }
  2912. if(obj2.text === '同投保人') {
  2913. insurancePolicyForm.value.name3 = insurancePolicyForm.value.name2
  2914. insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile2
  2915. insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType2
  2916. insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber2
  2917. insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate2
  2918. insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate2
  2919. insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr2
  2920. insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone2
  2921. insurancePolicyForm.value.person3 = insurancePolicyForm.value.person2
  2922. insurancePolicyForm.value.age3 = insurancePolicyForm.value.age2
  2923. insurancePolicyForm.value.address3 = insurancePolicyForm.value.address2
  2924. insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital2
  2925. insurancePolicyForm.value.email3 = insurancePolicyForm.value.email2
  2926. }
  2927. let data = {
  2928. systemType: '2',
  2929. order: {
  2930. insuranceCompanyCode: quoteData.value[scope.$index].id,
  2931. quoteNo: insurancePolicyForm.value.order.quoteNo,
  2932. agreementId: quoteData.value[scope.$index].isDispatch?quoteData.value[scope.$index].dispatchAgreementId:quoteData.value[scope.$index].agreement,
  2933. productId: insurancePolicyForm.value.productId,
  2934. },
  2935. carInfoVo: {
  2936. licenseKindCode: '02',
  2937. propertyCode: insurancePolicyForm.value.propertyCode,
  2938. licenseNo: insurancePolicyForm.value.licenseNo,
  2939. vinNo: insurancePolicyForm.value.vinNo,
  2940. brandName: insurancePolicyForm.value.brandName,
  2941. engineNo: insurancePolicyForm.value.engineNo,
  2942. carNatureCode: insurancePolicyForm.value.carNatureCode,
  2943. vehicleUseCode: insurancePolicyForm.value.vehicleUseCode,
  2944. carTypeCode: insurancePolicyForm.value.carTypeCode,
  2945. energyTypeCode: insurancePolicyForm.value.energyTypeCode,
  2946. registerDate: insurancePolicyForm.value.registerDate,
  2947. issueDate: insurancePolicyForm.value.issueDate,
  2948. completeKerbMass: insurancePolicyForm.value.completeKerbMass,
  2949. limitLoad: insurancePolicyForm.value.limitLoad,
  2950. seatCount: insurancePolicyForm.value.seatCount,
  2951. carYear: insurancePolicyForm.value.carYear,
  2952. purchasePrice: insurancePolicyForm.value.purchasePrice,
  2953. displacement: insurancePolicyForm.value.displacement,
  2954. powerScale: insurancePolicyForm.value.powerScale,
  2955. carKindCode: insurancePolicyForm.value.plateType,
  2956. transfer: insurancePolicyForm.value.transfer,
  2957. biTransfer: insurancePolicyForm.value.biTransfer,
  2958. secondHandCar: insurancePolicyForm.value.secondHandCar,
  2959. transferDate: insurancePolicyForm.value.transferDate
  2960. },
  2961. ownersInfo: {
  2962. property: 1,
  2963. name: insurancePolicyForm.value.name1,
  2964. mobile: insurancePolicyForm.value.mobile1,
  2965. identifyType: insurancePolicyForm.value.identifyType1,
  2966. identifyNumber: insurancePolicyForm.value.identifyNumber1,
  2967. identifyValidDate: insurancePolicyForm.value.identifyValidDate1,
  2968. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate1,
  2969. addr: insurancePolicyForm.value.addr1,
  2970. telephone: insurancePolicyForm.value.telephone1,
  2971. person: insurancePolicyForm.value.person1,
  2972. age: insurancePolicyForm.value.age1,
  2973. address: insurancePolicyForm.value.address1,
  2974. registeredCapital: insurancePolicyForm.value.registeredCapital1,
  2975. email: insurancePolicyForm.value.email1,
  2976. },
  2977. policyHolderInfo: {
  2978. property: 1,
  2979. name: insurancePolicyForm.value.name2,
  2980. mobile: insurancePolicyForm.value.mobile2,
  2981. identifyType: insurancePolicyForm.value.identifyType2,
  2982. identifyNumber: insurancePolicyForm.value.identifyNumber2,
  2983. identifyValidDate: insurancePolicyForm.value.identifyValidDate2,
  2984. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate2,
  2985. addr: insurancePolicyForm.value.addr2,
  2986. telephone: insurancePolicyForm.value.telephone2,
  2987. person: insurancePolicyForm.value.person2,
  2988. age: insurancePolicyForm.value.age2,
  2989. address: insurancePolicyForm.value.address2,
  2990. registeredCapital: insurancePolicyForm.value.registeredCapital2,
  2991. email: insurancePolicyForm.value.email2,
  2992. },
  2993. insuredPersonInfo: {
  2994. property: 1,
  2995. name: insurancePolicyForm.value.name3,
  2996. mobile: insurancePolicyForm.value.mobile3,
  2997. identifyType: insurancePolicyForm.value.identifyType3,
  2998. identifyNumber: insurancePolicyForm.value.identifyNumber3,
  2999. identifyValidDate: insurancePolicyForm.value.identifyValidDate3,
  3000. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate3,
  3001. addr: insurancePolicyForm.value.addr3,
  3002. telephone: insurancePolicyForm.value.telephone3,
  3003. person: insurancePolicyForm.value.person3,
  3004. age: insurancePolicyForm.value.age3,
  3005. address: insurancePolicyForm.value.address3,
  3006. registeredCapital: insurancePolicyForm.value.registeredCapital3,
  3007. email: insurancePolicyForm.value.email3,
  3008. },
  3009. ciRiskInfoVo: insurancePolicyForm.value.productId === '0330' || insurancePolicyForm.value.productId === '0330034002' || insurancePolicyForm.value.productId === '0330034001'&&insurancePolicyForm.value.JQStartDate&&insurancePolicyForm.value.JQEndDate?{
  3010. riskCode: '0507',
  3011. startDate: insurancePolicyForm.value.JQStartDate,
  3012. endDate: insurancePolicyForm.value.JQEndDate,
  3013. instantFlag: insurancePolicyForm.value.JQInstantFlag
  3014. }: null,
  3015. biRiskInfoVo: insurancePolicyForm.value.productId === '034001' || insurancePolicyForm.value.productId === '034002' || insurancePolicyForm.value.productId === '0330034002' || insurancePolicyForm.value.productId === '0330034001'&&insurancePolicyForm.value.SYStartDate&&insurancePolicyForm.value.SYEndDate?{
  3016. riskCode: '0510',
  3017. startDate: insurancePolicyForm.value.SYStartDate,
  3018. endDate: insurancePolicyForm.value.SYEndDate,
  3019. instantFlag: insurancePolicyForm.value.SYInstantFlag
  3020. }: null,
  3021. vehicleAndVesselTaxVo: {
  3022. taxRelifFlag: insurancePolicyForm.value.taxRelifFlag,
  3023. extendChar2: insurancePolicyForm.value.extendChar2,
  3024. relifReason: insurancePolicyForm.value.relifReason,
  3025. taxComCode: insurancePolicyForm.value.taxComCode,
  3026. taxComName: insurancePolicyForm.value.taxComName,
  3027. taxRelief: insurancePolicyForm.value.taxRelief,
  3028. taxDocumentDate: insurancePolicyForm.value.taxDocumentDate,
  3029. taxPaidAreaCode: insurancePolicyForm.value.taxPaidAreaCode,
  3030. taxpayerName: insurancePolicyForm.value.taxpayerName,
  3031. taxpayerIdentifier: insurancePolicyForm.value.taxpayerIdentifier,
  3032. identifyNumber: insurancePolicyForm.value.identifyNumber,
  3033. },
  3034. kindInfoVo: [...arr],
  3035. accidentalDrivings: [...brr],
  3036. specialInfoVo: [...crr]
  3037. }
  3038. api.insurancePolicyApi.quote(data).then((res: any) => {
  3039. if(res.code == 200) {
  3040. ElMessage({
  3041. message: res.msg,
  3042. type: 'success'
  3043. })
  3044. if(res.data) {
  3045. let a = res.data.ciPremium?res.data.ciPremium:0
  3046. let b = res.data.vvTax?res.data.vvTax:0
  3047. let c = res.data.biPremium?res.data.biPremium:0
  3048. let d = res.data.niPremium?res.data.niPremium:0
  3049. res.data.quoteTotal = Number(a) + Number(b) + Number(c) + Number(d)
  3050. }
  3051. quoteData.value[scope.$index].discounts = [
  3052. {
  3053. name: '交强',
  3054. additionalPremium: res.data?.feeOrders?.jqAdditionalPremium,
  3055. additionalRatio: res.data?.feeOrders?.jqAdditionalRatio,
  3056. commissionPremium: res.data?.feeOrders?.jqCommissionPremium,
  3057. commissionRatio: res.data?.feeOrders?.jqCommissionRatio,
  3058. exportPremium: res.data?.feeOrders?.jqExportPremium,
  3059. exportRatio: res.data?.feeOrders?.jqExportRatio,
  3060. },{
  3061. name: '商业',
  3062. additionalPremium: res.data?.feeOrders?.syAdditionalPremium,
  3063. additionalRatio: res.data?.feeOrders?.syAdditionalRatio,
  3064. commissionPremium: res.data?.feeOrders?.syCommissionPremium,
  3065. commissionRatio: res.data?.feeOrders?.syCommissionRatio,
  3066. exportPremium: res.data?.feeOrders?.syExportPremium,
  3067. exportRatio: res.data?.feeOrders?.syExportRatio,
  3068. },{
  3069. name: '驾意险',
  3070. additionalPremium: res.data?.feeOrders?.jyAdditionalPremium,
  3071. additionalRatio: res.data?.feeOrders?.jyAdditionalRatio,
  3072. commissionPremium: res.data?.feeOrders?.jyCommissionPremium,
  3073. commissionRatio: res.data?.feeOrders?.jyCommissionRatio,
  3074. exportPremium: res.data?.feeOrders?.jyExportPremium,
  3075. exportRatio: res.data?.feeOrders?.jyExportRatio,
  3076. },
  3077. ]
  3078. quoteData.value[scope.$index].quoteResult = res.data
  3079. loading.value = false
  3080. quoteData.value[scope.$index].loading = false
  3081. console.log('报价后的数据', quoteData.value)
  3082. } else {
  3083. ElMessage({
  3084. message: res.msg,
  3085. type: 'warning'
  3086. })
  3087. quoteData.value[scope.$index].quoteResult.failMsg = res.msg
  3088. loading.value = false
  3089. quoteData.value[scope.$index].loading = false
  3090. }
  3091. // InsurancePolicyRefs.resetFields()
  3092. }).catch(e => {
  3093. loading.value = false
  3094. quoteData.value[scope.$index].loading = false
  3095. quoteData.value.forEach(a => {
  3096. a.loading = false
  3097. })
  3098. })
  3099. // api.insurancePolicyApi.imageSave({
  3100. // order: {
  3101. // quoteNo: insurancePolicyForm.value.order.quoteNo
  3102. // },
  3103. // imageVoList: insurancePolicyForm.value.imageVoList
  3104. // }).then((res: any) => {
  3105. // if(res.code == 200) {
  3106. // api.insurancePolicyApi.quote(data).then((res: any) => {
  3107. // if(res.code == 200) {
  3108. // ElMessage({
  3109. // message: res.msg,
  3110. // type: 'success'
  3111. // })
  3112. // if(res.data) {
  3113. // let a = res.data.ciPremium?res.data.ciPremium:0
  3114. // let b = res.data.vvTax?res.data.vvTax:0
  3115. // let c = res.data.biPremium?res.data.biPremium:0
  3116. // let d = res.data.niPremium?res.data.niPremium:0
  3117. // res.data.quoteTotal = Number(a) + Number(b) + Number(c) + Number(d)
  3118. // }
  3119. // quoteData.value[scope.$index].discounts = [
  3120. // {
  3121. // name: '交强',
  3122. // additionalPremium: res.data?.feeOrders?.jqAdditionalPremium,
  3123. // additionalRatio: res.data?.feeOrders?.jqAdditionalRatio,
  3124. // commissionPremium: res.data?.feeOrders?.jqCommissionPremium,
  3125. // commissionRatio: res.data?.feeOrders?.jqCommissionRatio,
  3126. // exportPremium: res.data?.feeOrders?.jqExportPremium,
  3127. // exportRatio: res.data?.feeOrders?.jqExportRatio,
  3128. // },{
  3129. // name: '商业',
  3130. // additionalPremium: res.data?.feeOrders?.syAdditionalPremium,
  3131. // additionalRatio: res.data?.feeOrders?.syAdditionalRatio,
  3132. // commissionPremium: res.data?.feeOrders?.syCommissionPremium,
  3133. // commissionRatio: res.data?.feeOrders?.syCommissionRatio,
  3134. // exportPremium: res.data?.feeOrders?.syExportPremium,
  3135. // exportRatio: res.data?.feeOrders?.syExportRatio,
  3136. // },{
  3137. // name: '驾意险',
  3138. // additionalPremium: res.data?.feeOrders?.jyAdditionalPremium,
  3139. // additionalRatio: res.data?.feeOrders?.jyAdditionalRatio,
  3140. // commissionPremium: res.data?.feeOrders?.jyCommissionPremium,
  3141. // commissionRatio: res.data?.feeOrders?.jyCommissionRatio,
  3142. // exportPremium: res.data?.feeOrders?.jyExportPremium,
  3143. // exportRatio: res.data?.feeOrders?.jyExportRatio,
  3144. // },
  3145. // ]
  3146. // quoteData.value[scope.$index].quoteResult = res.data
  3147. // loading.value = false
  3148. // quoteData.value[scope.$index].loading = false
  3149. // console.log('报价后的数据', quoteData.value)
  3150. // } else {
  3151. // ElMessage({
  3152. // message: res.msg,
  3153. // type: 'warning'
  3154. // })
  3155. // quoteData.value[scope.$index].quoteResult.failMsg = res.msg
  3156. // loading.value = false
  3157. // quoteData.value[scope.$index].loading = false
  3158. // }
  3159. // // InsurancePolicyRefs.resetFields()
  3160. // }).catch(e => {
  3161. // loading.value = false
  3162. // quoteData.value[scope.$index].loading = false
  3163. // quoteData.value.forEach(a => {
  3164. // a.loading = false
  3165. // })
  3166. // })
  3167. // } else {
  3168. // ElMessage({
  3169. // message: res.msg,
  3170. // type: 'warning'
  3171. // })
  3172. // }
  3173. // })
  3174. } else {
  3175. ElMessage({
  3176. message: '请完整填写相关信息',
  3177. type: 'warning'
  3178. })
  3179. }
  3180. })
  3181. }
  3182. const handleOpen = (scope) => {
  3183. ElNotification({
  3184. title: '费用匹配错误信息',
  3185. message: h('p', { style: 'white-space: pre-line' }, `${scope.row.quoteResult?.feeNoDescription}`),
  3186. })
  3187. }
  3188. // 获取保司
  3189. const ruleFilterCompany = (item) => {
  3190. let data = {
  3191. productId: item.value,
  3192. carInfo: {
  3193. carOwner: insurancePolicyForm.value.carOwner,
  3194. licenseNo: insurancePolicyForm.value.licenseNo,
  3195. vinNo: insurancePolicyForm.value.vinNo,
  3196. brandName: insurancePolicyForm.value.brandName,
  3197. engineNo: insurancePolicyForm.value.engineNo,
  3198. carNatureCode: insurancePolicyForm.value.carNatureCode,
  3199. vehicleUseCode: insurancePolicyForm.value.vehicleUseCode,
  3200. carTypeCode: insurancePolicyForm.value.carTypeCode,
  3201. energyTypeCode: insurancePolicyForm.value.energyTypeCode,
  3202. registerDate: insurancePolicyForm.value.registerDate,
  3203. issueDate: insurancePolicyForm.value.issueDate,
  3204. completeKerbMass: insurancePolicyForm.value.completeKerbMass,
  3205. limitLoad: insurancePolicyForm.value.limitLoad,
  3206. seatCount: insurancePolicyForm.value.seatCount,
  3207. carYear: insurancePolicyForm.value.carYear,
  3208. purchasePrice: insurancePolicyForm.value.purchasePrice,
  3209. displacement: insurancePolicyForm.value.displacement,
  3210. powerScale: insurancePolicyForm.value.powerScale,
  3211. carKindCode: insurancePolicyForm.value.plateType
  3212. },
  3213. ownerInfo: {
  3214. name: insurancePolicyForm.value.name1,
  3215. mobile: insurancePolicyForm.value.mobile1,
  3216. identifyType: insurancePolicyForm.value.identifyType1,
  3217. identifyNumber: insurancePolicyForm.value.identifyNumber1,
  3218. identifyValidDate: insurancePolicyForm.value.identifyValidDate1,
  3219. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate1,
  3220. addr: insurancePolicyForm.value.addr1,
  3221. telephone: insurancePolicyForm.value.telephone1,
  3222. person: insurancePolicyForm.value.person1,
  3223. age: insurancePolicyForm.value.age1,
  3224. address: insurancePolicyForm.value.address1,
  3225. registeredCapital: insurancePolicyForm.value.registeredCapital1,
  3226. email: insurancePolicyForm.value.email1,
  3227. },
  3228. applyInfo: {
  3229. name: insurancePolicyForm.value.name2,
  3230. mobile: insurancePolicyForm.value.mobile2,
  3231. identifyType: insurancePolicyForm.value.identifyType2,
  3232. identifyNumber: insurancePolicyForm.value.identifyNumber2,
  3233. identifyValidDate: insurancePolicyForm.value.identifyValidDate2,
  3234. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate2,
  3235. addr: insurancePolicyForm.value.addr2,
  3236. telephone: insurancePolicyForm.value.telephone2,
  3237. person: insurancePolicyForm.value.person2,
  3238. age: insurancePolicyForm.value.age2,
  3239. address: insurancePolicyForm.value.address2,
  3240. registeredCapital: insurancePolicyForm.value.registeredCapital2,
  3241. email: insurancePolicyForm.value.email2,
  3242. },
  3243. insureInfo: {
  3244. name: insurancePolicyForm.value.name3,
  3245. mobile: insurancePolicyForm.value.mobile3,
  3246. identifyType: insurancePolicyForm.value.identifyType3,
  3247. identifyNumber: insurancePolicyForm.value.identifyNumber3,
  3248. identifyValidDate: insurancePolicyForm.value.identifyValidDate3,
  3249. identifyValidEndDate: insurancePolicyForm.value.identifyValidEndDate3,
  3250. addr: insurancePolicyForm.value.addr3,
  3251. telephone: insurancePolicyForm.value.telephone3,
  3252. person: insurancePolicyForm.value.person3,
  3253. age: insurancePolicyForm.value.age3,
  3254. address: insurancePolicyForm.value.address3,
  3255. registeredCapital: insurancePolicyForm.value.registeredCapital3,
  3256. email: insurancePolicyForm.value.email3,
  3257. },
  3258. }
  3259. api.insurancePolicyApi.ruleFilterCompany(data).then((res: any) => {
  3260. if(res.code == 200) {
  3261. res.data.forEach(a => {
  3262. a.loading = false
  3263. })
  3264. quoteData.value = res.data
  3265. quoteData.value.forEach(item => {
  3266. if(item.agreements && item.agreements.length == 1) {
  3267. item.agreement = item.agreements[0].id
  3268. }
  3269. })
  3270. } else {
  3271. quoteData.value = []
  3272. ElMessage({
  3273. message: res.msg,
  3274. type: 'warning'
  3275. })
  3276. }
  3277. })
  3278. }
  3279. onMounted(() => {
  3280. getAreaList()
  3281. initDept()
  3282. initOption()
  3283. if(myRoute.query.orderNo) {
  3284. initDetail()
  3285. }
  3286. })
  3287. </script>
  3288. <style scoped lang="scss">
  3289. @use "@/assets/styles/common/style";
  3290. .insurancePolicy{
  3291. width: calc(100% - 48px);
  3292. height: calc(100vh - 128px);
  3293. margin: 10px 24px 0;
  3294. overflow-y: auto;
  3295. overflow-x: hidden;
  3296. .formItem{
  3297. padding: 0 24px;
  3298. background: #FFFFFF;
  3299. border-radius: 6px;
  3300. }
  3301. .title{
  3302. height: 18px;
  3303. border-left: 4px solid #00a0f4;
  3304. display: flex;
  3305. align-items: center;
  3306. justify-content: flex-start;
  3307. padding-left: 12px;
  3308. margin-left: 24px;
  3309. color: #333333;
  3310. font-size: 15px;
  3311. }
  3312. .icon{
  3313. padding-right: 24px;
  3314. display: flex;
  3315. align-items: center;
  3316. }
  3317. .myIcon{
  3318. display: inline-block;
  3319. width: 14px;
  3320. height: 14px;
  3321. margin-right: 10px;
  3322. }
  3323. .icon-ele{
  3324. margin-left: 10px;
  3325. }
  3326. .ordinary{
  3327. height: 22px;
  3328. line-height: 22px;
  3329. padding: 0 10px;
  3330. border: 1px solid #EEEEEE;
  3331. border-radius: 2px;
  3332. color: #666666;
  3333. display: flex;
  3334. font-size: 12px;
  3335. margin: 0 5px;
  3336. }
  3337. .active{
  3338. border: 1px solid #0083FF;
  3339. color: #0083FF;
  3340. background: url("@/assets/images/additional/right.png") no-repeat right bottom;
  3341. background-size: 12px 12px;
  3342. }
  3343. .insurance-jq{
  3344. display: flex;
  3345. align-items: center;
  3346. justify-content: flex-start;
  3347. margin: 10px 0 24px 24px;
  3348. .checkbox{
  3349. margin: 0 24px;
  3350. height: 22px;
  3351. line-height: 22px;
  3352. padding: 0 10px;
  3353. border: 1px solid #EEEEEE;
  3354. border-radius: 2px;
  3355. color: #666666;
  3356. display: flex;
  3357. font-size: 12px;
  3358. cursor: pointer;
  3359. }
  3360. .cehcked{
  3361. border: 1px solid #0083FF;
  3362. color: #0083FF;
  3363. background: url("@/assets/images/additional/right.png") no-repeat right bottom;
  3364. background-size: 12px 12px;
  3365. }
  3366. .time{
  3367. display: flex;
  3368. align-items: center;
  3369. justify-content: flex-start;
  3370. }
  3371. }
  3372. .success{
  3373. color: #1DAEFF;
  3374. border: 1px solid #1DAEFF;
  3375. background: #E7F7FF;
  3376. padding: 2px 4px;
  3377. border-radius: 2px;
  3378. font-size: 12px;
  3379. }
  3380. .fail{
  3381. color: #FF4545;
  3382. border: 1px solid #FF4545;
  3383. background: #FFF4F4;
  3384. padding: 2px 4px;
  3385. border-radius: 2px;
  3386. font-size: 12px;
  3387. margin-right: 10px;
  3388. }
  3389. .company{
  3390. display: flex;
  3391. align-items: center;
  3392. justify-content: center;
  3393. img{
  3394. width: 24px;
  3395. height: 24px;
  3396. margin-right: 10px;
  3397. }
  3398. }
  3399. .resultItem{
  3400. display: flex;
  3401. align-items: center;
  3402. justify-content: flex-start;
  3403. font-size: 12px;
  3404. .resultTips{
  3405. display: flex;
  3406. align-items: center;
  3407. justify-content: flex-start;
  3408. background: #FFFAEF;
  3409. border: 1px solid #FAA21E;
  3410. border-radius: 2px;
  3411. padding: 0 4px;
  3412. font-size: 10px;
  3413. margin-left: 10px;
  3414. }
  3415. }
  3416. .costFactor{
  3417. width: 100%;
  3418. display: flex;
  3419. align-items: center;
  3420. justify-content: flex-start;
  3421. }
  3422. .quoteFail{
  3423. display: flex;
  3424. align-items: center;
  3425. justify-content: flex-start;
  3426. font-size: 12px;
  3427. }
  3428. .quoteReason{
  3429. text-align: left;
  3430. padding-left: 22px;
  3431. width: 100%;
  3432. display: -webkit-box; /* 必须设置,用于多行溢出 */
  3433. -webkit-box-orient: vertical; /* 设置盒子排列方向为垂直 */
  3434. -webkit-line-clamp: 2; /* 限制显示的行数,例如显示 3 行 */
  3435. overflow: hidden;
  3436. font-size: 12px;
  3437. }
  3438. .product{
  3439. .productItem{
  3440. border: 1px solid #E5E5E5;
  3441. font-size: 12px;
  3442. padding: 0 4px;
  3443. border-radius: 2px;
  3444. color: #666666;
  3445. cursor: pointer;
  3446. margin: 0 10px 0 0;
  3447. }
  3448. .productActive{
  3449. border: 1px solid #0083FF;
  3450. color: #0083FF;
  3451. }
  3452. }
  3453. .quoteTitle{
  3454. height: 14px;
  3455. border-left: 2px solid #00a0f4;
  3456. display: flex;
  3457. align-items: center;
  3458. justify-content: flex-start;
  3459. padding-left: 6px;
  3460. margin: 14px 0;
  3461. color: #333333;
  3462. font-size: 14px;
  3463. }
  3464. .quoteFlex{
  3465. display: flex;
  3466. align-items: center;
  3467. justify-content: center;
  3468. }
  3469. .imageCode{
  3470. height: 140px;
  3471. display: flex;
  3472. align-items: center;
  3473. justify-content: center;
  3474. img{
  3475. width: 140px;
  3476. height: 140px;
  3477. }
  3478. }
  3479. .expandFlex{
  3480. display: flex;
  3481. .expandTitle{
  3482. text-align: center;
  3483. display: flex;
  3484. align-items: center;
  3485. justify-content: center;
  3486. width: 40px;
  3487. padding: 0 8px;
  3488. margin: 0 10px 0 0;
  3489. background: #F6FBFF;
  3490. }
  3491. }
  3492. :deep(.el-collapse-item__header) {
  3493. display: flex;
  3494. align-items: center;
  3495. justify-content: space-between;
  3496. }
  3497. :deep(.el-form-item) {
  3498. margin-bottom: 0;
  3499. }
  3500. .formBlock{
  3501. :deep(.el-form-item) {
  3502. display: block;
  3503. }
  3504. }
  3505. .factorTable{
  3506. .more{
  3507. border: 1px solid #0083FF;
  3508. display: flex;
  3509. align-items: center;
  3510. justify-content: center;
  3511. border-radius: 50%;
  3512. width: 12px;
  3513. height: 12px;
  3514. color: #0083FF;
  3515. font-size: 10px;
  3516. margin-left: 2px;
  3517. }
  3518. :deep(.cell) {
  3519. font-size: 10px;
  3520. }
  3521. }
  3522. :deep(thead .el-table__cell) {
  3523. background: #eeeeee;
  3524. }
  3525. .footer{
  3526. display: flex;
  3527. align-items: center;
  3528. justify-content: center;
  3529. margin-top: 10px;
  3530. background: #FFFFFF;
  3531. padding: 16px 0;
  3532. }
  3533. .loader {
  3534. /* Wave text loader made by: csozi | Website: english.csozi.hu*/
  3535. //height: 30px;
  3536. .text {
  3537. margin: 0;
  3538. line-height: 24px;
  3539. color: red;
  3540. font-weight: bolder;
  3541. background: -webkit-linear-gradient(45deg,
  3542. orange,
  3543. orangered);
  3544. /* Chrome, Safari */
  3545. background: linear-gradient(45deg, orange, orangered);
  3546. /* Standard syntax */
  3547. -webkit-background-clip: text;
  3548. /* Chrome, Safari */
  3549. background-clip: text;
  3550. -webkit-text-fill-color: transparent;
  3551. /* Chrome, Safari */
  3552. color: transparent;
  3553. /* Standard syntax (currently not supported by browsers) */
  3554. font-family: "'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif'";
  3555. }
  3556. @keyframes letter {
  3557. 0% {
  3558. font-size: 14px;
  3559. }
  3560. 50% {
  3561. font-size: 15px;
  3562. }
  3563. 100% {
  3564. font-size: 14px;
  3565. }
  3566. }
  3567. .letter {
  3568. animation: letter 1s infinite;
  3569. }
  3570. .letter1 {
  3571. animation-delay: 0s;
  3572. }
  3573. .letter2 {
  3574. animation-delay: -0.9s;
  3575. }
  3576. .letter3 {
  3577. animation-delay: -0.8s;
  3578. }
  3579. .letter4 {
  3580. animation-delay: -0.7s;
  3581. }
  3582. .letter5 {
  3583. animation-delay: -0.6s;
  3584. }
  3585. .letter6 {
  3586. animation-delay: -0.5s;
  3587. }
  3588. .letter7 {
  3589. animation-delay: -0.4s;
  3590. }
  3591. .letter8 {
  3592. animation-delay: -0.3s;
  3593. }
  3594. .letter9 {
  3595. animation-delay: -0.2s;
  3596. }
  3597. .letter10 {
  3598. animation-delay: -0.1s;
  3599. }
  3600. }
  3601. :deep(.el-form-item) {
  3602. margin-bottom: 10px;
  3603. }
  3604. }
  3605. </style>