陈婷婷
2 天以前 30f6dbc08c3c9f713421034130119a0dd363f37f
运单
1个文件已修改
33 ■■■■■ 已修改文件
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
@@ -2107,19 +2107,26 @@
                if (response.code == 1) {
                    // 运输线路去重
                    this.transportList = [...new Set(response.data.map(item => item.运输路线名称))]
                    // this.$nextTick(()=>{
                    // 运输类型去重
                    this.transTypeList = [...new Set(response.data.map(item => item.运输类型))]
                    // })
                    this.getTransCost('line')
                    this.getTransCost('type')
                    this.getTransCost('car')
                    // 车型去重
                    const carTypeMap = new Map()
                    response.data.forEach(item => {
                        const key = item.运输方式名称
                        if (!carTypeMap.has(key)) {
                            carTypeMap.set(key, { value: item.运输方式名称, id: item.运输方式 })
                        }
                    })
                    this.HCarTypeNameList = Array.from(carTypeMap.values())
                    // // 运输类型去重
                    // this.transTypeList = [...new Set(response.data.map(item => item.运输类型))]
                    // // 车型去重
                    // const carTypeMap = new Map()
                    // response.data.forEach(item => {
                    //     const key = item.运输方式名称
                    //     if (!carTypeMap.has(key)) {
                    //         carTypeMap.set(key, { value: item.运输方式名称, id: item.运输方式 })
                    //     }
                    // })
                    // this.HCarTypeNameList = Array.from(carTypeMap.values())
                } else {
                    this.$modal.msgError("错误:" + response.data.code + response.data.Message);
                }
@@ -2165,7 +2172,7 @@
            this.getTransCost('type')
        },
        transHCarChange(val) {
           let item = this.HCarTypeNameList.find(item => item.id === val);
            let item = this.HCarTypeNameList.find(item => item.id === val);
            this.form.HCarTypeName = item.value
            this.form.HCarTypeID = val
            this.getTransCost('car')
@@ -2224,9 +2231,7 @@
                        })
                        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].目的地名称