Browse Source

销售发运代码开发

master_hella_20240701
chenfang 9 months ago
parent
commit
ee24025b0d
  1. 11
      src/api/wms/location/index.ts
  2. 16
      src/api/wms/saleShipmentDetail/index.ts
  3. 12
      src/api/wms/saleShipmentMain/index.ts
  4. 108
      src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts
  5. 11
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  6. 79
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  7. 196
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts

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

@ -84,3 +84,14 @@ export const selectBusinessTypeToLocation = async (params) => {
return request.get({ url: `/wms/location/pageBusinessTypeToLocation`, params }) return request.get({ url: `/wms/location/pageBusinessTypeToLocation`, params })
} }
} }
export const selectConfigToLocation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/location/pageConfigToLocationSenior', data })
} else {
return request.get({ url: `/wms/location/pageConfigToLocation`, params })
}
}

16
src/api/wms/saleShipmentDetail/index.ts

@ -28,38 +28,38 @@ export const getSaleShipmentDetailPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/sale-shipment-detail/senior', data }) return await request.post({ url: '/wms/sale-shipment-detail-request/senior', data })
} else { } else {
return await request.get({ url: `/wms/sale-shipment-detail/page`, params }) return await request.get({ url: `/wms/sale-shipment-detail-request/page`, params })
} }
} }
// 查询销售发运申请子详情 // 查询销售发运申请子详情
export const getSaleShipmentDetail = async (id: number) => { export const getSaleShipmentDetail = async (id: number) => {
return await request.get({ url: `/wms/sale-shipment-detail/get?id=` + id }) return await request.get({ url: `/wms/sale-shipment-detail-request/get?id=` + id })
} }
// 新增销售发运申请子 // 新增销售发运申请子
export const createSaleShipmentDetail = async (data: SaleShipmentDetailVO) => { export const createSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
return await request.post({ url: `/wms/sale-shipment-detail/create`, data }) return await request.post({ url: `/wms/sale-shipment-detail-request/create`, data })
} }
// 修改销售发运申请子 // 修改销售发运申请子
export const updateSaleShipmentDetail = async (data: SaleShipmentDetailVO) => { export const updateSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
return await request.put({ url: `/wms/sale-shipment-detail/update`, data }) return await request.put({ url: `/wms/sale-shipment-detail-request/update`, data })
} }
// 删除销售发运申请子 // 删除销售发运申请子
export const deleteSaleShipmentDetail = async (id: number) => { export const deleteSaleShipmentDetail = async (id: number) => {
return await request.delete({ url: `/wms/sale-shipment-detail/delete?id=` + id }) return await request.delete({ url: `/wms/sale-shipment-detail-request/delete?id=` + id })
} }
// 导出销售发运申请子 Excel // 导出销售发运申请子 Excel
export const exportSaleShipmentDetail = async (params) => { export const exportSaleShipmentDetail = async (params) => {
return await request.download({ url: `/wms/sale-shipment-detail/export-excel`, params }) return await request.download({ url: `/wms/sale-shipment-detail-request/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/sale-shipment-detail/get-import-template' }) return request.download({ url: '/wms/sale-shipment-detail-request/get-import-template' })
} }

12
src/api/wms/saleShipmentMain/index.ts

@ -64,31 +64,31 @@ export const importTemplate = () => {
} }
// 关闭-销售发运申请 // 关闭-销售发运申请
export const closeSaleShipmentMain = async (id) => { export const close = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id })
} }
// 重新添加-销售发运申请 // 重新添加-销售发运申请
export const reAddSaleShipmentMain = async (id) => { export const reAdd = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id })
} }
// 提交审批-销售发运申请 // 提交审批-销售发运申请
export const submitSaleShipmentMain = async (id) => { export const submit = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id })
} }
// 审批驳回-销售发运申请 // 审批驳回-销售发运申请
export const refusedSaleShipmentMain = async (id) => { export const refused = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id })
} }
// 审批通过-销售发运申请 // 审批通过-销售发运申请
export const agreeSaleShipmentMain = async (id) => { export const agree = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id })
} }
// 处理-销售发运申请 // 处理-销售发运申请
export const handleSaleShipmentMain = async (id) => { export const handle = async (id) => {
return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id }) return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id })
} }

108
src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts

@ -763,3 +763,111 @@ export const SaleDetailRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })
/**
* @returns {Array}
*/
export const SaleDetailAndMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '销售订单号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
},
{
label: '销售订单行',
field: 'lineNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
},
{
label: '客户库位',
field: 'fromLocationCode',
sort: 'custom',
isSearch: true,
isTableForm: true,
table: {
width: 150
},
},
{
label: '数量',
field: 'orderQty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
}
}
]))

11
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -150,17 +150,6 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {
var isHave =SaleShipmentMainRecord.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') { if (formType === 'create') {
await SaleShipmentMainRecordApi.createSaleShipmentMainRecord(data) await SaleShipmentMainRecordApi.createSaleShipmentMainRecord(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))

79
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -28,7 +28,7 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
@ -42,7 +42,7 @@
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
:isOpenSearchTable="true" :isOpenSearchTable="false"
fieldTableColumn="soLine" fieldTableColumn="soLine"
@success="getList" @success="getList"
:rules="SaleShipmentMainRules" :rules="SaleShipmentMainRules"
@ -213,15 +213,14 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainListEditBtn({hasPermi:'wms:sale-shipment-main-request:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:update'}), //
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:sale-shipment-main-request:close'}), // defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:sale-shipment-main-request:close'}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:sale-shipment-main-request:reAdd'}), // defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:sale-shipment-main-request:reAdd'}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:submit'}), // defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:sale-shipment-main-request:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:sale-shipment-main-request:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:update'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), //
] ]
} }
const tableData = ref([]) const tableData = ref([])
@ -229,7 +228,73 @@ const tableData = ref([])
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
SaleShipmentMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
SaleShipmentMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
SaleShipmentMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
SaleShipmentMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
SaleShipmentMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainHandle') { //
await message.confirm('确认要 处理吗?')
tableObject.loading = true
SaleShipmentMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)

196
src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts

@ -5,7 +5,9 @@ import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
import * as SaleDetailApi from '@/api/wms/saleDetail' import * as SaleDetailApi from '@/api/wms/saleDetail'
import { SaleDetail } from '@/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data' import { SaleDetailAndMain } from '@/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -19,9 +21,34 @@ const queryParams = {
// 表单校验 // 表单校验
export const SaleShipmentMainRules = reactive({ export const SaleShipmentMainRules = reactive({
customerCode: [
{ required: true, message: '请选择客户代码', trigger: 'blur' }
],
}) })
export const SaleShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([ export const SaleShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: false,
table: {
width: 200
},
},
{
label: '状态',
field: 'status',
sort: 'custom',
table: {
width: 150
},
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isForm:false,
},
{ {
label: '客户代码', label: '客户代码',
field: 'customerCode', field: 'customerCode',
@ -48,35 +75,11 @@ export const SaleShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: false,
table: {
width: 150
},
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
isForm: false,
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isForm: false,
},
{ {
label: '发票时间', label: '发票时间',
field: 'invoiceTime', field: 'invoiceTime',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 180 width: 180
}, },
@ -101,26 +104,33 @@ export const SaleShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '地点', label: '地点',
field: 'siteId', field: 'siteId',
sort: 'custom', sort: 'custom',
isSearch: true,
hiddenInMain: true, hiddenInMain: true,
}, },
{ {
label: '部门', label: '业务类型',
field: 'departmentCode', field: 'businessType',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTableForm: false,
table: {
width: 150
},
}, },
{ {
label: '状态', label: '备注',
field: 'status', field: 'remark',
sort: 'custom', sort: 'custom',
table: { isForm: false,
width: 150 isTableForm: false,
isTable: false
}, },
dictType: DICT_TYPE.REQUEST_STATUS, {
dictClass: 'string', label: '部门',
isSearch: true, field: 'departmentCode',
sort: 'custom',
isForm: false, isForm: false,
isTableForm: false,
isTable: false
}, },
{ {
label: '自动提交', label: '自动提交',
@ -220,15 +230,20 @@ export const SaleShipmentMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isForm: false, isForm: false,
isTableForm: false,
isTable: false
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isDetail: false,
isForm: false, isForm: false,
table: { table: {
width: 150, width: 250,
fixed: 'right' fixed: 'right'
} },
hiddenInMain:true,
isTableForm:false,
} }
])) ]))
@ -237,30 +252,14 @@ export const SaleShipmentDetailRules = reactive({
}) })
export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
width: 180
},
isTable: false,
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '销售订单号', label: '销售订单号',
field: 'soNumber', field: 'soNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 200
}, },
isSearch: true,
tableForm: { tableForm: {
type: 'Select', type: 'Select',
disabled: true disabled: true
@ -283,12 +282,17 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择销售订单行', searchListPlaceholder: '请选择销售订单行',
searchField: 'lineNumber', searchField: 'lineNumber',
searchTitle: '销售订单信息', searchTitle: '销售订单信息',
searchAllSchemas: SaleDetail.allSchemas, searchAllSchemas: SaleDetailAndMain.allSchemas,
searchPage: SaleDetailApi.getSaleDetailPage, searchPage: SaleDetailApi.getSaleDetailPage,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
isMainValue: true
}] }]
}, },
form: { form: {
@ -298,7 +302,7 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择销售订单行', searchListPlaceholder: '请选择销售订单行',
searchField: 'lineNumber', searchField: 'lineNumber',
searchTitle: '销售订单信息', searchTitle: '销售订单信息',
searchAllSchemas: SaleDetail.allSchemas, searchAllSchemas: SaleDetailAndMain.allSchemas,
searchPage: SaleDetailApi.getSaleDetailPage, searchPage: SaleDetailApi.getSaleDetailPage,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
@ -314,7 +318,7 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '物代码', label: '物代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -326,29 +330,63 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
table: {
width: 150
},
}, },
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
isSearch: true, },
{
label: '客户库位',
field: 'fromLocationCode',
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectConfigToLocation,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
form: {
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择客户库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectConfigToLocation,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
}, },
{ {
label: '从货主代码', label: '从货主代码',
field: 'fromOwnerCode', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
isSearch: true,
isForm: false, isForm: false,
isTableForm: false isTableForm: false,
isTable: false,
}, },
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
isForm: false, isForm: false,
isTableForm: false isTableForm: false,
isTable: false,
}, },
{ {
@ -356,7 +394,7 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inventoryStatus', field: 'inventoryStatus',
// dictType: DICT_TYPE.INVENTORY_STATUS, // dictType: DICT_TYPE.INVENTORY_STATUS,
// dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -365,14 +403,6 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true, hiddenInMain: true,
isForm: false, isForm: false,
}, },
{
label: '客户库位',
field: 'fromLocationCode',
sort: 'custom',
isSearch: true,
isTableForm: true
},
{ {
label: '物品名称', label: '物品名称',
field: 'itemName', field: 'itemName',
@ -391,7 +421,8 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTableForm: false isTableForm: false,
isTable: false,
}, },
{ {
label: '物品描述2', label: '物品描述2',
@ -401,13 +432,13 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTableForm: false isTableForm: false,
isTable: false,
}, },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
sort: 'custom', sort: 'custom',
isSearch: true,
isTableForm: false, isTableForm: false,
hiddenInMain: true, hiddenInMain: true,
}, },
@ -415,7 +446,9 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '开票数量', label: '开票数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
width: 150
},
}, },
{ {
label: '计量单位', label: '计量单位',
@ -441,7 +474,7 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true, isTable: false,
isTableForm: false isTableForm: false
}, },
{ {
@ -449,7 +482,6 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -459,11 +491,13 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isForm: false, isForm: false,
isTableForm: false isTableForm: false,
isTable: false,
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isDetail: false,
isForm: false, isForm: false,
table: { table: {
width: 150, width: 150,

Loading…
Cancel
Save