Browse Source

YT-466:业务类型,新增 可用物料状态范围,应是多选,现只能单选

intex_online20241111
songguoqiang 1 month ago
parent
commit
ec7ef32cb3
  1. 14
      src/api/wms/customerStatementMain/index.ts
  2. 7
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  3. 16
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

14
src/api/wms/customerStatementMain/index.ts

@ -32,11 +32,6 @@ export const getCustomerStatementMainPage = async (params) => {
} }
} }
// 查询客户对账单主信息表(WMS)详情
export const getCustomerStatementMain = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-main/get?id=` + id })
}
// 新增客户对账单主信息表(WMS) // 新增客户对账单主信息表(WMS)
export const createCustomerStatementMain = async (data: CustomerStatementMainVO) => { export const createCustomerStatementMain = async (data: CustomerStatementMainVO) => {
return await request.post({ url: `/wms/customer-statement-main/create`, data }) return await request.post({ url: `/wms/customer-statement-main/create`, data })
@ -128,4 +123,13 @@ export const exportCustomerStatementShareMain = async (params) => {
} }
} }
// 客户对账单直接创建开票申请查询主数据
export const getCustomerStatementMain = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-main/get?id=` + id })
}
// 客户对账单直接创建开票申请查询子分页数据
export const pageInvoice = async (params) => {
return await request.get({ url: `/wms/customer-statement-detail/pageInvoice`, params })
}

7
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -67,11 +67,18 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemStatuses', field: 'itemStatuses',
dictType: DICT_TYPE.ITEM_STATUS, dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
form: {
component:'Select',
componentProps: {
multiple: true,
},
}
}, },
{ {
label: '出库库区类型范围', label: '出库库区类型范围',

16
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -170,6 +170,14 @@ const buttonTableClick = async (val, row) => {
rowSplit.itemTypes = rowSplit.itemTypes.split(',') rowSplit.itemTypes = rowSplit.itemTypes.split(',')
} }
//
const allItemStatusesValue = getStrDictOptions(DICT_TYPE.ITEM_STATUS).map(item=>(item.value))
if(rowSplit.itemStatuses == allItemStatusesValue){
rowSplit.itemStatuses = ['全选']
}else{
rowSplit.itemStatuses = rowSplit.itemStatuses.split(',')
}
// //
const allValue = getStrDictOptions(DICT_TYPE.AREA_TYPE).map(item=>(item.value)) const allValue = getStrDictOptions(DICT_TYPE.AREA_TYPE).map(item=>(item.value))
if(rowSplit.outAreaTypes == allValue){ if(rowSplit.outAreaTypes == allValue){
@ -234,6 +242,14 @@ const formsSuccess = async (formType, submitData) => {
data.itemTypes = data.itemTypes.join(',') data.itemTypes = data.itemTypes.join(',')
} }
//
const allItemStatusesValue = getStrDictOptions(DICT_TYPE.ITEM_STATUS).map(item=>(item.value))
if(data.itemStatuses[data.itemStatuses.length-1]=='全选'){
data.itemStatuses = allItemStatusesValue.join(',')
}else{
data.itemStatuses = data.itemStatuses.join(',')
}
// data.outAreaTypes = data.outAreaTypes.join(',') // data.outAreaTypes = data.outAreaTypes.join(',')
// data.inAreaTypes = data.inAreaTypes.join(',') // data.inAreaTypes = data.inAreaTypes.join(',')
// //

Loading…
Cancel
Save