KtOrder.vue 146 KB

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