Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into intex

intex_online20241111
宋国强 4 months ago
parent
commit
38c3c06322
  1. 12
      src/components/BasicForm/src/BasicForm.vue
  2. 26
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue
  3. 2
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/purchaseBarterRequestMain.data.ts

12
src/components/BasicForm/src/BasicForm.vue

@ -840,10 +840,6 @@ const submitForm = async () => {
const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) {
data.packingNumber=''
data.packUnit=''
data.packQty=''
data.outPackUnit=''
data.inPackUnit=''
}
emit('submitForm', formType.value, data)
} finally {
@ -855,10 +851,6 @@ const submitForm = async () => {
const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) {
data.packingNumber=''
data.packUnit=''
data.packQty=''
data.outPackUnit=''
data.inPackUnit=''
}
console.log(data);
@ -875,10 +867,6 @@ const submitForm = async () => {
//
if (!wsCache.get('ShowPackingNumber') ) {
data.packingNumber=''
data.packUnit=''
data.packQty=''
data.outPackUnit=''
data.inPackUnit=''
}
emit('success', formType.value, data)
} finally {

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