瀏覽代碼

陆运车辆归属增加颜色

liyuan 2 天之前
父節點
當前提交
48aa7f1ef8

+ 4 - 0
src/views/basicData/landTransportation/vehicleInformation/index.vue

@@ -34,6 +34,9 @@
         <template slot="driverId" slot-scope="{row,disabled}">
           <span>{{ row.driverName }}</span>
         </template>
+          <template slot="owned" slot-scope="{row}">
+              <span :style="{ color: row.owned === 1 ? '#409EFF' : '' }">{{ row.owned === 1 ? '自有' : '非自有' }}</span>
+          </template>
       </avue-crud>
       <el-dialog title="导入" append-to-body :visible.sync="excelBox" width="555px">
         <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
@@ -394,6 +397,7 @@ export default {
             span: 8,
             search: true,
             searchRange: true,
+            slot: true,
             searchSpan: 8,
             dicData:[
                 {

+ 26 - 0
src/views/landTransportation/bulkReportAnalysis/index.vue

@@ -45,6 +45,9 @@
           <span class="el-button--text" style="cursor: pointer"
                 @click.stop="celJump(row,index)">{{ row.dispatchNumber }}</span>
         </template>
+          <template slot="vehicleOwned" slot-scope="{row}">
+              <span :style="{ color: row.vehicleOwned === 1 ? '#83ea5a' : '' }">{{ row.vehicleOwned === 1 ? '自有' : '非自有' }}</span>
+          </template>
         <template slot-scope="{row,index}" slot="menu">
           <span v-if="row.extraAmountD>0">
             <el-button
@@ -614,6 +617,29 @@ export default {
           search: true,
           overHidden: true,
         },{
+            label: this.$t("land118n.vehicleOwned"),
+            width: 90,
+            prop: 'vehicleOwned',
+            overHidden: true,
+            index: 11,
+            search: true,
+            slot: true,
+            type: "select",
+            dicData:[
+                {
+                    label: '自有',
+                    value: 1
+                },
+                {
+                    label: '非自有',
+                    value: 0
+                }
+            ],
+            props: {
+                label: "label",
+                value: "value"
+            }
+        },{
           // label: '客户名称',
           label: this.$t("land118n.corpName"),
           prop: 'corpShortName',

+ 4 - 3
src/views/landTransportation/reportAnalysis/index.vue

@@ -8,9 +8,9 @@
         <template slot="plateNo" slot-scope="{row}">
           <span class="el-button--text" style="cursor: pointer" @click="openTrack(row)">{{ row.plateNo }}</span>
         </template>
-        <template slot="vehicleOwned" slot-scope="{row}">
-          <span style="cursor: pointer">{{ Number(row.vehicleOwned) === 0 ? '非自有' : '自有' }}</span>
-        </template>
+          <template slot="vehicleOwned" slot-scope="{row}">
+              <span :style="{ color: row.vehicleOwned === 1 ? '#409EFF' : '' }">{{ row.vehicleOwned === 1 ? '自有' : '非自有' }}</span>
+          </template>
         <template slot="menuLeft">
           <el-button type="info" size="small" @click="outExport" icon="el-icon-download">导出</el-button>
         </template>
@@ -377,6 +377,7 @@ export default {
             overHidden: true,
             index: 11,
             search: true,
+            slot: true,
             type: "select",
             dicData:[
                 {