Browse Source

装配收货记录生产收货申请按钮

hella_online_20240829
陈薪名 4 months ago
parent
commit
47dbeaa82f
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 13
      src/utils/disposition/defaultButtons.ts
  4. 16
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  5. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

1
src/locales/en-US.ts

@ -990,6 +990,7 @@ export default {
:'Generate purchase receipt request',
:'Send the arrival inspection request',
:'Generate a purchase listing request',
:'Generate a purchase listing request',
:'Generate inventory adjustment request',
:'New Inventory',
:'Unfreeze',

1
src/locales/zh-CN.ts

@ -990,6 +990,7 @@ export default {
:'生成采购收货申请',
:'发送到货检验申请',
:'生成采购上架申请',
:'生成制品上架申请',
:'生成盘点调整申请',
:'重盘',
:'解冻',

13
src/utils/disposition/defaultButtons.ts

@ -1115,6 +1115,19 @@ export function mainPutawayRequestBtn(option: any) {
hasPermi: ''
})
}
// 主列表-生成制品上架申请
export function mainPutawayRequestCpBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.生成制品上架申请`).replace('ts.', ''),
name: 'putawayRequest',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-生成盘点调整申请
export function mainCountAdjustRequesttBtn(option: any) {
return __defaultBtnOption(option, {

16
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -233,6 +233,7 @@ const butttondata = (row,$index) => {
}
return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
]
}
@ -243,6 +244,8 @@ const buttonTableClick = async (val, row) => {
labelPrint(row)
}else if(val == 'inspectRequest'){//
handleCreateInspectRequest(row.number)
}else if (val == 'putawayRequest') { //
handleCreatePutawayRequest(row.number)
}
}
/** 生成到货检验申请按钮操作 */
@ -258,6 +261,19 @@ const handleCreateInspectRequest = async (number:string) => {
}
}
/** 生成采购上架申请按钮操作 */
const handleCreatePutawayRequest = async (number:string) => {
try{
await message.confirm(t('ts.确认生成上架申请吗?'))
tableObject.loading = true
await ProductreceiptRecordMainApi.createPutawayRequest(number)
message.success(t('ts.上架申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
}
}
const searchTableRef = ref()
const labelType = ref('') //
const labelPrint = async (row) => {

2
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

@ -728,7 +728,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
isDetail: false,
isForm: false ,
table: {
width: 220,
width: 350,
fixed: 'right'
},
hiddenInMain: false,

Loading…
Cancel
Save