Orderlist.vue 74 KB

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