|
@@ -481,6 +481,28 @@ export default {
|
|
|
this.formData.outStorageId = ''
|
|
|
this.formData.inStorageId = ''
|
|
|
this.formData.items = []
|
|
|
+ this.biyaowebsitId(newVal)
|
|
|
+ },
|
|
|
+ 'formData.outStorageId'(newValue) {
|
|
|
+ this.biyaooutStorageId(newValue)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ biyaooutStorageId(newValue) {
|
|
|
+ if (newValue && this.formData.websitId) {
|
|
|
+ getGoods({
|
|
|
+ websitId: this.formData.websitId,
|
|
|
+ type: 'P',
|
|
|
+ saleType: '零售',
|
|
|
+ storageId: this.formData.outStorageId
|
|
|
+ }).then(res => {
|
|
|
+ this.peijianList = res.data
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.peijianList = []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ biyaowebsitId(newVal) {
|
|
|
if (newVal) {
|
|
|
storageListPageV2({
|
|
|
pageNum: 1,
|
|
@@ -523,22 +545,7 @@ export default {
|
|
|
this.peijianList = []
|
|
|
}
|
|
|
},
|
|
|
- 'formData.outStorageId'(newValue) {
|
|
|
- if (newValue && this.formData.websitId) {
|
|
|
- getGoods({
|
|
|
- websitId: this.formData.websitId,
|
|
|
- type: 'P',
|
|
|
- saleType: '零售',
|
|
|
- storageId: this.formData.outStorageId
|
|
|
- }).then(res => {
|
|
|
- this.peijianList = res.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.peijianList = []
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
+
|
|
|
qkrow(row, data = {}) {
|
|
|
;['goodsStockUnit', 'goodsCode', 'goodsSpecification', 'brand', 'productCategory'].map(key => {
|
|
|
if (row[key] !== undefined) {
|