Browse Source

提交补充创建时间搜索条件时冲突

linshi20240813
ljlong_2630 3 months ago
parent
commit
70b96bcb3d
  1. 7
      src/views/wms/inventoryManage/package/index.vue
  2. 35
      src/views/wms/inventoryManage/package/package.data.ts
  3. 16
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/packageoverRetrospect.data.ts
  4. 6
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  5. 23
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue
  6. 28
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordMainNew.data.ts

7
src/views/wms/inventoryManage/package/index.vue

@ -120,7 +120,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:package:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:package:import'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:package:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:package:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
@ -259,7 +259,12 @@ const BASE_URL = getJmreportBaseUrl()
// form
const formsSuccess = async (formType,data) => {
if(!data.productionLineCode&&!data.supplierCode){
message.error(t('供应商代码 和 生产线代码至少填一个!'))
return
}
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await PackageApi.createPackage(data)

35
src/views/wms/inventoryManage/package/package.data.ts

@ -307,7 +307,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
isMainValue: false
},{
key:'itemCode', // 查询列表中字段
value:'itemCode', // 指主表某字段
value:'itemCode', // 指主表某字段
message: '请选择物料代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true, // 表示查询条件是主表的字段的值
action: '==', // 查询拼接条件
@ -498,6 +498,23 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '标签数量',
field: 'count',
sort: 'custom',
isTable: true,
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 0,
max: 100,
}
}
},
// {
// label: '采购订单号',
// field: 'poNumber',
@ -546,14 +563,14 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150,
// },
// },
// {
// label: '生产线代码',
// field: 'productionLineCode',
// sort: 'custom',
// table: {
// width: 150,
// },
// },
{
label: '生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
width: 150,
},
},
// {
// label: '班组代码',
// field: 'teamCode',

16
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/packageoverRetrospect.data.ts

@ -15,14 +15,14 @@ export const PackageoverRetrospect = useCrudSchemas(reactive<CrudSchema[]>([
width: 180
},
},
{
label: '申请单号',
field: 'requestNumber',
sort: 'custom',
table: {
width: 180
},
},
// {
// label: '申请单号',
// field: 'requestNumber',
// sort: 'custom',
// table: {
// width: 180
// },
// },
{
label: '任务单据号',
field: 'jobNumber',

6
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -233,7 +233,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
field: 'toAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isSearch: true,
isSearch: false,
isTable: false,
sort: 'custom',
table: {
@ -431,7 +431,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
}
},
isForm: false,
isSearch: true,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
@ -1027,7 +1027,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
label: '包装规格',
field: 'packUnit',
sort: 'custom',
isSearch: true,
isSearch: false,
table: {
width: 120
},

23
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -1,7 +1,7 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="[...InventorymoveRecordMainNew.allSchemas.searchSchema,...InventorymoveRecordDetailNew.allSchemas.searchSchema]" @search="setSearchParams({'business_type':'Move'})" @reset="setSearchParams({'business_type':'Move'})" />
<Search :schema="[...InventorymoveRecordMainNew.allSchemas.searchSchema,...InventorymoveRecordDetailNew.allSchemas.searchSchema]" @search="setSearchParams({'businessType':'Move'})" @reset="setSearchParams({'businessType':'Move'})" />
</ContentWrap>
<!-- 列表头部 -->
@ -117,7 +117,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
defaultParams:{'business_type':'Move'},
defaultParams:{'businessType':'Move'},
getListApi: InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage //
})
@ -133,7 +133,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn({hasPermi:'wms:inventorymove-record-main:export'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:inventorymove-record-main:import'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:inventorymove-record-main:import'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -198,19 +198,28 @@ const BASE_URL = getJmreportBaseUrl()
//
const searchTableRef = ref()
const labelType = ref('') //
const labelPrint = async (row) => {
tableObject.loading = true
//
let resType = await PackageApi.getPackagePage({
//
const getLabelType = async (row,useToPackingNumber)=>{
let resType = await PackageApi.getPackagePage(useToPackingNumber?{
number: row.toPackingNumber
}:{
requestNumber: row.number
})
console.log('resType',resType)
if(resType.list.length > 0){
if (resType.list[0].productionLineCode != null) {
labelType.value = 'zz'
} else {
labelType.value = 'cg'
}
}else{
getLabelType(row,true)
}
}
const labelPrint = async (row) => {
tableObject.loading = true
//
await getLabelType(row,false)
const defaultParams = {'moduleName':'productreceipt_predict','tableName':'record_productreceipt_main','recordNumber':row.number}
const {tableObject:tableObjectPrint ,tableMethods} = useTable({
defaultParams,

28
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordMainNew.data.ts

@ -149,6 +149,8 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:22
},
{
label: '到仓库代码',
@ -157,6 +159,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:23
},
// {
// label: '从库区类型范围',
@ -203,6 +206,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:24
},
{
label: '入库事务类型',
@ -211,6 +215,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:25
},
{
label: '业务类型',
@ -219,6 +224,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:36
},
// {
@ -276,6 +282,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
sortTableDefault:34
},
{
label: '创建者',
@ -284,6 +291,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:35
},
{
label: '最后更新时间',
@ -434,6 +442,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:10,
},
{
label: '物料名称',
@ -442,6 +451,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:27
},
{
label: '物料描述1',
@ -450,6 +460,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:28
},
{
label: '物料描述2',
@ -458,6 +469,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:29
},
// {
// label: '在途库库位',
@ -474,6 +486,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:18
},
{
label: '到批次',
@ -482,6 +495,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:19
},
{
label: '从包装号',
@ -490,6 +504,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:11
},
{
label: '到包装号',
@ -498,6 +513,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:12
},
// {
// label: '从器具号',
@ -524,7 +540,8 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
},
form: {
component: 'InputNumber',
}
},
sortTableDefault:17
},
{
label: '计量单位',
@ -536,6 +553,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:30
},
{
label: '从库位代码',
@ -544,6 +562,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:13
},
{
label: '到库位代码',
@ -552,6 +571,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:14
},
{
label: '从库存状态',
@ -563,6 +583,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:15
},
{
label: '到库存状态',
@ -574,6 +595,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:16
},
{
label: '从库位组代码',
@ -582,6 +604,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:31
},
{
label: '到库位组代码',
@ -590,6 +613,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:32
},
{
label: '从库区代码',
@ -598,6 +622,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:20
},
{
label: '到库区代码',
@ -606,6 +631,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:21
},
// {
// label: '项目代码',

Loading…
Cancel
Save