Browse Source

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

# Conflicts:
#	src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
master_hella_20240701
chenfang 6 months ago
parent
commit
f136a67cd4
  1. 21
      src/api/wms/purchaseprice/index.ts
  2. 21
      src/api/wms/supplieritem/index.ts
  3. 3
      src/utils/disposition/defaultButtons.ts
  4. 1454
      src/views/qms/inspectionJob/addForm.vue
  5. 11
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  6. 11
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  7. 6
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  8. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  9. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts
  10. 16
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

21
src/api/wms/purchaseprice/index.ts

@ -22,6 +22,17 @@ export const getPurchasepricePage = async (params) => {
} }
} }
// 查询采购价格单列表
export const getPurchasepricePageSCP = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/purchaseprice/seniorSCP', data })
} else {
return await request.get({ url: `/wms/purchaseprice/pageSCP`, params })
}
}
// 查询采购价格单详情 // 查询采购价格单详情
export const getPurchaseprice = async (id: number) => { export const getPurchaseprice = async (id: number) => {
return await request.get({ url: `/wms/purchaseprice/get?id=` + id }) return await request.get({ url: `/wms/purchaseprice/get?id=` + id })
@ -52,6 +63,16 @@ export const exportPurchaseprice = async (params) => {
} }
} }
// 导出采购价格单 Excel
export const exportPurchasepriceSCP = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchaseprice/export-excel-senior-SCP`, data })
} else {
return await request.download({ url: `/wms/purchaseprice/export-excel-SCP`, params })
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchaseprice/get-import-template' }) return request.download({ url: '/wms/purchaseprice/get-import-template' })

21
src/api/wms/supplieritem/index.ts

@ -31,6 +31,17 @@ export const getSupplieritemPage = async (params) => {
} }
} }
// 查询供应商物料列表
export const getSupplieritemPageSCP = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/supplieritem/seniorSCP', data })
} else {
return await request.get({ url: `/wms/supplieritem/pageSCP`, params })
}
}
// 查询供应商物料详情 // 查询供应商物料详情
export const getSupplieritem = async (id: number) => { export const getSupplieritem = async (id: number) => {
return await request.get({ url: `/wms/supplieritem/get?id=` + id }) return await request.get({ url: `/wms/supplieritem/get?id=` + id })
@ -61,6 +72,16 @@ export const exportSupplieritem = async (params) => {
} }
} }
// 导出供应商物料 Excel
export const exportSupplieritemSCP = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/supplieritem/export-excel-senior-SCP`, data })
} else {
return await request.download({ url: `/wms/supplieritem/export-excel-SCP`, params })
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/supplieritem/get-import-template' }) return request.download({ url: '/wms/supplieritem/get-import-template' })

3
src/utils/disposition/defaultButtons.ts

@ -193,8 +193,7 @@ export function formStagingBtn(option:any) {
label: t(`btn.暂存`).replace('btn.', ''), label: t(`btn.暂存`).replace('btn.', ''),
name: 'staging', name: 'staging',
hide: false, hide: false,
color: 'green',
color: '',
float:'right', float:'right',
hasPermi: '' hasPermi: ''
}) })

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

File diff suppressed because it is too large

11
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -84,7 +84,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasepriceApi.getPurchasepricePage // getListApi: routeName.value.includes('SCP')?PurchasepriceApi.getPurchasepricePageSCP:PurchasepriceApi.getPurchasepricePage //
}) })
// //
@ -238,8 +238,13 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params) if(routeName.value.includes('SCP')){
download.excel(data, `${t('ts.采购价格单')}.xlsx`) const data = await PurchasepriceApi.exportPurchasepriceSCP(tableObject.params)
download.excel(data, `${t('ts.采购价格单')}.xlsx`)
}else{
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params)
download.excel(data, `${t('ts.采购价格单')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

11
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -83,7 +83,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: SupplieritemApi.getSupplieritemPage // getListApi: routeName.value.includes('SCP')?SupplieritemApi.getSupplieritemPageSCP:SupplieritemApi.getSupplieritemPage //
}) })
// //
@ -237,8 +237,13 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await SupplieritemApi.exportSupplieritem(tableObject.params) if(routeName.value.includes('SCP')){
download.excel(data, `${t('ts.供应商物料')}.xlsx`) const data = await SupplieritemApi.exportSupplieritemSCP(tableObject.params)
download.excel(data, `${t('ts.供应商物料')}.xlsx`)
}else{
const data = await SupplieritemApi.exportSupplieritem(tableObject.params)
download.excel(data, `${t('ts.供应商物料')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

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

@ -33,7 +33,7 @@
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
@ -374,7 +374,7 @@ const submitForm = async (formType,data) => {
if (formType === 'create') { if (formType === 'create') {
data.businessType = businessType.value data.businessType = businessType.value
console.log(data.businessType,999); console.log(data.businessType,999);
await ContainerMainRequestApi.createContainerMainRequest(data) await ContainerMainRequestApi.createContainerMainRequest(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {
@ -454,4 +454,4 @@ onMounted(async () => {
}) })
</script> </script>
./initialContainerMainRequest.data ./initialContainerMainRequest.data

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

@ -1031,7 +1031,6 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}, },
{ {
label: '操作', label: '操作',
hiddenInMain:true,
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false , isForm: false ,

1
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -552,7 +552,6 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}, },
{ {
label: '操作', label: '操作',
hiddenInMain:true,
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false , isForm: false ,

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

@ -731,6 +731,20 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
])) ]))
const singlePriceFormart = (row, column, cellValue) => {
cellValue= Number(cellValue).toFixed(5)
cellValue = cellValue + '' || ''
let x = cellValue.split('.')
let x1 = x[0]
let x2 = x.length > 1 ? '.' + x[1] : ''
const reg = /(\d+)(\d{3})/
while(reg.test(x1)){
x1 = x1.replace(reg, '$1,$2')
}
return x1+x2
}
function validateTaxRate(rule, value, callback) { function validateTaxRate(rule, value, callback) {
if (value>0) { if (value>0) {
callback() callback()
@ -913,7 +927,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '合同价格', label: '合同价格',
field: 'singlePrice', field: 'singlePrice',
formatter: accountantFormart, formatter: singlePriceFormart,
table: { table: {
width: 150 width: 150
}, },

Loading…
Cancel
Save