Browse Source

YT-273采购换货

intex_online20241111
zhaoyiran 4 months ago
parent
commit
98e7b6368d
  1. 26
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue
  2. 2
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/purchaseBarterRequestMain.data.ts

26
src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue

@ -28,6 +28,14 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
@ -66,6 +74,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import {CACHE_KEY, useCache} from "@/hooks/web/useCache";
const { loadStart, loadDone } = usePageLoading()
//
@ -100,7 +109,9 @@ const HeadButttondata = [
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
]
const buttonTableClick = async (val, row) => {
}
//
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
@ -119,10 +130,23 @@ const buttonBaseClick = (val, item) => {
}
}
// -
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){
return []
}
return []
}
const formRef = ref()
const detailRef = ref()
const { wsCache } = useCache()
const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue,'recordPurchaseBarter')
}
/** 导出按钮操作 */
const handleExport = async () => {

2
src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/purchaseBarterRequestMain.data.ts

@ -194,6 +194,8 @@ export const PurchaseBarterRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'uom',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.UOM,
dictClass: 'string',
tableForm: {
disabled: true
},

Loading…
Cancel
Save