KtOrder.vue 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944
  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="选择险种" style="width: 100%">
  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="3">
  56. <el-button type="primary" size="small" @click="onSubmit">查询</el-button>
  57. </el-col>
  58. </el-row>
  59. <el-row v-if="isLetterOrder">
  60. <el-col :span="21">
  61. <el-form-item label="订单状态">
  62. <el-radio-group v-model="pageRequest.orderStatus">
  63. <el-radio label="888">全部</el-radio>
  64. <el-radio v-for="val in optionsStatus" :key="val.dictValue" :label="val.dictValue">{{ val.dictTag
  65. }}</el-radio>
  66. </el-radio-group>
  67. </el-form-item>
  68. </el-col>
  69. </el-row>
  70. </el-form>
  71. <el-table size="small" :data="pageResult" border v-loading="orderLoaing" highlight-current-row stripe
  72. @expand-change="handleRowChange" ref="expandTable" height="550" :header-cell-style="{
  73. background: '#F2F7FC',
  74. fontWeight: '700',
  75. color: '#606266',
  76. }">
  77. <el-table-column type="expand">
  78. <template slot-scope="scope">
  79. <div class="demo-table-expand flex a-c j-s" :style="{ width: width, flexWrap: 'wrap' }"
  80. v-for="(item, index) in scope.row.insAreaCompanyList" :key="index">
  81. <div style="width: 12%">
  82. {{ item.inscompany }}
  83. <span style="color: #d42426">({{ item.agreementName }})</span>
  84. </div>
  85. <div class="flex a-c j-s demo-table-expand-time">
  86. <div>
  87. 总价:
  88. <span style="color: #d42426">{{ item.sumpremium }}</span>
  89. </div>
  90. <div>
  91. 交强险:
  92. <span style="color: #d42426">{{ item.jqpremium }}</span>
  93. </div>
  94. <div>
  95. 商业险:
  96. <span style="color: #d42426">{{ item.sypremium }}</span>
  97. </div>
  98. <div>
  99. 车船税:
  100. <span style="color: #d42426">{{ item.taxamount }}</span>
  101. </div>
  102. <div v-if="item.jypremium">
  103. 驾意险:
  104. <span style="color: #d42426">{{ item.jypremium }}</span>
  105. </div>
  106. <div>{{ item.createtime }}</div>
  107. </div>
  108. <div slot="reference" class="name-wrapper flex a-c j-c">
  109. <el-tag style="
  110. color: #33a08d;
  111. border-color: #33a08d;
  112. background: rgba(51, 160, 141, 0.1);
  113. " v-if="item.orderstatus == '0' || item.orderstatus == '1'" size="small">{{ item.orderstatus | cap
  114. }}</el-tag>
  115. <el-tag style="border-color: #e75b5d" type="danger" v-else-if="item.orderstatus == '3'" size="small">{{
  116. item.orderstatus | cap }}</el-tag>
  117. <el-tag v-else style="
  118. color: #2d4d89;
  119. border-color: #2d4d89;
  120. background: rgba(45, 77, 137, 0.1);
  121. " size="small">{{ item.orderstatus | cap }}</el-tag>
  122. </div>
  123. <div class="flex a-c">
  124. <el-button size="mini" type="text" v-if="item.orderstatus == '1' &&
  125. [
  126. '中煤财险',
  127. '大家财险',
  128. '永诚财险',
  129. '国任财险',
  130. '太平财险',
  131. '华农财险',
  132. '恒邦财险',
  133. '众安财险',
  134. '中国人寿',
  135. '安盛天平',
  136. '紫金财险',
  137. '渤海财险',
  138. '泰康财险',
  139. '华泰财险',
  140. ].includes(item.inscompany)
  141. " @click="refreshStatus(item)" class="red_color">更新订单</el-button>
  142. <el-button size="mini" type="text" v-if="item.orderstatus == '4' && item.inscompany == '华泰财险'"
  143. @click="updateStatusHuatai(item)" class="red_color">更新订单</el-button>
  144. <el-button size="mini" type="text" v-if="(item.orderstatus == '1' ||
  145. item.orderstatus == '2' ||
  146. item.orderstatus == '4') &&
  147. ['紫金财险'].includes(item.inscompany)
  148. " @click="cancelorder(item)" class="red_color">撤单</el-button>
  149. <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(item)"
  150. class="red_color">二维码</el-button>
  151. <el-button size="mini" type="text" class="green_color"
  152. @click="OrderDetails(scope.row, item)">查看详情</el-button>
  153. <el-button size="mini" type="text" :loading="querystatusLoaing" v-if="item.orderstatus == '2' &&
  154. [
  155. '太平财险',
  156. '华农财险',
  157. '恒邦财险',
  158. '众安财险',
  159. '中国人寿',
  160. '安盛天平',
  161. '紫金财险',
  162. '永诚财险',
  163. '大家财险',
  164. '华泰财险',
  165. '国任财险',
  166. '中煤财险',
  167. '渤海财险',
  168. '泰康财险',
  169. ].includes(item.inscompany)
  170. " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
  171. <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"
  172. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  173. <el-button size="mini" type="primary" @click="bjdpreview(item.id, scope.row.userid)">报价单</el-button>
  174. <!-- <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button> -->
  175. <el-button type="text" size="mini" v-if="item.orderstatus == '2'">
  176. <el-dropdown trigger="click">
  177. <span class="el-dropdown-link blue_color">
  178. 更多
  179. <i class="el-icon-arrow-down el-icon--right"></i>
  180. </span>
  181. <el-dropdown-menu slot="dropdown">
  182. <el-dropdown-item>
  183. <el-button size="mini" type="text" style="color: #2d4d89"
  184. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  185. </el-dropdown-item>
  186. <el-dropdown-item>
  187. <el-button type="text" size="mini" style="color: #2d4d89"
  188. @click="revokeCode(item.id)">撤销二维码</el-button>
  189. </el-dropdown-item>
  190. </el-dropdown-menu>
  191. </el-dropdown>
  192. </el-button>
  193. </div>
  194. </div>
  195. </template>
  196. </el-table-column>
  197. <el-table-column prop="orderno" label="订单号" align="center" width="180"></el-table-column>
  198. <el-table-column prop="username" label="业务员" align="center" width="180">
  199. <template slot-scope="scope">
  200. <span>{{ scope.row.username }}</span>
  201. </template>
  202. </el-table-column>
  203. <el-table-column prop="username" label="业务员工号" align="center" width="180">
  204. <template slot-scope="scope">
  205. <span>{{ scope.row.userid }}</span>
  206. </template>
  207. </el-table-column>
  208. <el-table-column prop="insCompany" label="承保公司" width="100" align="center">
  209. <template slot-scope="scope">
  210. <span>{{ scope.row.insCompany ? scope.row.insCompany : "--" }}</span>
  211. </template>
  212. </el-table-column>
  213. <el-table-column prop="partnerCompaniesName" label="合作公司" width="100" align="center">
  214. <template slot-scope="scope">
  215. <span>{{ scope.row.partnerCompaniesName ? scope.row.partnerCompaniesName : "--" }}</span>
  216. </template>
  217. </el-table-column>
  218. <el-table-column prop="licenseno" label="车牌号" width="100" align="center"></el-table-column>
  219. <el-table-column prop="insuredname" label="投保人姓名" align="center" width="100"></el-table-column>
  220. <el-table-column prop="product" label="投保险种" align="center" width="100"></el-table-column>
  221. <el-table-column prop="orderstatus" label="状态" align="center" width="150">
  222. <template slot-scope="scope">
  223. <!-- <el-tag :type="capType(scope.row.orderstatus)" size="small">{{
  224. scope.row.orderstatus | cap
  225. }}</el-tag>-->
  226. <el-tag style="
  227. color: #33a08d;
  228. border-color: #33a08d;
  229. background: rgba(51, 160, 141, 0.1);
  230. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  231. | cap }}</el-tag>
  232. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  233. scope.row.orderstatus | cap }}</el-tag>
  234. <el-tag v-else style="
  235. color: #2d4d89;
  236. border-color: #2d4d89;
  237. background: rgba(45, 77, 137, 0.1);
  238. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  239. </template>
  240. </el-table-column>
  241. <el-table-column prop="createtime" label="录单日期" align="center" width="200"></el-table-column>
  242. <el-table-column prop="insureTime" label="承保确认时间" align="center" width="200"></el-table-column>
  243. <el-table-column label="操作" align="center" fixed="right" min-width="200">
  244. <template slot-scope="scope">
  245. <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
  246. @click="CloseEdit(scope.$index, scope.row)">重新报价</el-button>
  247. <el-button size="mini" style="color: #2d4d89" type="text"
  248. @click="onoffQuotationHistory(scope.row)">报价历史</el-button>
  249. <!-- <el-button size="mini" type="text" v-if="['0', '5'].includes(scope.row.orderstatus)"
  250. @click="CloseQoute(scope.$index, scope.row)" style="color:#f56c6c">关闭报价</el-button>-->
  251. <!-- <el-button size="mini" type="text" v-if="scope.row.orderstatus == '0'"
  252. @click="underwriting(scope.$index, scope.row)" style="color:#e6a23c">去核保</el-button>-->
  253. </template>
  254. </el-table-column>
  255. </el-table>
  256. <!-- 分页功能 -->
  257. <div class="block">
  258. <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
  259. :current-page="pageNum" :page-size="pageSize" :page-sizes="[20, 30, 50, 100]"
  260. layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
  261. </div>
  262. <!--第一种 二维码 -->
  263. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  264. <div class="ORcodebody" v-watermark="qrCodeId">
  265. <div slot="title" class="dialog-title">
  266. <span>扫码付款</span>
  267. </div>
  268. <div class="ORcode">
  269. <div style="padding: 13px; position: relative">
  270. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  271. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  272. <img v-else :src="paycodeimg" alt style="width: 100%" />
  273. </div>
  274. <div v-else>
  275. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 100%" />
  276. <div v-else id="qrcode" ref="qrcode"></div>
  277. </div>
  278. </div>
  279. </div>
  280. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  281. <div style="
  282. font-size: 32px;
  283. text-align: center;
  284. color: #d42426;
  285. margin-top: 20px;
  286. ">
  287. <span style="font-size: 24px; font-weight: bold">¥</span>
  288. {{ sumpremium }}
  289. </div>
  290. <div class="ORtitle">
  291. <div>
  292. <span>保险公司:</span>
  293. <span>{{ inscompany }}</span>
  294. </div>
  295. <div>
  296. <span>车牌号:</span>
  297. <span>{{ licenseNo }}</span>
  298. </div>
  299. <div>
  300. <span>投保人:</span>
  301. <span>{{ applyName }}</span>
  302. </div>
  303. <div v-show="jqpremium">
  304. <span>交强:</span>
  305. <span>{{ jqpremium }}</span>
  306. </div>
  307. <div v-show="sypremium">
  308. <span>商业:</span>
  309. <span>{{ sypremium }}</span>
  310. </div>
  311. <div v-show="taxamount">
  312. <span>车船税:</span>
  313. <span>{{ taxamount }}</span>
  314. </div>
  315. <div v-show="jqstartdate">
  316. <span>交强险起保日期:</span>
  317. <span>{{ jqstartdate }}</span>
  318. </div>
  319. <div v-show="systartdate">
  320. <span>商业险起保日期:</span>
  321. <span>{{ systartdate }}</span>
  322. </div>
  323. <div v-if="jypremium">
  324. <span>非车险:</span>
  325. <span>{{ jypremium }}</span>
  326. </div>
  327. </div>
  328. </div>
  329. <span slot="footer" class="dialog-footer display">
  330. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  331. @click="codedialogVisible = false">关闭</el-button>
  332. </span>
  333. </el-dialog>
  334. <!--第二种 二维码 -->
  335. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  336. <div class="flex j-s">
  337. <div class="scan-code">
  338. <div style="font-weight: bold">
  339. 总金额:
  340. <span style="color: #2d4d89">{{ sumpremium }}</span>
  341. </div>
  342. <div>交强险:{{ jqpremium }}</div>
  343. <div>车船税:{{ taxamount }}</div>
  344. <div>商业险:{{ sypremium }}</div>
  345. <div>非车险:{{ jypremium }}</div>
  346. </div>
  347. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  348. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  349. <img v-else :src="paycodeimg" alt style="width: 100%" />
  350. </div>
  351. <div v-else>
  352. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 200px; height: 200px" />
  353. <div v-else id="qrcode" ref="qrcode"></div>
  354. </div>
  355. <div class="scan-code">
  356. <div>保险公司:{{ inscompany }}</div>
  357. <div>车牌号:{{ licenseNo }}</div>
  358. <div>投保人:{{ applyName }}</div>
  359. <div>交强险起保日期:{{ jqstartdate }}</div>
  360. <div>商业险起保日期:{{ systartdate }}</div>
  361. </div>
  362. </div>
  363. <span slot="footer" class="dialog-footer">
  364. <el-button size="small" style="
  365. width: 100px;
  366. background: #eaedf1;
  367. border-color: #eaedf1;
  368. color: #2d4d89;
  369. " @click="codedialogVisiblePro = false">关闭</el-button>
  370. </span>
  371. </el-dialog>
  372. <!-- 车辆报价新页面 -->
  373. <detailsDialog ref="detailsDialog" :orderInfo.sync="orderInfo" :Feepermissions="false"></detailsDialog>
  374. <!-- 订单轨迹 -->
  375. <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
  376. <div slot="title" class="dialog-title">
  377. <span>订单轨迹</span>
  378. </div>
  379. <div style="height: 300px; overflow-y: auto">
  380. <el-steps direction="vertical" :active="trajectoryTable.length - 1">
  381. <el-step :title="item.orderStatus | cap" :key="item.id" v-for="item in trajectoryTable">
  382. <template slot="description">
  383. <span>保险公司:{{ item.insCompany }}</span>
  384. <span>提交人:{{ item.operator }}</span>
  385. <div>创建时间:{{ item.createTime }}</div>
  386. </template>
  387. </el-step>
  388. </el-steps>
  389. </div>
  390. </el-dialog>
  391. <!-- 报价历史 -->
  392. <el-dialog :visible.sync="quotationhistorydialogVisible" v-dialogDrag width="90%">
  393. <div slot="title" class="dialog-title">
  394. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  395. <span>报价历史</span>
  396. </div>
  397. <div style="padding: 20px">
  398. <el-table size="small" :data="HistoryList" height="400" border style="width: 100%" v-loading="loading"
  399. :header-cell-style="{
  400. background: '#F2F7FC',
  401. }" highlight-current-row>
  402. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  403. <el-table-column prop="username" label="业务员" align="center">
  404. <template slot-scope="scope">
  405. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  406. </template>
  407. </el-table-column>
  408. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  409. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  410. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  411. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  412. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  413. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  414. <el-table-column prop="orderstatus" label="状态" align="center">
  415. <template slot-scope="scope">
  416. <el-tag style="
  417. color: #33a08d;
  418. border-color: #33a08d;
  419. background: rgba(51, 160, 141, 0.1);
  420. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  421. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  422. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  423. scope.row.orderstatus | cap }}</el-tag>
  424. <el-tag v-else style="
  425. color: #2d4d89;
  426. border-color: #2d4d89;
  427. background: rgba(45, 77, 137, 0.1);
  428. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  429. </template>
  430. </el-table-column>
  431. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  432. <template slot-scope="scope">
  433. <el-button type="text" size="small" style="color: #2d4d89"
  434. @click="OrderDetails(quotationhistoryRow, scope.row)">查看详情</el-button>
  435. <el-button size="small" type="text" @click="bjdpreview(scope.row.id, scope.row.userId)">报价单</el-button>
  436. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  437. @click="carcode(scope.row)">付款码</el-button>
  438. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  439. scope.row.orderstatus == '2' ||
  440. scope.row.orderstatus == '4') &&
  441. ['紫金财险'].includes(scope.row.inscompany)
  442. " @click="cancelorder(scope.row)">撤单</el-button>
  443. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2'"
  444. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  445. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' &&
  446. [
  447. '太平财险',
  448. '华农财险',
  449. '恒邦财险',
  450. '众安财险',
  451. '中国人寿',
  452. '安盛天平',
  453. '紫金财险',
  454. '永诚财险',
  455. '大家财险',
  456. '华泰财险',
  457. '国任财险',
  458. '中煤财险',
  459. '渤海财险',
  460. '泰康财险',
  461. ].includes(scope.row.inscompany)
  462. " @click="querystatus(scope.row, 'history')">状态更新</el-button>
  463. </template>
  464. </el-table-column>
  465. </el-table>
  466. </div>
  467. </el-dialog>
  468. <!-- 报价单 -->
  469. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  470. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  471. </div>
  472. </template>
  473. <script>
  474. let _self;
  475. import { pathToBase64, base64ToPath } from "@/common/image-tools-base64.js";
  476. import CommonUtil from "@/utils/comutil.js";
  477. import Cookies from "js-cookie";
  478. import QRCode from "qrcodejs2";
  479. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  480. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  481. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  482. export default {
  483. data() {
  484. return {
  485. orderLoaing: false,
  486. qrcodeWidth: "180",
  487. qrcodeHeight: "180",
  488. qrCodeId: Cookies.get("user"),
  489. ddgjdialogVisible: false,
  490. trajectoryTable: [],
  491. queryOrders: {
  492. carinfo: {},
  493. ownerinfo: {},
  494. applyinfo: {},
  495. insureinfo: {},
  496. extendInfo: {},
  497. },
  498. logoImg: "", //报价单保险公司logo图
  499. value2: "",
  500. optionsStatus: [],
  501. codedialogVisible: false,
  502. codedialogVisiblePro: false,
  503. loading: false,
  504. pageNum: 1, //页数
  505. pageSize: 20, //条数
  506. totalSize: null, //总数
  507. peopleid: "", //工号
  508. pageResult: [], //列表
  509. pageRequest: {
  510. //查询的默认条件
  511. orderNo: "",
  512. frameNo: "",
  513. insuredName: "",
  514. licenseNo: "",
  515. orderStatus: "",
  516. userId: "",
  517. endDate: "",
  518. startDate: "",
  519. pageNum: 1,
  520. pageSize: 20,
  521. deptId: "",
  522. },
  523. orderInfo: {
  524. //选中的订单
  525. ownerinfo: {},
  526. carinfo: {},
  527. applyinfo: {},
  528. insureinfo: {},
  529. kindinfo: [],
  530. riskinfo: [],
  531. ownerinfo: {},
  532. orderCommissionVo: {},
  533. extendInfo: {},
  534. },
  535. carImageList: [], //车辆影像
  536. ownerImageList: [], //车主影像
  537. policyImageList: [], //投保人影像
  538. insuredImageList: [], //被保人影像
  539. carCheckImageList: [], //验车照影像
  540. // 影像控制
  541. pic1Control: false,
  542. pic2Control: false,
  543. pic3Control: false,
  544. pic4Control: false,
  545. pic5Control: false,
  546. showInsureList: false, //是否展示具体险种信息
  547. oldfileList: [], //电子保单数据
  548. inscompany: "", //保险公司名称
  549. licenseNo: "", //车牌号
  550. applyName: "", //车主名字
  551. orderstatus: "", //订单状态
  552. sumpremium: "", //保费合计
  553. jqpremium: "", //交强
  554. sypremium: "", //商业
  555. taxamount: "", //车船税
  556. jypremium: "", //驾意险
  557. jqstartdate: "", //交强时间
  558. systartdate: "", //商业时间
  559. mobile: "", //投保人手机号
  560. qrcode: null,
  561. paycodeimg: "",
  562. userid: "",
  563. downloadstatus: 0,
  564. expands: [],
  565. productsTypeoptions: [],
  566. InsInsuranceKindoptions: [],
  567. width: document.documentElement.clientWidth,
  568. insAreaCompanyList: [], //子订单list
  569. companyList: [], //保险公司
  570. querystatusLoaing: false,
  571. quotationhistorydialogVisible: false, //报价历史显示状态
  572. HistoryList: [], //报价历史数据
  573. natureOfVehicleUseoptions: [],
  574. businessVehicleUseoptions: [],
  575. energyTypeoptions: [],
  576. vehicleTypeoptions: [],
  577. trafficManagementVehicleTypeoptions: [],
  578. outOfBusinessVehicleUseoptions: [],
  579. userIdPor: Cookies.get("user"),
  580. statusPor: "",
  581. deptIdPor: "",
  582. apiType: "",
  583. };
  584. },
  585. components: { quotationDialog, detailsDialog, quotationDialogPro },
  586. created() {
  587. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  588. this.getDicType("vehicleType"); //车辆种类
  589. this.getDicType("trafficManagementVehicleType"); //车辆类型
  590. this.getDicType("energyType"); //能源种类
  591. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  592. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  593. this.getDicType("productsType"); //(车辆用途)非营业
  594. this.$api.letter.gainTopList().then((res) => {
  595. this.companyList = res.data;
  596. });
  597. this.$api.insCompany.dicType("insOrderStatus").then((res) => {
  598. this.optionsStatus = res.data.ddList;
  599. });
  600. this.peopleid = Cookies.get("user");
  601. this.$api.dept.findDeptTree().then((res) => {
  602. this.institutionOptions = res.data;
  603. });
  604. // this.findPage();
  605. if (this.isLetterOrder) {
  606. this.pageRequest.deptId = JSON.parse(
  607. localStorage.getItem("user_data")
  608. ).deptId;
  609. if (this.peopleid != "admin") {
  610. this.pageRequest.userId = this.peopleid;
  611. this.findPage();
  612. } else {
  613. this.pageRequest.userId = "admin";
  614. }
  615. }
  616. },
  617. props: {
  618. isLetterOrder: {
  619. type: Boolean,
  620. default: true,
  621. },
  622. },
  623. mounted() {
  624. window.addEventListener("resize", this.getDimensions);
  625. },
  626. beforeCreate() {
  627. _self = this;
  628. },
  629. // props:{
  630. // isdisabled:{
  631. // type:Boolean,
  632. // default:true
  633. // },
  634. // },
  635. filters: {
  636. cap(ele) {
  637. return _self.optionsStatus.find((item) => {
  638. return item.dictValue === ele;
  639. }).dictTag;
  640. },
  641. },
  642. unmounted() {
  643. window.removeEventListener("resize", this.getDimensions);
  644. },
  645. computed: {
  646. allinsOption() {
  647. let cloneData = JSON.parse(JSON.stringify(this.allIns)); // 对源数据深度克隆
  648. return cloneData.filter((father) => {
  649. // 循环所有项,并添加children属性
  650. let branchArr = cloneData.filter(
  651. (child) => father.id == child.parentId
  652. ); // 返回每一项的子级数组
  653. branchArr.length > 0 ? (father.children = branchArr) : ""; //给父级添加一个children属性,并赋值
  654. return father.parentId == 0; //返回第一层
  655. });
  656. },
  657. registerDateFormat() {
  658. let date = new Date(this.orderInfo.carinfo.registerDate);
  659. let year = date.getFullYear();
  660. let month = date.getMonth() + 1;
  661. let day = date.getDate();
  662. return year + "-" + month + "-" + day;
  663. },
  664. issueDateFormat() {
  665. let date = new Date(this.orderInfo.carinfo.issueDate);
  666. let year = date.getFullYear();
  667. let month = date.getMonth() + 1;
  668. let day = date.getDate();
  669. return year + "-" + month + "-" + day;
  670. },
  671. },
  672. methods: {
  673. //报价历史点击事件
  674. onoffQuotationHistory(row) {
  675. this.quotationhistoryRow = row;
  676. this.RadioHistoryChange();
  677. this.quotationhistorydialogVisible = true;
  678. },
  679. //报价轨迹查询
  680. RadioHistoryChange() {
  681. let params = {
  682. orderNo: this.quotationhistoryRow.orderno,
  683. orderStatus: "",
  684. };
  685. this.$api.letter.queryQuoteHistory(params).then((res) => {
  686. res.data.forEach((item) => {
  687. if (item.accidentInfo) {
  688. item.accidentInfo.constructor === Object
  689. ? [item.accidentInfo]
  690. : item.accidentInfo;
  691. }
  692. });
  693. this.HistoryList = res.data;
  694. });
  695. },
  696. getDicType(type) {
  697. this.$api.insCompany.dicType(type).then((res) => {
  698. if (res.code == 200) {
  699. this[type + "options"] = res.data.ddList;
  700. }
  701. });
  702. },
  703. capType(val) {
  704. if (val == "0") {
  705. return "success";
  706. }
  707. if (val == "1") {
  708. return "warning";
  709. }
  710. if (val == "2" || val == "3" || val == "4") {
  711. return "danger";
  712. }
  713. },
  714. // 撤销二维码
  715. revokeCode(id) {
  716. this.$api.letter.getRevokeQrCode(id).then((res) => {
  717. if (res.code == 200) {
  718. this.$message({
  719. message: res.msg,
  720. type: "success",
  721. });
  722. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  723. this.findPage();
  724. }
  725. });
  726. },
  727. bjdpreview(companyId, userId) {
  728. let params = {
  729. companyId: companyId,
  730. };
  731. this.$api.letter.getByCompanyId(params).then((res) => {
  732. if (res.code == "200") {
  733. var data = res.data;
  734. if (data.kindinfo != null) {
  735. data.kindinfo.map((ele, index) => {
  736. switch (ele.kindCode) {
  737. case "A":
  738. if (ele.amount == 1) {
  739. ele.amount = "投保";
  740. } else {
  741. ele.amount = ele.amount;
  742. }
  743. break;
  744. case "D4":
  745. case "SY_FJ_YBW2":
  746. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  747. break;
  748. case "MJ1":
  749. case "MJ2":
  750. case "MJ3":
  751. case "MJ4":
  752. ele.deductibleRate = ele.deductibleRate + "%";
  753. break;
  754. default:
  755. ele.amount = this.toChinesNum(ele.amount);
  756. }
  757. return ele;
  758. });
  759. }
  760. data.logoImg = this.iconfftter(res.data.inscompany);
  761. this.queryOrders = data;
  762. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  763. if (res.code == 200) {
  764. if (res.data[0] == "GD") {
  765. this.$refs.quotationDialogPro.setBackupVisible(true);
  766. } else {
  767. this.$refs.quotationDialog.setBackupVisible(true);
  768. }
  769. }
  770. });
  771. }
  772. });
  773. },
  774. toChinesNum(num) {
  775. if (num.toString().length == 4) {
  776. let overQian = Math.floor(num / 1000);
  777. let result = overQian + "千";
  778. return result;
  779. } else {
  780. let overWan = Math.floor(num / 10000);
  781. let result = overWan + "万";
  782. return result;
  783. }
  784. },
  785. iconfftter(icon) {
  786. return CommonUtil.getDataName({
  787. dataList: this.global.insCompanyList,
  788. value: "name",
  789. label: "icon",
  790. data: icon,
  791. });
  792. },
  793. getRowClass(scope, rowIndex) {
  794. if (scope.row.insAreaCompanyList.length == 0) {
  795. //判断当前行是否有子数据或者根据实际情况设置
  796. return "row-expand-cover";
  797. }
  798. },
  799. getDimensions() {
  800. this.width = document.documentElement.clientWidth - 350 + "px";
  801. },
  802. //订单修改
  803. CloseEdit(index, row) {
  804. this.$api.letter.getByOrderNo({ orderNo: row.orderno }).then((res) => {
  805. if (res.code == 200) {
  806. if (this.isLetterOrder) {
  807. this.$router.push({
  808. path: "/letter/letter",
  809. query: { data: res.data },
  810. });
  811. } else {
  812. res.data.activeName = "999";
  813. this.$emit("orderEdit", res.data);
  814. }
  815. } else {
  816. this.$message.error(res.msg);
  817. }
  818. });
  819. },
  820. //二维码生成插件
  821. creatQrCode(text) {
  822. // 查找并删除旧的二维码DOM元素
  823. let element = document.getElementById("qrcode");
  824. while (element.firstChild) {
  825. element.removeChild(element.firstChild);
  826. }
  827. // 创建新的QRCode实例
  828. this.qrcode = new QRCode("qrcode", {
  829. text: text,
  830. width: this.qrcodeWidth,
  831. height: this.qrcodeHeight,
  832. colorDark: "#000000",
  833. colorLight: "#ffffff",
  834. correctLevel: QRCode.CorrectLevel.H,
  835. });
  836. },
  837. //更新订单状态
  838. refreshStatus(item) {
  839. let inscompany = {
  840. 国任财险: "updateOrderInfoGuoren",
  841. 中煤财险: "orderStatuszhongmei",
  842. 太平财险: "auditStatusQuery",
  843. 泰康财险: "auditStatusQuery",
  844. 华农财险: "auditStatusQuery",
  845. 恒邦财险: "auditStatusQuery",
  846. 众安财险: "auditStatusQuery",
  847. 中国人寿: "auditStatusQuery",
  848. 安盛天平: "auditStatusQuery",
  849. 紫金财险: "auditStatusQueryZijin",
  850. 渤海财险: "orderStatusbohai",
  851. };
  852. Object.keys(inscompany).forEach((val) => {
  853. if (val == item.inscompany) {
  854. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  855. (res) => {
  856. if (res.code == 200) {
  857. this.$message({
  858. message: res.msg ? res.msg : "已刷新状态",
  859. type: "success",
  860. });
  861. this.findPage();
  862. } else {
  863. this.$message({
  864. showClose: true,
  865. dangerouslyUseHTMLString: true,
  866. message: res.msg.replace(/\n/g, "<br><br>"),
  867. type: "error",
  868. duration: 7000,
  869. });
  870. // this.$message({ message: res.msg, type: "error" });
  871. }
  872. }
  873. );
  874. }
  875. });
  876. if (item.inscompany == "永诚财险") {
  877. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  878. if (res.code == 200) {
  879. this.$message({
  880. message: res.msg ? res.msg : "已刷新状态",
  881. type: "success",
  882. });
  883. this.findPage();
  884. } else {
  885. this.$message({
  886. showClose: true,
  887. dangerouslyUseHTMLString: true,
  888. message: res.msg.replace(/\n/g, "<br><br>"),
  889. type: "error",
  890. duration: 7000,
  891. });
  892. }
  893. });
  894. }
  895. if (item.inscompany == "华泰财险") {
  896. let HtApiType =
  897. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  898. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  899. if (res.code == 200) {
  900. this.$message({
  901. message: res.msg ? res.msg : "已刷新状态",
  902. type: "success",
  903. });
  904. this.findPage();
  905. } else {
  906. this.$message({
  907. showClose: true,
  908. dangerouslyUseHTMLString: true,
  909. message: res.msg.replace(/\n/g, "<br><br>"),
  910. type: "error",
  911. duration: 7000,
  912. });
  913. }
  914. });
  915. }
  916. if (item.inscompany == "大家财险") {
  917. let HtApiType =
  918. item.apiType == 2 ? "auditStatusQuery" : "updateOrderInfoDajia";
  919. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  920. if (res.code == 200) {
  921. this.$message({
  922. message: res.msg ? res.msg : "已刷新状态",
  923. type: "success",
  924. });
  925. this.findPage();
  926. } else {
  927. this.$message({
  928. showClose: true,
  929. dangerouslyUseHTMLString: true,
  930. message: res.msg.replace(/\n/g, "<br><br>"),
  931. type: "error",
  932. duration: 7000,
  933. });
  934. }
  935. });
  936. }
  937. },
  938. //华泰刷新核保状态
  939. updateStatusHuatai(item) {
  940. let HtApiType =
  941. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  942. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  943. if (res.code == 200) {
  944. this.$message({
  945. message: res.msg ? res.msg : "已刷新状态",
  946. type: "success",
  947. });
  948. this.findPage();
  949. } else {
  950. this.$message({
  951. showClose: true,
  952. dangerouslyUseHTMLString: true,
  953. message: res.msg.replace(/\n/g, "<br><br>"),
  954. type: "error",
  955. duration: 7000,
  956. });
  957. }
  958. });
  959. },
  960. //查询缴费状态
  961. querystatus(item, index) {
  962. this.querystatusLoaing = true;
  963. let inscompany = {
  964. 国任财险: "updateOrderInfoGuoren",
  965. 大家财险: "updateOrderInfoDajia",
  966. 紫金财险: "getOrderDetail",
  967. 中煤财险: "paymentEnquiry",
  968. 渤海财险: "getOrderDetailboHai",
  969. };
  970. Object.keys(inscompany).forEach((val) => {
  971. if (val == item.inscompany) {
  972. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  973. (res) => {
  974. if (res.code == 200) {
  975. this.$message({
  976. message: res.msg ? res.msg : "已刷新状态",
  977. type: "success",
  978. });
  979. this.quotationhistorydialogVisible
  980. ? this.RadioHistoryChange()
  981. : "";
  982. this.findPage();
  983. this.querystatusLoaing = false;
  984. } else {
  985. this.querystatusLoaing = false;
  986. this.$message({ message: res.msg, type: "error" });
  987. }
  988. }
  989. );
  990. }
  991. });
  992. if (item.inscompany == "永诚财险") {
  993. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  994. if (res.code == 200) {
  995. this.$message({
  996. message: res.msg ? res.msg : "已刷新状态",
  997. type: "success",
  998. });
  999. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1000. this.findPage();
  1001. this.querystatusLoaing = false;
  1002. } else {
  1003. this.querystatusLoaing = false;
  1004. this.$message({ message: res.msg, type: "error" });
  1005. }
  1006. });
  1007. }
  1008. if (item.inscompany == "华泰财险") {
  1009. let HtApiType =
  1010. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoHuatai";
  1011. this.$api.letter[HtApiType]({
  1012. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1013. }).then((res) => {
  1014. if (res.code == 200) {
  1015. this.$message({
  1016. message: res.msg ? res.msg : "已刷新状态",
  1017. type: "success",
  1018. });
  1019. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1020. this.findPage();
  1021. this.querystatusLoaing = false;
  1022. } else {
  1023. this.querystatusLoaing = false;
  1024. this.$message({ message: res.msg, type: "error" });
  1025. }
  1026. });
  1027. }
  1028. if (item.inscompany == "大家财险") {
  1029. let DJApiType =
  1030. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoDajia";
  1031. this.$api.letter[DJApiType]({
  1032. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1033. }).then((res) => {
  1034. if (res.code == 200) {
  1035. this.$message({
  1036. message: res.msg ? res.msg : "已刷新状态",
  1037. type: "success",
  1038. });
  1039. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1040. this.findPage();
  1041. this.querystatusLoaing = false;
  1042. } else {
  1043. this.querystatusLoaing = false;
  1044. this.$message({ message: res.msg, type: "error" });
  1045. }
  1046. });
  1047. }
  1048. if (
  1049. item.inscompany == "恒邦财险" ||
  1050. item.inscompany == "众安财险" ||
  1051. item.inscompany == "中国人寿" ||
  1052. item.inscompany == "安盛天平" ||
  1053. item.inscompany == "太平财险" ||
  1054. item.inscompany == "泰康财险" ||
  1055. item.inscompany == "华农财险"
  1056. ) {
  1057. this.$api.letter
  1058. .pychonverifyPayment({ subOrderNo: item.id })
  1059. .then((res) => {
  1060. if (res.code == "200") {
  1061. this.$message({
  1062. message: "订单支付成功,正在更改状态",
  1063. type: "success",
  1064. });
  1065. this.quotationhistorydialogVisible
  1066. ? this.RadioHistoryChange()
  1067. : "";
  1068. this.findPage();
  1069. this.querystatusLoaing = false;
  1070. } else {
  1071. this.querystatusLoaing = false;
  1072. this.$message({ message: res.msg, type: "error" });
  1073. }
  1074. });
  1075. }
  1076. },
  1077. cancelorder(item) {
  1078. this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
  1079. if (res.code == 200) {
  1080. this.$message({
  1081. message: res.msg,
  1082. type: "success",
  1083. });
  1084. this.findPage();
  1085. }
  1086. });
  1087. },
  1088. //二维码
  1089. carcode(item) {
  1090. this.apiType = item.apiType;
  1091. this.$api.letter.getQrCode(item.id).then((res) => {
  1092. if (res.code == "200") {
  1093. this.inscompany = res.data.inscompany; //保险公司
  1094. this.sumpremium = res.data.sumpremium; //总价
  1095. this.licenseNo = res.data.cPlateNo; //车牌号
  1096. this.applyName = res.data.cInsuredNme; //车主
  1097. this.jqpremium = res.data.jqpremium; //交强
  1098. this.sypremium = res.data.sypremium; //商业
  1099. this.taxamount = res.data.taxamount; //车船税
  1100. this.jypremium = res.data.jypremium; //驾意险
  1101. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  1102. this.systartdate = res.data.syStartDate; //商业起保日期
  1103. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1104. let qrCodeUrl = res.data.qrCodeUrl;
  1105. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  1106. if (res.code == 200) {
  1107. if (res.data[0] == "GD") {
  1108. this.codedialogVisiblePro = true;
  1109. this.qrcodeWidth = "154";
  1110. this.qrcodeHeight = "154";
  1111. } else {
  1112. this.codedialogVisible = true;
  1113. }
  1114. this.$nextTick(function () {
  1115. if (item.inscompany == "太平财险") {
  1116. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1117. let animgBase64 = `data:image/png;base64,${anresult}`;
  1118. base64ToPath(animgBase64).then((path) => {
  1119. this.paycodeimg = path;
  1120. });
  1121. } else if (item.inscompany == "华泰财险") {
  1122. switch (item.apiType) {
  1123. case 1:
  1124. this.creatQrCode(qrCodeUrl);
  1125. break;
  1126. case 2:
  1127. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1128. let animgBase64 = `data:image/png;base64,${anresult}`;
  1129. base64ToPath(animgBase64).then((path) => {
  1130. console.log(path)
  1131. this.paycodeimg = path;
  1132. });
  1133. break;
  1134. }
  1135. } else if (item.inscompany == "大家财险") {
  1136. switch (item.apiType) {
  1137. case 1:
  1138. this.creatQrCode(qrCodeUrl);
  1139. break;
  1140. case 2:
  1141. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1142. let animgBase64 = `data:image/png;base64,${anresult}`;
  1143. base64ToPath(animgBase64).then((path) => {
  1144. this.paycodeimg = path;
  1145. });
  1146. break;
  1147. }
  1148. } else {
  1149. this.creatQrCode(qrCodeUrl);
  1150. }
  1151. });
  1152. }
  1153. });
  1154. } else {
  1155. this.$message({ message: res.msg, type: "warning" });
  1156. }
  1157. });
  1158. // this.$api.letter.getByCompanyId(params).then(res => {
  1159. // if (res.code == '200') {
  1160. // this.inscompany = res.data.inscompany;//保险公司
  1161. // this.sumpremium = res.data.sumpremium;//总价
  1162. // this.licenseNo = res.data.carinfo.licenseNo;//车牌号
  1163. // this.applyName = res.data.insuredname;//车主
  1164. // this.jqpremium = res.data.jqpremium;//交强
  1165. // this.sypremium = res.data.sypremium;//商业
  1166. // this.taxamount = res.data.taxamount;//车船税
  1167. // this.jypremium = res.data.jypremium;//驾意险
  1168. // this.jqstartdate = res.data.jqstartdate;//交强起保日期
  1169. // this.systartdate = res.data.systartdate;//商业起保日期
  1170. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1171. // switch (item.inscompany) {
  1172. // case "永安财险":
  1173. // let url = this.global.h5BaseUrl + '/#/pages/carInsure1/yonganCode?companyId=' + item.id + '&mobile=' + this.mobile;
  1174. // this.$nextTick(() => {
  1175. // this.creatQrCode(url);
  1176. // });
  1177. // break;
  1178. // case "人保财险":
  1179. // case "中煤财险":
  1180. // case "华泰财险":
  1181. // case "永诚财险":
  1182. // case "紫金财险":
  1183. // this.$nextTick(() => {
  1184. // this.creatQrCode(res.data.paymentLink);
  1185. // });
  1186. // break;
  1187. // case "众安财险":
  1188. // this.paycodeimg = res.data.paymentLink;
  1189. // break;
  1190. // case "中国人寿":
  1191. // this.$nextTick(() => {
  1192. // this.creatQrCode(res.data.paymentLink);
  1193. // });
  1194. // break;
  1195. // case "恒邦财险":
  1196. // this.paycodeimg = res.data.paymentLink;
  1197. // break;
  1198. // case "国任财险":
  1199. // this.paycodeimg = res.data.paymentLink;
  1200. // break;
  1201. // case "安盛天平":
  1202. // let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
  1203. // let animgBase64 = `data:image/png;base64,${anresult}`;
  1204. // base64ToPath(animgBase64)
  1205. // .then(path => {
  1206. // this.paycodeimg = path;
  1207. // })
  1208. // break;
  1209. // default:
  1210. // this.$message({ message: "识别不到保险公司,请检查", type: "warning" })
  1211. // }
  1212. // this.codedialogVisible = true;
  1213. // } else {
  1214. // this.$message({ message: res.msg, type: "warning" })
  1215. // }
  1216. // })
  1217. },
  1218. orderTrajectory(row, item) {
  1219. this.$api.letter.queryBySuborder(item.id).then((res) => {
  1220. if (res.code == 200 && res.data.length > 0) {
  1221. this.ddgjdialogVisible = true;
  1222. this.trajectoryTable = res.data;
  1223. } else {
  1224. this.$message({
  1225. message: res.msg || "暂无数据!",
  1226. type: "warning",
  1227. });
  1228. }
  1229. });
  1230. },
  1231. capTypedictTag(val, option) {
  1232. if (option.find((item) => item.dictValue == val)) {
  1233. return option.find((item) => item.dictValue == val).dictTag;
  1234. } else {
  1235. return "-";
  1236. }
  1237. },
  1238. //应用详情
  1239. OrderDetails(dy, item) {
  1240. this.carImageList = [];
  1241. this.ownerImageList = []; //车主影像
  1242. this.policyImageList = []; //投保人影像
  1243. this.insuredImageList = []; //被保人影像
  1244. this.carCheckImageList = []; //验车照影像
  1245. // 影像控制
  1246. this.pic1Control = false;
  1247. this.pic2Control = false;
  1248. this.pic3Control = false;
  1249. this.pic4Control = false;
  1250. this.pic5Control = false;
  1251. for (let i = 0; i < this.global.insureList.length; i++) {
  1252. this.global.insureList[i].coveragePremium = "";
  1253. this.global.insureList[i].amount = 0;
  1254. }
  1255. let params = {
  1256. companyId: item.id,
  1257. };
  1258. this.$api.letter.getByCompanyId(params).then((res) => {
  1259. if (res.code == 200) {
  1260. this.licenseNo = res.data.licenseno; //车牌号
  1261. this.inscompany = res.data.inscompany; //保险公司
  1262. // res.data.carinfo.carnature = this.natureOfVehicleUseCap(
  1263. // res.data.carinfo.carnature
  1264. // );
  1265. if (
  1266. (res.data.carinfo.carnature &&
  1267. res.data.carinfo.carnature == "02") ||
  1268. res.data.carinfo.carnature == "非营业"
  1269. ) {
  1270. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1271. res.data.carinfo.vehicleUse,
  1272. this.outOfBusinessVehicleUseoptions
  1273. );
  1274. } else {
  1275. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1276. res.data.carinfo.vehicleUse,
  1277. this.businessVehicleUseoptions
  1278. );
  1279. }
  1280. res.data.carinfo.carnature = this.capTypedictTag(
  1281. res.data.carinfo.carnature,
  1282. this.natureOfVehicleUseoptions
  1283. );
  1284. res.data.carinfo.cartype = res.data.carinfo.cartype
  1285. ? this.capTypedictTag(
  1286. res.data.carinfo.cartype,
  1287. this.trafficManagementVehicleTypeoptions
  1288. )
  1289. : "";
  1290. res.data.carinfo.cimodelclass = res.data.carinfo.cimodelclass
  1291. ? this.capTypedictTag(
  1292. res.data.carinfo.cimodelclass,
  1293. this.vehicleTypeoptions
  1294. )
  1295. : "";
  1296. res.data.carinfo.energyType = res.data.carinfo.energyType
  1297. ? this.capTypedictTag(
  1298. res.data.carinfo.energyType,
  1299. this.energyTypeoptions
  1300. )
  1301. : "";
  1302. if (res.data.accidentInfo) {
  1303. res.data.accidentInfo.constructor === Object
  1304. ? [res.data.accidentInfo]
  1305. : res.data.accidentInfo;
  1306. }
  1307. Object.assign(this.orderInfo, res.data);
  1308. if (this.orderInfo.riskinfo && this.orderInfo.riskinfo.length > 0) {
  1309. for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
  1310. if (this.orderInfo.riskinfo[i].riskCode == "0510") {
  1311. for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
  1312. for (let m = 0; m < this.global.insureList.length; m++) {
  1313. if (
  1314. this.orderInfo.kindinfo[j].kindCode ==
  1315. this.global.insureList[m].kindCode
  1316. ) {
  1317. this.global.insureList[m].coveragePremium =
  1318. this.orderInfo.kindinfo[j].coveragePremium;
  1319. if (this.orderInfo.kindinfo[j].kindCode == "B") {
  1320. this.global.insureList[9].amtList[0].value =
  1321. this.orderInfo.kindinfo[j].amount;
  1322. }
  1323. if (this.orderInfo.kindinfo[j].kindCode == "A") {
  1324. this.global.insureList[m].amount = "1";
  1325. } else if (this.global.insureList[m].kindCode == "D4") {
  1326. this.global.insureList[m].amount =
  1327. this.orderInfo.kindinfo[j].unitAmount;
  1328. } else if (
  1329. this.global.insureList[m].isMainRisk ||
  1330. this.global.insureList[m].kindCode == "BD" ||
  1331. this.global.insureList[m].kindCode == "L"
  1332. ) {
  1333. this.global.insureList[m].amount =
  1334. this.orderInfo.kindinfo[j].amount;
  1335. } else {
  1336. this.global.insureList[m].amount =
  1337. this.orderInfo.kindinfo[j].deductibleRate;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. }
  1343. }
  1344. }
  1345. // 获取影像
  1346. this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
  1347. Object.keys(resImage.data).forEach((keys) => {
  1348. if (resImage.data[keys]) {
  1349. resImage.data[keys].url = resImage.data[keys].url
  1350. ? process.env.BASE_URL + resImage.data[keys].url
  1351. : null;
  1352. switch (keys) {
  1353. case "C01":
  1354. case "D01":
  1355. resImage.data[keys].url
  1356. ? this.carImageList.push(resImage.data[keys].url)
  1357. : "";
  1358. break;
  1359. case "C02":
  1360. case "D02":
  1361. resImage.data[keys].url
  1362. ? this.ownerImageList.push(resImage.data[keys].url)
  1363. : "";
  1364. break;
  1365. case "C03":
  1366. case "D03":
  1367. resImage.data[keys].url
  1368. ? this.policyImageList.push(resImage.data[keys].url)
  1369. : "";
  1370. break;
  1371. case "C04":
  1372. case "D04":
  1373. resImage.data[keys].url
  1374. ? this.insuredImageList.push(resImage.data[keys].url)
  1375. : "";
  1376. break;
  1377. case "XC00":
  1378. case "GC00":
  1379. case "GX00":
  1380. resImage.data[keys].url
  1381. ? this.carCheckImageList.push(resImage.data[keys].url)
  1382. : "";
  1383. break;
  1384. default:
  1385. break;
  1386. }
  1387. }
  1388. });
  1389. let obj = {
  1390. carImageList: this.carImageList,
  1391. ownerImageList: this.ownerImageList,
  1392. policyImageList: this.policyImageList,
  1393. insuredImageList: this.insuredImageList,
  1394. carCheckImageList: this.carCheckImageList,
  1395. };
  1396. this.$refs.detailsDialog.imageFun(obj);
  1397. });
  1398. this.pic1Control = false;
  1399. this.pic2Control = false;
  1400. this.pic3Control = false;
  1401. this.pic4Control = false;
  1402. this.pic5Control = false;
  1403. this.oldfileList = [];
  1404. let businessList = [];
  1405. let accidentList = [];
  1406. if (res.data.orderstatus == "3") {
  1407. if (res.data.isExternal == 1) {
  1408. this.$api.letter
  1409. .getPolicyPrintexternalOrder(res.data.id)
  1410. .then((res1) => {
  1411. if (res1.code == 200) {
  1412. if (res1.data.jqPolicy) {
  1413. this.oldfileList.push({
  1414. fileTitle: "交强电子保单",
  1415. filename: this.orderInfo.jqpolicyno,
  1416. fileurl: res1.data.jqPolicy,
  1417. });
  1418. }
  1419. if (res1.data.jqSign) {
  1420. this.oldfileList.push({
  1421. fileTitle: "交强电子标志",
  1422. filename: this.orderInfo.jqpolicyno,
  1423. fileurl: res1.data.jqSign,
  1424. });
  1425. }
  1426. if (res1.data.jqSign) {
  1427. accidentList.push({
  1428. fileTitle: "商业电子保单",
  1429. filename: this.orderInfo.sypolicyno,
  1430. fileurl: res1.data.jqSign,
  1431. });
  1432. }
  1433. if (res1.data.noPolicy) {
  1434. accidentList.push({
  1435. fileTitle: "驾意险保单",
  1436. filename: "驾意险保单",
  1437. fileurl: res1.data.noPolicy,
  1438. });
  1439. }
  1440. } else {
  1441. this.$message.error(res1.msg);
  1442. }
  1443. });
  1444. } else {
  1445. switch (res.data.inscompany) {
  1446. case "永安财险":
  1447. if (this.orderInfo.jqpolicyno) {
  1448. this.$api.letter
  1449. .getPolicyPrint({
  1450. companyId: item.id,
  1451. policytype: "jq",
  1452. })
  1453. .then((res) => {
  1454. //交强保单
  1455. if (res.data) {
  1456. let result = res.data.replace(/[\r\n]/g, "");
  1457. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1458. base64ToPath(pdfBase64).then((path) => {
  1459. if (path) {
  1460. this.oldfileList.push({
  1461. fileTitle: "交强电子保单",
  1462. filename: this.orderInfo.jqpolicyno,
  1463. fileurl: path,
  1464. });
  1465. }
  1466. });
  1467. }
  1468. });
  1469. this.$api.letter
  1470. .getPolicyPrint2({
  1471. companyId: item.id,
  1472. policytype: "jq",
  1473. })
  1474. .then((res) => {
  1475. //交强保单
  1476. if (res.data) {
  1477. let result = res.data.replace(/[\r\n]/g, "");
  1478. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1479. base64ToPath(pdfBase64).then((path) => {
  1480. if (path) {
  1481. this.oldfileList.push({
  1482. fileTitle: "交强电子标志",
  1483. filename: this.orderInfo.jqpolicyno,
  1484. fileurl: path,
  1485. });
  1486. }
  1487. });
  1488. }
  1489. });
  1490. }
  1491. if (this.orderInfo.sypolicyno) {
  1492. this.$api.letter
  1493. .getPolicyPrint({
  1494. companyId: item.id,
  1495. policytype: "sy",
  1496. })
  1497. .then((res) => {
  1498. //商业保单
  1499. if (res.data) {
  1500. let result = res.data.replace(/[\r\n]/g, "");
  1501. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1502. base64ToPath(pdfBase64).then((path) => {
  1503. if (path) {
  1504. businessList.push({
  1505. fileTitle: "商业电子保单",
  1506. filename: this.orderInfo.sypolicyno,
  1507. fileurl: path,
  1508. });
  1509. }
  1510. });
  1511. }
  1512. });
  1513. }
  1514. break;
  1515. case "华泰财险":
  1516. switch (item.apiType) {
  1517. case 1:
  1518. if (this.orderInfo.jqpolicyno) {
  1519. this.$api.letter
  1520. .HuataigetPolicyPrint({
  1521. companyId: item.id,
  1522. riskCode: "0507",
  1523. type: "2", //2:保单
  1524. })
  1525. .then((res) => {
  1526. if (res.data) {
  1527. if (res.data.jqxPolicyUrl) {
  1528. this.oldfileList.push({
  1529. fileTitle: "交强电子保单",
  1530. filename: this.orderInfo.jqpolicyno,
  1531. fileurl: res.data.jqxPolicyUrl,
  1532. });
  1533. }
  1534. if (res.data.jqxFlagUrl) {
  1535. this.oldfileList.push({
  1536. fileTitle: "交强电子标志",
  1537. filename: this.orderInfo.jqpolicyno,
  1538. fileurl: res.data.jqxFlagUrl,
  1539. });
  1540. }
  1541. } else {
  1542. this.$message.error(res.msg);
  1543. }
  1544. });
  1545. }
  1546. if (this.orderInfo.sypolicyno) {
  1547. this.$api.letter
  1548. .HuataigetPolicyPrint({
  1549. companyId: item.id,
  1550. riskCode: "0510",
  1551. type: "2", //2:保单
  1552. })
  1553. .then((res) => {
  1554. if (res.data && res.data.syxPolicyUrl) {
  1555. businessList.push({
  1556. fileTitle: "商业电子保单",
  1557. filename: this.orderInfo.sypolicyno,
  1558. fileurl: res.data.syxPolicyUrl,
  1559. });
  1560. } else {
  1561. this.$message.error(res.msg);
  1562. }
  1563. });
  1564. }
  1565. break;
  1566. case 2:
  1567. if (
  1568. this.orderInfo.jqpolicyno ||
  1569. this.orderInfo.sypolicyno
  1570. ) {
  1571. this.$api.letter
  1572. .pythongetPolicyPrint({
  1573. subOrderNo: item.id,
  1574. })
  1575. .then((res) => {
  1576. if (res.code == 200 && res.data) {
  1577. if (res.data.jqxPolicyUrl) {
  1578. this.oldfileList.push({
  1579. fileTitle: "交强电子保单",
  1580. filename: this.orderInfo.jqpolicyno,
  1581. fileurl: res.data.jqxPolicyUrl,
  1582. });
  1583. }
  1584. if (res.data.jqxFlagUrl) {
  1585. this.oldfileList.push({
  1586. fileTitle: "交强电子标志",
  1587. filename: this.orderInfo.jqpolicyno,
  1588. fileurl: res.data.jqxFlagUrl,
  1589. });
  1590. }
  1591. if (res.data.syxPolicyUrl) {
  1592. businessList.push({
  1593. fileTitle: "商业电子保单",
  1594. filename: this.orderInfo.sypolicyno,
  1595. fileurl: res.data.syxPolicyUrl,
  1596. });
  1597. }
  1598. if (
  1599. res.data.jyxInfoList &&
  1600. res.data.jyxInfoList.length > 0
  1601. ) {
  1602. res.data.jyxInfoList.forEach((val) => {
  1603. accidentList.push({
  1604. fileTitle: "驾意险保单",
  1605. filename: "驾意险保单",
  1606. fileurl: val.jyx_policy_url,
  1607. });
  1608. });
  1609. }
  1610. } else {
  1611. this.$message.error(res.msg);
  1612. }
  1613. });
  1614. }
  1615. break;
  1616. }
  1617. break;
  1618. case "中煤财险":
  1619. if (this.orderInfo.jqpolicyno) {
  1620. this.$api.letter
  1621. .ZhongmeigetPolicyPrint({
  1622. companyId: item.id,
  1623. riskCode: "0507",
  1624. type: "2", //2:保单
  1625. })
  1626. .then((res) => {
  1627. if (res.data && res.data[0]) {
  1628. this.oldfileList.push({
  1629. fileTitle: "交强电子保单",
  1630. filename: this.orderInfo.jqpolicyno,
  1631. fileurl: res.data[0],
  1632. });
  1633. } else {
  1634. this.$message.error(res.msg);
  1635. }
  1636. });
  1637. this.$api.letter
  1638. .ZhongmeigetPolicyPrint({
  1639. companyId: item.id,
  1640. riskCode: "0507",
  1641. type: "1", // 1:标志
  1642. })
  1643. .then((res) => {
  1644. if (res.data && res.data[0]) {
  1645. this.oldfileList.push({
  1646. fileTitle: "交强电子标志",
  1647. filename: this.orderInfo.jqpolicyno,
  1648. fileurl: res.data[0],
  1649. });
  1650. } else {
  1651. this.$message.error(res.msg);
  1652. }
  1653. });
  1654. }
  1655. if (this.orderInfo.sypolicyno) {
  1656. this.$api.letter
  1657. .ZhongmeigetPolicyPrint({
  1658. companyId: item.id,
  1659. riskCode: "0510",
  1660. type: "2", //2:保单
  1661. })
  1662. .then((res) => {
  1663. if (res.data && res.data[0]) {
  1664. businessList.push({
  1665. fileTitle: "商业电子保单",
  1666. filename: this.orderInfo.sypolicyno,
  1667. fileurl: res.data[0],
  1668. });
  1669. } else {
  1670. this.$message.error(res.msg);
  1671. }
  1672. });
  1673. }
  1674. if (this.orderInfo.crossInsurance.length > 0) {
  1675. this.orderInfo.crossInsurance.map((ele) => {
  1676. this.$api.letter
  1677. .ZhongmeigetPolicyPrint({
  1678. ridePolicyNo: ele.ridePolicyNo,
  1679. companyId: item.id,
  1680. riskCode: "0513",
  1681. type: "2", //2:保单
  1682. })
  1683. .then((res) => {
  1684. if (res.code == 200 && res.data) {
  1685. accidentList.push({
  1686. fileTitle: "驾意险保单",
  1687. filename: this.orderInfo.sypolicyno,
  1688. fileurl: res.data[0],
  1689. });
  1690. } else {
  1691. this.$message.error(res.msg);
  1692. }
  1693. });
  1694. });
  1695. }
  1696. break;
  1697. case "永诚财险":
  1698. if (this.orderInfo.jqpolicyno) {
  1699. this.$api.letter
  1700. .yongchenggetPolicyPrint({
  1701. companyId: item.id,
  1702. riskCode: "0507",
  1703. type: "2", //2:保单
  1704. })
  1705. .then((res) => {
  1706. if (res.code == 200 && res.data) {
  1707. if (res.data.jqUrl) {
  1708. this.oldfileList.push({
  1709. fileTitle: "交强电子保单",
  1710. filename: this.orderInfo.jqpolicyno,
  1711. fileurl: res.data.jqUrl,
  1712. });
  1713. }
  1714. if (res.data.jqFlagUrl) {
  1715. this.oldfileList.push({
  1716. fileTitle: "交强电子标志",
  1717. filename: this.orderInfo.jqpolicyno,
  1718. fileurl: res.data.jqFlagUrl,
  1719. });
  1720. }
  1721. } else {
  1722. this.$message.error(res.msg);
  1723. }
  1724. });
  1725. }
  1726. if (this.orderInfo.sypolicyno) {
  1727. this.$api.letter
  1728. .yongchenggetPolicyPrint({
  1729. companyId: item.id,
  1730. riskCode: "0510",
  1731. type: "2", //2:保单
  1732. })
  1733. .then((res) => {
  1734. if (res.data && res.data.syUrl) {
  1735. businessList.push({
  1736. fileTitle: "商业电子保单",
  1737. filename: this.orderInfo.sypolicyno,
  1738. fileurl: res.data.syUrl,
  1739. });
  1740. } else {
  1741. this.$message.error(res.msg);
  1742. }
  1743. });
  1744. }
  1745. if (this.orderInfo.crossInsurance.length > 0) {
  1746. this.orderInfo.crossInsurance.map((ele) => {
  1747. this.$api.letter
  1748. .yongchenggetPolicyPrint({
  1749. companyId: item.id,
  1750. policyNumber: ele.policyNumber,
  1751. riskCode: "0513",
  1752. type: "2", //2:保单
  1753. })
  1754. .then((res) => {
  1755. if (res.code == 200 && res.data) {
  1756. accidentList.push({
  1757. fileTitle: "驾意险保单",
  1758. filename: ele.policyNumber,
  1759. fileurl: res.data.jyUrl,
  1760. });
  1761. } else {
  1762. this.$message.error(res.msg);
  1763. }
  1764. });
  1765. });
  1766. }
  1767. break;
  1768. case "国任财险":
  1769. if (this.orderInfo.jqpolicyno) {
  1770. this.$api.letter
  1771. .guoRengetPolicyPrint({
  1772. companyId: item.id,
  1773. riskCode: "0507",
  1774. type: "2", //2:保单
  1775. })
  1776. .then((res) => {
  1777. if (res.data) {
  1778. this.oldfileList.push({
  1779. fileTitle: "交强电子保单",
  1780. filename: this.orderInfo.jqpolicyno,
  1781. fileurl: res.data,
  1782. });
  1783. } else {
  1784. this.$message.error(res.msg);
  1785. }
  1786. });
  1787. this.$api.letter
  1788. .guoRengetPolicyPrint({
  1789. companyId: item.id,
  1790. riskCode: "0507",
  1791. type: "1", //1:标志
  1792. })
  1793. .then((res) => {
  1794. if (res.data) {
  1795. this.oldfileList.push({
  1796. fileTitle: "交强电子标志",
  1797. filename: this.orderInfo.jqpolicyno,
  1798. fileurl: res.data,
  1799. });
  1800. } else {
  1801. this.$message.error(res.msg);
  1802. }
  1803. });
  1804. }
  1805. if (this.orderInfo.sypolicyno) {
  1806. this.$api.letter
  1807. .guoRengetPolicyPrint({
  1808. companyId: item.id,
  1809. riskCode: "0510",
  1810. type: "2", //2:保单
  1811. })
  1812. .then((res) => {
  1813. if (res.data) {
  1814. businessList.push({
  1815. fileTitle: "商业电子保单",
  1816. filename: this.orderInfo.sypolicyno,
  1817. fileurl: res.data,
  1818. });
  1819. } else {
  1820. this.$message.error(res.msg);
  1821. }
  1822. });
  1823. }
  1824. if (this.orderInfo.crossInsurance.length > 0) {
  1825. this.orderInfo.crossInsurance.map((ele) => {
  1826. this.$api.letter
  1827. .guoRengetPolicyPrint({
  1828. companyId: item.id,
  1829. policyNumber: ele.policyNumber,
  1830. riskCode: "0513",
  1831. type: "2", //2:保单
  1832. })
  1833. .then((res) => {
  1834. if (res.data) {
  1835. accidentList.push({
  1836. fileTitle: "驾意险保单",
  1837. filename: ele.policyNumber,
  1838. fileurl: res.data,
  1839. });
  1840. } else {
  1841. this.$message.error(res.msg);
  1842. }
  1843. });
  1844. });
  1845. }
  1846. break;
  1847. case "紫金财险":
  1848. if (this.orderInfo.jqpolicyno) {
  1849. this.$api.letter
  1850. .zijingetPolicyPrint({
  1851. companyId: item.id,
  1852. riskCode: "0507",
  1853. type: "2", //2:保单
  1854. })
  1855. .then((res) => {
  1856. if (res.data) {
  1857. this.oldfileList.push({
  1858. fileTitle: "交强电子保单",
  1859. filename: this.orderInfo.jqpolicyno,
  1860. fileurl: res.data,
  1861. });
  1862. } else {
  1863. this.$message.error(res.msg);
  1864. }
  1865. });
  1866. this.$api.letter
  1867. .zijingetPolicyPrint({
  1868. companyId: item.id,
  1869. riskCode: "0507",
  1870. type: "1", //1:标志
  1871. })
  1872. .then((res) => {
  1873. if (res.data) {
  1874. this.oldfileList.push({
  1875. fileTitle: "交强电子标志",
  1876. filename: this.orderInfo.jqpolicyno,
  1877. fileurl: res.data,
  1878. });
  1879. } else {
  1880. this.$message.error(res.msg);
  1881. }
  1882. });
  1883. }
  1884. if (this.orderInfo.sypolicyno) {
  1885. this.$api.letter
  1886. .zijingetPolicyPrint({
  1887. companyId: item.id,
  1888. riskCode: "0510",
  1889. type: "2", //2:保单
  1890. })
  1891. .then((res) => {
  1892. if (res.data) {
  1893. businessList.push({
  1894. fileTitle: "商业电子保单",
  1895. filename: this.orderInfo.sypolicyno,
  1896. fileurl: res.data,
  1897. });
  1898. } else {
  1899. this.$message.error(res.msg);
  1900. }
  1901. });
  1902. }
  1903. if (this.orderInfo.crossInsurance.length > 0) {
  1904. this.orderInfo.crossInsurance.map((ele) => {
  1905. this.$api.letter
  1906. .zijingetPolicyPrint({
  1907. companyId: item.id,
  1908. policyNumber: ele.policyNumber,
  1909. riskCode: "0513",
  1910. type: "2", //2:保单
  1911. })
  1912. .then((res) => {
  1913. if (res.data) {
  1914. accidentList.push({
  1915. fileTitle: "驾意险保单",
  1916. filename: ele.policyNumber,
  1917. fileurl: res.data,
  1918. });
  1919. } else {
  1920. this.$message.error(res.msg);
  1921. }
  1922. });
  1923. });
  1924. }
  1925. break;
  1926. case "渤海财险":
  1927. if (this.orderInfo.jqpolicyno) {
  1928. this.$api.letter
  1929. .getPolicyPrintboHai({
  1930. companyId: item.id,
  1931. })
  1932. .then((res) => {
  1933. if (res.code == 200 && res.data) {
  1934. if (res.data.jqxPolicyUrl) {
  1935. this.oldfileList.push({
  1936. fileTitle: "交强电子保单",
  1937. filename: this.orderInfo.jqpolicyno,
  1938. fileurl: res.data.jqxPolicyUrl,
  1939. });
  1940. }
  1941. if (res.data.jqxFlagUrl) {
  1942. this.oldfileList.push({
  1943. fileTitle: "交强电子标志",
  1944. filename: this.orderInfo.jqpolicyno,
  1945. fileurl: res.data.jqxFlagUrl,
  1946. });
  1947. }
  1948. if (res.data.syxPolicyUrl) {
  1949. businessList.push({
  1950. fileTitle: "商业电子保单",
  1951. filename: this.orderInfo.sypolicyno,
  1952. fileurl: res.data.syxPolicyUrl,
  1953. });
  1954. }
  1955. if (
  1956. res.data.jyxInfoList &&
  1957. res.data.jyxInfoList.length > 0
  1958. ) {
  1959. res.data.jyxInfoList.forEach((val) => {
  1960. accidentList.push({
  1961. fileTitle: "驾意险保单",
  1962. filename: "驾意险保单",
  1963. fileurl: val.jyx_policy_url,
  1964. });
  1965. });
  1966. }
  1967. } else {
  1968. this.$message.error(res.msg);
  1969. }
  1970. });
  1971. }
  1972. break;
  1973. case "恒邦财险":
  1974. case "安盛天平":
  1975. case "中国人寿":
  1976. case "太平财险":
  1977. case "华农财险":
  1978. case "众安财险":
  1979. case "泰康财险":
  1980. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  1981. this.$api.letter
  1982. .pythongetPolicyPrint({
  1983. subOrderNo: item.id,
  1984. })
  1985. .then((res) => {
  1986. if (res.code == 200 && res.data) {
  1987. if (res.data.jqxPolicyUrl) {
  1988. this.oldfileList.push({
  1989. fileTitle: "交强电子保单",
  1990. filename: this.orderInfo.jqpolicyno,
  1991. fileurl: res.data.jqxPolicyUrl,
  1992. });
  1993. }
  1994. if (res.data.jqxFlagUrl) {
  1995. this.oldfileList.push({
  1996. fileTitle: "交强电子标志",
  1997. filename: this.orderInfo.jqpolicyno,
  1998. fileurl: res.data.jqxFlagUrl,
  1999. });
  2000. }
  2001. if (res.data.syxPolicyUrl) {
  2002. businessList.push({
  2003. fileTitle: "商业电子保单",
  2004. filename: this.orderInfo.sypolicyno,
  2005. fileurl: res.data.syxPolicyUrl,
  2006. });
  2007. }
  2008. if (
  2009. res.data.jyxInfoList &&
  2010. res.data.jyxInfoList.length > 0
  2011. ) {
  2012. res.data.jyxInfoList.forEach((val) => {
  2013. accidentList.push({
  2014. fileTitle: "驾意险保单",
  2015. filename: "驾意险保单",
  2016. fileurl: val.jyx_policy_url,
  2017. });
  2018. });
  2019. }
  2020. } else {
  2021. this.$message.error(res.msg);
  2022. }
  2023. });
  2024. }
  2025. break;
  2026. case "大家财险":
  2027. switch (item.apiType) {
  2028. case 1:
  2029. if (this.orderInfo.jqpolicyno) {
  2030. this.$api.letter
  2031. .obtainWarranty({
  2032. companyId: item.id,
  2033. riskCode: "0507",
  2034. type: "2", //2:保单
  2035. })
  2036. .then((res) => {
  2037. if (res.data) {
  2038. this.oldfileList.push({
  2039. fileTitle: "交强电子保单",
  2040. filename: this.orderInfo.jqpolicyno,
  2041. fileurl: res.data,
  2042. });
  2043. } else {
  2044. this.$message.error(res.msg);
  2045. }
  2046. });
  2047. this.$api.letter
  2048. .obtainWarranty({
  2049. companyId: item.id,
  2050. riskCode: "0507",
  2051. type: "1", //1:标志
  2052. })
  2053. .then((res) => {
  2054. if (res.data) {
  2055. this.oldfileList.push({
  2056. fileTitle: "交强电子标志",
  2057. filename: this.orderInfo.jqpolicyno,
  2058. fileurl: res.data,
  2059. });
  2060. } else {
  2061. this.$message.error(res.msg);
  2062. }
  2063. });
  2064. }
  2065. if (this.orderInfo.sypolicyno) {
  2066. this.$api.letter
  2067. .obtainWarranty({
  2068. companyId: item.id,
  2069. riskCode: "0510",
  2070. type: "2", //2:保单
  2071. })
  2072. .then((res) => {
  2073. if (res.data) {
  2074. businessList.push({
  2075. fileTitle: "商业电子保单",
  2076. filename: this.orderInfo.sypolicyno,
  2077. fileurl: res.data,
  2078. });
  2079. }
  2080. });
  2081. }
  2082. if (this.orderInfo.crossInsurance.length > 0) {
  2083. this.orderInfo.crossInsurance.map((ele) => {
  2084. this.$api.letter
  2085. .zijingetPolicyPrint({
  2086. companyId: item.id,
  2087. policyNumber: ele.policyNumber,
  2088. riskCode: "0513",
  2089. type: "2", //2:保单
  2090. })
  2091. .then((res) => {
  2092. if (res.data) {
  2093. accidentList.push({
  2094. fileTitle: "驾意险保单",
  2095. filename: ele.policyNumber,
  2096. fileurl: res.data,
  2097. });
  2098. } else {
  2099. this.$message.error(res.msg);
  2100. }
  2101. });
  2102. });
  2103. }
  2104. break;
  2105. case 2:
  2106. if (
  2107. this.orderInfo.jqpolicyno ||
  2108. this.orderInfo.sypolicyno
  2109. ) {
  2110. this.$api.letter
  2111. .pythongetPolicyPrint({
  2112. subOrderNo: item.id,
  2113. })
  2114. .then((res) => {
  2115. if (res.code == 200 && res.data) {
  2116. if (res.data.jqxPolicyUrl) {
  2117. this.oldfileList.push({
  2118. fileTitle: "交强电子保单",
  2119. filename: this.orderInfo.jqpolicyno,
  2120. fileurl: res.data.jqxPolicyUrl,
  2121. });
  2122. }
  2123. if (res.data.jqxFlagUrl) {
  2124. this.oldfileList.push({
  2125. fileTitle: "交强电子标志",
  2126. filename: this.orderInfo.jqpolicyno,
  2127. fileurl: res.data.jqxFlagUrl,
  2128. });
  2129. }
  2130. if (res.data.syxPolicyUrl) {
  2131. businessList.push({
  2132. fileTitle: "商业电子保单",
  2133. filename: this.orderInfo.sypolicyno,
  2134. fileurl: res.data.syxPolicyUrl,
  2135. });
  2136. }
  2137. if (
  2138. res.data.jyxInfoList &&
  2139. res.data.jyxInfoList.length > 0
  2140. ) {
  2141. res.data.jyxInfoList.forEach((val) => {
  2142. accidentList.push({
  2143. fileTitle: "驾意险保单",
  2144. filename: "驾意险保单",
  2145. fileurl: val.jyx_policy_url,
  2146. });
  2147. });
  2148. }
  2149. } else {
  2150. this.$message.error(res.msg);
  2151. }
  2152. });
  2153. }
  2154. break;
  2155. }
  2156. break;
  2157. default:
  2158. }
  2159. }
  2160. let obj = {
  2161. oldfileList: this.oldfileList,
  2162. businessList,
  2163. accidentList,
  2164. };
  2165. this.$refs.detailsDialog.warrantyFun(obj);
  2166. }
  2167. this.showInsureList = false;
  2168. this.$refs.detailsDialog.setBackupVisible(true);
  2169. } else {
  2170. this.$message.error("订单获取失败");
  2171. }
  2172. });
  2173. },
  2174. //联级选择器触发事件
  2175. handleChange(val) {
  2176. if (val.length !== 0) {
  2177. this.pageRequest.deptId = val.at(-1);
  2178. } else {
  2179. this.pageRequest.deptId = "";
  2180. }
  2181. },
  2182. handleClose(done) {
  2183. this.$confirm("确认关闭?")
  2184. .then((_) => {
  2185. done();
  2186. })
  2187. .catch((_) => { });
  2188. },
  2189. httpRequest(options) {
  2190. let file = options.file;
  2191. let filename = options.filename;
  2192. let reader = new FileReader();
  2193. if (file) {
  2194. reader.readAsDataURL(file);
  2195. }
  2196. reader.onload = () => {
  2197. let base64Str = reader.result;
  2198. this[options.filename].push(base64Str);
  2199. };
  2200. },
  2201. // 设置每页条数
  2202. applyhandleSizeChange(val) {
  2203. this.pageSize = val;
  2204. this.pageNum = 1;
  2205. this.pageRequest.pageNum = 1;
  2206. this.pageRequest.pageSize = val;
  2207. this.findPage();
  2208. },
  2209. // 当前页
  2210. applyhandleCurrentChange(val) {
  2211. this.pageNum = val;
  2212. this.pageRequest.pageNum = val;
  2213. this.findPage();
  2214. },
  2215. saveAs(blob, filename) {
  2216. var link = document.createElement("a");
  2217. link.href = window.URL.createObjectURL(blob);
  2218. link.target = "_ blank";
  2219. link.download = filename;
  2220. link.click();
  2221. },
  2222. //预览文件
  2223. viewfile(index) {
  2224. let name = index.fileurl.lastIndexOf("/");
  2225. fetch(index.fileurl)
  2226. .then((response) => response.blob())
  2227. .then((blob) => {
  2228. this.saveAs(
  2229. blob,
  2230. index.fileurl.substring(name + 1, index.fileurl.length)
  2231. );
  2232. })
  2233. .catch((error) => { });
  2234. // const a = document.createElement('a')
  2235. // a.style.display = 'none'
  2236. // a.href = index.fileurl
  2237. // a.target = '_ blank';
  2238. // a.download = this.licenseNo+ '.pdf'; // 下载文件的名字
  2239. // document.body.appendChild(a)
  2240. // a.click()
  2241. },
  2242. //锚链接
  2243. // jump(obj) {
  2244. // var s = document.getElementById(obj);
  2245. // var parent = s.parentNode;
  2246. // for (let i = 0; i < parent.childNodes.length; i++) {
  2247. // if (parent.childNodes[i].tagName == "DIV") {
  2248. // if (parent.childNodes[i].childNodes[0].classList.contains("active")) {
  2249. // parent.childNodes[i].childNodes[0].classList.remove("active");
  2250. // }
  2251. // }
  2252. // }
  2253. // s.childNodes[0].classList.add("active");
  2254. // },
  2255. // //表格行点击下拉事件
  2256. // handleRowClick(row) {
  2257. // if(!row.expanded){
  2258. // this.$api.letter.querySonOrders({orderNo:row.orderno}).then(res=>{
  2259. // if(res.code=='200' && res.data.length!=0){
  2260. // this.pageResult.map(item=>{
  2261. // if(item.orderno===row.orderno){
  2262. // item.insAreaCompanyList=res.data;
  2263. // }
  2264. // return item;
  2265. // })
  2266. // row.expanded = !row.expanded;
  2267. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2268. // }else{
  2269. // this.$message.info("暂无数据");
  2270. // }
  2271. // })
  2272. // }else{
  2273. // row.expanded = !row.expanded;
  2274. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2275. // }
  2276. // },
  2277. handleRowChange(row) {
  2278. if (!row.expanded) {
  2279. this.$api.letter
  2280. .querySonOrders({ orderNo: row.orderno })
  2281. .then((res) => {
  2282. if (res.code == "200" && res.data.length != 0) {
  2283. this.pageResult.map((item) => {
  2284. if (item.orderno === row.orderno) {
  2285. item.insAreaCompanyList = res.data;
  2286. }
  2287. return item;
  2288. });
  2289. row.expanded = !row.expanded;
  2290. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2291. } else {
  2292. this.$message.info("暂无数据");
  2293. }
  2294. });
  2295. } else {
  2296. row.expanded = !row.expanded;
  2297. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  2298. }
  2299. },
  2300. //数据
  2301. findPage() {
  2302. this.orderLoaing = true;
  2303. let orderStatus = "";
  2304. if (this.isLetterOrder) {
  2305. orderStatus =
  2306. this.pageRequest.orderStatus == 888
  2307. ? ""
  2308. : this.pageRequest.orderStatus;
  2309. this.$api.letter
  2310. .queryOrders({ ...this.pageRequest, orderStatus })
  2311. .then((res) => {
  2312. if (res.code == "200") {
  2313. this.orderLoaing = false;
  2314. this.pageResult = res.data.content;
  2315. this.pageNum = res.data.pageNum;
  2316. this.totalSize = res.data.totalSize;
  2317. this.pageResult.forEach((val, index) => {
  2318. this.$set(val, "expanded", false);
  2319. });
  2320. } else {
  2321. this.$message.error(res.msg);
  2322. this.orderLoaing = false;
  2323. }
  2324. });
  2325. } else {
  2326. orderStatus = this.statusPor == 888 ? "" : this.statusPor;
  2327. this.$api.task
  2328. .queryPageHospitalityOrder({
  2329. ...this.pageRequest,
  2330. orderStatus,
  2331. userId: this.userIdPor,
  2332. deptId: this.deptIdPor,
  2333. })
  2334. .then((res) => {
  2335. if (res.code == "200") {
  2336. this.orderLoaing = false;
  2337. this.$nextTick(() => {
  2338. this.pageResult = res.data.content;
  2339. this.pageNum = res.data.pageNum;
  2340. this.totalSize = res.data.totalSize;
  2341. this.pageResult.forEach((val, index) => {
  2342. this.$set(val, "expanded", false);
  2343. });
  2344. });
  2345. } else {
  2346. this.$message.error(res.msg);
  2347. this.orderLoaing = false;
  2348. }
  2349. });
  2350. }
  2351. },
  2352. //查询
  2353. onSubmit() {
  2354. this.pageRequest.pageNum = 1;
  2355. this.pageRequest.pageSize = 20;
  2356. this.findPage();
  2357. },
  2358. //时间js
  2359. monthChange(e) {
  2360. if (e === null) {
  2361. this.pageRequest.startDate = e;
  2362. this.pageRequest.endDate = e;
  2363. } else {
  2364. this.pageRequest.startDate = e[0];
  2365. this.pageRequest.endDate = e[1];
  2366. }
  2367. },
  2368. // downloadFile(url, fileName, type) {
  2369. // const xhr = new XMLHttpRequest();
  2370. // xhr.open("GET", url, true);
  2371. // xhr.responseType = "blob"; // 获取文件blob数据
  2372. // xhr.onload = function() {
  2373. // if (xhr.status !== 200) {
  2374. // this.$notify.error({
  2375. // title: "错误",
  2376. // message: "下载出现错误"
  2377. // });
  2378. // return;
  2379. // }
  2380. // const newUrl = window.URL.createObjectURL(xhr.response); // 生成一个可用的临时url
  2381. // const a = document.createElement("a"); // 生成a标签调用点击事件
  2382. // a.setAttribute("href", newUrl);
  2383. // a.setAttribute("target", "_blank");
  2384. // a.setAttribute("download", fileName); // 自定义文件名
  2385. // document.body.appendChild(a);
  2386. // a.click();
  2387. // document.body.removeChild(a);
  2388. // };
  2389. // xhr.send();
  2390. // }
  2391. },
  2392. };
  2393. </script>
  2394. <style lang="scss" scoped>
  2395. .scan-code {
  2396. div {
  2397. margin-top: 10px;
  2398. }
  2399. }
  2400. .green_color {
  2401. color: #068069;
  2402. border: 1px solid #068069;
  2403. padding: 7px 8px;
  2404. }
  2405. .red_color {
  2406. color: var(--themeColor);
  2407. border: 1px solid var(--themeColor);
  2408. padding: 7px 8px;
  2409. }
  2410. .blue_color {
  2411. color: #2d4d89;
  2412. border: 1px solid #2d4d89;
  2413. padding: 7px 8px;
  2414. }
  2415. .el-dropdown {
  2416. font-size: 12px;
  2417. }
  2418. .el-step__description>span {
  2419. margin-right: 10px;
  2420. }
  2421. /deep/ {
  2422. .proSaomazhifucodeClass .el-dialog__header {
  2423. background: rgba(45, 77, 137, 0.1);
  2424. font-weight: bold;
  2425. }
  2426. .proSaomazhifucodeClass .el-dialog__footer {
  2427. border-top: 1px solid #eef1f6;
  2428. }
  2429. .el-step__head {
  2430. min-height: 90px;
  2431. }
  2432. .el-table .row-expand-cover .cell .el-table__expand-icon {
  2433. display: none;
  2434. }
  2435. .el-descriptions-item__label {
  2436. &:not(.is-bordered-label) {
  2437. color: #333;
  2438. }
  2439. }
  2440. .saomazhifucodeClass .el-dialog__body,
  2441. .saomazhifucodeClass .el-dialog__header,
  2442. .saomazhifucodeClass .el-dialog__footer {
  2443. padding: 0;
  2444. background: #f4e9e9;
  2445. }
  2446. .saomazhifucodeClass .el-dialog__body {
  2447. padding: 15px;
  2448. }
  2449. .saomazhifucodeClass .el-dialog__footer {
  2450. background: #f4e9e9;
  2451. padding-bottom: 15px;
  2452. }
  2453. .saomazhifucodeClass .el-dialog__headerbtn {
  2454. margin-top: 10px;
  2455. }
  2456. .el-input.is-disabled .el-input__inner {
  2457. color: #333;
  2458. }
  2459. }
  2460. .ORcodebody {
  2461. height: auto;
  2462. // background: url(../../../assets/image/group.png) #fff;
  2463. padding: 16px;
  2464. background-color: #fff;
  2465. }
  2466. .ORcode {
  2467. width: 100%;
  2468. height: auto;
  2469. display: flex;
  2470. justify-content: center;
  2471. align-items: center;
  2472. padding: 30px;
  2473. box-sizing: border-box;
  2474. &>div {
  2475. width: 176px;
  2476. height: 176px;
  2477. border: 1px solid var(--themeColor);
  2478. border-radius: 5px;
  2479. }
  2480. }
  2481. .ORtitle {
  2482. width: 100%;
  2483. padding-bottom: 20px;
  2484. box-sizing: border-box;
  2485. &>div {
  2486. width: 100%;
  2487. margin: 10px 0;
  2488. font-size: 14px;
  2489. &>span {
  2490. &:nth-child(1) {
  2491. color: #868b98;
  2492. text-align: end;
  2493. width: 150px;
  2494. }
  2495. &:nth-child(2) {
  2496. color: #333333;
  2497. }
  2498. }
  2499. }
  2500. }
  2501. </style>
  2502. <style scoped lang="scss">
  2503. #qqq {
  2504. background-color: #111;
  2505. width: 300px;
  2506. height: 300px;
  2507. margin: 0 auto;
  2508. /*水平居中*/
  2509. position: relative;
  2510. }
  2511. #qrCode {
  2512. display: inline-block;
  2513. margin: 0 auto;
  2514. /*水平居中*/
  2515. position: relative;
  2516. top: 15%;
  2517. }
  2518. #qrCode img {
  2519. width: 200px;
  2520. height: 200px;
  2521. background-color: #fff;
  2522. padding: 6px;
  2523. }
  2524. .leftContainer {
  2525. width: 80px;
  2526. position: fixed;
  2527. top: 79px;
  2528. left: 30px;
  2529. }
  2530. .leftContainer .el-col {
  2531. width: 80px;
  2532. height: 80px;
  2533. border-bottom: 1px solid #4d5c6f;
  2534. background: #526176;
  2535. cursor: pointer;
  2536. color: #a6aeb9;
  2537. border-radius: 0;
  2538. }
  2539. .leftContainer .el-col a {
  2540. display: block;
  2541. color: #a6aeb9;
  2542. text-decoration: none;
  2543. }
  2544. .leftContainer .el-col a:hover {
  2545. color: #fff;
  2546. }
  2547. .leftContainer .el-col a.active {
  2548. color: #fff;
  2549. }
  2550. .leftContainer .el-col i {
  2551. font-size: 30px;
  2552. margin: 15px 0px 5px;
  2553. }
  2554. .rightContainer {
  2555. width: calc(100vw - 160px);
  2556. margin-left: 100px;
  2557. }
  2558. .rightContainer .header .el-col {
  2559. font-size: 18px;
  2560. font-weight: bold;
  2561. }
  2562. .rightContainer .bodyTitle {
  2563. height: 40px;
  2564. background: #f3f3f3;
  2565. border: 1px solid #dddddd;
  2566. }
  2567. .rightContainer .bodyTitle>label {
  2568. margin: 0px 15px;
  2569. font-weight: bold;
  2570. }
  2571. .rightContainer #demo2 .body,
  2572. .rightContainer #demo6 .body {
  2573. border: 1px solid #ddd;
  2574. padding: 15px;
  2575. border-top: none;
  2576. }
  2577. .rightContainer .el-card {
  2578. margin-bottom: 15px;
  2579. }
  2580. .body .el-row .el-col label {
  2581. text-align: right;
  2582. width: 80px;
  2583. font-size: 14px;
  2584. width: 100%;
  2585. line-height: 36px;
  2586. display: inline-block;
  2587. box-sizing: border-box;
  2588. }
  2589. .disabledInput {
  2590. width: 80% !important;
  2591. background-color: #f5f7fa;
  2592. text-align: center !important;
  2593. max-width: 200px;
  2594. border: 1px solid #e4e7ed;
  2595. color: #c0c4cc;
  2596. cursor: not-allowed;
  2597. border-radius: 4px;
  2598. box-sizing: border-box;
  2599. padding: 0px 10px;
  2600. height: 36px;
  2601. margin: 20px 10%;
  2602. }
  2603. /* 上传图片样式Start */
  2604. .avatar-uploader .el-upload {
  2605. border: 1px dashed #d9d9d9;
  2606. border-radius: 6px;
  2607. cursor: pointer;
  2608. position: relative;
  2609. overflow: hidden;
  2610. }
  2611. .avatar-uploader .el-upload:hover {
  2612. border-color: #409eff;
  2613. }
  2614. .avatar-uploader-icon {
  2615. font-size: 28px;
  2616. color: #8c939d;
  2617. width: 100px;
  2618. height: 100px;
  2619. line-height: 100px;
  2620. text-align: center;
  2621. border: 1px dashed #d9d9d9;
  2622. }
  2623. .avatar {
  2624. border: 1px dashed #d9d9d9;
  2625. padding: 5px;
  2626. border-radius: 6px;
  2627. width: 100px;
  2628. height: 100px;
  2629. display: block;
  2630. }
  2631. .imageStyle {
  2632. display: inline-block;
  2633. width: 100px;
  2634. height: 100px;
  2635. box-shadow: #ddd 0px 0px 5px;
  2636. margin-right: 20px;
  2637. }
  2638. /* 上传图片样式End */
  2639. .dis {
  2640. display: flex;
  2641. }
  2642. .align {
  2643. align-items: center;
  2644. }
  2645. .jus {
  2646. justify-content: space-between;
  2647. }
  2648. .display {
  2649. display: flex;
  2650. justify-content: center;
  2651. align-items: center;
  2652. box-sizing: border-box;
  2653. }
  2654. .block {
  2655. margin-top: 10px;
  2656. }
  2657. .page {
  2658. padding: 14px;
  2659. box-sizing: border-box;
  2660. }
  2661. .el-select--medium {
  2662. vertical-align: bottom !important;
  2663. }
  2664. .widths {
  2665. width: 200px;
  2666. }
  2667. .demo-table-expand {
  2668. /* width:96vw; */
  2669. height: auto;
  2670. padding: 10px 20px 10px 50px;
  2671. font-size: 14px;
  2672. }
  2673. .demo-table-expand-time {
  2674. width: 40%;
  2675. }
  2676. .demo-table-expand-time>div {
  2677. margin: 0 10px;
  2678. }
  2679. .icon-img {
  2680. width: 30px;
  2681. height: 30px;
  2682. vertical-align: bottom;
  2683. }
  2684. .Enclosure {
  2685. width: 100%;
  2686. background-color: #fff;
  2687. padding: 20px;
  2688. box-sizing: border-box;
  2689. margin-bottom: 15px;
  2690. border-radius: 6px;
  2691. border: 1px solid #ebeef5;
  2692. transition: all 0.2s ease-in-out;
  2693. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  2694. }
  2695. .headers {
  2696. display: flex;
  2697. align-items: center;
  2698. justify-content: space-between;
  2699. flex-wrap: wrap;
  2700. margin: 5px 0;
  2701. font-weight: bold;
  2702. color: #333;
  2703. }
  2704. /* 内容待定 */
  2705. .headers_Custom {
  2706. div {
  2707. padding: 2px 0px;
  2708. font-size: 14px;
  2709. &>span {
  2710. color: rgb(226, 118, 10);
  2711. }
  2712. }
  2713. }
  2714. .back {
  2715. color: #303133;
  2716. font-weight: 700;
  2717. }
  2718. .u-f-ac {
  2719. -webkit-box-align: center;
  2720. align-items: center;
  2721. /* padding: 10px; */
  2722. }
  2723. .bodyTitle {
  2724. height: 40px;
  2725. background: #f3f3f3;
  2726. border: 1px solid #dddddd;
  2727. line-height: 40px;
  2728. padding: 0 20px;
  2729. box-sizing: border-box;
  2730. }
  2731. .Risk {
  2732. width: 100%;
  2733. height: auto;
  2734. display: flex;
  2735. flex-direction: column;
  2736. align-items: center;
  2737. font-size: 12px;
  2738. }
  2739. .Risk_title {
  2740. width: 100%;
  2741. height: 40px;
  2742. }
  2743. .Risk_title>div {
  2744. background: rgb(199, 20, 45);
  2745. color: rgb(255, 255, 255);
  2746. height: 100%;
  2747. font-weight: 500;
  2748. width: 33.3%;
  2749. padding: 10px 20px;
  2750. box-sizing: border-box;
  2751. border: #fff solid 1px;
  2752. display: flex;
  2753. justify-content: center;
  2754. align-items: center;
  2755. border-bottom: none;
  2756. }
  2757. .Risk_title>div:nth-child(1) {}
  2758. .Risk_title>div:nth-child(2) {
  2759. border-left: none;
  2760. border-right: none;
  2761. }
  2762. .Risk_data {
  2763. width: 100%;
  2764. height: 40px;
  2765. }
  2766. .Risk_data>div {
  2767. background: #fbf6f7;
  2768. color: rgb(51, 51, 51);
  2769. height: 100%;
  2770. font-weight: 500;
  2771. width: 33.3%;
  2772. padding: 10px 20px;
  2773. box-sizing: border-box;
  2774. border: #fff solid 1px;
  2775. display: flex;
  2776. justify-content: center;
  2777. align-items: center;
  2778. border-bottom: none;
  2779. }
  2780. .Risk_data>div :nth-child(2) {
  2781. border-left: none;
  2782. border-right: none;
  2783. }
  2784. .Risk_title>div :nth-child(3) {
  2785. border-top-right-radius: 10px;
  2786. }
  2787. .jyxStyle>span {
  2788. display: inline-block;
  2789. text-align: center;
  2790. }
  2791. /* .el-step__description{
  2792. color:#333
  2793. } */
  2794. /deep/ {
  2795. .el-step__title,
  2796. .el-step__icon-inner {
  2797. color: var(--themeColor);
  2798. }
  2799. .el-step__description.is-finish,
  2800. .el-step__head.is-finish {
  2801. color: #333;
  2802. border: none;
  2803. }
  2804. .el-step__icon.is-text {
  2805. border: none;
  2806. box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
  2807. }
  2808. .el-step__icon.is-text {
  2809. font-size: 22px;
  2810. }
  2811. .el-step__icon {
  2812. width: 28px;
  2813. height: 28px;
  2814. }
  2815. .el-step.is-vertical .el-step__main {
  2816. padding-left: 20px;
  2817. }
  2818. .el-step__line,
  2819. .el-step.is-vertical .el-step__line {
  2820. left: 14px;
  2821. background-color: #e2e5eb;
  2822. width: 1px;
  2823. }
  2824. .el-step__line-inner {
  2825. height: 0;
  2826. display: none;
  2827. }
  2828. .is-flex {
  2829. .el-step__icon {
  2830. background: var(--themeColor);
  2831. }
  2832. .el-step__icon-inner {
  2833. color: #fff;
  2834. }
  2835. }
  2836. }
  2837. </style>