KtOrder.vue 95 KB

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