陈婷婷
2 天以前 832951c657fc9e39dcc73cdeab94ac033a9acb28
运单车型选择修改
1个文件已修改
15 ■■■■■ 已修改文件
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
@@ -987,7 +987,7 @@
                    }
                    this.formShow = true
                    this.formLoading = false
                    // 加载运输线路、运输类型、车型列表
                    if (this.form.HContractTransportInterID) {
                        this.loadTransportData()
@@ -1180,7 +1180,7 @@
                        this.form.HCarrierName = response.data[0].供应商名称
                        this.form.HCurID = response.data[0].币别
                        this.form.HCurName = response.data[0].货币名称
                        this.form.HExRate = response.data[0].汇率 == null ? 0 : response.data[0].汇率-0
                        this.form.HExRate = response.data[0].汇率 == null ? 0 : response.data[0].汇率 - 0
                        this.form.HSSID = response.data[0].结算方式
                        this.form.HSSName = response.data[0].结算方式名称
                        this.transportList = [...new Set(response.data.map(item => item.运输路线名称))]
@@ -2107,10 +2107,10 @@
                if (response.code == 1) {
                    // 运输线路去重
                    this.transportList = [...new Set(response.data.map(item => item.运输路线名称))]
                    // 运输类型去重
                    this.transTypeList = [...new Set(response.data.map(item => item.运输类型))]
                    // 车型去重
                    const carTypeMap = new Map()
                    response.data.forEach(item => {
@@ -2164,7 +2164,10 @@
            this.HCarTypeNameList = []
            this.getTransCost('type')
        },
        transHCarChange() {
        transHCarChange(val) {
           let item = this.HCarTypeNameList.find(item => item.id === val);
            this.form.HCarTypeName = item.value
            this.form.HCarTypeID = val
            this.getTransCost('car')
        },
        checkAndCallGetTransCost() {
@@ -2221,7 +2224,9 @@
                        })
                        this.HCarTypeNameList = Array.from(carTypeMap.values())
                    } else if (val == 'car') {
                        console.log(response.data[0])
                        this.form.HContractTransportEntryID = response.data[0].HEntryID
                        this.form.HBeginAddrName = response.data[0].始发地名称
                        this.form.HBeginAddr = response.data[0].始发地
                        this.form.HEndAddrName = response.data[0].目的地名称