Orderlist.vue 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148
  1. <template>
  2. <div class="page">
  3. <el-form :inline="true" :model="pageRequest" class="demo-form-inline" size="small" label-width="130px"
  4. style="text-align:center;">
  5. <el-row>
  6. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  7. <el-form-item label="订单号">
  8. <el-input v-model="pageRequest.orderNo" placeholder="请输入车牌号" class="widths" clearable></el-input>
  9. </el-form-item>
  10. </el-col>
  11. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  12. <el-form-item label="车牌号">
  13. <el-input v-model="pageRequest.licenseNo" placeholder="请输入车牌号" class="widths" clearable></el-input>
  14. </el-form-item>
  15. </el-col>
  16. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  17. <el-form-item label="车架号">
  18. <el-input v-model="pageRequest.frameNo" placeholder="请输入车架号" class="widths" clearable></el-input>
  19. </el-form-item>
  20. </el-col>
  21. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  22. <el-form-item label="投保人姓名">
  23. <el-input v-model="pageRequest.insuredName" placeholder="请输入投保人姓名" class="widths" clearable></el-input>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  27. <el-form-item label="机构名称">
  28. <el-cascader class="widths" :options="institutionOptions" v-model="pageRequest.deptId" :props="{
  29. checkStrictly: true, value: 'id',
  30. label: 'name',
  31. }" @change="handleChange" clearable></el-cascader>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  35. <el-form-item label="订单状态">
  36. <el-select v-model="pageRequest.orderStatus" class="widths" clearable>
  37. <el-option v-for="val in optionsStatus" :key='val.dictValue' :label="val.dictTag" :value="val.dictValue" ></el-option>
  38. <!-- <el-option label="报价中" value="0"></el-option>
  39. <el-option label="待核保" value="1"></el-option>
  40. <el-option label="已核保待缴费" value="2"></el-option>
  41. <el-option label="已承保" value="3"></el-option>
  42. <el-option label="人工核保" value="4"></el-option> -->
  43. </el-select>
  44. </el-form-item>
  45. </el-col>
  46. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  47. <el-form-item label="日期">
  48. <el-date-picker v-model="value2" type="daterange" @change="monthChange" start-placeholder="开始日期"
  49. end-placeholder="结束日期" class="widths" value-format="yyyy-MM-dd" style="width: 220px;" clearable>
  50. </el-date-picker>
  51. </el-form-item>
  52. </el-col>
  53. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="3">
  54. <el-button type="primary" size="small" @click="onSubmit">查询</el-button>
  55. </el-col>
  56. </el-row>
  57. </el-form>
  58. <el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row stripe
  59. @row-click="handleRowClick" ref="expandTable" :row-class-name="getRowClass"
  60. :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
  61. <el-table-column type="expand">
  62. <template slot-scope="scope">
  63. <div class="demo-table-expand flex a-c j-s" :style="{ width: width, flexWrap: 'wrap' }"
  64. v-for="(item, index) in scope.row.insAreaCompanyList" :key="index">
  65. <div style="width: 70px;">{{ item.inscompany }}</div>
  66. <div class="flex a-c j-s demo-table-expand-time">
  67. <div>总价: <span style="color:#ee7000;">{{ item.sumpremium }}</span></div>
  68. <div>交强险:<span style="color:#ee7000;">{{ item.jqpremium }}</span> </div>
  69. <div>商业险:<span style="color:#ee7000;">{{ item.sypremium }}</span></div>
  70. <div>{{ item.createtime }}</div>
  71. </div>
  72. <div slot="reference" class="name-wrapper flex a-c j-c" style="margin:0 20px; width: 100px;">
  73. <el-tag v-if="item.orderstatus == '0'" type="success" size="medium">报价中</el-tag>
  74. <el-tag v-if="item.orderstatus == '1'" type="warning" size="medium">待核保</el-tag>
  75. <el-tag v-if="item.orderstatus == '2'" type="danger" size="medium">已核保待缴费</el-tag>
  76. <el-tag v-if="item.orderstatus == '3'" type="danger" size="medium">已承保</el-tag>
  77. <el-tag v-if="item.orderstatus == '4'" type="danger" size="medium">核保退回</el-tag>
  78. </div>
  79. <div style="width: 220px;" class="flex a-c j-end">
  80. <el-button size="mini" type="text"
  81. v-if="item.orderstatus == '2' && ['恒邦财险', '众安财险', '中国人寿', '安盛天平', '紫金财险'].includes(item.inscompany)"
  82. @click="querystatus(item)" style="color:#f56c6c">缴费状态查询</el-button>
  83. <el-button size="mini" type="text"
  84. v-if="item.orderstatus == '2' && item.inscompany=='永诚财险'"
  85. @click="refreshStatus(item)" style="color:#f56c6c">缴费状态查询</el-button>
  86. <el-button size="mini" type="text" v-if="item.orderstatus == '2' && ['紫金财险'].includes(item.inscompany)"
  87. @click="cancelorder(item)" style="color:#f56c6c">撤单</el-button>
  88. <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(scope.row, item)"
  89. style="color:#f56c6c">二维码</el-button>
  90. <el-button size="mini" type="text" @click="OrderDetails(scope.row, item)">查看详情
  91. </el-button>
  92. </div>
  93. </div>
  94. </template>
  95. </el-table-column>
  96. <el-table-column prop="orderno" label="订单号" width="300" align="center"></el-table-column>
  97. <el-table-column prop="licenseno" label="车牌号" width="180" align="center"></el-table-column>
  98. <el-table-column prop="insuredname" label="被保险人姓名" align="center" width="150"></el-table-column>
  99. <el-table-column prop="product" label="投保险种" align="center" width="200"></el-table-column>
  100. <el-table-column prop="product" label="投保险种" align="center" width="200"></el-table-column>
  101. <el-table-column prop="orderstatus" label="状态" align="center">
  102. <template slot-scope="scope">
  103. <el-tag v-if="scope.row.orderstatus == '0'" type="success" size="small">报价中</el-tag>
  104. <el-tag v-if="scope.row.orderstatus == '1'" type="warning" size="small">待核保</el-tag>
  105. <el-tag v-if="scope.row.orderstatus == '2'" type="danger" size="small">已核保待缴费</el-tag>
  106. <el-tag v-if="scope.row.orderstatus == '3'" type="danger" size="small">已承保</el-tag>
  107. <el-tag v-if="scope.row.orderstatus == '4'" type="danger" size="small">核保退回</el-tag>
  108. </template>
  109. </el-table-column>
  110. <el-table-column prop="createtime" label="录单日期" align="center" width="200"></el-table-column>
  111. <el-table-column label="操作" align="center" min-width="100" fixed="right">
  112. <template slot-scope="scope">
  113. <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button>
  114. <!-- <el-button size="mini" type="text" v-if="['0', '5'].includes(scope.row.orderstatus)"
  115. @click="CloseQoute(scope.$index, scope.row)" style="color:#f56c6c">关闭报价</el-button> -->
  116. <!-- <el-button size="mini" type="text" v-if="scope.row.orderstatus == '0'"
  117. @click="underwriting(scope.$index, scope.row)" style="color:#e6a23c">去核保</el-button> -->
  118. </template>
  119. </el-table-column>
  120. </el-table>
  121. <!-- 分页功能 -->
  122. <div class="block">
  123. <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
  124. :current-page="pageNum" :page-size="pageSize" :page-sizes="[20, 30, 50, 100]"
  125. layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
  126. </div>
  127. <el-dialog :visible.sync="codedialogVisible" width="400px" top="10vh" :before-close="handleClose"
  128. class="saomazhifucodeClass">
  129. <div class="ORcodebody">
  130. <div class="code_title dis align">
  131. <span>扫码付款</span>
  132. </div>
  133. <div style="padding:0 20px">
  134. <div class="ORcode ">
  135. <div style="padding:5px;position: relative;">
  136. <div v-if="['永安财险', '人保财险', '永诚财险', '中煤财险', '众安财险', '紫金财险', '中国人寿','国任财险'].includes(inscompany)" id="qrcode"
  137. ref="qrcode">
  138. </div>
  139. <img v-if="['恒邦财险', '安盛天平'].includes(inscompany)" :src="paycodeimg" alt="" style="width:100%">
  140. </div>
  141. </div>
  142. </div>
  143. <div class="ORtitle dis f-c align">
  144. <div>
  145. <span>保险公司:</span>
  146. <span>{{ inscompany }}</span>
  147. </div>
  148. <div>
  149. <span>车牌号:</span>
  150. <span>{{ licenseNo }}</span>
  151. </div>
  152. <div>
  153. <span>投保人:</span>
  154. <span>{{ applyName }}</span>
  155. </div>
  156. <div>
  157. <span style="color:#f75c00">总金额:</span>
  158. <span style="color:#f75c00">{{ sumpremium }}</span>
  159. </div>
  160. <div v-if="jqpremium">
  161. <span>交强:</span>
  162. <span>{{ jqpremium }}</span>
  163. </div>
  164. <div v-if="sypremium">
  165. <span>商业:</span>
  166. <span>{{ sypremium }}</span>
  167. </div>
  168. <div v-if="taxamount">
  169. <span>车船税:</span>
  170. <span>{{ taxamount }}</span>
  171. </div>
  172. <div v-if="jqstartdate">
  173. <span>交强险起保日期:</span>
  174. <span>{{ jqstartdate }}</span>
  175. </div>
  176. <div v-if="systartdate">
  177. <span>商业险起保日期:</span>
  178. <span>{{ systartdate }}</span>
  179. </div>
  180. </div>
  181. <div class="display">
  182. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">
  183. 关闭
  184. </el-button>
  185. </div>
  186. </div>
  187. </el-dialog>
  188. <el-dialog fullscreen lock-scroll title="车辆报价信息详情" :visible.sync="dialogVisible" width="40%" center>
  189. <!-- 这是报价信息区域 -->
  190. <el-container>
  191. <el-row class="leftContainer">
  192. <el-col id="level1">
  193. <a href="#demo1" @click="jump('level1')">
  194. <i class="el-icon-truck u-f-sa"></i>
  195. <span class="u-f-ajc">车辆</span>
  196. </a>
  197. </el-col>
  198. <el-col id="level2">
  199. <a href="#demo2" @click="jump('level2')">
  200. <i class="el-icon-user u-f-sa"></i>
  201. <span class="u-f-ajc">关系人</span>
  202. </a>
  203. </el-col>
  204. <el-col id="level3">
  205. <a href="#demo3" @click="jump('level3')">
  206. <i class="el-icon-s-custom u-f-sa"></i>
  207. <span class="u-f-ajc">代理人</span>
  208. </a>
  209. </el-col>
  210. <el-col id="level4">
  211. <a href="#demo4" @click="jump('level4')">
  212. <i class="el-icon-goods u-f-sa"></i>
  213. <span class="u-f-ajc">优惠</span>
  214. </a>
  215. </el-col>
  216. <el-col id="level5">
  217. <a href="#demo5" @click="jump('level5')">
  218. <i class="el-icon-goods u-f-sa"></i>
  219. <span class="u-f-ajc">保单</span>
  220. </a>
  221. </el-col>
  222. <template v-if="(!!(orderInfo.jqappoint)) || (!!(orderInfo.syappoint))">
  223. <el-col id="level6">
  224. <a href="#demo6" @click="jump('level6')">
  225. <i class="el-icon-s-check u-f-sa"></i>
  226. <span class="u-f-ajc">特约</span>
  227. </a>
  228. </el-col>
  229. </template>
  230. <el-col id="level7">
  231. <a href="#demo7" @click="jump('level7')">
  232. <i class="el-icon-video-camera-solid u-f-sa"></i>
  233. <span class="u-f-ajc">影像</span>
  234. </a>
  235. </el-col>
  236. <el-col id="level8">
  237. <a href="#demo8" @click="jump('level8')">
  238. <i class="el-icon-video-camera-solid u-f-sa"></i>
  239. <span class="u-f-ajc">投保单号</span>
  240. </a>
  241. </el-col>
  242. <el-col id="level9" v-if="orderInfo.orderstatus == 3">
  243. <a href="#demo9" @click="jump('level9')">
  244. <i class="el-icon-video-camera-solid u-f-sa"></i>
  245. <span class="u-f-ajc">电子保单</span>
  246. </a>
  247. </el-col>
  248. <el-col id="level10">
  249. <a href="#demo10" @click="jump('level10')">
  250. <i class="el-icon-video-camera-solid u-f-sa"></i>
  251. <span class="u-f-ajc">配送信息</span>
  252. </a>
  253. </el-col>
  254. </el-row>
  255. <el-row class="rightContainer">
  256. <el-card id="demo1">
  257. <el-row class="header">
  258. <el-col>车辆信息</el-col>
  259. </el-row>
  260. <el-divider></el-divider>
  261. <el-row class="body">
  262. <el-row>
  263. <el-col :span="2">
  264. <label>号牌号码</label>
  265. </el-col>
  266. <el-col :span="5">
  267. <el-input size="small" disabled v-model="orderInfo.carinfo.licenseNo"></el-input>
  268. </el-col>
  269. <el-col :span="3">
  270. <label>号牌种类</label>
  271. </el-col>
  272. <el-col :span="5">
  273. <template v-if="orderInfo.carinfo.licenseTypeCode == '02'">
  274. <el-input size="medium" disabled value="小型汽车号牌"></el-input>
  275. </template>
  276. <template v-if="orderInfo.carinfo.licenseTypeCode != '02'">
  277. <el-input size="medium" disabled :value="'其它号牌' + orderInfo.carinfo.licenseTypeCode"></el-input>
  278. </template>
  279. </el-col>
  280. <el-col :span="3">
  281. <label>车架号</label>
  282. </el-col>
  283. <el-col :span="5">
  284. <el-input size="medium" disabled v-model="orderInfo.carinfo.vinNo"></el-input>
  285. </el-col>
  286. </el-row>
  287. <el-row>
  288. <el-col :span="2">
  289. <label>发动机号</label>
  290. </el-col>
  291. <el-col :span="5">
  292. <el-input size="medium" disabled v-model="orderInfo.carinfo.engineNo"></el-input>
  293. </el-col>
  294. <el-col :span="3">
  295. <label>厂牌型号</label>
  296. </el-col>
  297. <el-col :span="5">
  298. <el-input size="medium" disabled v-model="orderInfo.carinfo.brandName"></el-input>
  299. </el-col>
  300. <el-col :span="3">
  301. <label>车主</label>
  302. </el-col>
  303. <el-col :span="5">
  304. <el-input size="medium" disabled v-model="orderInfo.ownerinfo.name"></el-input>
  305. </el-col>
  306. </el-row>
  307. <el-row>
  308. <el-col :span="2">
  309. <label>核定载客量</label>
  310. </el-col>
  311. <el-col :span="5">
  312. <el-input size="medium" disabled v-model="orderInfo.carinfo.seatCount"></el-input>
  313. </el-col>
  314. <el-col :span="3">
  315. <label>是否过户</label>
  316. </el-col>
  317. <el-col :span="5">
  318. <el-select disabled="" v-model="orderInfo.carinfo.transferFlag" placeholder="请选择" style="width: 100%;">
  319. <el-option label="是" :value="true"></el-option>
  320. <el-option label="否" :value="false"></el-option>
  321. </el-select>
  322. </el-col>
  323. <el-col :span="3">
  324. <label>注册日期</label>
  325. </el-col>
  326. <el-col :span="5">
  327. <el-input size="medium" disabled v-model="registerDateFormat"></el-input>
  328. </el-col>
  329. </el-row>
  330. <el-row>
  331. <el-col :span="2">
  332. <label>新车购置价</label>
  333. </el-col>
  334. <el-col :span="5">
  335. <el-input size="medium" disabled v-model="orderInfo.carinfo.purchasePrice">
  336. </el-input>
  337. </el-col>
  338. <el-col :span="3">
  339. <label>车型编码</label>
  340. </el-col>
  341. <el-col :span="5">
  342. <el-input size="medium" disabled v-model="orderInfo.carinfo.modelCode"></el-input>
  343. </el-col>
  344. <el-col :span="3">
  345. <label>发证日期</label>
  346. </el-col>
  347. <el-col :span="5">
  348. <el-input size="medium" disabled v-model="issueDateFormat"></el-input>
  349. </el-col>
  350. </el-row>
  351. <el-row>
  352. <el-col :span="2">
  353. <label>排量(L)</label>
  354. </el-col>
  355. <el-col :span="5">
  356. <el-input size="medium" disabled v-model="orderInfo.carinfo.exhaustScale">
  357. </el-input>
  358. </el-col>
  359. <el-col :span="3">
  360. <label>整备质量(KG)</label>
  361. </el-col>
  362. <el-col :span="5">
  363. <el-input size="medium" disabled v-model="orderInfo.carinfo.completeKerbMass">
  364. </el-input>
  365. </el-col>
  366. <el-col :span="3">
  367. <label>能源种类</label>
  368. </el-col>
  369. <el-col :span="5">
  370. <el-input size="medium" disabled v-model="orderInfo.carinfo.powertype"></el-input>
  371. </el-col>
  372. </el-row>
  373. </el-row>
  374. </el-card>
  375. <!-- 关系人 -->
  376. <el-card id="demo2">
  377. <el-row class="header">
  378. <el-col>关系人信息</el-col>
  379. </el-row>
  380. <el-divider></el-divider>
  381. <div>
  382. <el-row class="u-f-ac bodyTitle"><label>车主</label></el-row>
  383. <el-row class="body">
  384. <el-row>
  385. <el-col :span="2">
  386. <label>证件类型</label>
  387. </el-col>
  388. <el-col :span="3">
  389. <template v-if="orderInfo.ownerinfo.identifyType == '01'">
  390. <el-input size="medium" disabled value="身份证"></el-input>
  391. </template>
  392. <template v-if="orderInfo.ownerinfo.identifyType != '01'">
  393. <el-input size="medium" disabled :value="'其它证件类型' + orderInfo.ownerinfo.identifyType"></el-input>
  394. </template>
  395. </el-col>
  396. <el-col :span="3">
  397. <label>证件号码</label>
  398. </el-col>
  399. <el-col :span="3">
  400. <el-input size="medium" disabled v-model="orderInfo.ownerinfo.identifyNumber">
  401. </el-input>
  402. </el-col>
  403. <el-col :span="3">
  404. <label>姓名</label>
  405. </el-col>
  406. <el-col :span="3">
  407. <el-input size="medium" disabled v-model="orderInfo.ownerinfo.name"></el-input>
  408. </el-col>
  409. <el-col :span="3">
  410. <label>手机号</label>
  411. </el-col>
  412. <el-col :span="3">
  413. <el-input size="medium" disabled v-model="orderInfo.ownerinfo.mobile">
  414. </el-input>
  415. </el-col>
  416. </el-row>
  417. <el-row>
  418. <el-col :span="2">
  419. <label>地址</label>
  420. </el-col>
  421. <el-col :span="9">
  422. <el-input size="medium" disabled v-model="orderInfo.ownerinfo.addr"></el-input>
  423. </el-col>
  424. </el-row>
  425. </el-row>
  426. <el-row class="u-f-ac bodyTitle"><label>投保人</label></el-row>
  427. <el-row class="body">
  428. <el-row>
  429. <el-col :span="2">
  430. <label>证件类型</label>
  431. </el-col>
  432. <el-col :span="3">
  433. <template v-if="orderInfo.applyinfo.identifyType == '01'">
  434. <el-input size="medium" disabled value="身份证"></el-input>
  435. </template>
  436. <template v-if="orderInfo.applyinfo.identifyType != '01'">
  437. <el-input size="medium" disabled :value="'其它证件类型' + orderInfo.applyinfo.identifyType"></el-input>
  438. </template>
  439. </el-col>
  440. <el-col :span="3">
  441. <label>证件号码</label>
  442. </el-col>
  443. <el-col :span="3">
  444. <el-input size="medium" disabled v-model="orderInfo.applyinfo.identifyNumber">
  445. </el-input>
  446. </el-col>
  447. <el-col :span="3">
  448. <label>姓名</label>
  449. </el-col>
  450. <el-col :span="3">
  451. <el-input size="medium" disabled v-model="orderInfo.applyinfo.name"></el-input>
  452. </el-col>
  453. <el-col :span="3">
  454. <label>手机号</label>
  455. </el-col>
  456. <el-col :span="3">
  457. <el-input size="medium" disabled v-model="orderInfo.applyinfo.mobile">
  458. </el-input>
  459. </el-col>
  460. </el-row>
  461. <el-row>
  462. <el-col :span="2">
  463. <label>地址</label>
  464. </el-col>
  465. <el-col :span="9">
  466. <el-input size="medium" disabled v-model="orderInfo.applyinfo.addr"></el-input>
  467. </el-col>
  468. </el-row>
  469. </el-row>
  470. <el-row class="u-f-ac bodyTitle"><label>被保险人</label></el-row>
  471. <el-row class="body">
  472. <el-row>
  473. <el-col :span="2">
  474. <label>证件类型</label>
  475. </el-col>
  476. <el-col :span="3">
  477. <template v-if="orderInfo.insureinfo.identifyType == '01'">
  478. <el-input size="medium" disabled value="身份证"></el-input>
  479. </template>
  480. <template v-if="orderInfo.insureinfo.identifyType != '01'">
  481. <el-input size="medium" disabled :value="'其它证件类型' + orderInfo.insureinfo.identifyType"></el-input>
  482. </template>
  483. </el-col>
  484. <el-col :span="3">
  485. <label>证件号码</label>
  486. </el-col>
  487. <el-col :span="3">
  488. <el-input size="medium" disabled v-model="orderInfo.insureinfo.identifyNumber">
  489. </el-input>
  490. </el-col>
  491. <el-col :span="3">
  492. <label>姓名</label>
  493. </el-col>
  494. <el-col :span="3">
  495. <el-input size="medium" disabled v-model="orderInfo.insureinfo.name"></el-input>
  496. </el-col>
  497. <el-col :span="3">
  498. <label>手机号</label>
  499. </el-col>
  500. <el-col :span="3">
  501. <el-input size="medium" disabled v-model="orderInfo.insureinfo.mobile">
  502. </el-input>
  503. </el-col>
  504. </el-row>
  505. <el-row>
  506. <el-col :span="2">
  507. <label>地址</label>
  508. </el-col>
  509. <el-col :span="9">
  510. <el-input size="medium" disabled v-model="orderInfo.insureinfo.addr"></el-input>
  511. </el-col>
  512. </el-row>
  513. </el-row>
  514. </div>
  515. </el-card>
  516. <!-- 代理人 -->
  517. <el-card id="demo3">
  518. <el-row class="header">
  519. <el-col>代理人信息</el-col>
  520. </el-row>
  521. <el-divider></el-divider>
  522. <el-row class="body">
  523. <el-row>
  524. <el-col :span="2">
  525. <label>代理人工号</label>
  526. </el-col>
  527. <el-col :span="3">
  528. <el-input size="medium" disabled v-model="orderInfo.userid"></el-input>
  529. </el-col>
  530. <el-col :span="3">
  531. <label>代理人姓名</label>
  532. </el-col>
  533. <el-col :span="3">
  534. <el-input size="medium" disabled v-model="orderInfo.username"></el-input>
  535. </el-col>
  536. <el-col :span="3">
  537. <label>代理人电话</label>
  538. </el-col>
  539. <el-col :span="3">
  540. <el-input size="medium" disabled value="15234685241"></el-input>
  541. </el-col>
  542. <el-col :span="3">
  543. <label>代理人团队</label>
  544. </el-col>
  545. <el-col :span="3">
  546. <el-input size="medium" disabled v-model="orderInfo.deptname"></el-input>
  547. </el-col>
  548. </el-row>
  549. <el-row>
  550. <el-col :span="2">
  551. <label>代理人状态</label>
  552. </el-col>
  553. <el-col :span="3">
  554. <el-input size="medium" disabled value="在职"></el-input>
  555. </el-col>
  556. <el-col :span="3">
  557. <label>代理人归属</label>
  558. </el-col>
  559. <el-col :span="3">
  560. <el-input size="medium" disabled v-model="orderInfo.deptid"></el-input>
  561. </el-col>
  562. </el-row>
  563. </el-row>
  564. </el-card>
  565. <!-- 优惠政策 -->
  566. <el-card id="demo4">
  567. <el-row class="header">
  568. <el-col>优惠政策</el-col>
  569. </el-row>
  570. <el-divider></el-divider>
  571. <el-row class="body">
  572. <el-row class="u-f-ac"
  573. style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;background: #F3F3F3;">
  574. <el-col class="u-f-ajc" :span="8">险种名称</el-col>
  575. <el-col class="u-f-ajc" :span="8">优惠比例</el-col>
  576. <el-col class="u-f-ajc" :span="8">优惠金额</el-col>
  577. </el-row>
  578. <el-row v-for="(riskItem) in orderInfo.riskinfo" :key="riskItem.riskCode + '2'"
  579. v-if="riskItem.riskCode == '0507'" class="u-f-ac"
  580. style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;">
  581. <el-col class="u-f-ajc" :span="8">交强险</el-col>
  582. <el-col class="u-f-ajc" :span="8">{{ orderInfo.jqdiscountrate }}%</el-col>
  583. <el-col class="u-f-ajc" :span="8">
  584. {{ (riskItem.premium * orderInfo.jqdiscountrate / 100).toFixed(2) }}</el-col>
  585. </el-row>
  586. <el-row v-for="(riskItem) in orderInfo.riskinfo" :key="riskItem.riskCode + '3'"
  587. v-if="riskItem.riskCode == '0510'" class="u-f-ac"
  588. style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;">
  589. <el-col class="u-f-ajc" :span="8">商业险</el-col>
  590. <el-col class="u-f-ajc" :span="8">{{ orderInfo.sydiscountrate }}%</el-col>
  591. <el-col class="u-f-ajc" :span="8">
  592. {{ (riskItem.premium * orderInfo.sydiscountrate / 100).toFixed(2) }}</el-col>
  593. </el-row>
  594. </el-row>
  595. </el-card>
  596. <!-- 正在报价的保险公司 -->
  597. <el-card id="demo5">
  598. <el-row class="header">
  599. <el-col>报价方案</el-col>
  600. </el-row>
  601. <el-divider></el-divider>
  602. <el-row class="u-f-ac bodyTitle" style="margin-bottom: 20px;"><label>订 单 号
  603. &nbsp;&nbsp;&nbsp;&nbsp; {{ orderInfo.orderno }}</label></el-row>
  604. <el-row class="u-f-ac bodyTitle" style="margin-bottom: 20px;"><label
  605. style="margin: 0px 15px;font-weight: bold;">投保险种 &nbsp;&nbsp;
  606. {{ orderInfo.product }}</label></el-row>
  607. <el-row class="u-f-ac bodyTitle" style="margin-bottom: 20px;"><label>报价结果</label></el-row>
  608. <el-row class="body">
  609. <el-row style="border-bottom: 1px solid #DDDDDD;padding-bottom: 10px;">
  610. <el-col class="u-f-ajc" :span="2">报价公司</el-col>
  611. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单商业'">交强险</el-col>
  612. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单商业'">车船税</el-col>
  613. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单交强'">商业险</el-col>
  614. <el-col class="u-f-ajc" :span="5">总价</el-col>
  615. <el-col class="u-f-ajc" :span="2">操作</el-col>
  616. </el-row>
  617. <el-row>
  618. <el-col class="u-f-ajc" :span="2">{{ orderInfo.inscompany }}
  619. </el-col>
  620. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单商业'">
  621. {{ orderInfo.jqpremium }}</el-col>
  622. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单商业'">
  623. {{ orderInfo.taxamount }}</el-col>
  624. <el-col class="u-f-ajc" :span="5" v-if="orderInfo.product != '单交强'">
  625. {{ orderInfo.sypremium }}</el-col>
  626. <el-col class="u-f-ajc" :span="5">{{ orderInfo.sumpremium }}</el-col>
  627. <el-col class="u-f-ajc" :span="2">
  628. <div class="u-f-ajc" style="color: #0086B3;cursor: pointer; " @click="showInsureList = !showInsureList">
  629. {{ showInsureList ? "收起" : "展开" }}
  630. </div>
  631. </el-col>
  632. </el-row>
  633. <template v-if="showInsureList">
  634. <el-row style="margin: 20px 40px;">
  635. <el-row class="u-f-ac"
  636. style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;background: #F3F3F3;">
  637. <el-col :span="8" class="u-f-ajc">险种名称</el-col>
  638. <el-col :span="8" class="u-f-ajc">保额</el-col>
  639. <el-col :span="8" class="u-f-ajc">保费</el-col>
  640. </el-row>
  641. <div v-for="(riskItem) in orderInfo.riskinfo" :key="riskItem.riskCode + '4'"
  642. v-if="riskItem.riskCode == '0507'">
  643. <el-row class="u-f-ac" style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;">
  644. <el-col :span="8" class="u-f-ajc">
  645. <label class="disabledInput">交强险</label>
  646. </el-col>
  647. <el-col :span="8" class="u-f-ajc">
  648. <label class="disabledInput">投保</label>
  649. </el-col>
  650. <el-col :span="8" class="u-f-ajc">
  651. <label class="disabledInput">{{ riskItem.premium }}</label>
  652. </el-col>
  653. </el-row>
  654. <el-row class="u-f-ac" style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;">
  655. <el-col :span="8" class="u-f-ajc">
  656. <label class="disabledInput">车船税</label>
  657. </el-col>
  658. <el-col :span="8" class="u-f-ajc"> </el-col>
  659. <el-col :span="8" class="u-f-ajc">
  660. <label class="disabledInput">{{ orderInfo.taxamount }}</label>
  661. </el-col>
  662. </el-row>
  663. </div>
  664. <el-row class="u-f-ac" style="border-bottom: 1px solid #DDDDDD;height:40px;margin-bottom: 0;"
  665. v-for="(insureItem, insureIndex) in global.insureList" :key="insureIndex"
  666. v-if="insureItem.amount != 0">
  667. <el-col :span="8" class="u-f-ajc">
  668. <label class="disabledInput">{{ insureItem.kindName }}</label>
  669. </el-col>
  670. <el-col :span="8" class="u-f-ajc" v-for="(amtItem, amtIndex) in insureItem.amtList" :key="amtIndex"
  671. v-if="amtItem.value == insureItem.amount">
  672. <label class="disabledInput">{{ amtItem.label }}</label>
  673. </el-col>
  674. <el-col :span="8" class="u-f-ajc">
  675. <label class="disabledInput">{{ insureItem.coveragePremium }}</label>
  676. </el-col>
  677. </el-row>
  678. </el-row>
  679. </template>
  680. </el-row>
  681. <el-row class="u-f-ac bodyTitle"><label>保费合计</label></el-row>
  682. <el-row class="body">
  683. <el-row style="margin-top: 20px;" class="u-f u-f-ac">
  684. <label style="margin: 0px 20px 0 15px;width: 80px;">保费合计</label>
  685. <el-input style="width:300px" disabled size="medium" v-model="orderInfo.sumpremium">
  686. </el-input>
  687. </el-row>
  688. </el-row>
  689. </el-card>
  690. <!-- 特约 -->
  691. <template v-if="(!!(orderInfo.jqappoint)) || (!!(orderInfo.syappoint))">
  692. <el-card id="demo6">
  693. <el-row class="header">
  694. <el-col>特约</el-col>
  695. </el-row>
  696. <el-divider></el-divider>
  697. <template v-if="!!(orderInfo.jqappoint)">
  698. <el-row class="u-f-ac bodyTitle">
  699. <label>交强险特约</label>
  700. </el-row>
  701. <el-row class="body">
  702. <el-row>
  703. <el-col :span="4">
  704. <label style="text-align: center;">交强险特别约定</label>
  705. </el-col>
  706. <el-col :span="20">
  707. <el-input type="textarea" :rows="2" disabled placeholder="请输入内容" v-model="orderInfo.jqappoint">
  708. </el-input>
  709. </el-col>
  710. </el-row>
  711. </el-row>
  712. </template>
  713. <template v-if="!!(orderInfo.syappoint)">
  714. <el-row class="u-f-ac bodyTitle">
  715. <label>商业险特约</label>
  716. </el-row>
  717. <el-row class="body">
  718. <el-row>
  719. <el-col :span="4">
  720. <label style="text-align: center;">商业险特别约定</label>
  721. </el-col>
  722. <el-col :span="20">
  723. <el-input type="textarea" :rows="2" disabled placeholder="请输入内容" v-model="orderInfo.syappoint">
  724. </el-input>
  725. </el-col>
  726. </el-row>
  727. </el-row>
  728. </template>
  729. </el-card>
  730. </template>
  731. <!-- 影像 -->
  732. <el-card id="demo7">
  733. <el-row class="header">
  734. <el-col>影像</el-col>
  735. </el-row>
  736. <el-divider></el-divider>
  737. <div style="margin-bottom: 10px;">
  738. <el-row class="u-f-ac bodyTitle">
  739. <label @click="pic1Control = !pic1Control">行驶证影像</label>
  740. </el-row>
  741. <el-row class="body" v-show="pic1Control">
  742. <el-row style="padding:10px;">
  743. <viewer :images="carImageList">
  744. <img class="imageStyle" v-for="(imageItem, imageIndex) in carImageList" :src="imageItem"
  745. :key="imageIndex" />
  746. </viewer>
  747. </el-row>
  748. </el-row>
  749. </div>
  750. <div style="margin-bottom: 10px;">
  751. <el-row class="u-f-ac bodyTitle">
  752. <label @click="pic2Control = !pic2Control">车主身份证影像</label>
  753. </el-row>
  754. <el-row class="body" v-show="pic2Control">
  755. <el-row style="padding:10px;">
  756. <viewer :images="ownerImageList">
  757. <img class="imageStyle" v-for="(imageItem, imageIndex) in ownerImageList" :src="imageItem"
  758. :key="imageIndex" />
  759. </viewer>
  760. </el-row>
  761. </el-row>
  762. </div>
  763. <div style="margin-bottom: 10px;">
  764. <el-row class="u-f-ac bodyTitle">
  765. <label @click="pic3Control = !pic3Control">投保人身份证影像</label>
  766. </el-row>
  767. <el-row class="body" v-show="pic3Control">
  768. <el-row style="padding:10px;">
  769. <viewer :images="policyImageList">
  770. <img class="imageStyle" v-for="(imageItem, imageIndex) in policyImageList" :src="imageItem"
  771. :key="imageIndex" />
  772. </viewer>
  773. </el-row>
  774. </el-row>
  775. </div>
  776. <div style="margin-bottom: 10px;">
  777. <el-row class="u-f-ac bodyTitle">
  778. <label @click="pic4Control = !pic4Control">被保人身份证影像</label>
  779. </el-row>
  780. <el-row class="body" v-show="pic4Control">
  781. <el-row style="padding:10px;">
  782. <viewer :images="insuredImageList">
  783. <img class="imageStyle" v-for="(imageItem, imageIndex) in insuredImageList" :src="imageItem"
  784. :key="imageIndex" />
  785. </viewer>
  786. </el-row>
  787. </el-row>
  788. </div>
  789. <div style="margin-bottom: 10px;">
  790. <el-row class="u-f-ac bodyTitle">
  791. <label @click="pic5Control = !pic5Control">验车照影像</label>
  792. </el-row>
  793. <el-row class="body" v-show="pic5Control">
  794. <el-row style="padding:10px;">
  795. <viewer :images="carCheckImageList">
  796. <img class="imageStyle" v-for="(imageItem, imageIndex) in carCheckImageList" :src="imageItem"
  797. :key="imageIndex" />
  798. </viewer>
  799. </el-row>
  800. </el-row>
  801. </div>
  802. </el-card>
  803. <el-card id="demo8">
  804. <el-row class="header">
  805. <el-col>投保单号</el-col>
  806. </el-row>
  807. <el-divider></el-divider>
  808. <el-row class="u-f-ac bodyTitle">
  809. <label>投保单号</label>
  810. </el-row>
  811. <el-row class="body">
  812. <el-row>
  813. <el-col :span="2" v-if="!!orderInfo.jqapplyno">
  814. <label>交强险投保单号</label>
  815. </el-col>
  816. <el-col :span="3" v-if="!!orderInfo.jqapplyno">
  817. <el-input disabled size="medium" v-model="orderInfo.jqapplyno"></el-input>
  818. </el-col>
  819. <el-col :span="3" v-if="!!orderInfo.syapplyno">
  820. <label>商业险投保单号</label>
  821. </el-col>
  822. <el-col :span="3" v-if="!!orderInfo.syapplyno">
  823. <el-input disabled size="medium" v-model="orderInfo.syapplyno"></el-input>
  824. </el-col>
  825. </el-row>
  826. </el-row>
  827. <el-row class="u-f-ac bodyTitle">
  828. <label>保单号</label>
  829. </el-row>
  830. <el-row class="body">
  831. <el-row>
  832. <el-col :span="2" v-if="!!orderInfo.jqpolicyno">
  833. <label>交强险保单号</label>
  834. </el-col>
  835. <el-col :span="3" v-if="!!orderInfo.jqpolicyno">
  836. <el-input disabled size="medium" v-model="orderInfo.jqpolicyno"></el-input>
  837. </el-col>
  838. <el-col :span="3" v-if="!!orderInfo.sypolicyno">
  839. <label>商业险保单号</label>
  840. </el-col>
  841. <el-col :span="3" v-if="!!orderInfo.sypolicyno">
  842. <el-input disabled size="medium" v-model="orderInfo.sypolicyno"></el-input>
  843. </el-col>
  844. </el-row>
  845. </el-row>
  846. </el-card>
  847. <el-card id="demo9" v-if="orderInfo.orderstatus == 3">
  848. <el-row class="header">
  849. <el-col>电子保单</el-col>
  850. </el-row>
  851. <el-divider></el-divider>
  852. <el-row class="u-f-ac bodyTitle">
  853. <label>电子保单管理</label>
  854. </el-row>
  855. <el-row class="body" style="padding:10px 20px;">
  856. <el-row v-for="(oldfileItem, oldfileIndex) in oldfileList" :key="oldfileIndex">
  857. <el-col :span="2" style="margin-right: 15px;">
  858. <label>{{ oldfileItem.fileTitle }}:</label>
  859. </el-col>
  860. <el-col :span="6" class="u-f u-f-column">
  861. <el-row>
  862. <div class="u-f u-f-jsb u-f-ac" style="width: 170px;">
  863. <div
  864. style="height: 36px;line-height: 36px; width: 200px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
  865. {{ licenseNo }}</div>
  866. <el-button style="cursor: pointer;" type="text" @click="viewfile(oldfileItem)">下载
  867. </el-button>
  868. </div>
  869. </el-row>
  870. </el-col>
  871. </el-row>
  872. </el-row>
  873. </el-card>
  874. <el-card id="demo10">
  875. <el-row class="header">
  876. <el-col>配送信息</el-col>
  877. </el-row>
  878. <el-divider></el-divider>
  879. <el-row class="u-f-ac bodyTitle">
  880. <label>保单形式</label>
  881. </el-row>
  882. <el-row class="body">
  883. <el-row style="margin-left: 60px;">
  884. <el-radio-group disabled v-model="orderInfo.policytype">
  885. <el-radio label="纸质">纸质</el-radio>
  886. <el-radio label="电子">电子</el-radio>
  887. </el-radio-group>
  888. </el-row>
  889. </el-row>
  890. <template v-if="orderInfo.policytype == '纸质'">
  891. <el-row class="u-f-ac bodyTitle">
  892. <label>配送方式</label>
  893. </el-row>
  894. <el-row class="body">
  895. <el-row style="margin-left: 60px;">
  896. <el-radio-group disabled v-model="orderInfo.mailtype">
  897. <el-radio label="邮寄">邮寄</el-radio>
  898. <!-- <el-radio label="网点自取">网点自取</el-radio> -->
  899. </el-radio-group>
  900. </el-row>
  901. </el-row>
  902. </template>
  903. <template
  904. v-if="(orderInfo.policytype == '电子') || (orderInfo.policytype == '纸质' && orderInfo.mailtype == '邮寄')">
  905. <el-row class="u-f-ac bodyTitle">
  906. <label>配送信息</label>
  907. </el-row>
  908. <el-row class="body">
  909. <template v-if="orderInfo.policytype == '电子'">
  910. <el-row>
  911. <el-col :span="2">
  912. <label>邮箱地址</label>
  913. </el-col>
  914. <el-col :span="3">
  915. <el-input disabled size="medium" v-model="orderInfo.mailaddress"></el-input>
  916. </el-col>
  917. </el-row>
  918. </template>
  919. <template v-if="orderInfo.policytype == '纸质' && orderInfo.mailtype == '邮寄'">
  920. <el-row>
  921. <el-col :span="2">
  922. <label>收件人</label>
  923. </el-col>
  924. <el-col :span="3">
  925. <el-input disabled size="medium" v-model="orderInfo.receiptname"></el-input>
  926. </el-col>
  927. <el-col :span="3">
  928. <label>手机号</label>
  929. </el-col>
  930. <el-col :span="3">
  931. <el-input disabled size="medium" v-model="orderInfo.receiptphone">
  932. </el-input>
  933. </el-col>
  934. <el-col :span="3">
  935. <label>配送地址</label>
  936. </el-col>
  937. <el-col :span="3">
  938. <el-input disabled size="medium" v-model="orderInfo.mailaddress"></el-input>
  939. </el-col>
  940. </el-row>
  941. <el-row class="u-f-ac bodyTitle" style="margin-bottom: 0;">
  942. <label>快递公司录入</label>
  943. </el-row>
  944. <el-row class="body">
  945. <el-row>
  946. <el-col :span="2">
  947. <label>快递号</label>
  948. </el-col>
  949. <el-col :span="3">
  950. <el-input disabled size="medium" v-model="orderInfo.courierno">
  951. </el-input>
  952. </el-col>
  953. <el-col :span="2">
  954. <label>快递公司</label>
  955. </el-col>
  956. <el-col :span="3">
  957. <el-input disabled size="medium" v-model="orderInfo.couriercompany">
  958. </el-input>
  959. </el-col>
  960. </el-row>
  961. </el-row>
  962. </template>
  963. </el-row>
  964. </template>
  965. </el-card>
  966. </el-row>
  967. </el-container>
  968. <span slot="footer" class="dialog-footer"
  969. style="position: fixed;bottom: 0px;left:0px;background: #fff;width: 100%;padding: 10px 0px;box-shadow: 0 -1px 0 0 #ddd;">
  970. <el-button size="small" @click="dialogVisible = false">关 闭</el-button>
  971. </span>
  972. </el-dialog>
  973. </div>
  974. </template>
  975. <script>
  976. import {
  977. pathToBase64,
  978. base64ToPath
  979. } from '@/common/image-tools-base64.js';
  980. import rawCitiesData from '../../assets/js/citydata';
  981. import Cookies from "js-cookie";
  982. import QRCode from "qrcodejs2";
  983. export default {
  984. data() {
  985. return {
  986. value2: "",
  987. optionsStatus:[],
  988. dialogVisible: false,
  989. codedialogVisible: false,
  990. loading: false,
  991. pageNum: 1,//页数
  992. pageSize: 20,//条数
  993. totalSize: null,//总数
  994. peopleid: "",//工号
  995. pageResult: [],//列表
  996. pageRequest: { //查询的默认条件
  997. orderNo: "",
  998. frameNo: "",
  999. insuredName: "",
  1000. licenseNo: "",
  1001. orderStatus: "",
  1002. userId: "",
  1003. endDate: "",
  1004. startDate: "",
  1005. pageNum: 1,
  1006. pageSize: 20,
  1007. deptId: "",
  1008. },
  1009. orderInfo: {
  1010. //选中的订单
  1011. ownerinfo: {},
  1012. carinfo: {},
  1013. applyinfo: {},
  1014. insureinfo: {},
  1015. kindinfo: [],
  1016. riskinfo: [],
  1017. ownerinfo: {},
  1018. },
  1019. carImageList: [], //车辆影像
  1020. ownerImageList: [], //车主影像
  1021. policyImageList: [], //投保人影像
  1022. insuredImageList: [], //被保人影像
  1023. carCheckImageList: [], //验车照影像
  1024. // 影像控制
  1025. pic1Control: false,
  1026. pic2Control: false,
  1027. pic3Control: false,
  1028. pic4Control: false,
  1029. pic5Control: false,
  1030. showInsureList: false, //是否展示具体险种信息
  1031. oldfileList: [],//电子保单数据
  1032. inscompany: "", //保险公司名称
  1033. licenseNo: "", //车牌号
  1034. applyName: "", //车主名字
  1035. orderstatus: "", //订单状态
  1036. sumpremium: "", //保费合计
  1037. jqpremium: "",//交强
  1038. sypremium: "",//商业
  1039. taxamount: "",//车船税
  1040. jqstartdate: "",//交强时间
  1041. systartdate: "",//商业时间
  1042. mobile: "",//投保人手机号
  1043. qrcode: null,
  1044. paycodeimg: "",
  1045. userid: "",
  1046. downloadstatus: 0,
  1047. expands: [],
  1048. institutionOptions: [],
  1049. width: document.documentElement.clientWidth,
  1050. }
  1051. },
  1052. created() {
  1053. this.$api.insCompany.dicType('insOrderStatus').then(res=>{
  1054. this.optionsStatus=res.data.ddList
  1055. })
  1056. this.peopleid = Cookies.get('user');
  1057. this.pageRequest.deptId = JSON.parse(localStorage.getItem('user_data')).deptId;
  1058. this.$api.dept.findDeptTree().then((res) => {
  1059. this.institutionOptions = res.data;
  1060. });
  1061. if (this.peopleid != 'admin') {
  1062. this.pageRequest.userId = this.peopleid;
  1063. this.findPage();
  1064. } else {
  1065. this.pageRequest.userId = 'admin';
  1066. }
  1067. },
  1068. mounted() {
  1069. window.addEventListener('resize', this.getDimensions);
  1070. },
  1071. unmounted() {
  1072. window.removeEventListener('resize', this.getDimensions);
  1073. },
  1074. computed: {
  1075. allinsOption() {
  1076. let cloneData = JSON.parse(JSON.stringify(this.allIns)); // 对源数据深度克隆
  1077. return cloneData.filter((father) => {
  1078. // 循环所有项,并添加children属性
  1079. let branchArr = cloneData.filter(
  1080. (child) => father.id == child.parentId
  1081. ); // 返回每一项的子级数组
  1082. branchArr.length > 0 ? (father.children = branchArr) : ""; //给父级添加一个children属性,并赋值
  1083. return father.parentId == 0; //返回第一层
  1084. });
  1085. },
  1086. registerDateFormat() {
  1087. let date = new Date(this.orderInfo.carinfo.registerDate);
  1088. let year = date.getFullYear();
  1089. let month = date.getMonth() + 1;
  1090. let day = date.getDate();
  1091. return year + "-" + month + "-" + day;
  1092. },
  1093. issueDateFormat() {
  1094. let date = new Date(this.orderInfo.carinfo.issueDate);
  1095. let year = date.getFullYear();
  1096. let month = date.getMonth() + 1;
  1097. let day = date.getDate();
  1098. return year + "-" + month + "-" + day;
  1099. },
  1100. },
  1101. methods: {
  1102. getRowClass(scope, rowIndex) {
  1103. if (scope.row.insAreaCompanyList.length == 0) { //判断当前行是否有子数据或者根据实际情况设置
  1104. return 'row-expand-cover'
  1105. }
  1106. },
  1107. //联级选择器触发事件
  1108. handleChange(val) {
  1109. if (val.length !== 0) {
  1110. this.pageRequest.deptId = val.at(-1);
  1111. }
  1112. else {
  1113. this.pageRequest.deptId = ''
  1114. }
  1115. },
  1116. getDimensions() {
  1117. this.width = document.documentElement.clientWidth - 350 + 'px';
  1118. },
  1119. //表格行点击下拉事件
  1120. handleRowClick(row) {
  1121. if (row.insAreaCompanyList.length > 0) {
  1122. row.expanded = !row.expanded;
  1123. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  1124. }
  1125. },
  1126. //订单修改
  1127. CloseEdit(index, row) {
  1128. this.$api.letter.getByOrderNo({ orderNo: row.orderno }).then((res) => {
  1129. this.$router.push({ path: '/letter/letter', query: { data: res.data } })
  1130. })
  1131. },
  1132. //关闭报价
  1133. CloseQoute(index, row) {
  1134. this.$confirm("是否确认关闭" + row.orderno + "订单?")
  1135. .then((_) => {
  1136. this.$api.task.closeOrderno({ quoteno: row.orderno }).then((res) => {
  1137. if (res.code == 200) {
  1138. this.findPage();
  1139. this.$message.success("已成功关闭订单");
  1140. }
  1141. });
  1142. })
  1143. .catch((_) => {
  1144. this.$message.info("已取消关闭订单");
  1145. });
  1146. },
  1147. //二维码生成插件
  1148. creatQrCode(text) {
  1149. if (this.qrcode) {
  1150. this.qrcode.clear();
  1151. this.qrcode.makeCode(text);
  1152. } else {
  1153. this.qrcode = new QRCode("qrcode", {
  1154. text: text,
  1155. width: 180,
  1156. height: 180,
  1157. colorDark: "#000000",
  1158. colorLight: "#ffffff",
  1159. correctLevel: QRCode.CorrectLevel.H,
  1160. });
  1161. }
  1162. },
  1163. //y永城查询缴费状态
  1164. refreshStatus(item){
  1165. this.$api.letter.orderStatusyongcheng( item.id ).then(res => {
  1166. if(res.code==200){
  1167. this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
  1168. this.loading = true;
  1169. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1170. if (res.code == "200") {
  1171. this.loading = false;
  1172. this.pageResult = res.data.content;
  1173. this.pageNum = res.data.pageNum;
  1174. this.totalSize = res.data.totalSize;
  1175. this.pageResult.forEach(val => {
  1176. this.$set(val, "expanded", false);
  1177. });
  1178. } else {
  1179. this.loading = false;
  1180. }
  1181. })
  1182. }
  1183. })
  1184. },
  1185. //查询缴费状态
  1186. querystatus(item) {
  1187. if (item.inscompany == '紫金财险') {
  1188. this.$api.letter.getOrderDetail({ companyId: item.id }).then(res => {
  1189. if (res.code == '200') {
  1190. this.$message({ message: res.msg, type: "success" })
  1191. this.loading = true;
  1192. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1193. if (res.code == "200") {
  1194. this.loading = false;
  1195. this.pageResult = res.data.content;
  1196. this.pageNum = res.data.pageNum;
  1197. this.totalSize = res.data.totalSize;
  1198. this.pageResult.forEach(val => {
  1199. this.$set(val, "expanded", false);
  1200. });
  1201. } else {
  1202. this.loading = false;
  1203. }
  1204. })
  1205. } else {
  1206. this.$message({ message: res.msg, type: "error" })
  1207. }
  1208. })
  1209. } else {
  1210. this.$api.letter.pychonverifyPayment({ subOrderNo: item.id }).then(res => {
  1211. if (res.code == '200') {
  1212. this.$message({ message: "订单支付成功,正在更改状态", type: "success" })
  1213. this.loading = true;
  1214. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1215. if (res.code == "200") {
  1216. this.loading = false;
  1217. this.pageResult = res.data.content;
  1218. this.pageNum = res.data.pageNum;
  1219. this.totalSize = res.data.totalSize;
  1220. this.pageResult.forEach(val => {
  1221. this.$set(val, "expanded", false);
  1222. });
  1223. } else {
  1224. this.loading = false;
  1225. }
  1226. })
  1227. } else {
  1228. this.$message({ message: res.msg, type: "error" })
  1229. }
  1230. })
  1231. }
  1232. },
  1233. cancelorder(item) {
  1234. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  1235. })
  1236. },
  1237. //二维码
  1238. carcode(row, item) {
  1239. let params = {
  1240. companyId: item.id,
  1241. }
  1242. this.$api.letter.getByCompanyId(params).then(res => {
  1243. if (res.code == '200') {
  1244. this.inscompany = res.data.inscompany;//保险公司
  1245. this.sumpremium = res.data.sumpremium;//总价
  1246. this.licenseNo = res.data.carinfo.licenseNo;//车牌号
  1247. this.applyName = res.data.insuredname;//车主
  1248. this.jqpremium = res.data.jqpremium;//交强
  1249. this.sypremium = res.data.sypremium;//商业
  1250. this.taxamount = res.data.taxamount;//车船税
  1251. this.jqstartdate = res.data.jqstartdate;//交强起保日期
  1252. this.systartdate = res.data.systartdate;//商业起保日期
  1253. this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1254. switch (item.inscompany) {
  1255. case "永安财险":
  1256. let url = this.global.h5BaseUrl + '/#/pages/carInsure1/yonganCode?companyId=' + item.id + '&mobile=' + this.mobile;
  1257. this.$nextTick(() => {
  1258. this.creatQrCode(url);
  1259. });
  1260. break;
  1261. case "人保财险":
  1262. case "中煤财险":
  1263. case "永诚财险":
  1264. case "中国人寿":
  1265. case "众安财险":
  1266. case "国任财险":
  1267. case "紫金财险":
  1268. this.$nextTick(() => {
  1269. this.creatQrCode(res.data.paymentLink);
  1270. });
  1271. break;
  1272. case "恒邦财险":
  1273. this.paycodeimg = res.data.paymentLink;
  1274. break;
  1275. case "安盛天平":
  1276. let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
  1277. let animgBase64 = `data:image/png;base64,${anresult}`;
  1278. base64ToPath(animgBase64)
  1279. .then(path => {
  1280. this.paycodeimg = path;
  1281. })
  1282. break;
  1283. default:
  1284. this.$message({ message: "识别不到保险公司,请检查", type: "warning" })
  1285. }
  1286. this.codedialogVisible = true;
  1287. } else {
  1288. this.$message({ message: res.msg, type: "warning" })
  1289. }
  1290. })
  1291. },
  1292. //应用详情
  1293. OrderDetails(dy, item) {
  1294. this.carImageList = [];
  1295. this.ownerImageList = []; //车主影像
  1296. this.policyImageList = []; //投保人影像
  1297. this.insuredImageList = []; //被保人影像
  1298. this.carCheckImageList = []; //验车照影像
  1299. // 影像控制
  1300. this.pic1Control = false;
  1301. this.pic2Control = false;
  1302. this.pic3Control = false;
  1303. this.pic4Control = false;
  1304. this.pic5Control = false;
  1305. for (let i = 0; i < this.global.insureList.length; i++) {
  1306. this.global.insureList[i].coveragePremium = "";
  1307. this.global.insureList[i].amount = 0;
  1308. }
  1309. let params = {
  1310. companyId: item.id,
  1311. }
  1312. this.$api.letter.getByCompanyId(params).then((res) => {
  1313. if (res.code == 200) {
  1314. this.licenseNo = res.data.licenseno;//车牌号
  1315. this.inscompany = res.data.inscompany;//保险公司
  1316. Object.assign(this.orderInfo, res.data);
  1317. for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
  1318. if (this.orderInfo.riskinfo[i].riskCode == "0510") {
  1319. for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
  1320. for (let m = 0; m < this.global.insureList.length; m++) {
  1321. if (
  1322. this.orderInfo.kindinfo[j].kindCode ==
  1323. this.global.insureList[m].kindCode
  1324. ) {
  1325. this.global.insureList[m].coveragePremium =
  1326. this.orderInfo.kindinfo[j].coveragePremium;
  1327. if (this.orderInfo.kindinfo[j].kindCode == "B") {
  1328. this.global.insureList[9].amtList[0].value =
  1329. this.orderInfo.kindinfo[j].amount;
  1330. }
  1331. if (this.orderInfo.kindinfo[j].kindCode == "A") {
  1332. this.global.insureList[m].amount = "1";
  1333. } else if (this.global.insureList[m].kindCode == "D4") {
  1334. this.global.insureList[m].amount =
  1335. this.orderInfo.kindinfo[j].unitAmount;
  1336. } else if (
  1337. this.global.insureList[m].isMainRisk ||
  1338. this.global.insureList[m].kindCode == "BD" ||
  1339. this.global.insureList[m].kindCode == "L"
  1340. ) {
  1341. this.global.insureList[m].amount =
  1342. this.orderInfo.kindinfo[j].amount;
  1343. } else {
  1344. this.global.insureList[m].amount =
  1345. this.orderInfo.kindinfo[j].deductibleRate;
  1346. }
  1347. }
  1348. }
  1349. }
  1350. }
  1351. }
  1352. // 获取影像
  1353. this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
  1354. Object.keys(resImage.data).forEach((keys) => {
  1355. if (resImage.data[keys]) {
  1356. resImage.data[keys].url = process.env.BASE_URL + resImage.data[keys].url;
  1357. switch (keys) {
  1358. case 'C01':
  1359. case 'D01':
  1360. this.carImageList.push(resImage.data[keys].url)
  1361. break;
  1362. case 'C02':
  1363. case 'D02':
  1364. this.ownerImageList.push(resImage.data[keys].url)
  1365. break;
  1366. case 'C03':
  1367. case 'D03':
  1368. this.policyImageList.push(resImage.data[keys].url)
  1369. break;
  1370. case 'C04':
  1371. case 'D04':
  1372. this.insuredImageList.push(resImage.data[keys].url)
  1373. break;
  1374. default:
  1375. break;
  1376. }
  1377. }
  1378. })
  1379. })
  1380. this.pic1Control = false;
  1381. this.pic2Control = false;
  1382. this.pic3Control = false;
  1383. this.pic4Control = false;
  1384. this.pic5Control = false;
  1385. this.oldfileList = [];
  1386. switch (res.data.inscompany) {
  1387. case "永安财险":
  1388. if (this.orderInfo.jqpolicyno) {
  1389. this.$api.letter.getPolicyPrint({
  1390. companyId: item.id,
  1391. policytype: "jq"
  1392. }).then((res) => {//交强保单
  1393. if (res.data) {
  1394. let result = res.data.replace(/[\r\n]/g, "");
  1395. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1396. base64ToPath(pdfBase64).then((path) => {
  1397. this.oldfileList.push({
  1398. fileTitle: "交强电子保单",
  1399. filename: this.orderInfo.jqpolicyno,
  1400. fileurl: path,
  1401. });
  1402. });
  1403. }
  1404. });
  1405. this.$api.letter.getPolicyPrint2({
  1406. companyId: item.id,
  1407. policytype: "jq"
  1408. }).then((res) => {//交强保单
  1409. if (res.data) {
  1410. let result = res.data.replace(/[\r\n]/g, "");
  1411. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1412. base64ToPath(pdfBase64).then((path) => {
  1413. this.oldfileList.push({
  1414. fileTitle: "交强电子标志",
  1415. filename: this.orderInfo.jqpolicyno,
  1416. fileurl: path,
  1417. });
  1418. });
  1419. }
  1420. });
  1421. }
  1422. if (this.orderInfo.sypolicyno) {
  1423. this.$api.letter.getPolicyPrint({
  1424. companyId: item.id,
  1425. policytype: "sy"
  1426. }).then((res) => {//商业保单
  1427. if (res.data) {
  1428. let result = res.data.replace(/[\r\n]/g, "");
  1429. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1430. base64ToPath(pdfBase64).then((path) => {
  1431. this.oldfileList.push({
  1432. fileTitle: "商业电子保单",
  1433. filename: this.orderInfo.sypolicyno,
  1434. fileurl: path,
  1435. });
  1436. });
  1437. }
  1438. });
  1439. }
  1440. break;
  1441. case "中煤财险":
  1442. if (this.orderInfo.jqpolicyno) {
  1443. this.$api.letter.ZhongmeigetPolicyPrint({
  1444. companyId: item.id,
  1445. riskCode: "0507",
  1446. type: '2',//2:保单
  1447. }).then(res => {
  1448. if (res.data) {
  1449. this.oldfileList.push({
  1450. fileTitle: "交强电子保单",
  1451. filename: this.orderInfo.jqpolicyno,
  1452. fileurl: res.data[0],
  1453. });
  1454. }
  1455. })
  1456. this.$api.letter.ZhongmeigetPolicyPrint({
  1457. companyId: item.id,
  1458. riskCode: "0507",
  1459. type: '1',// 1:标志
  1460. }).then(res => {
  1461. if (res.data) {
  1462. this.oldfileList.push({
  1463. fileTitle: "交强电子标志",
  1464. filename: this.orderInfo.jqpolicyno,
  1465. fileurl: res.data[0],
  1466. });
  1467. }
  1468. })
  1469. }
  1470. if (this.orderInfo.sypolicyno) {
  1471. this.$api.letter.ZhongmeigetPolicyPrint({
  1472. companyId: item.id,
  1473. riskCode: "0510",
  1474. type: '2',//2:保单
  1475. }).then(res => {
  1476. if (res.data) {
  1477. this.oldfileList.push({
  1478. fileTitle: "商业电子保单",
  1479. filename: this.orderInfo.sypolicyno,
  1480. fileurl: res.data[0],
  1481. });
  1482. }
  1483. })
  1484. }
  1485. break;
  1486. case "永诚财险":
  1487. if (this.orderInfo.jqpolicyno) {
  1488. this.$api.letter.yongchenggetPolicyPrint({
  1489. companyId: item.id,
  1490. riskCode: "0507",
  1491. type: '2',//2:保单
  1492. }).then(res => {
  1493. if (res.data) {
  1494. this.oldfileList.push({
  1495. fileTitle: "交强电子保单",
  1496. filename: this.orderInfo.jqpolicyno,
  1497. fileurl: res.data.jqUrl,
  1498. });
  1499. if (res.data.jqFlagUrl) {
  1500. this.oldfileList.push({
  1501. fileTitle: "交强电子标志",
  1502. filename: this.orderInfo.jqpolicyno,
  1503. fileurl: res.data.jqFlagUrl,
  1504. });
  1505. }
  1506. }
  1507. })
  1508. }
  1509. if (this.orderInfo.sypolicyno) {
  1510. this.$api.letter.yongchenggetPolicyPrint({
  1511. companyId: item.id,
  1512. riskCode: "0510",
  1513. type: '2',//2:保单
  1514. }).then(res => {
  1515. if (res.data) {
  1516. this.oldfileList.push({
  1517. fileTitle: "商业电子保单",
  1518. filename: this.orderInfo.sypolicyno,
  1519. fileurl: res.data.syUrl,
  1520. });
  1521. }
  1522. })
  1523. }
  1524. break;
  1525. case "国任财险":
  1526. if (this.orderInfo.jqpolicyno) {
  1527. this.$api.letter.guoRengetPolicyPrint({
  1528. companyId: item.id,
  1529. riskCode: "0507",
  1530. type: '2',//2:保单
  1531. }).then(res => {
  1532. if (res.data) {
  1533. this.oldfileList.push({
  1534. fileTitle: "交强电子保单",
  1535. filename: this.orderInfo.jqpolicyno,
  1536. fileurl: res.data.jqUrl,
  1537. });
  1538. if (res.data.jqFlagUrl) {
  1539. this.oldfileList.push({
  1540. fileTitle: "交强电子标志",
  1541. filename: this.orderInfo.jqpolicyno,
  1542. fileurl: res.data.jqFlagUrl,
  1543. });
  1544. }
  1545. }
  1546. })
  1547. }
  1548. if (this.orderInfo.sypolicyno) {
  1549. this.$api.letter.guoRengetPolicyPrint({
  1550. companyId: item.id,
  1551. riskCode: "0510",
  1552. type: '2',//2:保单
  1553. }).then(res => {
  1554. if (res.data) {
  1555. this.oldfileList.push({
  1556. fileTitle: "商业电子保单",
  1557. filename: this.orderInfo.sypolicyno,
  1558. fileurl: res.data.syUrl,
  1559. });
  1560. }
  1561. })
  1562. }
  1563. break;
  1564. case "紫金财险":
  1565. if (this.orderInfo.jqpolicyno) {
  1566. this.$api.letter.zijingetPolicyPrint({
  1567. companyId: item.id,
  1568. riskCode: "0507",
  1569. type: '2',//2:保单
  1570. }).then(res => {
  1571. if (res.data) {
  1572. this.oldfileList.push({
  1573. fileTitle: "交强电子保单",
  1574. filename: this.orderInfo.jqpolicyno,
  1575. fileurl: res.data,
  1576. });
  1577. }
  1578. })
  1579. this.$api.letter.zijingetPolicyPrint({
  1580. companyId: item.id,
  1581. riskCode: "0507",
  1582. type: '1',//1:标志
  1583. }).then(res => {
  1584. if (res.data) {
  1585. this.oldfileList.push({
  1586. fileTitle: "交强电子标志",
  1587. filename: this.orderInfo.jqpolicyno,
  1588. fileurl: res.data,
  1589. });
  1590. }
  1591. })
  1592. }
  1593. if (this.orderInfo.sypolicyno) {
  1594. this.$api.letter.zijingetPolicyPrint({
  1595. companyId: item.id,
  1596. riskCode: "0510",
  1597. type: '2',//2:保单
  1598. }).then(res => {
  1599. if (res.data) {
  1600. this.oldfileList.push({
  1601. fileTitle: "商业电子保单",
  1602. filename: this.orderInfo.sypolicyno,
  1603. fileurl: res.data,
  1604. });
  1605. }
  1606. })
  1607. }
  1608. if (this.orderInfo.crossInsurance.length > 0) {
  1609. console.log(1)
  1610. this.orderInfo.crossInsurance.map(ele => {
  1611. this.$api.letter.zijingetPolicyPrint({
  1612. companyId: item.id,
  1613. policyNumber: ele.policyNumber,
  1614. riskCode: "0513",
  1615. type: '2',//2:保单
  1616. }).then(res => {
  1617. if (res.data) {
  1618. this.oldfileList.push({
  1619. fileTitle: "驾意险保单",
  1620. filename: ele.policyNumber,
  1621. fileurl: res.data,
  1622. });
  1623. }
  1624. })
  1625. })
  1626. }
  1627. break;
  1628. case "恒邦财险":
  1629. case "安盛天平":
  1630. case "中国人寿":
  1631. case "众安财险":
  1632. if (this.orderInfo.jqpolicyno) {
  1633. this.$api.letter.pythongetPolicyPrint({
  1634. subOrderNo: item.id,
  1635. }).then(res => {
  1636. if (res.data) {
  1637. this.oldfileList.push({
  1638. fileTitle: "交强电子保单",
  1639. filename: this.orderInfo.jqpolicyno,
  1640. fileurl: res.data.jqxPolicyUrl,
  1641. });
  1642. this.oldfileList.push({
  1643. fileTitle: "交强电子标志",
  1644. filename: this.orderInfo.jqpolicyno,
  1645. fileurl: res.data.jqxFlagUrl,
  1646. });
  1647. }
  1648. if (res.data.syxPolicyUrl) {
  1649. this.oldfileList.push({
  1650. fileTitle: "商业电子保单",
  1651. filename: this.orderInfo.sypolicyno,
  1652. fileurl: res.data.syxPolicyUrl,
  1653. });
  1654. }
  1655. if (res.data.jyxPolicyUrl) {
  1656. this.oldfileList.push({
  1657. fileTitle: "驾意险保单",
  1658. filename: 'xxxxxxxxxxxxxxxxxxxxxx',
  1659. fileurl: res.data.jyxPolicyUrl,
  1660. });
  1661. }
  1662. })
  1663. }
  1664. break;
  1665. default:
  1666. }
  1667. this.showInsureList = false;
  1668. this.dialogVisible = true; //在页面上显示订单
  1669. } else {
  1670. this.$message.error("订单获取失败");
  1671. }
  1672. });
  1673. },
  1674. beforeAvatarUpload(file) {
  1675. const isJPG = file.type === "image/jpeg" || file.type === "image/png";
  1676. // const isLt2M = file.size / 1024 / 1024 < 0.2;
  1677. if (!isJPG) {
  1678. this.$message({
  1679. message: "上传图片只能是 JPG 或者 PNG 格式!",
  1680. type: "error",
  1681. duration: 2000,
  1682. });
  1683. }
  1684. return isJPG;
  1685. },
  1686. handleClose(done) {
  1687. this.$confirm("确认关闭?")
  1688. .then((_) => {
  1689. done();
  1690. })
  1691. .catch((_) => { });
  1692. },
  1693. httpRequest(options) {
  1694. let file = options.file;
  1695. let filename = options.filename;
  1696. let reader = new FileReader();
  1697. if (file) {
  1698. reader.readAsDataURL(file);
  1699. }
  1700. reader.onload = () => {
  1701. let base64Str = reader.result;
  1702. this[options.filename].push(base64Str);
  1703. };
  1704. },
  1705. // 设置每页条数
  1706. applyhandleSizeChange(val) {
  1707. this.pageSize = val;
  1708. this.pageNum = 1;
  1709. this.pageRequest.pageNum = 1;
  1710. this.pageRequest.pageSize = val;
  1711. this.findPage();
  1712. },
  1713. // 当前页
  1714. applyhandleCurrentChange(val) {
  1715. this.pageNum = val;
  1716. this.pageRequest.pageNum = val;
  1717. this.findPage();
  1718. },
  1719. saveAs(blob, filename) {
  1720. var link = document.createElement('a')
  1721. link.href = window.URL.createObjectURL(blob)
  1722. link.target = '_ blank';
  1723. link.download = filename
  1724. link.click()
  1725. },
  1726. //预览文件
  1727. viewfile(index) {
  1728. let name = index.fileurl.lastIndexOf("\/")
  1729. fetch(index.fileurl)
  1730. .then(response => response.blob())
  1731. .then(blob => {
  1732. this.saveAs(blob, index.fileurl.substring(name + 1, index.fileurl.length))
  1733. })
  1734. .catch(error => {
  1735. });
  1736. // const a = document.createElement('a')
  1737. // a.style.display = 'none'
  1738. // a.href = index.fileurl
  1739. // a.target = '_ blank';
  1740. // a.download = this.licenseNo+ '.pdf'; // 下载文件的名字
  1741. // document.body.appendChild(a)
  1742. // a.click()
  1743. },
  1744. //锚链接
  1745. jump(obj) {
  1746. var s = document.getElementById(obj);
  1747. var parent = s.parentNode;
  1748. for (let i = 0; i < parent.childNodes.length; i++) {
  1749. if (parent.childNodes[i].tagName == "DIV") {
  1750. if (parent.childNodes[i].childNodes[0].classList.contains("active")) {
  1751. parent.childNodes[i].childNodes[0].classList.remove("active");
  1752. }
  1753. }
  1754. }
  1755. s.childNodes[0].classList.add("active");
  1756. },
  1757. //数据
  1758. findPage() {
  1759. this.loading = true;
  1760. this.$api.letter.queryOrders(this.pageRequest).then((res) => {
  1761. if (res.code == "200") {
  1762. this.loading = false;
  1763. this.pageResult = res.data.content;
  1764. this.pageNum = res.data.pageNum;
  1765. this.totalSize = res.data.totalSize;
  1766. this.pageResult.forEach(val => {
  1767. this.$set(val, "expanded", false);
  1768. });
  1769. } else {
  1770. this.loading = false;
  1771. }
  1772. })
  1773. },
  1774. //查询
  1775. onSubmit() {
  1776. this.pageRequest.pageNum = 1;
  1777. this.pageRequest.pageSize = 20;
  1778. this.findPage();
  1779. },
  1780. //时间js
  1781. monthChange(e) {
  1782. console.log(e)
  1783. if (e === null) {
  1784. this.pageRequest.startDate = e;
  1785. this.pageRequest.endDate = e;
  1786. } else {
  1787. this.pageRequest.startDate = e[0];
  1788. this.pageRequest.endDate = e[1];
  1789. }
  1790. },
  1791. downloadFile(url, fileName, type) {
  1792. const xhr = new XMLHttpRequest();
  1793. xhr.open('GET', url, true);
  1794. xhr.responseType = 'blob'; // 获取文件blob数据
  1795. xhr.onload = function () {
  1796. if (xhr.status !== 200) {
  1797. this.$notify.error({
  1798. title: '错误',
  1799. message: '下载出现错误'
  1800. });
  1801. return;
  1802. }
  1803. const newUrl = window.URL.createObjectURL(xhr.response); // 生成一个可用的临时url
  1804. const a = document.createElement('a'); // 生成a标签调用点击事件
  1805. a.setAttribute('href', newUrl);
  1806. a.setAttribute('target', '_blank');
  1807. a.setAttribute('download', fileName); // 自定义文件名
  1808. document.body.appendChild(a);
  1809. a.click();
  1810. document.body.removeChild(a);
  1811. };
  1812. xhr.send();
  1813. },
  1814. }
  1815. }
  1816. </script>
  1817. <style scoped lang="scss">
  1818. /deep/ {
  1819. .el-table .row-expand-cover .cell .el-table__expand-icon {
  1820. display: none;
  1821. }
  1822. .saomazhifucodeClass .el-dialog__body,
  1823. .saomazhifucodeClass .el-dialog__header {
  1824. padding: 0;
  1825. }
  1826. .el-input.is-disabled .el-input__inner {
  1827. color: #333;
  1828. }
  1829. }
  1830. .ORcodebody {
  1831. width: 100%;
  1832. height: auto;
  1833. box-sizing: border-box;
  1834. }
  1835. .code_title {
  1836. width: 100%;
  1837. height: 50px;
  1838. background-color: #fdcb08;
  1839. justify-content: center;
  1840. }
  1841. .code_title>span {
  1842. font-size: 22px;
  1843. color: #000;
  1844. font-weight: bold;
  1845. }
  1846. .ORcode {
  1847. width: 100%;
  1848. background: #fff;
  1849. height: auto;
  1850. display: flex;
  1851. justify-content: center;
  1852. align-items: center;
  1853. padding: 30px;
  1854. box-sizing: border-box;
  1855. border-bottom: 6px dotted #fdcb08;
  1856. }
  1857. .ORcode>div {
  1858. width: 180px;
  1859. height: 180px;
  1860. border: 1px solid #000;
  1861. border-radius: 5px;
  1862. }
  1863. .ORtitle {
  1864. background: #fff;
  1865. width: 100%;
  1866. padding: 20px;
  1867. box-sizing: border-box;
  1868. border-bottom: 1px solid #f2f2f2;
  1869. }
  1870. .ORtitle>div {
  1871. width: 100%;
  1872. margin: 10px 0;
  1873. font-weight: bold;
  1874. font-size: 14px;
  1875. display: flex;
  1876. align-items: center;
  1877. }
  1878. .ORtitle>div>span:nth-child(1) {
  1879. color: #979797;
  1880. text-align: end;
  1881. width: 150px;
  1882. }
  1883. .ORtitle>div>span:nth-child(2) {
  1884. color: #000;
  1885. margin-left: 10px;
  1886. }
  1887. </style>
  1888. <style scoped>
  1889. #qqq {
  1890. background-color: #111;
  1891. width: 300px;
  1892. height: 300px;
  1893. margin: 0 auto;
  1894. /*水平居中*/
  1895. position: relative;
  1896. }
  1897. #qrCode {
  1898. display: inline-block;
  1899. margin: 0 auto;
  1900. /*水平居中*/
  1901. position: relative;
  1902. top: 15%;
  1903. }
  1904. #qrCode img {
  1905. width: 200px;
  1906. height: 200px;
  1907. background-color: #fff;
  1908. padding: 6px;
  1909. }
  1910. .leftContainer {
  1911. width: 80px;
  1912. position: fixed;
  1913. top: 79px;
  1914. left: 30px;
  1915. }
  1916. .leftContainer .el-col {
  1917. width: 80px;
  1918. height: 80px;
  1919. border-bottom: 1px solid #4d5c6f;
  1920. background: #526176;
  1921. cursor: pointer;
  1922. color: #a6aeb9;
  1923. border-radius: 0;
  1924. }
  1925. .leftContainer .el-col a {
  1926. display: block;
  1927. color: #a6aeb9;
  1928. text-decoration: none;
  1929. }
  1930. .leftContainer .el-col a:hover {
  1931. color: #fff;
  1932. }
  1933. .leftContainer .el-col a.active {
  1934. color: #fff;
  1935. }
  1936. .leftContainer .el-col i {
  1937. font-size: 30px;
  1938. margin: 15px 0px 5px;
  1939. }
  1940. .rightContainer {
  1941. width: calc(100vw - 160px);
  1942. margin-left: 100px;
  1943. }
  1944. .rightContainer .header .el-col {
  1945. font-size: 18px;
  1946. font-weight: bold;
  1947. }
  1948. .rightContainer .bodyTitle {
  1949. height: 40px;
  1950. background: #f3f3f3;
  1951. border: 1px solid #dddddd;
  1952. }
  1953. .rightContainer .bodyTitle>label {
  1954. margin: 0px 15px;
  1955. font-weight: bold;
  1956. }
  1957. .rightContainer #demo2 .body,
  1958. .rightContainer #demo6 .body {
  1959. border: 1px solid #ddd;
  1960. padding: 15px;
  1961. border-top: none;
  1962. }
  1963. .rightContainer .el-card {
  1964. margin-bottom: 15px;
  1965. }
  1966. .body .el-row .el-col label {
  1967. text-align: right;
  1968. width: 80px;
  1969. font-size: 14px;
  1970. width: 100%;
  1971. line-height: 36px;
  1972. display: inline-block;
  1973. box-sizing: border-box;
  1974. }
  1975. .disabledInput {
  1976. width: 80% !important;
  1977. background-color: #f5f7fa;
  1978. text-align: center !important;
  1979. max-width: 200px;
  1980. border: 1px solid #e4e7ed;
  1981. color: #c0c4cc;
  1982. cursor: not-allowed;
  1983. border-radius: 4px;
  1984. box-sizing: border-box;
  1985. padding: 0px 10px;
  1986. height: 36px;
  1987. margin: 20px 10%;
  1988. }
  1989. /* 上传图片样式Start */
  1990. .avatar-uploader .el-upload {
  1991. border: 1px dashed #d9d9d9;
  1992. border-radius: 6px;
  1993. cursor: pointer;
  1994. position: relative;
  1995. overflow: hidden;
  1996. }
  1997. .avatar-uploader .el-upload:hover {
  1998. border-color: #409eff;
  1999. }
  2000. .avatar-uploader-icon {
  2001. font-size: 28px;
  2002. color: #8c939d;
  2003. width: 100px;
  2004. height: 100px;
  2005. line-height: 100px;
  2006. text-align: center;
  2007. border: 1px dashed #d9d9d9;
  2008. }
  2009. .avatar {
  2010. border: 1px dashed #d9d9d9;
  2011. padding: 5px;
  2012. border-radius: 6px;
  2013. width: 100px;
  2014. height: 100px;
  2015. display: block;
  2016. }
  2017. .imageStyle {
  2018. display: inline-block;
  2019. width: 100px;
  2020. height: 100px;
  2021. box-shadow: #ddd 0px 0px 5px;
  2022. margin-right: 20px;
  2023. }
  2024. /* 上传图片样式End */
  2025. .dis {
  2026. display: flex;
  2027. }
  2028. .align {
  2029. align-items: center;
  2030. }
  2031. .jus {
  2032. justify-content: space-between;
  2033. }
  2034. .display {
  2035. display: flex;
  2036. justify-content: center;
  2037. align-items: center;
  2038. padding: 10px;
  2039. box-sizing: border-box;
  2040. }
  2041. .block {
  2042. margin-top: 10px;
  2043. }
  2044. .page {
  2045. padding: 14px;
  2046. box-sizing: border-box;
  2047. }
  2048. .el-select--medium {
  2049. vertical-align: bottom !important;
  2050. }
  2051. .widths {
  2052. width: 220px;
  2053. }
  2054. .demo-table-expand {
  2055. width: 100%;
  2056. height: auto;
  2057. padding: 10px 50px;
  2058. font-size: 14px;
  2059. }
  2060. .demo-table-expand-time {
  2061. width: 600px;
  2062. }
  2063. .demo-table-expand-time>div {
  2064. margin: 0 10px;
  2065. }
  2066. </style>