陈婷婷
6 天以前 148fd1d5d3be94bf14454950f0f312babd8f5e25
运动编辑修改
2个文件已修改
52 ■■■■ 已修改文件
.env.development 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -6,7 +6,7 @@
# 智云迈思L-MOM管理系统/开发环境
# VUE_APP_BASE_API = http://localhost:81/API/
# VUE_APP_BASE_API = 'http://47.96.97.237/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/'
@@ -14,8 +14,8 @@
# 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/
# 内网地址测试
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
@@ -84,12 +84,13 @@
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="车型" prop="HCarTypeName">
                                        <el-input v-model="form.HCarTypeName" placeholder="请输入车型">
                                            <el-button slot="append" icon="el-icon-search"
                                                @click="openDataDialog(13)"></el-button>
                                        </el-input>
                                <el-col :span="12">
                                    <el-form-item label="运输线路" prop="HTransportLineName">
                                        <el-select v-model="form.HTransportLineName" placeholder="请选择运输线路" filterable
                                            @change="checkAndCallGetTransCost" @focus="checkTransportList">
                                            <el-option v-for="(item, index) in transportList" :key="index" :label="item"
                                                :value="item"></el-option>
                                        </el-select>
                                    </el-form-item>
                                </el-col>
                            </el-row>
@@ -104,17 +105,16 @@
                                        </el-select>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="12">
                                    <el-form-item label="运输线路" prop="HTransportLineName">
                                        <el-select v-model="form.HTransportLineName" placeholder="请选择运输线路" filterable
                                            @change="checkAndCallGetTransCost" @focus="checkTransportList">
                                            <el-option v-for="(item, index) in transportList" :key="index" :label="item"
                                                :value="item"></el-option>
                                        </el-select>
                                <el-col :span="6">
                                    <el-form-item label="车型" prop="HCarTypeName">
                                        <el-input v-model="form.HCarTypeName" placeholder="请输入车型">
                                            <el-button slot="append" icon="el-icon-search"
                                                @click="openDataDialog(13)"></el-button>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                             <el-row>
                            <el-row>
                                <el-col :span="6">
                                    <el-form-item label="始发地" prop="HBeginAddrName">
                                        <el-input v-model="form.HBeginAddrName" placeholder="请输入始发地">
@@ -1186,6 +1186,7 @@
                        response.data.map(item => {
                            this.transportList.push(item.运输路线名称)
                        })
                        this.checkAndCallGetTransCost()
                    } else {
                        this.$modal.msgError("错误:" + response.data.code + response.data.Message);
                    }
@@ -2122,6 +2123,10 @@
                this.$message.warning('请先选择承运合同')
                return
            }
            if (!HTransportLineName) {
                this.$message.warning('请先选择运输线路')
                return
            }
            if (!HTransType) {
                this.$message.warning('请先选择运输方式')
                return
@@ -2130,26 +2135,22 @@
                this.$message.warning('请先选择车型')
                return
            }
            if (!HTransportLineName) {
                this.$message.warning('请先选择运输线路')
                return
            }
            this.getTransCost()
        },
        getTransCost() {
            axios.get(this.$baseUrl + '/WLYayBillController/getSelectContractTransportBillEntryData', {
                params: {
                    HSupID: this.form.HSupID,
                    HSupID: this.form.HCarrierID,
                    HTransportLineName: this.form.HTransportLineName,
                    HCarTypeID: this.form.HCarTypeID,
                    HTransportType: this.form.HTransType,
                    HTransportTyep: this.form.HTransType,
                },
            }).then(res => {
                let response = res.data
                if (response.code == 1) {
                    if (response.data.length == 0) {
                        this.$modal.msgError("未获取到指定承运合同数据,请检查【" + this.form.HCarrierName + this.form.运输路线名称 + this.form.车型名称 + this.form.HTransType + "】对应的承运合同是否维护!!!");
                        this.$modal.msgError("未获取到指定承运合同数据,请检查【" + this.form.HCarrierName + '-' + this.form.HTransportLineName + '-' + this.form.HCarTypeName + '-' + this.form.HTransType + "】对应的承运合同是否维护!!!");
                        this.form.HMoney = 0
                        return
                    }
@@ -2157,6 +2158,9 @@
                    this.form.HTransportTimes = response.data[0].运输时效
                    this.form.HTransportTyep = response.data[0].运输类型
                    this.form.HMoney = response.data[0].运输费用
                    if (this.form.HMoney == 0) {
                        this.$modal.msgError("当前运费为0");
                    }
                } else {
                    this.$modal.msgError("错误:" + response.code + response.Message);
                }