Browse Source

供应商模具费用

intex
yufei_wang 2 days ago
parent
commit
1144e5b8b0
  1. 16
      src/api/wms/suppliperMoldCostMain/index.ts
  2. 3
      src/locales/en-US.ts
  3. 3
      src/locales/zh-CN.ts
  4. 66
      src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/index.vue
  5. 11
      src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts

16
src/api/wms/suppliperMoldCostMain/index.ts

@ -31,3 +31,19 @@ export const verifyDataExist = async (yearsMonthStr: String,supplierCode:String)
} }
// 发布
export const publish = async (id: number) => {
return await request.get({ url: `/wms/supplier-tool-apport-statement-main/publish?id=` + id })
}
// 废除
export const nodeAbrogate = async (id: number) => {
return await request.get({ url: `/wms/supplier-tool-apport-statement-main/nodeAbrogate?id=` + id })
}
// 退回
export const sendBack = async (id: number) => {
return await request.get({ url: `/wms/supplier-tool-apport-statement-main/sendBack?id=` + id })
}

3
src/locales/en-US.ts

@ -1315,7 +1315,8 @@ export default {
退: 'Returned successfully', 退: 'Returned successfully',
: 'Do you want to confirm the allocation amount?', : 'Do you want to confirm the allocation amount?',
: 'Create an invoice request?', : 'Create an invoice request?',
:'Detail' :'Detail',
退:'Return'
}, },

3
src/locales/zh-CN.ts

@ -1316,7 +1316,8 @@ export default {
退: '退回成功', 退: '退回成功',
: '是否确认分摊金额?', : '是否确认分摊金额?',
: '创建开票申请', : '创建开票申请',
:'详情' :'详情',
退:'退回',
}, },
} }

66
src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/index.vue

@ -154,15 +154,79 @@
return [] return []
} }
return [ return [
{
label: t('ts.发布'),
name: 'publish',
hide: row.status!=0,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
{
label: t('ts.作废'),
name: 'abrogate',
hide: row.isAbrogate!=1,
type: 'danger',
icon: '',
color: '',
hasPermi: '',
link: true //
},
{
label: t('ts.退回'),
name: 'back',
hide: row.isBack!=1,
type: 'warning',
icon: '',
color: '',
hasPermi: '',
link: true //
}
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if(val=='publish'){
//
try {
//
await message.confirm('确认发布吗?')
//
await SuppliperMoldCostMainApi.publish(row.id)
message.success('发布成功')
//
buttonBaseClick('refresh')
} catch {}
}else if(val=='abrogate'){
//
try {
//
await message.confirm('确认作废吗?')
//
await SuppliperMoldCostMainApi.nodeAbrogate(row.id)
message.success('作废成功')
//
buttonBaseClick('refresh')
} catch {}
}else if(val=='back'){
//
try {
//
await message.confirm('确认退回吗?')
//
await SuppliperMoldCostMainApi.sendBack(row.id)
message.success('退回成功')
//
buttonBaseClick('refresh')
} catch {}
}
} }
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const tableObjectExtend = ref([]) const tableObjectExtend = ref([])

11
src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts

@ -138,6 +138,17 @@ export const SupplierMoldCostMain = useCrudSchemas(reactive<CrudSchema[]>([
table:{ table:{
width:180 width:180
} }
},
{
label: '操作',
field: 'action',
isForm: false,
isTable:true,
isDetail:false,
table: {
width: 180,
fixed: 'right'
}
} }
])) ]))

Loading…
Cancel
Save