Browse Source

采购收货和到货检验记录添加生成申请按钮

master
zhang_li 1 year ago
parent
commit
6621e12ae9
  1. 24
      src/utils/disposition/defaultButtons.ts
  2. 4
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
  3. 2
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts
  4. 7
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  5. 1
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  6. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

24
src/utils/disposition/defaultButtons.ts

@ -663,6 +663,30 @@ export function mainListDocumentPrintBtn(option:any) {
hasPermi: ''
})
}
// 主列表-生成到货检验申请
export function mainInspectRequestBtn(option:any) {
return __defaultBtnOption(option,{
label: '生成到货检验申请',
name: 'inspectRequest',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-生成采购上架申请
export function mainPutawayRequestBtn(option:any) {
return __defaultBtnOption(option,{
label: '生成采购上架申请',
name: 'putawayRequest',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 默认按钮规则
function __defaultBtnOption(option:any,specific:any){
return {

4
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue

@ -120,7 +120,9 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = (row) => {
return []
return [
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest'}), //
]
}
// -

2
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts

@ -412,7 +412,7 @@ export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE'
}
}
},
}
]))
//表单校验

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

@ -112,11 +112,16 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = (row) => {
return []
return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceiptRecordMain:inspectRequest'}), //
]
}
// -
const buttonTableClick = async (val, row) => {
if (val == 'putawayRequest') { //
handleExport()
}
}
/** 详情操作 */

1
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -313,6 +313,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -284,7 +284,7 @@ const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess'))
message.success(t('common.submitSuccess'))
await getList()
} catch {}
}

Loading…
Cancel
Save