zhanbo.xu

feat: 新增物流运单编号查询逻辑接口和字段必填

...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 collapse-tags 52 collapse-tags
53 :remote-method="remoteMethod" 53 :remote-method="remoteMethod"
54 placeholder="" 54 placeholder=""
55 - @change="receiptXml" 55 + @change="handleOtherInfo"
56 class="order-select-warp-ol" 56 class="order-select-warp-ol"
57 > 57 >
58 <el-option 58 <el-option
...@@ -257,6 +257,11 @@ export default { ...@@ -257,6 +257,11 @@ export default {
257 }, 257 },
258 258
259 methods: { 259 methods: {
260 + handleOtherInfo() {
261 + if (this.formData.logisticsNo) {
262 + this.getOtherInfo(this.formData.logisticsNo);
263 + }
264 + },
260 // 生成xml 265 // 生成xml
261 receiptXml() { 266 receiptXml() {
262 if (!this.formData.receiptType) { 267 if (!this.formData.receiptType) {
...@@ -264,8 +269,6 @@ export default { ...@@ -264,8 +269,6 @@ export default {
264 } 269 }
265 if (!this.formData.logisticsNo) { 270 if (!this.formData.logisticsNo) {
266 return; 271 return;
267 - } else {
268 - this.getOtherInfo(this.formData.logisticsNo);
269 } 272 }
270 if (!this.formData.receiptStatus) { 273 if (!this.formData.receiptStatus) {
271 return; 274 return;
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 collapse-tags 52 collapse-tags
53 :remote-method="remoteMethod" 53 :remote-method="remoteMethod"
54 placeholder="" 54 placeholder=""
55 - @change="receiptXml" 55 + @change="handleOtherInfo"
56 class="order-select-warp-ol" 56 class="order-select-warp-ol"
57 > 57 >
58 <el-option 58 <el-option
...@@ -240,6 +240,11 @@ export default { ...@@ -240,6 +240,11 @@ export default {
240 }, 240 },
241 241
242 methods: { 242 methods: {
243 + handleOtherInfo() {
244 + if (this.formData.logisticsNo) {
245 + this.getOtherInfo(this.formData.logisticsNo);
246 + }
247 + },
243 // 生成xml 248 // 生成xml
244 receiptXml() { 249 receiptXml() {
245 if (!this.formData.receiptType) { 250 if (!this.formData.receiptType) {
...@@ -247,8 +252,6 @@ export default { ...@@ -247,8 +252,6 @@ export default {
247 } 252 }
248 if (!this.formData.logisticsNo) { 253 if (!this.formData.logisticsNo) {
249 return; 254 return;
250 - } else {
251 - this.getOtherInfo(this.formData.logisticsNo);
252 } 255 }
253 if (!this.formData.receiptStatus) { 256 if (!this.formData.receiptStatus) {
254 return; 257 return;
......