Browse Source

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

master_hella_20240701
zhousq 6 months ago
parent
commit
459a1b6ffc
  1. 10
      src/api/wms/purchasereceiptRecordMain/index.ts
  2. 10
      src/api/wms/purchasereturnRecordMain/index.ts
  3. 8
      src/views/qms/inspectionJob/addForm.vue
  4. 10
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue
  5. 2
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts
  6. 12
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  7. 6
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  8. 4
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  9. 5
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  10. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

10
src/api/wms/purchasereceiptRecordMain/index.ts

@ -89,6 +89,16 @@ export const exportPurchasereceiptRecordMain = async (params) => {
} }
} }
// 导出采购收货记录主 Excel
export const exportPurchasereceiptRecordMainSCP = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-record-main/export-excel-senior-SCP`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-record-main/export-excel-SCP`, params })
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-record-main/get-import-template' }) return request.download({ url: '/wms/purchasereceipt-record-main/get-import-template' })

10
src/api/wms/purchasereturnRecordMain/index.ts

@ -75,6 +75,16 @@ export const exportPurchasereturnRecordMain = async (params) => {
} }
} }
// 导出采购退货记录主 Excel
export const exportPurchasereturnRecordMainSCP = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior-SCP`, data })
} else {
return await request.download({url: `/wms/purchasereturn-record-main/export-excel-SCP`, params})
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' }) return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' })

8
src/views/qms/inspectionJob/addForm.vue

@ -370,6 +370,8 @@
// //
allSamplePieceSize.value += parseFloat((parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)).toFixed(2)) allSamplePieceSize.value += parseFloat((parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)).toFixed(2))
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
if(!item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList){
//
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) { if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [] item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
@ -383,6 +385,7 @@
}) })
} }
} else { } else {
//
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [] item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
@ -394,6 +397,8 @@
} }
) )
} }
}
// //
if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) {
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
@ -424,6 +429,7 @@
*/ */
for (let i = 0; i < data.value.packageList.length; i++) { for (let i = 0; i < data.value.packageList.length; i++) {
if(data.value.packageList[i].sampleAmount==null){
if (allSamplePieceSize.value > data.value.packageList[i].amount) { if (allSamplePieceSize.value > data.value.packageList[i].amount) {
data.value.packageList[i].sampleAmount = data.value.packageList[i].amount data.value.packageList[i].sampleAmount = data.value.packageList[i].amount
allSamplePieceSize.value = parseFloat((allSamplePieceSize.value - data.value.packageList[i].amount).toFixed(2)) allSamplePieceSize.value = parseFloat((allSamplePieceSize.value - data.value.packageList[i].amount).toFixed(2))
@ -433,6 +439,7 @@
// return; // return;
} }
} }
}
// data.value.packageList.forEach(item=>{ // data.value.packageList.forEach(item=>{
// }) // })
@ -802,6 +809,7 @@
return; return;
} }
await InspectionJobMainApi.stagingInspectionJobMain(data.value); await InspectionJobMainApi.stagingInspectionJobMain(data.value);
message.success("暂存成功")
} catch { } catch {
console.log(111) console.log(111)
} }

10
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -90,7 +90,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'ContainerManage' }) defineOptions({ name: 'ContainerManageRequest' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -110,7 +110,7 @@ const { tableObject, tableMethods } = useTable({
/** /**
* *
*/ */
if ( routeName.value == 'ReturnContainerManage') { if ( routeName.value == 'ReturnContainerManageRequest') {
tableObject.params = { tableObject.params = {
type:'RETURN' type:'RETURN'
} }
@ -120,7 +120,7 @@ const { tableObject, tableMethods } = useTable({
}}); }});
businessType.value = 'ReturnContainerManage' businessType.value = 'ReturnContainerManage'
importFileName.value = '器具返回申请' importFileName.value = '器具返回申请'
} else if ( routeName.value == 'MoveContainerManage') { } else if ( routeName.value == 'MoveContainerManageRequest') {
tableObject.params = { tableObject.params = {
type:'MOVE' type:'MOVE'
} }
@ -130,7 +130,7 @@ const { tableObject, tableMethods } = useTable({
}}); }});
businessType.value = 'MoveContainerManage' businessType.value = 'MoveContainerManage'
importFileName.value = '器具转移申请' importFileName.value = '器具转移申请'
} else if ( routeName.value == 'DeliverContainerManage') { } else if ( routeName.value == 'DeliverContainerManageRequest') {
tableObject.params = { tableObject.params = {
type: 'DELIVER', type: 'DELIVER',
} }
@ -141,7 +141,7 @@ const { tableObject, tableMethods } = useTable({
}}); }});
businessType.value = 'DeliverContainerManage' businessType.value = 'DeliverContainerManage'
importFileName.value = '器具发运申请' importFileName.value = '器具发运申请'
} else if( routeName.value == 'ContainerManage'){ } else if( routeName.value == 'ContainerManageRequest'){
businessType.value = 'ContainerManage' businessType.value = 'ContainerManage'
importFileName.value = '器具管理申请' importFileName.value = '器具管理申请'
} }

2
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts

@ -63,7 +63,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '部门', label: '部门',
@ -166,7 +165,6 @@ export const ContainerRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '主表ID', label: '主表ID',
field: 'masterId', field: 'masterId',
sort: 'custom', sort: 'custom',
isSearch: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0

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

@ -90,38 +90,38 @@ const { tableObject, tableMethods } = useTable({
/** /**
* *
*/ */
if ( routeName.value == 'ReturnContainerManage') { if ( routeName.value == 'ReturnContainerManageRecord') {
tableObject.params = { tableObject.params = {
type:'RETURN' type:'RETURN'
} }
businessType.value = 'ReturnContainerManage' businessType.value = 'ReturnContainerManage'
importFileName.value = '器具返回记录' importFileName.value = '器具返回记录'
} else if ( routeName.value == 'MoveContainerManage') { } else if ( routeName.value == 'MoveContainerManageRecord') {
tableObject.params = { tableObject.params = {
type:'MOVE' type:'MOVE'
} }
businessType.value = 'MoveContainerManage' businessType.value = 'MoveContainerManage'
importFileName.value = '器具转移记录' importFileName.value = '器具转移记录'
} else if ( routeName.value == 'InitialContainerManage') { } else if ( routeName.value == 'InitialContainerManageRecord') {
tableObject.params = { tableObject.params = {
type:'INITIAL', type:'INITIAL',
} }
businessType.value = 'InitialContainerManage' businessType.value = 'InitialContainerManage'
importFileName.value = '器具初始化记录' importFileName.value = '器具初始化记录'
} }
else if ( routeName.value == 'ScrapContainerManage') { else if ( routeName.value == 'ScrapContainerManageRecord') {
tableObject.params = { tableObject.params = {
type:'SCRAP' type:'SCRAP'
} }
businessType.value = 'ScrapContainerManage' businessType.value = 'ScrapContainerManage'
importFileName.value = '器具报废记录' importFileName.value = '器具报废记录'
} else if ( routeName.value == 'DeliverContainerManage') { } else if ( routeName.value == 'DeliverContainerManageRecord') {
tableObject.params = { tableObject.params = {
type: 'DELIVER', type: 'DELIVER',
} }
businessType.value = 'DeliverContainerManage' businessType.value = 'DeliverContainerManage'
importFileName.value = '器具发运记录' importFileName.value = '器具发运记录'
} else if( routeName.value == 'ContainerManage'){ } else if( routeName.value == 'ContainerManageRecord'){
businessType.value = 'ContainerManage' businessType.value = 'ContainerManage'
importFileName.value = '器具管理记录' importFileName.value = '器具管理记录'
} }

6
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -67,7 +67,7 @@
:detailAllSchemas="ContainerDetailRequest.allSchemas" :detailAllSchemas="ContainerDetailRequest.allSchemas"
:detailAllSchemasRules="ContainerDetailRequestRules" :detailAllSchemasRules="ContainerDetailRequestRules"
:apiCreate="ContainerDetailRequestApi.createContainerDetailRequest" :apiCreate="ContainerDetailRequestApi.createContainerDetailRequest"
:apiUpdate="ContainerDetailRequestApi.updateContainerDetailRequest" :apiUpdate="ContainerDetailRequestApi.createContainerDetailRequest"
:apiPage="ContainerDetailRequestApi.getContainerDetailRequestPage" :apiPage="ContainerDetailRequestApi.getContainerDetailRequestPage"
:apiDelete="ContainerDetailRequestApi.deleteContainerDetailRequest" :apiDelete="ContainerDetailRequestApi.deleteContainerDetailRequest"
fromeWhere="ContainerDetailRequest" fromeWhere="ContainerDetailRequest"
@ -90,7 +90,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'InitialContainerManage' }) defineOptions({ name: 'InitialContainerManageRequest' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -109,7 +109,7 @@ const { tableObject, tableMethods } = useTable({
/** /**
* *
*/ */
if ( routeName.value == 'InitialContainerManage') { if ( routeName.value == 'InitialContainerManageRequest') {
tableObject.params = { tableObject.params = {
type:'INITIAL', type:'INITIAL',
} }

4
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -90,7 +90,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'ScrapContainerManage' }) defineOptions({ name: 'ScrapContainerManageRequest' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -110,7 +110,7 @@ const { tableObject, tableMethods } = useTable({
/** /**
* *
*/ */
if ( routeName.value == 'ScrapContainerManage') { if ( routeName.value == 'ScrapContainerManageRequest') {
tableObject.params = { tableObject.params = {
type:'SCRAP' type:'SCRAP'
} }

5
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -267,8 +267,13 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
}else{
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params) const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`) download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

6
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -167,8 +167,14 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
if(routeName.value.includes('SCP')){
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

Loading…
Cancel
Save