dytyqx
3 天以前 481fd648572b4e1c08380947aad0f1aa866bc5d5
Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI
4个文件已修改
1个文件已删除
72 ■■■■ 已修改文件
.env.development 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
RuoYi-Vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/logistics/transportGPS/WL_YayBill.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -5,18 +5,18 @@
ENV = 'development'
# 智云迈思L-MOM管理系统/开发环境
VUE_APP_BASE_API = http://localhost:81/API/
# VUE_APP_BASE_API = http://localhost:81/API/
# VUE_APP_BASE_API = 'http://47.96.97.237/API/'
# VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/'
# VUE_APP_BASE_API = 'http://localhost:8082/LuBaoAPI/'
VUE_APP_BASE_API = 'http://localhost:8082/API/'
# VUE_APP_BASE_API = 'http://localhost:8082/API/'
#VUE_APP_BASE_API = 'http://localhost:8082/LuBaoAPI/'
#锦隆
# VUE_APP_BASE_API_INNER = http://192.168.1.11/API/
# VUE_APP_BASE_API = http://61.174.29.234:8880/API/
# 宁波 四维尔
# VUE_APP_BASE_API_INNER = http://192.168.0.236:9010/API/
# VUE_APP_BASE_API = http://220.189.218.155:9010/API/
VUE_APP_BASE_API_INNER = http://192.168.0.236:9010/API/
VUE_APP_BASE_API = http://220.189.218.155:9010/API/
#杜贺
# VUE_APP_BASE_API = http://localhost:8082/API/
# 内网地址测试
RuoYi-Vue
File was deleted
package.json
@@ -64,7 +64,7 @@
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-service": "^4.5.15",
    "@vue/cli-service": "^4.5.19",
    "ant-design-vue": "^1.7.8",
    "babel-loader": "^8.1.0",
    "babel-plugin-dynamic-import-node": "2.3.3",
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
@@ -988,6 +988,11 @@
                    this.formShow = true
                    this.formLoading = false
                    // 加载运输线路、运输类型、车型列表
                    if (this.form.HContractTransportInterID) {
                        this.loadTransportData()
                    }
                    // 加载已上传的文件列表
                    this.getFileList();
@@ -1171,12 +1176,11 @@
                            this.form.HMoney = 0
                            return
                        }
                        this.form.HContractTransportEntryID = response.data[0].HEntryID
                        this.form.HCarrierID = response.data[0].HSupID
                        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].汇率
                        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.运输路线名称))]
@@ -1497,6 +1501,7 @@
                    var sSubStr = JSON.stringify(this.editData);
                    // var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"] + ';' + this.OperationType;
                    var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"]
                    console.log(sMainSub)
                    axios({
                        method: 'post',
                        url: this.baseURL + "/WLYayBillController/SaveBill",
@@ -2091,6 +2096,44 @@
            });
        },
        // 加载运输相关数据
        loadTransportData() {
            axios.get(this.$baseUrl + '/WLYayBillController/initDataForSelectContractTransportBill', {
                params: {
                    "hmainid": this.form.HContractTransportInterID,
                },
            }).then(res => {
                let response = res.data
                if (response.code == 1) {
                    // 运输线路去重
                    this.transportList = [...new Set(response.data.map(item => item.运输路线名称))]
                    // this.$nextTick(()=>{
                    // })
                    this.getTransCost('line')
                    this.getTransCost('type')
                    this.getTransCost('car')
                    // // 运输类型去重
                    // 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);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        // 获取已上传文件列表
        getFileList() {
        },
@@ -2128,7 +2171,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() {
@@ -2185,11 +2231,12 @@
                        })
                        this.HCarTypeNameList = Array.from(carTypeMap.values())
                    } else if (val == 'car') {
                        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].目的地名称
                        this.form.HEndAddr = response.data[0].目的地
                        this.form.HCarTypeMaxVolume = response.data[0].车辆最大容积
                        this.form.HCarTypeMaxVolume = response.data[0].车型最大容积
                        this.form.HDistance = response.data[0].距离
                        this.form.HTransportTimes = response.data[0].运输时效
                        this.form.HTransportTyep = response.data[0].运输类型
src/views/logistics/transportGPS/WL_YayBill.vue
@@ -788,9 +788,9 @@
                this.sWhere += " and 物流状态 like '%" + this.queryParams.HBillStatus + "%'";
            }
            // if (this.queryParams.HOrgID) {
            //     this.sWhere += " and HOrgID = '" + this.queryParams.HOrgID + "'";
            // }
             if (this.queryParams.HOrgID) {
                 this.sWhere += " and HOrgID = '" + this.queryParams.HOrgID + "'";
             }
            console.log("swhere", this.sWhere)
            this.clearData()
            this.getList()