Browse Source

修复bug

master_hella_20240701
chenfang 6 months ago
parent
commit
897fa24658
  1. 12
      src/api/wms/balance/index.ts
  2. 6
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts
  3. 9
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  4. 49
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts
  5. 22
      src/views/wms/inventoryManage/balance/index.vue
  6. 5
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

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

@ -161,3 +161,15 @@ export const selectConfigToBalance = async (params) => {
return request.get({ url: '/wms/balance/pageConfigToBalance', params}) return request.get({ url: '/wms/balance/pageConfigToBalance', params})
} }
} }
// 查询库存余额列表根据业务类型 根据库存状态及库区类型筛选
export const getBalanceByBusinessTypeByItemType = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/pageBusinessTypeToBalanceSenior', data })
} else {
return await request.get({ url: `/wms/balance/pageBusinessTypeToBalance`, params })
}
}

6
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/relegateRecordMain.data.ts

@ -46,6 +46,9 @@ export const RelegateRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x' valueFormat: 'x'
} }
}, },
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 200 width: 200
}, },
@ -84,6 +87,9 @@ export const RelegateRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 200 width: 200
}, },
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
}, },
{ {
label: '部门', label: '部门',

9
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -351,15 +351,6 @@ const flag = ref(false)
// form // form
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
let isExist = false
tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.itemCode == item.itemCode))
if (rs.length > 1) isExist = true
})
if (isExist) {
basicFormRef.value.formLoading = false
return message.warning('物料代码重复')
}
data.subList.forEach(obj => { data.subList.forEach(obj => {
if (obj.qty == 0) { if (obj.qty == 0) {
message.warning(`数量不能为0!`) message.warning(`数量不能为0!`)

49
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

@ -100,6 +100,9 @@ export const RelegateRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isForm: false, isForm: false,
isTable: false isTable: false
}, },
@ -130,21 +133,8 @@ export const RelegateRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
isForm: false, detail: {
isTable: false dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '截止时间',
field: 'dueTime',
sort: 'custom',
formatter: dateFormatter,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}, },
isForm: false, isForm: false,
isTable: false isTable: false
@ -154,6 +144,8 @@ export const RelegateRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'departmentCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
isTableForm: false,
isTable:false,
}, },
{ {
label: '状态', label: '状态',
@ -257,21 +249,24 @@ export const RelegateRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'concurrencyStamp', field: 'concurrencyStamp',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false isTable: false,
isDetail:false
}, },
{ {
label: '权限所属人员id', label: '权限所属人员id',
field: 'ruleUserId', field: 'ruleUserId',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false isTable: false,
isDetail:false
}, },
{ {
label: '工作流流水号', label: '工作流流水号',
field: 'serialNumber', field: 'serialNumber',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false isTable: false,
isDetail:false
}, },
{ {
label: '原因', label: '原因',
@ -285,7 +280,8 @@ export const RelegateRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 200, width: 200,
fixed: 'right' fixed: 'right'
} },
isDetail:false
} }
])) ]))
@ -311,7 +307,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'itemCode', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, searchPage: BalanceApi.getBalanceByBusinessTypeByItemType,
searchCondition: [] searchCondition: []
} }
}, },
@ -321,7 +317,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 searchPage: BalanceApi.getBalanceByBusinessTypeByItemType, // 查询弹窗所需分页方法
searchCondition:[ searchCondition:[
{ {
key: 'available', key: 'available',
@ -596,14 +592,6 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isTable:false, isTable:false,
}, },
{
label: '扩展属性',
field: 'extraProperties',
sort: 'custom',
isForm:false,
isTableForm: false,
isTable:false,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -617,6 +605,9 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isForm:false, isForm:false,
isTableForm: false, isTableForm: false,
isTable:false, isTable:false,

22
src/views/wms/inventoryManage/balance/index.vue

@ -133,17 +133,17 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
// { {
// label: '', label: '标签信息',
// name: 'bqxx', name: 'bqxx',
// hide: false, hide: false,
// type: 'primary', type: 'primary',
// icon: '', icon: '',
// color: '', color: '',
// link: true, link: true,
// float:'right', float:'right',
// hasPermi: '' hasPermi: ''
// }, },
defaultButtons.mainListPointBtn(null), // defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

5
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -58,6 +58,9 @@
:detailAllSchemas="ContainerRecordDetail.allSchemas" :detailAllSchemas="ContainerRecordDetail.allSchemas"
:detailAllSchemasRules="ContainerRecordDetailRules" :detailAllSchemasRules="ContainerRecordDetailRules"
:apiPage="ContainerRecordDetailApi.getContainerRecordDetailPage" :apiPage="ContainerRecordDetailApi.getContainerRecordDetailPage"
:detailButtonIsShowAdd="false"
:detailButtonIsShowDelete="false"
:detailButtonIsShowUpdate="false"
/> />
</template> </template>
@ -137,7 +140,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:container-record-detail:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:container-record-detail:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:container-record-detail:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:container-record-detail:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //

Loading…
Cancel
Save