KtOrder.vue 143 KB

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