|
@@ -241,7 +241,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox v-model="scope.row.isDirectTransfer" />
|
|
|
+ <el-checkbox v-model="scope.row.isDirectTransfer" @change="hasRak($event, scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column
|
|
@@ -628,7 +628,8 @@ import {
|
|
|
getWalletList,
|
|
|
getWarehouseList,
|
|
|
policyList,
|
|
|
- typeList
|
|
|
+ typeList,
|
|
|
+ hasRak
|
|
|
} from '@/api/supply/policy'
|
|
|
import { getDictList } from '@/api/common'
|
|
|
import { mapGetters } from 'vuex'
|
|
@@ -942,6 +943,17 @@ export default {
|
|
|
this.$set(this.mainForm, 'k3ServiceId', user.adminUserId)
|
|
|
this.$set(this.mainForm, 'k3ServiceName', user.nickName)
|
|
|
},
|
|
|
+ hasRak(e, row) {
|
|
|
+ if (e) {
|
|
|
+ hasRak({ id: row.materialId }).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ this.goodsList.forEach(k => {
|
|
|
+ this.$set(k, 'isDirectTransfer', true)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 返回列表
|
|
|
goBack() {
|
|
|
this.$emit('backListFormDetail')
|