Browse Source

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

intex_online20241228
ljlong_2630 2 months ago
parent
commit
2a9c84921a
  1. 5
      src/api/wms/package/index.ts
  2. 6
      src/api/wms/unplannedreceiptRequestDetail/index.ts
  3. 13
      src/utils/disposition/defaultButtons.ts
  4. 2
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue
  5. 1
      src/views/wms/inventoryManage/balance/balance.data.ts
  6. 4
      src/views/wms/inventoryManage/balance/index.vue
  7. 11
      src/views/wms/inventoryManage/package/index.vue
  8. 14
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  9. 59
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  10. 17
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  11. 12
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  12. 20
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  13. 4
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  14. 4
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  15. 65
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  16. 13
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  17. 71
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  18. 13
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts
  19. 52
      src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue
  20. 40
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  21. 76
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  22. 24
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  23. 49
      src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue
  24. 45
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
  25. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

5
src/api/wms/package/index.ts

@ -100,7 +100,10 @@ export const createPackageLabel = async (data: PackageVO) => {
export const batchPrintingLable = async (data: any) => { export const batchPrintingLable = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLable`, data }) return await request.post({ url: `/wms/package/batchPrintingLable`, data })
} }
// 获取标签信息
export const getPrintingLableId = async (data: any) => {
return await request.put({ url: `/wms/package/getLablesByPackingNumber`, data })
}
// 批量打印标签 // 批量打印标签
export const batchPrintingLableGet = async (params: any) => { export const batchPrintingLableGet = async (params: any) => {
return await request.get({ url: `/wms/package/batchPrintingBalanceLable`, params }) return await request.get({ url: `/wms/package/batchPrintingBalanceLable`, params })

6
src/api/wms/unplannedreceiptRequestDetail/index.ts

@ -118,3 +118,9 @@ export const importTemplate = () => {
export const updateDetailPackingNumber = async (id: number, number) => { export const updateDetailPackingNumber = async (id: number, number) => {
return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number })
} }
// 创建包装信息后更新子表数据packingNumber
export const getDetailList = async (masterId: number) => {
return await request.get({ url: '/wms/unplannedreceipt-request-detail/listForLables?masterId=' + masterId })
}

13
src/utils/disposition/defaultButtons.ts

@ -1103,6 +1103,19 @@ export function mainListPointBtn(option: any) {
hasPermi: '' hasPermi: ''
}) })
} }
// 主列表-创建标签
export function mainListCreatePointBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.创建标签`).replace('ts.', ''),
name: 'createPoint',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
export function mainListPrintInspectionBtn(option: any) { export function mainListPrintInspectionBtn(option: any) {
return __defaultBtnOption(option, { return __defaultBtnOption(option, {
label: t(`ts.打印检验指引单`).replace('ts.', ''), label: t(`ts.打印检验指引单`).replace('ts.', ''),

2
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

@ -175,7 +175,7 @@ routeName.value = route.name
const tableColumns = ref(CustomerStatementMain.allSchemas.tableColumns) const tableColumns = ref(CustomerStatementMain.allSchemas.tableColumns)
const apiPage = ref(CustomerStatementDetailApi.getCustomerStatementDetailPage) const apiPage = ref(CustomerStatementDetailApi.getCustomerStatementDetailPage)
const DetailAllSchemas = ref(CustomerStatementShareReconciliation.allSchemas) const DetailAllSchemas = ref(CustomerStatementDetail.allSchemas)
const tabsExtend = ref(false) const tabsExtend = ref(false)
const tableObjectExtend = ref() const tableObjectExtend = ref()

1
src/views/wms/inventoryManage/balance/balance.data.ts

@ -74,6 +74,7 @@ export const Balance = useCrudSchemas(
label: '供应商批次', label: '供应商批次',
field: 'altBatch', field: 'altBatch',
sort: 'custom', sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },

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

@ -298,7 +298,7 @@ const butttondata = (row) => {
// float: 'right', // float: 'right',
// hasPermi: '' // hasPermi: ''
// }, // },
defaultButtons.mainListPointBtn({hide: isShowPointBtn(row)} ) // defaultButtons.mainListCreatePointBtn({hide: isShowPointBtn(row)} ) //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //
  ]   ]
@ -319,7 +319,7 @@ const buttonTableClick = async (val, row) => {
';U' + ';U' +
row.uom row.uom
alert(aaa) alert(aaa)
} else if (val == 'point') { } else if (val == 'createPoint') {
// //
handlePoint(row) handlePoint(row)
} }

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

@ -369,8 +369,15 @@ const handlePoint = async (row) => {
} }
if (res.cgLabel) { if (res.cgLabel) {
// //
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res.cgLabel) // window.open(src.value+'&asn_number='+res.cgLabel)
PackageApi.getPrintingLableId({packingNumbers:[row.number]}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
} }
if(!res.cgLabel&&!res.zzLabel){ if(!res.cgLabel&&!res.zzLabel){
message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!')

14
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -926,7 +926,19 @@ const tableFormSelectOnBlur = (field, val, row, index) => {
const BASE_URL = getJmreportBaseUrl() const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken())
const labelPrint = async (row) => { const labelPrint = async (row) => {
window.open(src.value + '&request_number=' + row.number) await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => {
if (res.length > 0) {
const itemType = res.some(item=>item.itemType == '可采购')
const itemType1 = res.some(item => item.itemType == '可制造')
if (itemType) {
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&request_number=' + row.number)
}
if (itemType1) {
window.open(src.value + '&request_number=' + row.number)
}
}
})
// window.open(src.value + '&request_number=' + row.number)
} }
/** 初始化 **/ /** 初始化 **/

59
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -135,7 +135,7 @@ const tableColumns = ref([...ProductionreturnRequestMain.allSchemas.tableColumns
// //
const detailListTableColumns =cloneDeep(ProductionreturnRequestDetailLabel.allSchemas) const detailListTableColumns =cloneDeep(ProductionreturnRequestDetailLabel.allSchemas)
const detailListTableColumnsRules =cloneDeep(ProductionreturnRequestDetailLabel) const detailListTableColumnsRules =cloneDeep(ProductionreturnRequestDetailLabelRules)
const isCreateLabel = ref(false) const isCreateLabel = ref(false)
const formLabelRef = ref() const formLabelRef = ref()
const labelType = ref('') // const labelType = ref('') //
@ -704,20 +704,51 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { let array1 = []//
console.log(res) let packingNumbers = []
if (labelType.value == 'cg') { val.forEach((item,index) => {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) packingNumbers.push(item.number)
window.open(src.value+'&asn_number='+res)
} else { if (item.itemType == '可采购') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) array.push(item)
window.open(src.value+'&asn_number='+res) }
} if (item.itemType == '可制造') {
}).catch(err => { array1.push(item)
console.log(err) }
message.error('创建标签失败')
}) })
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
console.log(res)
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value + '&asn_number=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
// await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => {
// console.log(res)
// if (labelType.value == 'cg') {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res)
// } else {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res)
// }
// }).catch(err => {
// console.log(err)
// message.error('')
// })
} }
// //

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

@ -1478,6 +1478,8 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
type: 'FormDate',
format: 'YYYYMMDD',
valueFormat: 'YYYYMMDD', valueFormat: 'YYYYMMDD',
}, },
form: { form: {
@ -1670,7 +1672,11 @@ export const ProductionreturnRequestDetailLabelRules = reactive({
], ],
productionLineCodePackage: [ productionLineCodePackage: [
{ required: true, message: '请选择生产线', trigger: 'change' } { required: true, message: '请选择生产线', trigger: 'change' }
] ],
batch: [
{ required: true, message: '请输入批次', trigger: ['blur', 'change'] }
],
}) })
@ -1724,6 +1730,13 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[
width: 150, width: 150,
}, },
}, },
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
tableForm: {
disabled: true
}
},
])) ]))

12
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -255,6 +255,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
if (fromInventoryStatus.value) { if (fromInventoryStatus.value) {
item.tableForm.searchCondition = [ item.tableForm.searchCondition = [
{ {
key:'fromWarehouseCode',
value:'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
},
{
key: 'businessType', key: 'businessType',
value: businessType.value , value: businessType.value ,
isMainValue: false isMainValue: false
@ -268,6 +274,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
] ]
} else if (fromInventoryStatus.value == null) { } else if (fromInventoryStatus.value == null) {
item.tableForm.searchCondition = [ item.tableForm.searchCondition = [
{
key:'fromWarehouseCode',
value:'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
},
{ {
key: 'businessType', key: 'businessType',
value: businessType.value , value: businessType.value ,

20
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -527,6 +527,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: BalancePopWindow.allSchemas, searchAllSchemas: BalancePopWindow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance, searchPage: BalanceApi.selectLocationTypeToBalance,
searchCondition: [{
key:'fromWarehouseCode',
value:'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -537,6 +547,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: BalancePopWindow.allSchemas, searchAllSchemas: BalancePopWindow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance, searchPage: BalanceApi.selectLocationTypeToBalance,
searchCondition: [{
key:'fromWarehouseCode',
value:'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
} }
} }
}, },

4
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -149,6 +149,10 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{
key: 'type',
value: 'predict',
isMainValue: false
},{ },{
key: 'workshopCode', key: 'workshopCode',
value: 'workshop', value: 'workshop',

4
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -148,6 +148,10 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{
key: 'type',
value: 'assemble',
isMainValue: false
},{ },{
key: 'workshopCode', key: 'workshopCode',
value: 'workshop', value: 'workshop',

65
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -195,6 +195,7 @@ import * as ConfigApi from '@/api/infra/config'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import {exportProductreceiptRequestMainPredict} from "@/api/wms/productreceiptRequestMain"; import {exportProductreceiptRequestMainPredict} from "@/api/wms/productreceiptRequestMain";
import * as ItemPackageApi from "@/api/wms/itempackage"; import * as ItemPackageApi from "@/api/wms/itempackage";
import * as ruleApi from '@/api/wms/rule/index'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
// //
@ -481,6 +482,7 @@ const butttondata = (row, $index) => {
] ]
} }
let toManagementPrecision = ref('')
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { if (val == 'mainClose') {
@ -622,6 +624,19 @@ const buttonTableClick = async (val, row) => {
return return
} }
}) })
ruleApi.getManagementPrecision({
itemCodes: [item['itemCode']],
locationCode: item.toLocationCode
}).then((res) => {
toManagementPrecision.value = res[0].ManagementPrecision
})
if ( toManagementPrecision.value == 'BY_BATCH') {
// row['fromBatchFormItemType'] = 'FormDate'
row['disabled_batch'] = false
} else {
// row['fromBatchFormItemType'] = ''
row['disabled_batch'] = true
}
}) })
} else if (val == 'mainHandle') { } else if (val == 'mainHandle') {
// //
@ -959,22 +974,52 @@ const searchTableSuccessLabel = async (formField, searchField, val, formRef, typ
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
let array1 = []//
let packingNumbers = []
val.forEach((item,index) => {
packingNumbers.push(item.number)
await PackageApi.batchPrintingLable(val.map((item1) => item1.number).join(',')) if (item.itemType == '可采购') {
.then((res) => { array.push(item)
}
if (item.itemType == '可制造') {
array1.push(item)
}
})
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res) console.log(res)
if (labelType.value == 'cg') { window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) }).catch(err => {
window.open(src.value + '&asn_number=' + res) console.log(err)
} else { message.error('创建标签失败')
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value + '&asn_number=' + res)
}
}) })
.catch((err) => { }
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value + '&asn_number=' + res)
}).catch(err => {
console.log(err) console.log(err)
message.error('创建标签失败') message.error('创建标签失败')
}) })
}
// await PackageApi.batchPrintingLable(val.map((item1) => item1.number).join(','))
// .then((res) => {
// console.log(res)
// if (labelType.value == 'cg') {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// window.open(src.value + '&asn_number=' + res)
// } else {
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
// window.open(src.value + '&asn_number=' + res)
// }
// })
// .catch((err) => {
// console.log(err)
// message.error('')
// })
} }
const getDefaultWorkshopCode = async () => { const getDefaultWorkshopCode = async () => {
const data = await ConfigApi.getConfigPage({ const data = await ConfigApi.getConfigPage({

13
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -1727,8 +1727,12 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled: true disabled: true,
} type: 'FormDate',
placeholder: '请选择从批次',
valueFormat: 'YYYYMMDD',
format: 'YYYYMMDD',
},
}, },
{ {
label: '数量', label: '数量',
@ -2131,6 +2135,9 @@ export const ProductreceiptRequestLabelRules = reactive({
], ],
productionLineCodePackage: [ productionLineCodePackage: [
{ required: true, message: '请选择生产线', trigger: 'change' } { required: true, message: '请选择生产线', trigger: 'change' }
] ],
batch: [
{ required: true, message: '请选择批次', trigger: ['change','blur'] }
],
}) })

71
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -155,6 +155,7 @@ import { formatDate } from '@/utils/formatTime'
import * as WorkshopApi from '@/api/wms/workshop' import * as WorkshopApi from '@/api/wms/workshop'
import * as ConfigApi from '@/api/infra/config' import * as ConfigApi from '@/api/infra/config'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as ruleApi from '@/api/wms/rule/index'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
// //
@ -381,6 +382,7 @@ const butttondata = (row,$index) => {
// - // -
const toManagementPrecision = ref('')
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
@ -505,6 +507,19 @@ const buttonTableClick = async (val, row) => {
return return
} }
}) })
ruleApi.getManagementPrecision({
itemCodes: [item['itemCode']],
locationCode: item.toLocationCode
}).then((res) => {
toManagementPrecision.value = res[0].ManagementPrecision
if ( toManagementPrecision.value == 'BY_BATCH') {
// row['fromBatchFormItemType'] = 'FormDate'
item['disabled_batch'] = true
} else if(toManagementPrecision.value == 'BY_QUANTITY') {
// row['fromBatchFormItemType'] = ''
item['disabled_batch'] = false
}
})
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
@ -818,20 +833,50 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { let array1 = []//
console.log(res) let packingNumbers = []
if (labelType.value == 'cg') { val.forEach((item,index) => {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) packingNumbers.push(item.number)
window.open(src.value+'&asn_number='+res)
} else { if (item.itemType == '可采购') {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) array.push(item)
window.open(src.value+'&asn_number='+res) }
} if (item.itemType == '可制造') {
}).catch(err => { array1.push(item)
console.log(err) }
message.error('创建标签失败')
}) })
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value + '&asn_number=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
// await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => {
// console.log(res)
// if (labelType.value == 'cg') {
// const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res)
// } else {
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res)
// }
// }).catch(err => {
// console.log(err)
// message.error('')
// })
} }
const getDefaultWorkshopCode = async () => { const getDefaultWorkshopCode = async () => {
const data = await ConfigApi.getConfigPage({ const data = await ConfigApi.getConfigPage({

13
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -1732,8 +1732,12 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled:true disabled: true,
} type:'FormDate',
placeholder: '请选择从批次',
valueFormat: 'YYYYMMDD',
format: 'YYYYMMDD',
},
}, },
{ {
label: '数量', label: '数量',
@ -2090,6 +2094,9 @@ export const ProductreceiptRequestLabelRules = reactive({
], ],
productionLineCodePackage: [ productionLineCodePackage: [
{ required: true, message: '请选择生产线', trigger: 'change' } { required: true, message: '请选择生产线', trigger: 'change' }
] ],
batch: [
{ required: true, message: '请选择批次', trigger: ['change', 'blur'] }
],
}) })

52
src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue

@ -168,11 +168,11 @@ import {
PurchasereceiptRequestDetail, PurchasereceiptRequestDetail,
PurchasereceiptRequestDetailRules, PurchasereceiptRequestDetailRules,
PurchasereceiptRequestDetailLabel, PurchasereceiptRequestDetailLabel,
PurchasereceiptRequestDetailPackingNumber PurchasereceiptRequestDetailPackingNumber,
} from './purchasereceiptRequestMain.data' } from './purchasereceiptRequestMain.data'
import { import {
SupplierdeliverRequestPackage PurchasereceiptRequestPackage
} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' } from '@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data'
import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data' import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
import * as PackageApi from '@/api/wms/package' import * as PackageApi from '@/api/wms/package'
import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain' import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain'
@ -559,7 +559,7 @@ const labelPrint = async (row) => {
const { getList:getListPrint } = tableMethods const { getList:getListPrint } = tableMethods
await getListPrint() await getListPrint()
tableObject.loading = false tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => { tableColumns.forEach((item) => {
item.width = item.table?.width item.width = item.table?.width
}) })
@ -580,14 +580,44 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { let array1 = []//
let packingNumbers = []
val.forEach((item,index) => {
packingNumbers.push(item.number)
if (item.itemType == '可采购') {
array.push(item)
}
if (item.itemType == '可制造') {
array1.push(item)
}
})
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
console.log(res) console.log(res)
window.open(src.value + '&asn_number=' + res) window.open(src.value + '&asn_number=' + res)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
message.error('创建标签失败') message.error('创建标签失败')
}) })
}
// await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => {
// console.log(res)
// window.open(src.value + '&asn_number=' + res)
// }).catch(err => {
// console.log(err)
// message.error('')
// })
} }
const updateTableData = (tableList)=>{ const updateTableData = (tableList)=>{

40
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -168,7 +168,8 @@ import {
PurchasereceiptRequestDetail, PurchasereceiptRequestDetail,
PurchasereceiptRequestDetailRules, PurchasereceiptRequestDetailRules,
PurchasereceiptRequestDetailLabel, PurchasereceiptRequestDetailLabel,
PurchasereceiptRequestDetailPackingNumber PurchasereceiptRequestDetailPackingNumber,
PurchasereceiptRequestPackage
} from './purchasereceiptRequestMain.data' } from './purchasereceiptRequestMain.data'
import { import {
SupplierdeliverRequestPackage SupplierdeliverRequestPackage
@ -559,7 +560,7 @@ const labelPrint = async (row) => {
const { getList:getListPrint } = tableMethods const { getList:getListPrint } = tableMethods
await getListPrint() await getListPrint()
tableObject.loading = false tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => { tableColumns.forEach((item) => {
item.width = item.table?.width item.width = item.table?.width
}) })
@ -580,14 +581,37 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { let array1 = []//
let packingNumbers = []
val.forEach((item,index) => {
packingNumbers.push(item.number)
if (item.itemType == '可采购') {
array.push(item)
}
if (item.itemType == '可制造') {
array1.push(item)
}
})
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
console.log(res) console.log(res)
window.open(src.value + '&asn_number=' + res) window.open(src.value + '&asn_number=' + res)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
message.error('创建标签失败') message.error('创建标签失败')
}) })
}
} }
const updateTableData = (tableList)=>{ const updateTableData = (tableList)=>{

76
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -2555,3 +2555,79 @@ export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSch
}, },
}, },
])) ]))
export const PurchasereceiptRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,
table: {
},
tableForm: {
disabled: true
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: true,
tableForm: {
type: 'FormDate',
format: 'YYYYMMDD',
valueFormat: 'YYYYMMDD',
}
},
{
label: '包装号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
},
tableForm: {
disabled: true
}
},
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
tableForm: {
disabled: true
}
},
{
label: '标包数量',
field: 'packQty',
sort: 'custom',
tableForm: {
disabled: true
}
},
{
label: '计量单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
form: {
component: 'Select'
},
table: {
},
tableForm: {
type: 'Select',
disabled: true
}
},
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
tableForm: {
disabled: true
}
},
]))

24
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -1824,18 +1824,18 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[
valueFormat: 'YYYYMMDD', valueFormat: 'YYYYMMDD',
} }
}, },
{ // {
label: '打印数量', // label: '打印数量',
field: 'printQty', // field: 'printQty',
sort: 'custom', // sort: 'custom',
table: { // table: {
}, // },
tableForm: { // tableForm: {
type: 'InputNumber', // type: 'InputNumber',
precision: 6, // precision: 6,
min:0 // min:0
} // }
}, // },
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',

49
src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue

@ -171,8 +171,8 @@ import {
PurchasereceiptRequestDetailPackingNumber PurchasereceiptRequestDetailPackingNumber
} from './purchasereceiptRequestMain.data' } from './purchasereceiptRequestMain.data'
import { import {
SupplierdeliverRequestPackage PurchasereceiptRequestPackage
} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' } from '@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data'
import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data' import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
import * as PackageApi from '@/api/wms/package' import * as PackageApi from '@/api/wms/package'
import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain' import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain'
@ -188,6 +188,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { getReportUrl } from '@/utils/systemParam' import { getReportUrl } from '@/utils/systemParam'
import { dateFormatter2 } from '@/utils/formatTime' import { dateFormatter2 } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ToolPurchasereceiptRequestMain' }) defineOptions({ name: 'ToolPurchasereceiptRequestMain' })
@ -559,7 +560,7 @@ const labelPrint = async (row) => {
const { getList:getListPrint } = tableMethods const { getList:getListPrint } = tableMethods
await getListPrint() await getListPrint()
tableObject.loading = false tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => { tableColumns.forEach((item) => {
item.width = item.table?.width item.width = item.table?.width
}) })
@ -580,14 +581,44 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
return return
} }
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
let array = []//
await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { let array1 = []//
let packingNumbers = []
val.forEach((item,index) => {
packingNumbers.push(item.number)
if (item.itemType == '可采购') {
array.push(item)
}
if (item.itemType == '可制造') {
array1.push(item)
}
})
if (array.length>0) {
await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
if (array1.length > 0) {
await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => {
console.log(res) console.log(res)
window.open(src.value + '&asn_number=' + res) window.open(src.value + '&asn_number=' + res)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
message.error('创建标签失败') message.error('创建标签失败')
}) })
}
// await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => {
// console.log(res)
// window.open(src.value + '&asn_number=' + res)
// }).catch(err => {
// console.log(err)
// message.error('')
// })
} }
const updateTableData = (tableList)=>{ const updateTableData = (tableList)=>{

45
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -736,7 +736,28 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '索赔总额',
field: 'claimAmount',
sort: 'custom',
table: {
width: 180
},
isTable:true,
isDetail: true,
isTableForm: false,
isForm: true,
isSearch:false,
sortTableDefault: 12,
form: {
component: 'InputNumber',
componentProps: {
precision: 5,
disabled: true,
}
},
},
{ {
label: '采购审批时间', label: '采购审批时间',
field: 'procurementCreateTime', field: 'procurementCreateTime',
@ -1297,12 +1318,26 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
sort: 'custom', sort: 'custom',
}, },
{ {
label: '', label: '索赔总额',
field: '', field: 'claimAmount',
isForm: false, sort: 'custom',
isTable: false, table: {
isSearch: false, width: 180
},
isTable: true,
isDetail: true, isDetail: true,
isTableForm: false,
isForm: true,
isSearch: false,
sortTableDefault: 12,
form: {
component: 'InputNumber',
componentProps: {
precision: 5,
disabled: true,
}
},
}, },
{ {
label: '', label: '',

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -934,6 +934,8 @@ const openForm = async (type: string, row?: any) => {
item.value = defaultSupplierCode.value item.value = defaultSupplierCode.value
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
item.componentProps.disabled = false item.componentProps.disabled = false
claimDetailsList.value = [];
claimDetails(item.value);
} }
// //
if (item.field == 'orderType') { if (item.field == 'orderType') {

Loading…
Cancel
Save