Browse Source

xin-库存转移记录

linshi20240813
wangyufei 3 months ago
parent
commit
c2a0ff325c
  1. 7
      src/views/wms/inventoryManage/package/index.vue
  2. 16
      src/views/wms/inventoryManage/package/package.data.ts
  3. 19
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue
  4. 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)

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

@ -546,14 +546,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',

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

@ -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
},
// {
@ -267,6 +273,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
valueFormat: 'x',
}
},
sortTableDefault:34
},
{
label: '创建者',
@ -275,6 +282,7 @@ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
sortTableDefault:35
},
{
label: '最后更新时间',
@ -425,6 +433,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:10,
},
{
label: '物料名称',
@ -433,6 +442,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:27
},
{
label: '物料描述1',
@ -441,6 +451,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:28
},
{
label: '物料描述2',
@ -449,6 +460,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:29
},
// {
// label: '在途库库位',
@ -465,6 +477,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:18
},
{
label: '到批次',
@ -473,6 +486,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:19
},
{
label: '从包装号',
@ -481,6 +495,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:11
},
{
label: '到包装号',
@ -489,6 +504,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:12
},
// {
// label: '从器具号',
@ -515,7 +531,8 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
},
form: {
component: 'InputNumber',
}
},
sortTableDefault:17
},
{
label: '计量单位',
@ -527,6 +544,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:30
},
{
label: '从库位代码',
@ -535,6 +553,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:13
},
{
label: '到库位代码',
@ -543,6 +562,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:14
},
{
label: '从库存状态',
@ -554,6 +574,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:15
},
{
label: '到库存状态',
@ -565,6 +586,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:16
},
{
label: '从库位组代码',
@ -573,6 +595,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:31
},
{
label: '到库位组代码',
@ -581,6 +604,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:32
},
{
label: '从库区代码',
@ -589,6 +613,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:20
},
{
label: '到库区代码',
@ -597,6 +622,7 @@ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
sortTableDefault:21
},
// {
// label: '项目代码',

Loading…
Cancel
Save