|
@@ -26,8 +26,6 @@
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:scroll="{x: 1500, y: BaseTool.Constant.scrollY}"
|
|
|
- :alert="options.alert"
|
|
|
- :rowSelection="options.rowSelection"
|
|
|
showPagination="auto"
|
|
|
>
|
|
|
<span slot="status" slot-scope="text, record">
|
|
@@ -35,22 +33,27 @@
|
|
|
</span>
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
- <a @click="handleView(record)">查看</a>
|
|
|
+ <a @click="changeStore(record,1)">出库</a>
|
|
|
+ <a-divider type="vertical" />
|
|
|
+ <a @click="changeStore(record,2)">入库</a>
|
|
|
</template>
|
|
|
</span>
|
|
|
</s-table>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
+ <BaseForm ref="baseForm" @ok="handleOk"/>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { STable } from '@/components'
|
|
|
import { getSqarePage } from '@/api/store/fastoutstore'
|
|
|
+import BaseForm from './modules/BaseForm'
|
|
|
export default {
|
|
|
name: 'FastOutStore',
|
|
|
components: {
|
|
|
- STable
|
|
|
+ STable,
|
|
|
+ BaseForm
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -60,13 +63,22 @@ export default {
|
|
|
confirmLoading: false,
|
|
|
// 表头
|
|
|
columns: [
|
|
|
+ // {
|
|
|
+ // title: '备件类别',
|
|
|
+ // dataIndex: 'typeId',
|
|
|
+ // checked: true,
|
|
|
+ // width: '150px',
|
|
|
+ // customRender: (text, record, index) => {
|
|
|
+ // return record.typeName
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
- title: '备件类别',
|
|
|
- dataIndex: 'typeId',
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: 'index',
|
|
|
checked: true,
|
|
|
- width: '150px',
|
|
|
+ width: '70px',
|
|
|
customRender: (text, record, index) => {
|
|
|
- return record.typeName
|
|
|
+ return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -161,6 +173,7 @@ export default {
|
|
|
}
|
|
|
return getSqarePage(Object.assign(parameter, this.queryParam))
|
|
|
.then(res => {
|
|
|
+ console.log(res)
|
|
|
return res.data
|
|
|
})
|
|
|
},
|
|
@@ -225,6 +238,9 @@ export default {
|
|
|
this.selectedKeys = selectedKeys
|
|
|
this.queryParam.typeId = selectedKeys.length > 0 ? selectedKeys[0] : ''
|
|
|
this.$refs.table.refresh(true)
|
|
|
+ },
|
|
|
+ changeStore (val, type) {
|
|
|
+ this.$refs.baseForm.base(val, type)
|
|
|
}
|
|
|
}
|
|
|
}
|