Browse Source

Reapply "HL-4935 WMS WEB端预生产和装配报工记录中增加撤销报工操作选项,实现快速制品回收"

This reverts commit 0c6f103c6e5539acd36fcf635478ac510cc7da5f.
hella_online_20240821
李达明 3 months ago
parent
commit
fb627e2c10
  1. 5
      src/api/wms/productreceiptRecordMain/index.ts
  2. 16
      src/locales/en-US.ts
  3. 3
      src/locales/zh-CN.ts
  4. 12
      src/utils/disposition/defaultButtons.ts
  5. 16
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  6. 15
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

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

@ -126,3 +126,8 @@ export const createPutawayRequest = async (number:string) => {
export const createInspectRequest = async (number:string) => {
return await request.post({ url: `/wms/productreceipt-record-main/createInspectRequest?number=`+number })
}
//制品收货记录子执行回收操作
export const handleRecoveryProductreceiptRecord = async (data: ProductreceiptRecordMainVO) => {
return await request.put({ url: `/wms/productreceipt-record-main/handleRecovery`, data })
}

16
src/locales/en-US.ts

@ -615,11 +615,11 @@ export default {
code:'Code',
name:'Name',
},
ts: {
:'Code',
:'All',
@ -1126,7 +1126,7 @@ export default {
2:'Please input package specification2',
2:'Please input package quantity2',
:'submit for approval',
// 系统管理:'system management',
// 系统管理:'system management',
// 基础设施:'infrastructure',
// 报表管理:'report manager',
// 报表:'statement',
@ -1280,9 +1280,9 @@ export default {
:'Rule configuration',
:'Please enter a contact number',
:'Please enter a name',
'确认撤销报工吗?':'Are you sure to cancel the job application?',
},
}

3
src/locales/zh-CN.ts

@ -538,7 +538,7 @@ export default {
'pcs':'个',
free_library_bits_or_total_library_bits:'空闲库位数/总库位数',
slack_stock_warning:'呆滞库存预警',
package_number:'包装号',
@ -1276,6 +1276,7 @@ export default {
:'规则配置',
:'请输入联系电话',
:'请选择范围',
'确认撤销报工吗?':"确认撤销报工吗?",
},
}

12
src/utils/disposition/defaultButtons.ts

@ -1054,6 +1054,18 @@ export function mainListPointBtn(option: any) {
hasPermi: ''
})
}
// 主列表-回收
export function mainListRecoveryBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.撤销报工`).replace('ts.', ''),
name: 'recovery',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-批量打印
export function mainLisSelectiontPointBtn(option: any) {
return __defaultBtnOption(option, {

16
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -198,6 +198,7 @@ const butttondata = (row,$index) => {
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn(null), //
]
}
@ -207,8 +208,11 @@ const buttonTableClick = async (val, row) => {
handleCreateInspectRequest(row.number)
} else if (val == 'point') { //
labelPrint(row)
} else if (val == 'recovery') { //
labelRecovery(row)
}
}
const BASE_URL = getJmreportBaseUrl()
//
const searchTableRef = ref()
@ -241,6 +245,18 @@ const labelPrint = async (row) => {
})
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
}
//
const labelRecovery = async (row) => {
try {
await message.confirm(t('ts.确认撤销报工吗?'))
tableObject.loading = true
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(row)
message.success(t('ts.确认撤销报工成功'))
} catch {
} finally {
tableObject.loading = false
}
}
// --
const searchTableSuccessLabel = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印',val)

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

@ -236,6 +236,7 @@ const butttondata = (row,$index) => {
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), //
defaultButtons.mainListRecoveryBtn(null), //
]
}
@ -247,6 +248,8 @@ const buttonTableClick = async (val, row) => {
handleCreateInspectRequest(row.number)
}else if (val == 'putawayRequest') { //
handleCreatePutawayRequest(row.number)
} else if (val == 'recovery') { //
labelRecovery(row)
}
}
/** 生成到货检验申请按钮操作 */
@ -274,9 +277,19 @@ const handleCreatePutawayRequest = async (number:string) => {
tableObject.loading = false
}
}
const labelRecovery = async (row) => {
try {
await message.confirm(t('ts.确认撤销报工吗?'))
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(row)
message.success(t('ts.确认撤销报工成功'))
} catch {
} finally {
tableObject.loading = false
}
}
const searchTableRef = ref()
const labelType = ref('') //
const labelType = ref('') //
const labelPrint = async (row) => {
console.log(7777,row);
tableObject.loading = true

Loading…
Cancel
Save