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 <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" :prop="headerItem.field"
style="display: flex; align-items: center" 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: '验收日期', label: '验收日期',
field: 'checkTime', field: 'acceptCheckTime',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
{ {
label: '订单号', label: '订单号',
field: 'qty', field: 'releaseNumber',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
{ {
label: '数量-INTEX', label: '数量-INTEX',
field: 'price', field: 'tftmQuantity',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
{ {
label: '数量-TFTM', label: '数量-TFTM',
field: 'amount', field: 'qty',
sort: 'custom', sort: 'custom',
}, },
{ {
@ -311,22 +311,22 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '单价-INTEX', label: '单价-INTEX',
field: 'amount', field: 'intexPrice',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '单价-TFTM', label: '单价-TFTM',
field: 'amount', field: 'price',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '单价差异', label: '单价差异',
field: 'amount', field: 'priceVariance',
sort: 'priceVariance', sort: 'priceVariance',
}, },
{ {
label: '金额-INTEX', label: '金额-INTEX',
field: 'amount', field: 'intexAmount',
sort: 'custom', sort: 'custom',
}, },
{ {

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

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

Loading…
Cancel
Save