Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
赵雪冰 8 months ago
parent
commit
f6cb2ca590
  1. 19
      src/api/eam/sparePartsInLocationMain/index.ts
  2. 2
      src/views/eam/sparepartsinlocation/index.vue
  3. 68
      src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts
  4. 1
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  5. 10
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

19
src/api/eam/sparePartsInLocationMain/index.ts

@ -23,7 +23,7 @@ export interface SparePartsInLocationMainVO {
concurrencyStamp: number concurrencyStamp: number
} }
// 查询备件领用出库记录主列表 // 查询备件库记录主列表
export const getSparePartsInLocationMainPage = async (params) => { export const getSparePartsInLocationMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
@ -34,29 +34,34 @@ export const getSparePartsInLocationMainPage = async (params) => {
} }
} }
// 查询备件领用出库记录主详情 // 查询备件库记录主详情
export const getSparePartsInLocationMain = async (id: number) => { export const getSparePartsInLocationMain = async (id: number) => {
return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id }) return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id })
} }
// 新增备件领用出库记录主 // 新增备件库记录主
export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => {
return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data }) return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data })
} }
// 修改备件领用出库记录主 // 修改备件库记录主
export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => {
return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data }) return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data })
} }
// 删除备件领用出库记录主 // 删除备件库记录主
export const deleteSparePartsInLocationMain = async (id: number) => { export const deleteSparePartsInLocationMain = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id }) return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id })
} }
// 导出备件领用出库记录主 Excel // 导出备件库记录主 Excel
export const exportSparePartsInLocationMain = async (params) => { export const exportSparePartsInLocationMain = async (params) => {
return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params }) if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/spare-parts-in-location-main/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/views/eam/sparepartsinlocation/index.vue

@ -170,7 +170,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn(null), // // defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //

68
src/views/eam/sparepartsinlocation/sparePartsInLocationMain.data.ts

@ -30,14 +30,14 @@ export const SparePartsInLocationMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '编号', label: '编号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: true,
isForm: false, isForm: false,
}, },
{ {
label: '入库主题', label: '入库主题',
field: 'theme', field: 'theme',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: true,
}, },
{ {
label: '流程状态', label: '流程状态',
@ -162,40 +162,6 @@ export const SparePartsInLocationDetailRules = reactive({
}) })
export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
isTableForm:false
},
{
label: '单号',
field: 'number',
sort: 'custom',
isSearch: false,
isTable: false,
isForm: false,
isTableForm:false
},
{
label: '主表ID',
field: 'masterId',
sort: 'custom',
form: {
component: 'InputNumber',
value: 0
},
isSearch: false,
isTable: false,
isForm: false,
isTableForm:false
},
{ {
label: '库位编号', label: '库位编号',
field: 'locationCode', field: 'locationCode',
@ -219,19 +185,19 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
tableForm: { tableForm: {
isInpuFocusShow: true, // isInpuFocusShow: true,
searchListPlaceholder: '请选择备件编号', // 输入框占位文本 // searchListPlaceholder: '请选择备件编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段 // searchField: 'itemNumber', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题 // searchTitle: '备件信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 // searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 // searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [ // searchCondition: [
{ // {
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
} // }
] // ]
} }
}, },
{ {
@ -245,7 +211,7 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
tableForm:{ tableForm:{
disabled: true // disabled: true
} }
}, },
{ {
@ -261,7 +227,7 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
tableForm:{ tableForm:{
disabled: true // disabled: true
} }
}, },
{ {

1
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -586,6 +586,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
purchaseReceiptRecordNumberRef.value = row.purchaseReceiptRecordNumber; purchaseReceiptRecordNumberRef.value = row.purchaseReceiptRecordNumber;
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
PurchasereturnRequestDetail.allSchemas.tableColumns = PurchasereturnRequestDetail.allSchemas.tableColumns.filter(item=>item.field!='inventoryBalance')
detailRef.value.openDetail(row, titleName, titleValue,'requestPurchasereturnMain') detailRef.value.openDetail(row, titleName, titleValue,'requestPurchasereturnMain')
} }

10
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -853,8 +853,8 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '货数量', label: '退货数量',
field: 'receiptQty', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -908,6 +908,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps:{
disabled:true
}
},
tableForm:{ tableForm:{
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
@ -993,6 +998,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
isForm:false, isForm:false,
tableForm:{ tableForm:{
hidden:false,//控制列是否展示
type:'InputNumber', type:'InputNumber',
min:0, min:0,
precision: 6 precision: 6

Loading…
Cancel
Save