Browse Source

备件台账

master
songguoqiang 7 months ago
parent
commit
0fde0a150a
  1. 7
      src/api/eam/item/itemAccounts/index.ts
  2. 4
      src/locales/en-US.ts
  3. 2
      src/locales/zh-CN.ts
  4. 3
      src/utils/dict.ts
  5. 26
      src/utils/disposition/defaultButtons.ts
  6. 50
      src/views/eam/item/itemAccounts/index.vue
  7. 380
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  8. 175
      src/views/eam/item/itemAccounts/itemIn.data.ts

7
src/api/eam/item/itemAccounts/index.ts

@ -8,6 +8,8 @@ export interface ItemAccountsVO {
siteId: string siteId: string
available: string available: string
concurrencyStamp: number concurrencyStamp: number
type: string
display?:boolean
} }
// 查询备件台账列表 // 查询备件台账列表
@ -31,6 +33,11 @@ export const createItemAccounts = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/create`, data }) return await request.post({ url: `/eam/item-accounts/create`, data })
} }
// 备件台账新到货转账内
export const newTurnIn = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/newTurnIn`, data })
}
// 修改备件台账 // 修改备件台账
export const updateItemAccounts = async (data: ItemAccountsVO) => { export const updateItemAccounts = async (data: ItemAccountsVO) => {
return await request.put({ url: `/eam/item-accounts/update`, data }) return await request.put({ url: `/eam/item-accounts/update`, data })

4
src/locales/en-US.ts

@ -311,7 +311,9 @@ export default {
typeUpdate: 'Dict Type Eidt', typeUpdate: 'Dict Type Eidt',
dataCreate: 'Dict Data Create', dataCreate: 'Dict Data Create',
dataUpdate: 'Dict Data Eidt', dataUpdate: 'Dict Data Eidt',
fileUpload: 'File Upload' fileUpload: 'File Upload',
itemIn: 'itemIn',
newTurnIn: 'newTurnIn',
}, },
dialog: { dialog: {
dialog: 'Dialog', dialog: 'Dialog',

2
src/locales/zh-CN.ts

@ -324,6 +324,8 @@ export default {
disAgree: '驳回', disAgree: '驳回',
selectItem: '选择备件', selectItem: '选择备件',
qrCode: '二维码', qrCode: '二维码',
itemIn: '入库',
newTurnIn: '新到货转账内',
}, },

3
src/utils/dict.ts

@ -306,6 +306,7 @@ export enum DICT_TYPE {
ORDER_COMPLETE_RESULT = 'order_complete_result', //维修工单完成结果 ORDER_COMPLETE_RESULT = 'order_complete_result', //维修工单完成结果
FACTORY_TYPE = 'factory_type',//厂区类别 FACTORY_TYPE = 'factory_type',//厂区类别
EQUIPMENT_INDEX_NAME = 'equipment_index_name',//设备年度目标指标名称分类字段 EQUIPMENT_INDEX_NAME = 'equipment_index_name',//设备年度目标指标名称分类字段
SPECIAL_DEPT_ROLE = 'special_dept_role' SPECIAL_DEPT_ROLE = 'special_dept_role',
ITEM_ACCOUNT_LOCATION_TYPE = "item_account_location_type",
} }

26
src/utils/disposition/defaultButtons.ts

@ -1078,6 +1078,32 @@ export function orderPrintBtn(option:any) {
}) })
} }
// 头部入库按钮
export function ItemInBtn(option:any) {
return __defaultBtnOption(option,{
label: '入库',
name: 'itemIn',
hide: false,
type: 'primary',
icon: 'ep:plus',
color: '',
hasPermi: ''
})
}
// 操作列表-到货转账内
export function newTurnIn(option:any) {
return __defaultBtnOption(option,{
label: '到货转账内',
name: 'newTurnIn',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 默认按钮规则 // 默认按钮规则
function __defaultBtnOption(option:any,specific:any){ function __defaultBtnOption(option:any,specific:any){

50
src/views/eam/item/itemAccounts/index.vue

@ -20,7 +20,7 @@
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -30,6 +30,10 @@
:formAllSchemas="ItemAccounts.allSchemas" :apiUpdate="ItemAccountsApi.updateItemAccounts" :formAllSchemas="ItemAccounts.allSchemas" :apiUpdate="ItemAccountsApi.updateItemAccounts"
:apiCreate="ItemAccountsApi.createItemAccounts" @searchTableSuccess="searchTableSuccess" :isBusiness="false" /> :apiCreate="ItemAccountsApi.createItemAccounts" @searchTableSuccess="searchTableSuccess" :isBusiness="false" />
<BasicForm ref="basicFormRef1" @success="formsSuccess" :rules="ItemInRules"
:formAllSchemas="ItemIn.allSchemas" :apiUpdate="ItemAccountsApi.updateItemAccounts"
:apiCreate="ItemAccountsApi.createItemAccounts" @searchTableSuccess="searchTableSuccess" :isBusiness="false" />
<SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" /> <SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" />
<!-- 详情 --> <!-- 详情 -->
@ -43,6 +47,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { ItemAccounts, ItemAccountsRules } from './itemAccounts.data' import { ItemAccounts, ItemAccountsRules } from './itemAccounts.data'
import { ItemIn, ItemInRules } from './itemIn.data'
import * as ItemAccountsApi from '@/api/eam/item/itemAccounts' import * as ItemAccountsApi from '@/api/eam/item/itemAccounts'
import { Item } from '@/views/eam/basic/item/item.data' import { Item } from '@/views/eam/basic/item/item.data'
import * as ItemApi from '@/api/eam/basic/item' import * as ItemApi from '@/api/eam/basic/item'
@ -63,10 +68,11 @@
const tableColumns = ref(ItemAccounts.allSchemas.tableColumns) const tableColumns = ref(ItemAccounts.allSchemas.tableColumns)
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {//
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['itemName'] = val[0]['name']
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
@ -86,6 +92,7 @@
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'item:itemAccounts:create' }), // defaultButtons.defaultAddBtn({ hasPermi: 'item:itemAccounts:create' }), //
//defaultButtons.ItemInBtn({ hasPermi: 'item:itemAccounts:createIn' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'item:itemAccounts:import' }), // defaultButtons.defaultImportBtn({ hasPermi: 'item:itemAccounts:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'item:itemAccounts:export' }), // defaultButtons.defaultExportBtn({ hasPermi: 'item:itemAccounts:export' }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
@ -112,17 +119,20 @@
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() getList()
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else if(val=='itemIn'){ //
console.log('其他按钮', item) openForm('itemIn')
} }
} }
// - // -
const butttondata = [ const butttondata =(row)=>{
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), // return [
defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation' }), // //defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }), // defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation',hide:!(row.display)}), //
defaultButtons.newTurnIn({ hasPermi: 'item:itemAccounts:newTurnIn',hide:!(row.type=='2'&& row.qty>0)}), //
//defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }), //
] ]
}
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
@ -130,8 +140,10 @@
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)
} else if (val == 'replaceLocation') { } else if (val == 'replaceLocation') {//
openItem(row.locationNumber, row.id) openItem(row.locationNumber, row.id)
}else if (val == 'newTurnIn') {//
openForm('newTurnIn', row);
} }
} }
@ -193,10 +205,23 @@
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const basicFormRef1 = ref();
const openForm = (type : string, row ?: any) => { const openForm = (type : string, row ?: any) => {
//debugger
// if(type=='itemIn'){
// row?.type = null;
// row?.itemName=null;
// }
if(type=='newTurnIn'){//
//
ItemIn.allSchemas.formSchema.find(item => item.field == 'qty').componentProps.max = row.qty//
basicFormRef1.value.open(type, row)
}else{
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }
}
// form // form
const formsSuccess = async (formType, data) => { const formsSuccess = async (formType, data) => {
var isHave = ItemAccounts.allSchemas.formSchema.some(function (item) { var isHave = ItemAccounts.allSchemas.formSchema.some(function (item) {
@ -210,14 +235,21 @@
} }
if (data.activeTime == 0) data.activeTime = null; if (data.activeTime == 0) data.activeTime = null;
if (data.expireTime == 0) data.expireTime = null; if (data.expireTime == 0) data.expireTime = null;
try{
if (formType === 'create') { if (formType === 'create') {
await ItemAccountsApi.createItemAccounts(data) await ItemAccountsApi.createItemAccounts(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} if (formType === 'newTurnIn') {//
await ItemAccountsApi.newTurnIn(data)
message.success(t('common.createSuccess'))
} else { } else {
await ItemAccountsApi.updateItemAccounts(data) await ItemAccountsApi.updateItemAccounts(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
}finally{
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
basicFormRef1.value.dialogVisible = false
}
getList() getList()
} }

380
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -1,312 +1,236 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as LocationAreaApi from '@/api/eam/basic/locationArea'
import { LocationArea } from '@/views/eam/basic/locationArea/locationArea.data'
import * as LocationApi from '@/api/eam/basic/location'
import { Location } from '@/views/eam/basic/location/location.data'
import * as ItemApi from '@/api/eam/basic/item'
import { Item } from '@/views/eam/basic/item/item.data'
import { getStrDictOptions } from '@/utils/dict'
const typeList = getStrDictOptions(DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE).filter(item => item.value != '1')
const typeLists = getStrDictOptions(DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE)
// 表单校验 // 表单校验
export const ItemAccountsRules = reactive({ export const ItemAccountsRules = reactive({
itemNumber: [required], itemNumber: [required],
name: [required],
areaNumber: [required], areaNumber: [required],
concurrencyStamp: [required], type: [required],
locationNumber: [required],
qty: [required]
}) })
export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemAccounts = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '备件编号',
field: 'itemNumber', field: 'itemNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { form: {
width: 180, // labelMessage: '信息提示说明!!!',
fixed: 'left' componentProps: {
}, isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择备件编号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
}
}, },
{ {
label: '备件名称', label: '备件名称',
field: 'name', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 110 width: 110
}, },
isSearch: false, form:{
}, componentProps:{
disabled:true
{ }
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
table: {
width: 110
}, },
isSearch: false
}, },
{ {
label: '库区编号', label: '库区编号',
field: 'areaNumber', field: 'areaNumber',
sort: 'custom', sort: 'custom',
table: {
width: 110
},
},
{
label: '库存数量',
field: 'qty',
sort: 'custom',
table: {
width: 110
},
},
{
label: '是否账内库',
field: 'isInAccount',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 130
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: { form: {
component: 'Switch', // labelMessage: '信息提示说明!!!',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', isSearchList: true, // 开启查询弹窗
activeValue: 'TRUE' searchListPlaceholder: '请选择库区编号', // 输入框占位文本
} searchField: 'number', // 查询弹窗赋值字段
} searchTitle: '库区信息', // 查询弹窗标题
}, searchAllSchemas: LocationArea.allSchemas, // 查询弹窗所需类
{ searchPage: LocationAreaApi.getLocationAreaPage, // 查询弹窗所需分页方法
label: '规格', searchCondition: [
field: 'specifications', {
sort: 'custom', key: 'available',
},
{
label: '是否常储',
field: 'isConstant',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 110,
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE', value: 'TRUE',
componentProps: { isMainValue: false
inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
]
} }
},
{
label: '科目',
field: 'subject',
sort: 'custom',
dictType: DICT_TYPE.ITEM_SUBJECT,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
} }
}, },
{
label: '科目代码',
field: 'subjectCode',
sort: 'custom',
isTable: true,
},
{ {
label: '单位', label: '库区名称',
field: 'uom', field: 'areaName',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, isForm:false
tableForm: {
type: 'Select'
}
}, },
{ {
label: '类别', label: '库位编号',
field: 'category', field: 'locationNumber',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, form: {
tableForm: { // labelMessage: '信息提示说明!!!',
type: 'Select' componentProps: {
} isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位编号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}, },
{ {
label: '备件分类', key: 'areaNumber',
field: 'classification', value: 'areaNumber',
sort: 'custom', isMainValue: true
dictType: DICT_TYPE.CLASSIFICATION, },
dictClass: 'string', ]
isSearch: false, }
isTable: true,
tableForm: {
type: 'Select'
} }
}, },
{ {
label: '区域', label: '库位名称',
field: 'region', field: 'locationName',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_REGION,
dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, isForm:false
tableForm: {
type: 'Select'
}
}, },
// { // {
// label: '单价', // label: '库位类型',
// field: 'singlePrice', // field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom', // sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// }, // },
{ {
label: '重采购点', label: '库位类型',
field: 'reprocurement', field: 'type',
sort: 'custom',
table: {
width: 110,
},
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '安全库存',
field: 'safetyStock',
sort: 'custom',
table: {
width: 110,
},
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '成本中心',
field: 'cost',
sort: 'custom',
table: {
width: 110,
},
},
{
label: '采购员',
field: 'purchaser',
sort: 'custom', sort: 'custom',
table: { table: {
width: 100, width: '150',
}, },
isDetail: false,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return typeLists.find((account) => account.value == cellValue)?.label
}, },
{ // dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE,
label: '财务',
field: 'financer',
sort: 'custom',
},
{
label: '是否以旧换新',
field: 'isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, search: {
sort: 'custom', component: 'Select',
table: {
width: 140
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', options: typeList,
activeValue: 'TRUE' optionsAlias: {
} labelField: 'label',
} valueField: 'value'
}, },
{ filterable: true,
label: '是否框架协议',
field: 'isFramework',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
}, },
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
}, },
form: { form: {
component: 'Switch', component: 'Select',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', options: typeList,
activeValue: 'TRUE' optionsAlias: {
} labelField: 'label',
valueField: 'value'
},
//disabled: true,
//filterable: true,
placeholder: "请选择类型"
} }
}, },
},
// {
// label: '库位类型',
// field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// },
{ {
label: '是否可用', label: '库存数量',
field: 'available', field: 'qty',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 110
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
}, },
form:{ form:{
component: 'Switch', component: 'InputNumber',
value: 'TRUE',
componentProps:{ componentProps:{
inactiveValue: 'FALSE', min: 0,//最小值`
activeValue: 'TRUE' precision: 2//精度`
} }
} }
}, },
// {
// label: '是否账内库',
// field: 'isInAccount',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {
width: 150, width: 250,
fixed: 'right' fixed: 'right'
} }
} }
])) ])
)

175
src/views/eam/item/itemAccounts/itemIn.data.ts

@ -0,0 +1,175 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as LocationAreaApi from '@/api/eam/basic/locationArea'
import { LocationArea } from '@/views/eam/basic/locationArea/locationArea.data'
import * as LocationApi from '@/api/eam/basic/location'
import { Location } from '@/views/eam/basic/location/location.data'
import * as ItemApi from '@/api/eam/basic/item'
import { Item } from '@/views/eam/basic/item/item.data'
import { getStrDictOptions } from '@/utils/dict'
const typeList = getStrDictOptions(DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE).filter(item => item.value != '1')
//const typeList = getStrDictOptions(DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE)
// 表单校验
export const ItemInRules = reactive({
// itemNumber: [required],
// name: [required],
// areaNumber: [required],
// type: [required],
// locationNumber: [required],
qty: [required]
})
export const ItemIn = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'itemNumber',
sort: 'custom',
form:{
componentProps:{
disabled:true
}
}
},
{
label: '备件名称',
field: 'itemName',
sort: 'custom',
table: {
width: 110
},
form:{
componentProps:{
disabled:true
}
},
},
{
label: '库区编号',
field: 'areaNumber',
sort: 'custom',
form:{
componentProps:{
disabled:true
}
},
},{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
form:{
componentProps:{
disabled:true
}
},
},
// {
// label: '库位类型',
// field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// },
// {
// label: '库位类型',
// field: 'type',
// sort: 'custom',
// table: {
// width: '150',
// },
// isDetail: false,
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
// return typeList.find((account) => account.value == cellValue)?.label
// },
// // dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE,
// isSearch: false,
// search: {
// component: 'Select',
// componentProps: {
// options: typeList,
// optionsAlias: {
// labelField: 'label',
// valueField: 'value'
// },
// filterable: true,
// },
// },
// form: {
// component: 'Select',
// componentProps: {
// options: typeList,
// optionsAlias: {
// labelField: 'label',
// valueField: 'value'
// },
// //disabled: true,
// //filterable: true,
// placeholder: "请选择类型"
// }
// },
// },
// {
// label: '库位类型',
// field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// },
{
label: '库存数量',
field: 'qty',
sort: 'custom',
table: {
width: 110
},
form:{
component: 'InputNumber',
componentProps:{
min: 0,//最小值`
precision: 2//精度`
}
}
},
// {
// label: '是否账内库',
// field: 'isInAccount',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
])
)
Loading…
Cancel
Save