|
@@ -478,18 +478,15 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
'formData.websitId'(newVal) {
|
|
|
- this.formData.outStorageId = ''
|
|
|
- this.formData.inStorageId = ''
|
|
|
- this.formData.items = []
|
|
|
this.biyaowebsitId(newVal)
|
|
|
},
|
|
|
'formData.outStorageId'(newValue) {
|
|
|
- this.biyaooutStorageId(newValue)
|
|
|
+ this.biyaooutStorageId()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- biyaooutStorageId(newValue) {
|
|
|
- if (newValue && this.formData.websitId) {
|
|
|
+ biyaooutStorageId() {
|
|
|
+ if (this.formData.outStorageId && this.formData.websitId) {
|
|
|
getGoods({
|
|
|
websitId: this.formData.websitId,
|
|
|
type: 'P',
|
|
@@ -529,7 +526,7 @@ export default {
|
|
|
getCategory({ websitId: newVal }).then(res => {
|
|
|
this.mainList = res.data
|
|
|
})
|
|
|
- if (this.formData.outStorageId) {
|
|
|
+ if (this.formData.outStorageId && this.formData.websitId) {
|
|
|
getGoods({
|
|
|
websitId: this.formData.websitId,
|
|
|
type: 'P',
|