|
@@ -76,7 +76,7 @@
|
|
:rowKey="(record) => record.id"
|
|
:rowKey="(record) => record.id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
- :locale="{emptyText: '请选择一个货架后点击查询按钮'}"
|
|
|
|
|
|
+ :rowSelection="{columnWidth: 40}"
|
|
:scroll="{ y: tableHeight }"
|
|
:scroll="{ y: tableHeight }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
@@ -96,6 +96,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
|
|
+import { storeCallOutList } from '@/api/storeCallOut'
|
|
export default {
|
|
export default {
|
|
components: { STable, VSelect },
|
|
components: { STable, VSelect },
|
|
data () {
|
|
data () {
|
|
@@ -112,7 +113,7 @@ export default {
|
|
settleState: undefined
|
|
settleState: undefined
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
- 'hjName': [{ required: true, message: '请输入货架名称', trigger: 'change' }]
|
|
|
|
|
|
+ // 'hjName': [{ required: true, message: '请输入货架名称', trigger: 'change' }]
|
|
},
|
|
},
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
columns: [
|
|
columns: [
|
|
@@ -133,7 +134,7 @@ export default {
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- return allocLinkagePutList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
|
|
|
+ return storeCallOutList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
@@ -147,7 +148,37 @@ export default {
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- hjNameData: []
|
|
|
|
|
|
+ hjNameData: [],
|
|
|
|
+ selectedRowKeys: [], // Check here to configure the default column
|
|
|
|
+ selectedRows: []
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ hasSelected () {
|
|
|
|
+ return this.selectedRowKeys.length > 0
|
|
|
|
+ },
|
|
|
|
+ rowSelection () {
|
|
|
|
+ if (this.$hasPermissions('B_financialCollectionPl')) {
|
|
|
|
+ return {
|
|
|
|
+ selectedRowKeys: this.selectedRowKeys,
|
|
|
|
+ onChange: (selectedRowKeys, selectedRows) => {
|
|
|
|
+ this.selectedRowKeys = selectedRowKeys
|
|
|
|
+ },
|
|
|
|
+ onSelect: (record, selected, selectedRows, nativeEvent) => {
|
|
|
|
+ this.onSelectChange(record, selected, selectedRows, nativeEvent)
|
|
|
|
+ },
|
|
|
|
+ onSelectAll: (selected, selectedRows, changeRows) => {
|
|
|
|
+ this.onSelectAllChange(selected, selectedRows, changeRows)
|
|
|
|
+ },
|
|
|
|
+ getCheckboxProps: record => ({
|
|
|
|
+ props: {
|
|
|
|
+ disabled: record.settleState == 'SETTLED'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ return null
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -177,6 +208,34 @@ export default {
|
|
handleDetail (row) {
|
|
handleDetail (row) {
|
|
this.$router.push({ path: `/allocationManagement/chainTransferIn/detail/${row.allocationLinkagePutSn}` })
|
|
this.$router.push({ path: `/allocationManagement/chainTransferIn/detail/${row.allocationLinkagePutSn}` })
|
|
},
|
|
},
|
|
|
|
+ onSelectChange (record, selected, selectedRows, nativeEvent) {
|
|
|
|
+ console.log('onSelectChange-------', record, selected, selectedRows, nativeEvent)
|
|
|
|
+ // if (selected) { // 选择
|
|
|
|
+ // this.selectedRows.push(record)
|
|
|
|
+ // } else { // 取消
|
|
|
|
+ // this.selectedRows = selectedRows
|
|
|
|
+ // }
|
|
|
|
+ },
|
|
|
|
+ // 本页全选/取消全选
|
|
|
|
+ onSelectAllChange (selected, selectedRows, changeRows) {
|
|
|
|
+ console.log('onSelectAllChange--------', selected, selectedRows, changeRows)
|
|
|
|
+ // const _this = this
|
|
|
|
+ // if (selected) { // 选择
|
|
|
|
+ // this.selectedRows = [...this.selectedRows, ...changeRows]
|
|
|
|
+ // } else { // 取消
|
|
|
|
+ // const arrId = []
|
|
|
|
+ // this.selectedRows.map((item, index) => {
|
|
|
|
+ // this.selectedRows.map((subItem, ind) => {
|
|
|
|
+ // if (item.id == subItem.id) {
|
|
|
|
+ // arrId.push(index)
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // arrId.map((item, index) => {
|
|
|
|
+ // _this.selectedRows = _this.selectedRows.slice(item, item + 1)
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ },
|
|
filterOption (input, option) {
|
|
filterOption (input, option) {
|
|
return (
|
|
return (
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|