Browse Source

缺陷:HL-6011修改

hella_online_20240927
zhaoxuebing 2 months ago
parent
commit
06c4da9da1
  1. 5
      src/api/wms/purchasereceiptRecordMain/index.ts
  2. 3
      src/locales/en-US.ts
  3. 3
      src/locales/zh-CN.ts
  4. 13
      src/utils/disposition/defaultButtons.ts
  5. 15
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

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

@ -134,3 +134,8 @@ export const createPutawayRequest = async (number:string) => {
export const createInspectRequest = async (number:string) => {
return await request.post({ url: `/wms/purchasereceipt-record-main/createInspectRequest?number=`+number })
}
// 创建采购退货记录申请
export const createPurchasereturnRecord = async (number:string) => {
return await request.post({ url: `/wms/purchasereceipt-record-main/createPurchasereturnRecord?number=`+number })
}

3
src/locales/en-US.ts

@ -996,6 +996,7 @@ export default {
:'Generate purchase receipt request',
:'Send the arrival inspection request',
:'Generate a purchase listing request',
退:'Generate purchase return records',
:'Generate a purchase listing request',
:'Generate inventory adjustment request',
:'New Inventory',
@ -1041,7 +1042,9 @@ export default {
'确认生成上架申请吗?':'Are you sure to generate a listing application?',
:'The listing application was successfully generated',
'确认生成到货检验申请吗?':'Is the arrival inspection application confirmed to be generated?',
'确认生成采购退货记录吗?':'Are you sure to generate a purchase return record?',
:'The arrival inspection application was successfully generated',
退:'Purchase return record generated successfully',
:'Purchase receipt record master data',
退:'Purchase return record master data',
:'Appendix to the contract',

3
src/locales/zh-CN.ts

@ -998,6 +998,7 @@ export default {
:'生成采购收货申请',
:'发送到货检验申请',
:'生成采购上架申请',
退:'生成采购退货记录',
:'生成制品上架申请',
:'生成盘点调整申请',
:'重盘',
@ -1043,7 +1044,9 @@ export default {
'确认生成上架申请吗?':'确认生成上架申请吗?',
:'上架申请生成成功',
'确认生成到货检验申请吗?':'确认生成到货检验申请吗?',
'确认生成采购退货记录吗?':'确认生成采购退货记录吗?',
:'到货检验申请生成成功',
退:'采购退货记录生成成功',
:'采购收货记录主',
退:'采购退货记录主',
:'采购拒收记录主',

13
src/utils/disposition/defaultButtons.ts

@ -1175,6 +1175,19 @@ export function mainPutawayRequestBtn(option: any) {
})
}
// 主列表-生成采购退货记录
export function mainPurchasereturnRecordBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.生成采购退货记录`).replace('ts.', ''),
name: 'purchasereturnRecord',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-生成制品上架申请
export function mainPutawayRequestCpBtn(option: any) {
return __defaultBtnOption(option, {

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

@ -188,6 +188,7 @@ const butttondata = (row,$index) => {
return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainPurchasereturnRecordBtn({hasPermi:'wms:purchasereceipt-record-main:createPurchasereturnRecord',hide:row.purchasereturnRecordFlag == "FALSE" }),// 退
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), //
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), //
defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})
@ -200,6 +201,8 @@ const buttonTableClick = async (val, row) => {
handleCreatePutawayRequest(row.number)
}else if(val == 'inspectRequest'){//
handleCreateInspectRequest(row.number)
}else if(val == 'purchasereturnRecord'){//退
handleCreatePurchasereturnRecord(row.number)
}else if(val == 'mainPlanCheckQualityReport'){
//
checkQualityReport(row)
@ -262,6 +265,18 @@ const handleCreateInspectRequest = async (number:string) => {
}
}
/** 生成采购退货记录按钮操作 */
const handleCreatePurchasereturnRecord = async (number:string) => {
try{
await message.confirm(t('ts.确认生成采购退货记录吗?'))
tableObject.loading = true
await PurchasereceiptRecordMainApi.createPurchasereturnRecord(number)
message.success(t('ts.采购退货记录生成成功'))
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
}
//
const detailParenPackingRef = ref()

Loading…
Cancel
Save