Browse Source

Merge remote-tracking branch 'origin/qirui-v2' into qirui-v2

dongfeng 10 months ago
parent
commit
438e37f117

+ 1 - 0
src/locales/lang/en-US/baseInfo.js

@@ -20,6 +20,7 @@ export default {
     'base.info.performance.module': 'Performance Module',
     'base.info.performance.module': 'Performance Module',
     'base.info.demand.department': 'Demand Department',
     'base.info.demand.department': 'Demand Department',
     'base.info.requirement.owner': 'Requirement Owner',
     'base.info.requirement.owner': 'Requirement Owner',
+    'base.info.please-choose-owner': 'Please Choose The Requirement Owner',
     'base.info.development.scope': 'Development Scope',
     'base.info.development.scope': 'Development Scope',
     'base.info.serial-number': 'ID',
     'base.info.serial-number': 'ID',
 
 

+ 1 - 0
src/locales/lang/zh-CN/baseInfo.js

@@ -20,6 +20,7 @@ export default {
     'base.info.performance.module': '性能模块',
     'base.info.performance.module': '性能模块',
     'base.info.demand.department': '需求部门',
     'base.info.demand.department': '需求部门',
     'base.info.requirement.owner': '需求负责人',
     'base.info.requirement.owner': '需求负责人',
+    'base.info.please-choose-owner': '请选择需求负责人',
     'base.info.development.scope': '开发范围',
     'base.info.development.scope': '开发范围',
     'base.info.serial-number': '序号',
     'base.info.serial-number': '序号',
 
 

+ 5 - 1
src/styles/index.scss

@@ -74,7 +74,7 @@ a,
 a:focus,
 a:focus,
 a:hover {
 a:hover {
   cursor: pointer;
   cursor: pointer;
-  color: inherit;
+  // color: inherit;
   text-decoration: none;
   text-decoration: none;
 }
 }
 
 
@@ -506,6 +506,10 @@ aside {
   padding: 10px !important;
   padding: 10px !important;
 }
 }
 
 
+.p12 {
+  padding: 12px !important;  
+}
+
 .p15 {
 .p15 {
   padding: 15px !important;
   padding: 15px !important;
 }
 }

+ 1 - 1
src/views/fullVehicle/baseInfo/baseInfo/index.vue

@@ -120,7 +120,7 @@
                 class="selectWidth"
                 class="selectWidth"
                 v-model="owner"
                 v-model="owner"
                 :filter-option="filterOption"
                 :filter-option="filterOption"
-                :placeholder="$t('base.info.requirement.owner')"
+                :placeholder="$t('base.info.please-choose-owner')"
                 showSearch
                 showSearch
                 @change="changeOwner"
                 @change="changeOwner"
               >
               >

+ 67 - 52
src/views/fullVehicle/verify/dvpVerify.vue

@@ -1,9 +1,9 @@
 <template>
 <template>
-  <div class="background">
+  <div class="p12">
     <a-row :gutter="24" class="topCard">
     <a-row :gutter="24" class="topCard">
       <!-- DVP计划-检索条件 -->
       <!-- DVP计划-检索条件 -->
-      <a-card>
-        <a-form>
+      <a-card class="topCardMargin p12">
+        <a-form layout="vertical">
           <!-- 试验车用途 -->
           <!-- 试验车用途 -->
           <a-col :lg="8" :md="12" :sm="24" :xl="6" :xs="24">
           <a-col :lg="8" :md="12" :sm="24" :xl="6" :xs="24">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-use-description')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-use-description')">
@@ -31,7 +31,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeDeliveryTime'
                   @change='changeDeliveryTime'
                   v-model="queryParam.actualDeliveryTime"
                   v-model="queryParam.actualDeliveryTime"
               />
               />
@@ -42,7 +43,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-start-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-start-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-start-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-start-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeStartTime'
                   @change='changeStartTime'
                   v-model="queryParam.actualStartTime"
                   v-model="queryParam.actualStartTime"
               />
               />
@@ -53,7 +55,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-end-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-end-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-end-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-end-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeEndTime'
                   @change='changeEndTime'
                   v-model="queryParam.actualEndTime"
                   v-model="queryParam.actualEndTime"
               />
               />
@@ -101,22 +104,26 @@
               />
               />
             </a-form-item>
             </a-form-item>
           </a-col>
           </a-col>
+          <a-col :lg="24" :md="24" :sm="24" :xl="24" :xs="24">
+            <a-form-item class='tr' :label="'\xa0'">
+              <!-- 重置 -->
+              <a-button @click='reset' type="primary" class="ml10">
+                {{ $t('global-btn.reset') }}
+              </a-button>
+              <!-- 查询 -->
+              <a-button @click='search' type="primary" class="ml10">
+                {{ $t('global-btn.search') }}
+              </a-button>
+            </a-form-item>
+          </a-col>
         </a-form>
         </a-form>
       </a-card>
       </a-card>
     </a-row>
     </a-row>
     <a-row class="mt10">
     <a-row class="mt10">
-      <a-card :style="{ height: tableHeight }">
+      <a-card class="p12 cardOverFlow" :style="{ height: tableHeight }">
         <template slot="extra">
         <template slot="extra">
-          <!-- 重置 -->
-          <a-button @click='reset' type="primary" class="mr10">
-            {{ $t('global-btn.reset') }}
-          </a-button>
-          <!-- 查询 -->
-          <a-button @click='search' type="primary" class="mr10">
-            {{ $t('global-btn.search') }}
-          </a-button>
           <!-- 导出 -->
           <!-- 导出 -->
-          <a-button @click='exportFile'>
+          <a-button class="mr-12" @click='exportFile'>
             {{ $t('global-btn.export') }}
             {{ $t('global-btn.export') }}
           </a-button>
           </a-button>
         </template>
         </template>
@@ -127,9 +134,8 @@
             :rowKey="(record, index) => { return index; }"
             :rowKey="(record, index) => { return index; }"
             :loading="tableLoading"
             :loading="tableLoading"
             size="small"
             size="small"
-            :style="{ height:tableHeightValue }"
             @change="handleOuterTableChange"
             @change="handleOuterTableChange"
-            :scroll="{ x: 1000, y: 500 }">
+            :scroll="{ x: 2100, y: tableHeightValue }">
           <!--操作-->
           <!--操作-->
           <template slot='operation' slot-scope='name, row'>
           <template slot='operation' slot-scope='name, row'>
             <a href='javascript: void(0);' @click='editInit(row)'>
             <a href='javascript: void(0);' @click='editInit(row)'>
@@ -178,7 +184,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.vehicle-actual-delivery-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeDeliveryTime'
                   @change='changeDeliveryTime'
                   v-model="editParam.actualDeliveryTime"
                   v-model="editParam.actualDeliveryTime"
               />
               />
@@ -189,7 +196,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-start-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-start-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-start-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-start-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeStartTime'
                   @change='changeStartTime'
                   v-model="editParam.actualStartTime"
                   v-model="editParam.actualStartTime"
               />
               />
@@ -200,7 +208,8 @@
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-end-time')">
             <a-form-item :label="$t('dvp.full.vehicle.dvp.actual-end-time')">
               <a-date-picker
               <a-date-picker
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-end-time')"
                   :placeholder="$t('global-btn.please-select') + $t('dvp.full.vehicle.dvp.actual-end-time')"
-                  style="width: 100%"
+                  class="width100"
+                  valueFormat="YYYY/MM/DD"
                   @change='changeEndTime'
                   @change='changeEndTime'
                   v-model="editParam.actualEndTime"
                   v-model="editParam.actualEndTime"
               />
               />
@@ -254,7 +263,6 @@
     </a-modal>
     </a-modal>
   </div>
   </div>
 </template>
 </template>
-
 <script>
 <script>
 export default {
 export default {
   name: "dvpVerify",
   name: "dvpVerify",
@@ -264,9 +272,9 @@ export default {
       queryParam: {
       queryParam: {
         vehicleUse: undefined,          //试验车用途
         vehicleUse: undefined,          //试验车用途
         vehicleStatusDesc: undefined,   //车辆状态描述
         vehicleStatusDesc: undefined,   //车辆状态描述
-        actualDeliveryTime: null,  //样车实际提供时间
-        actualStartTime: null,     //实际开始时间
-        actualEndTime: null,       //实际结束时间
+        actualDeliveryTime: undefined,  //样车实际提供时间
+        actualStartTime: undefined,     //实际开始时间
+        actualEndTime: undefined,       //实际结束时间
         taskStatus: undefined,          //任务状态
         taskStatus: undefined,          //任务状态
         vehicleVin: undefined,          //车辆VIN
         vehicleVin: undefined,          //车辆VIN
         testReportCode: undefined,      //试验报告编号
         testReportCode: undefined,      //试验报告编号
@@ -446,24 +454,24 @@ export default {
         performanceModule: undefined,   //整车性能模块
         performanceModule: undefined,   //整车性能模块
         vehicleUse: undefined,          //试验车用途
         vehicleUse: undefined,          //试验车用途
         vehicleStatusDesc: undefined,   //车辆状态描述
         vehicleStatusDesc: undefined,   //车辆状态描述
-        actualDeliveryTime: null,  //样车实际提供时间
-        actualStartTime: null,     //实际开始时间
-        actualEndTime: null,       //实际结束时间
+        actualDeliveryTime: undefined,  //样车实际提供时间
+        actualStartTime: undefined,     //实际开始时间
+        actualEndTime: undefined,       //实际结束时间
         vehicleVin: undefined,          //车辆VIN
         vehicleVin: undefined,          //车辆VIN
         testReportCode: undefined,      //试验报告编号
         testReportCode: undefined,      //试验报告编号
       },
       },
       /** 试验报告附件list */
       /** 试验报告附件list */
       fileList: [],
       fileList: [],
       /** 高度计算 */
       /** 高度计算 */
-      tableHeight: window.innerHeight - 360 + 'px',
-      tableHeightValue: window.innerHeight - 360,
+      tableHeight: window.innerHeight - 421 + 'px',
+      tableHeightValue: window.innerHeight - 421,
     }
     }
   },
   },
   created() {
   created() {
     this.list()
     this.list()
     window.onresize = () => {
     window.onresize = () => {
-      this.tableHeight = window.innerHeight - 360 + 'px';
-      this.tableHeightValue = window.innerHeight - 360;
+      this.tableHeight = window.innerHeight - 421 + 'px';
+      this.tableHeightValue = window.innerHeight - 421;
     };
     };
   },
   },
   methods: {
   methods: {
@@ -522,14 +530,14 @@ export default {
     },
     },
     /** 重置 */
     /** 重置 */
     reset() {
     reset() {
-      this.queryParam.vehicleUse = undefined
-      this.queryParam.vehicleStatusDesc = undefined
-      this.queryParam.actualDeliveryTime = null
-      this.queryParam.actualStartTime = null
-      this.queryParam.actualEndTime = null
-      this.queryParam.taskStatus = undefined
-      this.queryParam.vehicleVin = undefined
-      this.queryParam.testReportCode = undefined
+      this.queryParam.vehicleUse = undefined;
+      this.queryParam.vehicleStatusDesc = undefined;
+      this.queryParam.actualDeliveryTime = undefined;
+      this.queryParam.actualStartTime = undefined;
+      this.queryParam.actualEndTime = undefined;
+      this.queryParam.taskStatus = undefined;
+      this.queryParam.vehicleVin = undefined;
+      this.queryParam.testReportCode = undefined;
     },
     },
     /** 编辑模态框及模态框数据获取 */
     /** 编辑模态框及模态框数据获取 */
     editInit(data) {
     editInit(data) {
@@ -555,36 +563,36 @@ export default {
         if (!res.flag) {
         if (!res.flag) {
           this.$notification.error({message: res.message});
           this.$notification.error({message: res.message});
         }
         }
-        this.offModal()
+        this.offModal();
       });
       });
     },
     },
     /** 编辑 取消 */
     /** 编辑 取消 */
     offModal() {
     offModal() {
-      this.editParam = []
-      this.fileList = []
+      this.editParam = [];
+      this.fileList = [];
     },
     },
     /** 样车实际提供时间-选择变化 */
     /** 样车实际提供时间-选择变化 */
     changeDeliveryTime(data, dateString) {
     changeDeliveryTime(data, dateString) {
       if (this.isEdit) {
       if (this.isEdit) {
-        this.editParam.actualDeliveryTime = dateString
+        this.editParam.actualDeliveryTime = dateString;
       } else {
       } else {
-        this.queryParam.actualDeliveryTime = dateString
+        this.queryParam.actualDeliveryTime = dateString;
       }
       }
     },
     },
     /** 实际开始时间-选择变化 */
     /** 实际开始时间-选择变化 */
     changeStartTime(data, dateString) {
     changeStartTime(data, dateString) {
       if (this.isEdit){
       if (this.isEdit){
-        this.editParam.actualStartTime = dateString
+        this.editParam.actualStartTime = dateString;
       }else {
       }else {
-        this.queryParam.actualStartTime = dateString
+        this.queryParam.actualStartTime = dateString;
       }
       }
     },
     },
     /** 实际结束时间-选择变化 */
     /** 实际结束时间-选择变化 */
     changeEndTime(data, dateString) {
     changeEndTime(data, dateString) {
       if (this.isEdit) {
       if (this.isEdit) {
-        this.editParam.actualEndTime = dateString
+        this.editParam.actualEndTime = dateString;
       }else {
       }else {
-        this.queryParam.actualEndTime = dateString
+        this.queryParam.actualEndTime = dateString;
       }
       }
     },
     },
     /** 任务状态 下拉变化 */
     /** 任务状态 下拉变化 */
@@ -602,10 +610,17 @@ export default {
 </script>
 </script>
 
 
 <style lang="less" scoped>
 <style lang="less" scoped>
-.background {
-  padding: 12px;
+.topCardMargin {
+  margin-top: -12px;
 }
 }
-.topCard{
+.topCard {
   padding: 0 12px;
   padding: 0 12px;
 }
 }
+.cardOverFlow {
+  overflow-x: hidden;
+  overflow-y: auto;
+}
+.mr-12 {
+  margin-right: -12px;
+}
 </style>
 </style>