Browse Source

YT-1506客户对账单-模具分摊对账单,分摊中应能修改金额,不是分摊状态不能修改,现分摊中不能修改

intex_online20241228
张立 2 months ago
parent
commit
838abafb80
  1. 9
      src/components/BasicForm/src/BasicForm.vue
  2. 16
      src/views/wms/countManage/countadjust/countadjustRecordMain/countadjustRecordMain.data.ts
  3. 5
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

9
src/components/BasicForm/src/BasicForm.vue

@ -674,6 +674,15 @@ watch(
deep: true deep: true
} }
) )
watch(
() => props.formAllSchemas,
(val) => {
formSchema.value = val.formSchema
},
{
deep: true
}
)
let originFormModel = {} let originFormModel = {}
const updateOriginFormModel = (data) => { const updateOriginFormModel = (data) => {
originFormModel = JSON.parse(JSON.stringify(data)) originFormModel = JSON.parse(JSON.stringify(data))

16
src/views/wms/countManage/countadjust/countadjustRecordMain/countadjustRecordMain.data.ts

@ -156,14 +156,14 @@ export const CountadjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ // {
label: '部门', // label: '部门',
field: 'departmentCode', // field: 'departmentCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
// { // {
// label: '接口类型', // label: '接口类型',
// field: 'interfaceType', // field: 'interfaceType',

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

@ -117,7 +117,7 @@
<template #adjustmentAmount="{ row }" v-if="tabCurrent.prop == 'ShareReconciliation'"> <template #adjustmentAmount="{ row }" v-if="tabCurrent.prop == 'ShareReconciliation'">
<div style="position: relative"> <div style="position: relative">
<span>{{ row.adjustmentAmount }}</span> <span>{{ row.adjustmentAmount }}</span>
<Icon v-if="row.status==4" <Icon v-if="chooseRow.status==4"
icon="ep:edit" icon="ep:edit"
color="#409eff" color="#409eff"
@click="openDetailForm(row)" @click="openDetailForm(row)"
@ -655,6 +655,7 @@ const changeTabs = async (item) => {
] ]
apiPage.value = CustomerStatementDetailApi.getCustomerToolApportStatementPage apiPage.value = CustomerStatementDetailApi.getCustomerToolApportStatementPage
DetailAllSchemas.value = CustomerStatementShareReconciliation.allSchemas DetailAllSchemas.value = CustomerStatementShareReconciliation.allSchemas
console.log(555,DetailAllSchemas.value)
otherHeadButttonData.value = [ otherHeadButttonData.value = [
{ {
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
@ -794,8 +795,6 @@ const openDetailForm = (row) => {
} }
// //
const handleDetailSubmitForm = async (formType, data) => { const handleDetailSubmitForm = async (formType, data) => {
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()

Loading…
Cancel
Save