| | |
| | | </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> |
| | |
| | | </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="请输入始发地"> |
| | |
| | | response.data.map(item => { |
| | | this.transportList.push(item.运输路线名称) |
| | | }) |
| | | this.checkAndCallGetTransCost() |
| | | } else { |
| | | this.$modal.msgError("错误:" + response.data.code + response.data.Message); |
| | | } |
| | |
| | | this.$message.warning('请先选择承运合同') |
| | | return |
| | | } |
| | | if (!HTransportLineName) { |
| | | this.$message.warning('请先选择运输线路') |
| | | return |
| | | } |
| | | if (!HTransType) { |
| | | this.$message.warning('请先选择运输方式') |
| | | return |
| | |
| | | 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 |
| | | } |
| | |
| | | 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); |
| | | } |