|
@@ -273,11 +273,13 @@ export default {
|
|
|
// 选择退货仓库
|
|
|
handleWarehouse (val) {
|
|
|
this.form.warehouseSn = val
|
|
|
- if (val && this.$route.query.path && this.$route.query.path == 'salerReturn') {
|
|
|
- this.chooseData = []
|
|
|
- if (this.salerReturnWsn && this.salerReturnWsn == val) {
|
|
|
- const cd = this.$store.state.app.tempBillOfData
|
|
|
+ this.chooseData = []
|
|
|
+ if (this.salerReturnWsn && this.salerReturnWsn == val) {
|
|
|
+ const cd = this.$store.state.app.tempBillOfData
|
|
|
+ if (cd && this.$route.query.path == 'salerReturn') {
|
|
|
this.chooseData.push(cd)
|
|
|
+ } else {
|
|
|
+ this.getReturnOrderList(this.salerReturnWsn)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -431,7 +433,6 @@ export default {
|
|
|
},
|
|
|
pageInit () {
|
|
|
this.resetForm()
|
|
|
- console.log('----')
|
|
|
// 编辑页
|
|
|
if (this.$route.params.sn) {
|
|
|
this.form.theme = ''
|