KtOrder.vue 141 KB

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