Browse Source

客户对账单确认分摊金额中英文

intex_online20241111
张立 4 months ago
parent
commit
a096237761
  1. 3
      src/components/Detail/src/Detail.vue
  2. 4
      src/locales/en-US.ts
  3. 6
      src/locales/zh-CN.ts
  4. 75
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

3
src/components/Detail/src/Detail.vue

@ -1187,6 +1187,9 @@ watch(
() => props.otherHeadButttonData, () => props.otherHeadButttonData,
(val) => { (val) => {
HeadButttondata.value = [...HeadButttondataBackups.value, ...props.otherHeadButttonData] HeadButttondata.value = [...HeadButttondataBackups.value, ...props.otherHeadButttonData]
},
{
deep: true
} }
) )
defineExpose({ openDetail, formRef ,updateList,submitUpdateList,changeTabCurrent,openForm,tableObjectRef}) // open defineExpose({ openDetail, formRef ,updateList,submitUpdateList,changeTabCurrent,openForm,tableObjectRef}) // open

4
src/locales/en-US.ts

@ -1308,8 +1308,8 @@ export default {
: 'Import mold allocation statement', : 'Import mold allocation statement',
: 'Do you want to re compare?', : 'Do you want to re compare?',
: 'Are you sure about the comparison results?', : 'Are you sure about the comparison results?',
退: 'Do you want to return it?', "是否退回所选中数据?": 'Do you want to return the selected data?',
: 'Do you want to invalidate it?', 退: '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?',
}, },

6
src/locales/zh-CN.ts

@ -1308,9 +1308,9 @@ export default {
: '确认分摊金额', : '确认分摊金额',
: '导入模具分摊对账单', : '导入模具分摊对账单',
: '是否重新对比?', : '是否重新对比?',
: "是否确认对比结果?", "是否确认对比结果": "是否确认对比结果?",
退: '是否退回?', "是否退回所选中数据?": '是否退回所选中数据?',
: '是否作废?', 退: '退回成功',
: '是否确认分摊金额?', : '是否确认分摊金额?',
: '创建开票申请', : '创建开票申请',
}, },

75
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

@ -468,8 +468,9 @@ const tapConfirmationContrast = async (id: number) => {
//退 //退
const tapSendBack = async (id: number) => { const tapSendBack = async (id: number) => {
try { try {
await message.confirm(t('ts.是否退回')) await message.confirm(t('ts.是否退回所选中数据?'))
await CustomerStatementMainApi.sendBack(id) await CustomerStatementMainApi.sendBack(id)
await message.success(t('ts.退回成功'))
// //
//exportLoading.value = true //exportLoading.value = true
} catch { } catch {
@ -482,8 +483,9 @@ const tapSendBack = async (id: number) => {
// //
const tapCancel = async (id: number) => { const tapCancel = async (id: number) => {
try { try {
await message.confirm(t('ts.是否作废')) await message.confirm(t('ts.是否作废所选中数据?'))
await CustomerStatementMainApi.nodeAbrogate(id) await CustomerStatementMainApi.nodeAbrogate(id)
await message.success(t('ts.作废成功'))
// //
//exportLoading.value = true //exportLoading.value = true
} catch { } catch {
@ -497,6 +499,7 @@ const handleConfirmShareMoney = async (id: number) => {
try { try {
await message.confirm(t('ts.是否确认分摊金额')) await message.confirm(t('ts.是否确认分摊金额'))
await CustomerStatementMainApi.confirmationShare(id) await CustomerStatementMainApi.confirmationShare(id)
await message.success(t('ts.确认成功'))
} finally { } finally {
// //
await getList() await getList()
@ -652,10 +655,23 @@ const detailButtonBaseClick = async (val, item, detailTableObject) => {
} }
] ]
} catch {} } catch {}
} else if (val == 'exportConfirmShareMoney') {
//
} else if (val == 'confirmShareMoney') { } else if (val == 'confirmShareMoney') {
// //
try {
await handleConfirmShareMoney(chooseRow.value.id)
detailRef.value.submitUpdateList()
otherHeadButttonData.value = [
{
label: t(`ts.导出`).replace('ts.', ''),
name: 'export',
hide: false,
type: 'success',
icon: 'ep:download',
color: '',
hasPermi: 'wms:customer-statement-main:export'
}
]
} catch {}
} }
} }
// //
@ -697,8 +713,59 @@ const openDetailForm = (row) => {
// //
const handleDetailSubmitForm = async (formType, data) => { const handleDetailSubmitForm = async (formType, data) => {
console.log(detailRef.value.tableObjectRef.tableList) console.log(detailRef.value.tableObjectRef.tableList)
await CustomerStatementDetailApi.updateAdjustmentAmount(data.id,data.masterId,data.adjustmentAmount) await CustomerStatementDetailApi.updateAdjustmentAmount(data.id,data.masterId,data.adjustmentAmount)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
detailRef.value.submitUpdateList() detailRef.value.submitUpdateList()
const amount = ref(0)
detailRef.value.tableObjectRef.tableList.forEach(item => {
amount.value = amount.value + item.adjustmentAmount
})
//
if (amount.value == 0) {
otherHeadButttonData.value = [
{
label: t(`ts.导出`).replace('ts.', ''),
name: 'export',
hide: false,
type: 'success',
icon: 'ep:download',
color: '',
hasPermi: 'wms:customer-statement-main:export'
},
{
label: t('ts.确认分摊金额'),
name: 'confirmShareMoney',
hide: isShowMainButton(chooseRow.value, ['4']),
type: 'primary',
color: '',
disabled:true,
float: 'left',
hasPermi: 'wms:customer-statement-main:confirmationShare'
}
]
} else {
otherHeadButttonData.value = [
{
label: t(`ts.导出`).replace('ts.', ''),
name: 'export',
hide: false,
type: 'success',
icon: 'ep:download',
color: '',
hasPermi: 'wms:customer-statement-main:export'
},
{
label: t('ts.确认分摊金额'),
name: 'confirmShareMoney',
hide: isShowMainButton(chooseRow.value, ['4']),
type: 'primary',
color: '',
disabled:false,
float: 'left',
hasPermi: 'wms:customer-statement-main:confirmationShare'
}
]
}
} }
</script> </script>

Loading…
Cancel
Save