Showing
1 changed file
with
3 additions
and
4 deletions
| ... | @@ -186,7 +186,7 @@ export default { | ... | @@ -186,7 +186,7 @@ export default { |
| 186 | return { | 186 | return { |
| 187 | formData: { | 187 | formData: { |
| 188 | receiptType: "", | 188 | receiptType: "", |
| 189 | - orderNo: [], | 189 | + orderNo: "", |
| 190 | receiptStatus: "", | 190 | receiptStatus: "", |
| 191 | preNo: "", | 191 | preNo: "", |
| 192 | invtNo: "", | 192 | invtNo: "", |
| ... | @@ -244,7 +244,7 @@ export default { | ... | @@ -244,7 +244,7 @@ export default { |
| 244 | if (!this.formData.receiptType) { | 244 | if (!this.formData.receiptType) { |
| 245 | return; | 245 | return; |
| 246 | } | 246 | } |
| 247 | - if (this.formData.orderNo.length < 1) { | 247 | + if (!this.formData.orderNo) { |
| 248 | return; | 248 | return; |
| 249 | } | 249 | } |
| 250 | if (!this.formData.receiptStatus) { | 250 | if (!this.formData.receiptStatus) { |
| ... | @@ -258,7 +258,6 @@ export default { | ... | @@ -258,7 +258,6 @@ export default { |
| 258 | } | 258 | } |
| 259 | generateReceiptXml({ | 259 | generateReceiptXml({ |
| 260 | ...this.formData, | 260 | ...this.formData, |
| 261 | - orderNo: this.formData.orderNo[0], | ||
| 262 | }).then((res) => { | 261 | }).then((res) => { |
| 263 | console.log(res); | 262 | console.log(res); |
| 264 | if (res.code === "200") { | 263 | if (res.code === "200") { |
| ... | @@ -320,7 +319,7 @@ export default { | ... | @@ -320,7 +319,7 @@ export default { |
| 320 | close(flag) { | 319 | close(flag) { |
| 321 | this.formData = { | 320 | this.formData = { |
| 322 | receiptType: "", | 321 | receiptType: "", |
| 323 | - orderNo: [], | 322 | + orderNo: "", |
| 324 | receiptStatus: "", | 323 | receiptStatus: "", |
| 325 | }; | 324 | }; |
| 326 | this.loadings.dialogLoading = false; | 325 | this.loadings.dialogLoading = false; | ... | ... |
-
Please register or login to post a comment