Browse Source

修复tableForm bug,模具分摊详情按钮接口

intex_online20241111
张立 4 months ago
parent
commit
8a1294c82d
  1. 2
      src/components/TableForm/src/TableForm.vue
  2. 16
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts
  3. 22
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue
  4. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

2
src/components/TableForm/src/TableForm.vue

@ -86,7 +86,7 @@
>
<!-- 字符串输入框 -->
<el-form-item
v-if="!getFormItemType(row,headerItem)&&(!headerItem.tableForm.type || headerItem.tableForm.type == 'InputString')"
v-if="!getFormItemType(row,headerItem)&&(!headerItem?.tableForm?.type || headerItem?.tableForm?.type == 'InputString')"
:prop="headerItem.field"
style="display: flex; align-items: center"
>

16
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts

@ -283,25 +283,25 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
},
{
label: '验收日期',
field: 'checkTime',
field: 'acceptCheckTime',
sort: 'custom',
isForm: false,
},
{
label: '订单号',
field: 'qty',
field: 'releaseNumber',
sort: 'custom',
isForm: false,
},
{
label: '数量-INTEX',
field: 'price',
field: 'tftmQuantity',
sort: 'custom',
isForm: false,
},
{
label: '数量-TFTM',
field: 'amount',
field: 'qty',
sort: 'custom',
},
{
@ -311,22 +311,22 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
},
{
label: '单价-INTEX',
field: 'amount',
field: 'intexPrice',
sort: 'custom',
},
{
label: '单价-TFTM',
field: 'amount',
field: 'price',
sort: 'custom',
},
{
label: '单价差异',
field: 'amount',
field: 'priceVariance',
sort: 'priceVariance',
},
{
label: '金额-INTEX',
field: 'amount',
field: 'intexAmount',
sort: 'custom',
},
{

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

@ -63,6 +63,13 @@
<template #qty="{row}" v-if="tabCurrent.prop == 'ShareReconciliation'">
<span :style="{color:row.qty>0?'red':row.qty<0?'#409eff':'#000'}">{{ row.qty }}</span>
</template>
<template #quantityVariance="{row}" v-if="tabCurrent.prop == 'Reconciliation'">
<span :style="{color:row.quantityVariance>0?'#409eff':row.quantityVariance<0?'red':'#000'}">{{ row.quantityVariance }}</span>
</template>
<template #amountVariance="{row}" v-if="tabCurrent.prop == 'Reconciliation'">
<span :style="{color:row.amountVariance>0?'#409eff':row.amountVariance<0?'red':'#000'}">{{ row.amountVariance }}</span>
</template>
<template #amount="{row}" v-if="tabCurrent.prop == 'ShareReconciliation'">
<div style="display: flex;align-items: center;">
<span style="margin-right:6px">{{ row.amount }}</span>
@ -463,7 +470,7 @@ const changeTabs = async (item) => {
otherHeadButttonData.value = [
{
label: t(`ts.导出`).replace('ts.', ''),
name: 'exportReconciliation',
name: 'export',
hide: false,
type: 'success',
icon: 'ep:download',
@ -500,7 +507,7 @@ const changeTabs = async (item) => {
otherHeadButttonData.value = [
{
label: t(`ts.导出`).replace('ts.', ''),
name: 'exportConfirmShareMoney',
name: 'export',
hide: false,
type: 'success',
icon: 'ep:download',
@ -524,21 +531,24 @@ const changeTabs = async (item) => {
}
}
//
const detailButtonBaseClick = (val, item,detailTableObject) => {
const detailButtonBaseClick = (val, item, detailTableObject) => {
console.log(val, item, detailTableObject)
if (val == 'export') {
//
if (tabCurrent.value.prop == 'Detail') {
handleExportDetail(detailTableObject)
} else if (tabCurrent.value.prop == 'Reconciliation') {
//
//
handleExportReconciliation(detailTableObject)
} {
} else if (tabCurrent.value.prop == 'ShareReconciliation') {
//
}
}else if (val == 'againContrast') {
//
tapRematch(chooseRow.value.id)
}else if (val == 'confirmResults') {
//
tapConfirmationContrast(chooseRow.value.id)
}else if (val == 'exportConfirmShareMoney') {
//
}else if (val == 'confirmShareMoney') {

1
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -347,7 +347,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
row['fromBatchFormItemType'] = ''
row['disabled_fromBatch'] = true
row['fromBatch'] =''
}
} else {
row[formField] = val[0][searchField]

Loading…
Cancel
Save