Browse Source

YT-165增加字段、去掉增删改按钮

syhx
zhaoyiran 2 months ago
parent
commit
56944e75ca
  1. 11
      src/api/wms/itembasic/index.ts
  2. 4
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  3. 119
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

11
src/api/wms/itembasic/index.ts

@ -27,6 +27,17 @@ export interface ItembasicVO {
activeTime: Date
expireTime: Date
remark: string
articleNumber: string
colorCode: string
backNumber: string
receivedLocation: string
receivedNumber: string
preEngineering: string
safetyStock: string
reorderPoint: string
orderQty: string
productionLineZoning: string
purchaser: string
}
// 查询物料基本信息列表

4
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -109,8 +109,8 @@ const { tableObject, tableMethods } = useTable({
const importFormRef = ref()
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //

119
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -18,6 +18,33 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left'
},
},
{
label: '品号',
field: 'articleNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '色番',
field: 'colorCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '背番',
field: 'backNumber',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '名称',
field: 'name',
@ -64,6 +91,78 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
} ,
},
{
label: '受入号',
field: 'receivedNumber',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '受入地',
field: 'receivedLocation',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '前工程',
field: 'preEngineering',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '安全库存',
field: 'safetyStock',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '再订货点',
field: 'reorderPoint',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '订单数量',
field: 'orderQty',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '生产线分区',
field: 'productionLineZoning',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '采购员',
field: 'purchaser',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '状态',
field: 'status',
@ -473,16 +572,16 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{ label: '备注', field: 'remark', sort: 'custom', isTable: false},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
}
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// isForm: false ,
// table: {
// width: 150,
// fixed: 'right'
// },
// }
]))
// 表单校验
export const rules = reactive({

Loading…
Cancel
Save