@dongkboy 3 роки тому
батько
коміт
7057cd2ffc

+ 1 - 3
build/build.js

@@ -2,7 +2,6 @@
 require('./check-versions')()
 
 process.env.NODE_ENV = 'production'
-
 const ora = require('ora')
 const rm = require('rimraf')
 const path = require('path')
@@ -10,10 +9,8 @@ const chalk = require('chalk')
 const webpack = require('webpack')
 const config = require('../config')
 const webpackConfig = require('./webpack.prod.conf')
-
 const spinner = ora('building for production...')
 spinner.start()
-
 rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
   if (err) throw err
   webpack(webpackConfig, (err, stats) => {
@@ -39,3 +36,4 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
     ))
   })
 })
+

+ 0 - 1
src/main.js

@@ -10,7 +10,6 @@ import '@/utils/directives.js'
 import VueSplit from 'vue-split-panel'
 import VueDirectiveWindow from 'vue-directive-window';
 import {dateFormat} from '@/utils/dataformat.js'
-
 import 'element-ui/lib/theme-chalk/index.css'
 // import 'element-ui/lib/'
 import 'font-awesome/css/font-awesome.min.css'

+ 0 - 2
src/views/Esm/Esmcompany.vue

@@ -383,8 +383,6 @@ export default {
         });
       }
     },
-
-
     submitForm() {
       if (this.operType == 'ADD1') {
         if (this.dataForm.id.length != 6) {

+ 1 - 1
src/views/Intro/Intro.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="page-container" style="width:100%;margin-top:15px;">
-   一个伟大的项目
+    一个伟大的项目
   </div>
 </template>
 <script>

+ 8 - 3
src/views/Letter/Letter.vue

@@ -36,7 +36,7 @@
         </el-row>
       </el-form>
     </div>
-    <div class="Enclosure flex f-c back ">
+    <div class="Enclosure flex f-c back">
       <div class="home flex j-s a-c ">
         <div class="flex j-s a-c color" id="Car">
           <img src="../../../src/icon/car.png" alt="" class="icon-img">
@@ -2139,7 +2139,6 @@ export default {
     this.defaultpolicyHolderInfo = JSON.parse(JSON.stringify(this.policyHolderInfo))
     this.defaultinsuredPersonInfo = JSON.parse(JSON.stringify(this.insuredPersonInfo))
     this.defaultinsureList = JSON.parse(JSON.stringify(this.insureList))
-    this.defaulttotalCompanyList = JSON.parse(JSON.stringify(this.totalCompanyList))
     //--归属信息获取--
     var userId = Cookies.get("user");
     if (userId == "admin") {
@@ -2367,12 +2366,18 @@ export default {
       if (e) {
         this.jqstartDate = this.transformTime1();
         this.jqendDate = this.oneYearPast(this.jqstartDate);
+      }else{
+        this.jqstartDate = "";
+        this.jqendDate = "";
       }
     },
     sycheckedChange(e) {
       if (e) {
         this.systartDate = this.transformTime1();
         this.syendDate = this.oneYearPast(this.jqstartDate);
+      }else{
+        this.systartDate = "";
+        this.syendDate = "";
       }
     },
     //报价
@@ -4219,7 +4224,6 @@ export default {
       this.policyHolderInfo = JSON.parse(JSON.stringify(this.defaultpolicyHolderInfo))
       this.insuredPersonInfo = JSON.parse(JSON.stringify(this.defaultinsuredPersonInfo))
       this.insureList = JSON.parse(JSON.stringify(this.defaultinsureList))
-      this.totalCompanyList = JSON.parse(JSON.stringify(this.defaulttotalCompanyList))
       this.sychecked = false;
       this.yonganchecked = false;
       this.zhongmeichecked = false;
@@ -4234,6 +4238,7 @@ export default {
       this.jqendDate = this.oneYearPast(this.jqstartDate);
       this.systartDate = this.transformTime1();
       this.syendDate = this.oneYearPast(this.jqstartDate);
+      this.commpanyList();//获取保险公司
     },
     toChinesNum(num) {
       let changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']

+ 14 - 7
src/views/Letter/Orderlist.vue

@@ -36,9 +36,8 @@
                 </el-col>
                 <el-col :xs="24" :sm="24" :md="12" :lg="7" :xl="6" :span="6">
                     <el-form-item label="日期">
-                        <el-date-picker v-model="pageRequest.recordingTime" type="daterange" @change="monthChange"
-                            start-placeholder="开始日期" end-placeholder="结束日期" class="widths" value-format="yyyy-MM-dd"
-                            style="width: 220px;">
+                        <el-date-picker v-model="value2" type="daterange" @change="monthChange" start-placeholder="开始日期"
+                            end-placeholder="结束日期" class="widths" value-format="yyyy-MM-dd" style="width: 220px;">
                         </el-date-picker>
 
                     </el-form-item>
@@ -119,7 +118,8 @@
                     <div class="ORcode ">
                         <div style="padding:5px;position: relative;">
                             <div v-if="['永安财险', '人保财险', '永诚财险'].includes(inscompany)" id="qrcode" ref="qrcode"></div>
-                            <img v-if="['中煤财险', '恒邦财险','安盛财险'].includes(inscompany)" :src="paycodeimg" alt="" style="width:100%">
+                            <img v-if="['中煤财险', '恒邦财险', '安盛财险'].includes(inscompany)" :src="paycodeimg" alt=""
+                                style="width:100%">
                         </div>
                     </div>
                 </div>
@@ -222,7 +222,7 @@
                             <span class="u-f-ajc">投保单号</span>
                         </a>
                     </el-col>
-                    <el-col id="level9" v-if="orderInfo.orderstatus==3">
+                    <el-col id="level9" v-if="orderInfo.orderstatus == 3">
                         <a href="#demo9" @click="jump('level9')">
                             <i class="el-icon-video-camera-solid u-f-sa"></i>
                             <span class="u-f-ajc">电子保单</span>
@@ -1529,8 +1529,15 @@ export default {
         },
         //时间js
         monthChange(e) {
-            this.pageRequest.startDate = e[0];
-            this.pageRequest.endDate = e[1];
+            console.log(e)
+            if (e === null) {
+                this.pageRequest.startDate = e;
+                this.pageRequest.endDate = e;
+            } else {
+                this.pageRequest.startDate = e[0];
+                this.pageRequest.endDate = e[1];
+            }
+
         },
         downloadFile(url, fileName, type) {
             const xhr = new XMLHttpRequest();