|
@@ -145,7 +145,7 @@
|
|
删除
|
|
删除
|
|
</a-button>
|
|
</a-button>
|
|
</div>
|
|
</div>
|
|
- <a-table bordered :data-source="data" :columns="columns" tableLayout="auto" rowKey="autoId" :row-selection="rowSelection">
|
|
|
|
|
|
+ <a-table bordered :data-source="data" :columns="columns" tableLayout="auto" rowKey="autoId" :row-selection="rowSelection" :scroll="{x: 1500, y: BaseTool.Constant.scrollY}">
|
|
<template slot="num" slot-scope="text, record">
|
|
<template slot="num" slot-scope="text, record">
|
|
<div class="editable-cell-input-wrapper">
|
|
<div class="editable-cell-input-wrapper">
|
|
<a-input :value="text" :id="record.autoId + ',num'" @change="$event => onQuantityChange($event, record.autoId, 'num')" />
|
|
<a-input :value="text" :id="record.autoId + ',num'" @change="$event => onQuantityChange($event, record.autoId, 'num')" />
|
|
@@ -203,9 +203,11 @@ import { fetchStoreTree } from '@/api/store/store'
|
|
import { getSbPositions } from '@/api/repair/application-form'
|
|
import { getSbPositions } from '@/api/repair/application-form'
|
|
import { fetchProjectTree } from '@/api/project/project'
|
|
import { fetchProjectTree } from '@/api/project/project'
|
|
import { stringify } from 'qs'
|
|
import { stringify } from 'qs'
|
|
|
|
+import { STable } from '@/components'
|
|
export default {
|
|
export default {
|
|
name: 'BaseOutStoreFormYY',
|
|
name: 'BaseOutStoreFormYY',
|
|
components: {
|
|
components: {
|
|
|
|
+ STable,
|
|
DetailBaseForm,
|
|
DetailBaseForm,
|
|
SparePickFormSelectModal,
|
|
SparePickFormSelectModal,
|
|
SpareBackFormSelectModal,
|
|
SpareBackFormSelectModal,
|
|
@@ -240,63 +242,86 @@ export default {
|
|
{
|
|
{
|
|
title: '序号',
|
|
title: '序号',
|
|
dataIndex: 'index',
|
|
dataIndex: 'index',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return index + 1
|
|
return index + 1
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '名称',
|
|
title: '名称',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'spareName',
|
|
dataIndex: 'spareName',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '编号',
|
|
title: '编号',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'no',
|
|
dataIndex: 'no',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '规格',
|
|
title: '规格',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'ggxh',
|
|
dataIndex: 'ggxh',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '批次',
|
|
title: '批次',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'cbatch',
|
|
dataIndex: 'cbatch',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '数量',
|
|
title: '数量',
|
|
dataIndex: 'num',
|
|
dataIndex: 'num',
|
|
|
|
+ checked: true,
|
|
width: 150,
|
|
width: 150,
|
|
scopedSlots: { customRender: 'num' },
|
|
scopedSlots: { customRender: 'num' },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '库存',
|
|
title: '库存',
|
|
|
|
+ checked: true,
|
|
dataIndex: 'storeNum',
|
|
dataIndex: 'storeNum',
|
|
width: 150,
|
|
width: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单位',
|
|
title: '单位',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'unit',
|
|
dataIndex: 'unit',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '仓库',
|
|
title: '仓库',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'storeName',
|
|
dataIndex: 'storeName',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '货架号',
|
|
title: '货架号',
|
|
|
|
+ checked: true,
|
|
|
|
+ width: 150,
|
|
dataIndex: 'storePosition',
|
|
dataIndex: 'storePosition',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '降本项目',
|
|
title: '降本项目',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true,
|
|
dataIndex: 'cdefine33',
|
|
dataIndex: 'cdefine33',
|
|
scopedSlots: { customRender: 'cdefine33' },
|
|
scopedSlots: { customRender: 'cdefine33' },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '备注',
|
|
title: '备注',
|
|
dataIndex: 'remark',
|
|
dataIndex: 'remark',
|
|
|
|
+ checked: true,
|
|
width: 150,
|
|
width: 150,
|
|
scopedSlots: { customRender: 'remark' },
|
|
scopedSlots: { customRender: 'remark' },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
key: 'action',
|
|
key: 'action',
|
|
|
|
+ checked: true,
|
|
|
|
+ width: 150,
|
|
align: 'center',
|
|
align: 'center',
|
|
scopedSlots: { customRender: 'action' },
|
|
scopedSlots: { customRender: 'action' },
|
|
},
|
|
},
|