Browse Source

问题修复

hella_online_20240829
wangyufei 5 months ago
parent
commit
dfbfc0f87c
  1. 10
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  2. 3
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  3. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  4. 17
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
  5. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts
  6. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  7. 18
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

10
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -114,7 +114,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') {
//
if (formField == 'packingNumber') {
let itemCodes = []
val.forEach(item=>{
const findIndex = tableData.value.findIndex(valItem=>valItem['itemCode']==item.itemCode&&valItem['batch']==item.batch&&valItem['packingNumber']==item.packingNumber)
if(findIndex == -1){
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow['packingNumber'] = item['packingNumber']
newRow['containerNumber'] = item['containerNumber']
@ -124,7 +127,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromLocationCode'] = item['locationCode']
newRow['itemCode'] = item['itemCode']
tableData.value.push(newRow)
}else{
itemCodes.push(item['packingNumber'])
}
})
if(itemCodes.length>0){
message.warning(`${t('ts.包装号')}${itemCodes.join(',')}${t('ts.已经存在')}`);
}
} else {
row[formField] = val[0][searchField]
}

3
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -619,8 +619,9 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150
},
tableForm:{
disabled:true,
multiple:true,
isInpuFocusShow: true, // 开启查询弹窗
// isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',

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

@ -236,6 +236,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow[formField] = item[searchField]
tableData.value.push(newRow)
})
}else{
row[formField] = val[0][searchField]
}
} else {
const setV = {}

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

@ -667,7 +667,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '采购价格审批人',
field: 'procurementCreator',
field: 'procurementCreatorName',
sort: 'custom',
table: {
width: 150
@ -943,7 +943,7 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
},
{
label: '采购价格审批人',
field: 'procurementCreator',
field: 'procurementCreatorName',
sortTableDefault: 1003,
isForm: false,
isTable: false,
@ -1156,6 +1156,19 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
isSearch: false,
isDetail: true,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
sortTableDefault:1000,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isForm: false,
isTable: false,
isSearch: false,
isDetail: true,
}
]))
//表单校验
export const SupplierinvoiceRecordMainRules = reactive({

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts

@ -981,7 +981,7 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive<CrudSchem
},
{
label: '采购价格审批人',
field: 'procurementCreator',
field: 'procurementCreatorName',
sortTableDefault: 1003,
isForm: false,
isTable: false,

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

@ -115,7 +115,7 @@
<template #searchTableSelectionsActions="{selections}">
<div style="text-align: left;margin-right:10px">
系统未税金额:{{selections.selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(2))*item['invoicableQuantity']).toFixed(2)),0)}}
系统未税金额:{{Number(selections.selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(2))*item['invoicableQuantity']).toFixed(2)),0)).toFixed(2)}}
</div>
</template>
<!-- <template #foorter>

18
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -765,7 +765,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '采购价格审批人',
field: 'procurementCreator',
field: 'procurementCreatorName',
table: {
width: 150
},
@ -1219,7 +1219,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
},
{
label: '采购价格审批人',
field: 'procurementCreator',
field: 'procurementCreatorName',
sortTableDefault: 1003,
isForm: false,
isTable: false,
@ -1432,6 +1432,20 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isSearch: false,
isDetail: true,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
sortTableDefault:1000,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isForm: false,
isTable: false,
isSearch: false,
isDetail: true,
},
]))
const singlePriceFormart = (row, column, cellValue) => {
cellValue= Number(cellValue).toFixed(2)

Loading…
Cancel
Save