|
@@ -943,16 +943,23 @@ export default {
|
|
|
this.$set(this.mainForm, 'k3ServiceId', user.adminUserId)
|
|
|
this.$set(this.mainForm, 'k3ServiceName', user.nickName)
|
|
|
},
|
|
|
- hasRak(e, row) {
|
|
|
- hasRak({ id: row.materialId }).then(res => {
|
|
|
- if (res.data && e) {
|
|
|
- this.goodsList.forEach(k => {
|
|
|
- this.$set(k, 'isDirectTransfer', true)
|
|
|
- })
|
|
|
+ hasRak(e) {
|
|
|
+ const ids = this.goodsList.map(k => {
|
|
|
+ return k.materialId
|
|
|
+ })
|
|
|
+ hasRak({ id: ids.join(',') }).then(res => {
|
|
|
+ if (e) {
|
|
|
+ if (res.data) {
|
|
|
+ this.goodsList.forEach(i => {
|
|
|
+ this.$set(i, 'isDirectTransfer', true)
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.goodsList.forEach(k => {
|
|
|
- this.$set(k, 'isDirectTransfer', false)
|
|
|
- })
|
|
|
+ if (res.data) {
|
|
|
+ this.goodsList.forEach(i => {
|
|
|
+ this.$set(i, 'isDirectTransfer', false)
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|