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. 80
      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',
: 'Do you want to confirm the allocation amount?',
: 'Create an invoice request?',
:'Detail'
:'Detail',
退:'Return'
},

3
src/locales/zh-CN.ts

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

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

@ -128,13 +128,13 @@
]
//
const buttonBaseClick = (val, item) => {
const buttonBaseClick = (val, item) => {
if (val == 'import') {
//
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') {
//
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') {
//
getList()
} else if (val == 'filtrate') {
@ -143,7 +143,7 @@
//
console.log('其他按钮', item)
}
}
}
// -
const butttondata = (row, $index) => {
@ -154,14 +154,78 @@
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) => {
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()

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

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

Loading…
Cancel
Save