Przeglądaj źródła

大件调度杂费明细客户名称

caojunjie 2 lat temu
rodzic
commit
ab91e44606

+ 19 - 9
src/views/SpecialTrade/dispatchingCars/detailPage.vue

@@ -504,7 +504,8 @@
                     <span v-else>{{ row.corpName }}</span>
                 </template>
                 <template slot-scope="{ row }" slot="fleetId">
-                    <el-select v-if="row.$cellEdit" v-model="row.fleetId" size="small" placeholder="请选择">
+                    <el-select v-if="row.$cellEdit" v-model="row.fleetId" size="small" placeholder="请选择"
+                               @blur="fleetblur(row)">
                         <el-option
                             v-for="item in fleetdata"
                             :key="item.id"
@@ -1858,14 +1859,15 @@ export default {
         // 打印
         openReport(){
             if (this.id) {
-                this.$confirm("是否打印数据?", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
-                    type: "warning"
-                }).then(() => {
-                    this.reportName = "陆运-大件运输"
-                    this.switchDialog = true
-                })
+                // this.$confirm("是否打印数据?", {
+                //     confirmButtonText: "确定",
+                //     cancelButtonText: "取消",
+                //     type: "warning"
+                // }).then(() => {
+                //
+                // })
+                this.reportName = "陆运-大件运输"
+                this.switchDialog = true
             }
         },
         // 打印报表关闭
@@ -2393,6 +2395,14 @@ export default {
                 this.$message.warning('请选择一条车辆信息')
             }
         },
+        // 车队的监听
+        fleetblur(row){
+            for(let item of this.fleetdata) {
+                if (item.id == row.fleetId) {
+                    row.fleetName = item.cname
+                }
+            }
+        },
         //选择费用
         selectValue(value, row) {
             this.$set(row, 'feeName', value.cname)