From 148fd1d5d3be94bf14454950f0f312babd8f5e25 Mon Sep 17 00:00:00 2001
From: 陈婷婷 <506607603@qq.com>
Date: 星期五, 03 四月 2026 11:26:16 +0800
Subject: [PATCH] 运动编辑修改
---
.env.development | 6 +++---
src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue | 46 +++++++++++++++++++++++++---------------------
2 files changed, 28 insertions(+), 24 deletions(-)
diff --git a/.env.development b/.env.development
index 317b137..f6c8b8d 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@
# 鏅轰簯杩堟�滾-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/
# 鍐呯綉鍦板潃娴嬭瘯
diff --git a/src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue b/src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
index cad00a6..6729d9b 100644
--- a/src/views/logistics/transportGPS/Add_Edit_WL_YayBill.vue
+++ b/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);
}
--
Gitblit v1.9.1