Browse Source

承接-关闭----采购收货、备件收货

master_hella_20240701
wangyufei 5 months ago
parent
commit
d02a844f4c
  1. 2
      src/utils/disposition/defaultButtons.ts
  2. 9
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  3. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
  4. 10
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

2
src/utils/disposition/defaultButtons.ts

@ -908,7 +908,7 @@ export function mainListJobCloBtn(option:any) {
// 主列表-任务流程-放弃按钮
export function mainListJobAbaBtn(option:any) {
return __defaultBtnOption(option,{
label: t(`ts.放弃`).replace('ts.', ''),
label: t(`ts.取消承接`).replace('ts.', ''),
name: 'mainJobAba',
hide: false,
type: 'danger',

9
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -212,9 +212,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
{
label: '拒收',
@ -236,15 +236,20 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(row.masterId)
getList()
} else if (val == 'mainJobClo') { //
handleClose(row.masterId)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(row.masterId)
getList()
} else if(val == 'mainPlanCheckQualityReport'){
//
checkQualityReport(row)
} else if(val == 'mainJobRefusal'){
handleRefusal(row.masterId)
getList()
}
}
//

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts

@ -610,7 +610,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 200,
width: 250,
fixed: 'right'
},
},

10
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

@ -74,7 +74,7 @@ import * as PurchasereceiptJobDetailApi from '@/api/wms/purchasereceiptJobDetail
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import {exportSparereceiptJobMain} from "@/api/wms/purchasereceiptJobMain";
//
//
defineOptions({ name: 'PurchasereceiptJobMain' })
const message = useMessage() //
@ -178,9 +178,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:accept'}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-job-main:abandon'}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:accept'}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-job-main:abandon'}), //
defaultButtons.mainListJobRecBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:execute'}), //
]
}
@ -214,7 +214,7 @@ const handleExecuteSpare = async (id: number) => {
/** 放弃按钮操作 */
const handleAbandon = async (id: number) => {
try {
await message.confirm("是否确认放弃任务!")
await message.confirm("是否确认取消承接!")
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id)
message.success("放弃成功")
await getList()

Loading…
Cancel
Save