KtOrder.vue 141 KB

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