9.30禅道bug修复

szh-new
lijingjia 2 months ago
parent 28c0ef211c
commit 98425764fe

@ -133,8 +133,7 @@
feeEnName: '',
quantity: 1,
exchangeRate: 1,
taxRate: 0.00,
accTaxRate: 0.00,
taxRate: 0,
feeType: props.tbType == 'receive' ? 1 : 2,
}
//
@ -222,19 +221,22 @@
data: 'customerName',
type: 'dropdown',
source: async (query, process) => {
if (query && query.indexOf('-') > -1) query = query.split('-')[1]
//
const rowIndex = hotTb.value.hotInstance.getActiveEditor().row
const code = list.value[rowIndex]?.customerType || null
GetClientListByCode({ code }).then((res) => {
GetClientListByCode({ code, queryKey: query }).then((res) => {
const { data } = res
data.forEach((item) => {
item['label'] = item.shortName
item['value'] = item.codeName
})
companyDict.value = data
console.log(companyDict)
const dict = data.map((item) => {
return item.codeName + '-' + item.shortName
})
console.log(dict)
process(dict)
})
},
@ -258,18 +260,13 @@
width: 60,
data: 'taxRate',
type: 'numeric',
numericFormat: {
pattern: '0,0.00'
}
},
{
title: '单价',
width: 70,
data: 'taxUnitPrice',
type: 'numeric',
numericFormat: {
pattern: '0,0.00'
}
format: '0.00',
},
{
title: '数量',
@ -333,9 +330,6 @@
width: 100,
data: 'accTaxRate',
type: 'numeric',
numericFormat: {
pattern: '0,0.00'
}
},
{
title: '销项税额',
@ -561,11 +555,13 @@
//
if (changes[0][1] === 'feeEnName') {
}
//
//
if (changes[0][1] === 'customerName') {
console.log(companyDict.value)
const item = companyDict.value.filter((item) => {
return changes[0][3].includes(item.label)
})
console.log(item)
if (item) dict = item[0]
console.log(dict)
list.value[changes[0][0]]['customerId'] = dict?.id

@ -14,7 +14,7 @@
:height="height"
:type="type"
:broData="broPayData"
:id="data.id"
:id="details.id"
:details="details"
@broInsert="broReceive"
></FeeTable>
@ -26,7 +26,7 @@
:height="height"
:broData="broReceiveData"
:type="type"
:id="data.id"
:id="details.id"
:details="details"
@broInsert="broPay"
></FeeTable>
@ -69,6 +69,7 @@
watch(
() => props.details,
(val) => {
console.log(val)
data.value = val
},
{ immediate: true, deep: true }

@ -119,8 +119,8 @@
</otherInfo>
</transition>
<transition name="slide">
<div class="right-content" v-if="id && !isOpenSet">
<rightContent
v-if="id && !isOpenSet"
ref="RefrightContent"
:id="id"
:details="bookingDetails"
@ -135,7 +135,6 @@
@openFlag="setOpenFlag"
>
</rightContent>
</div>
</transition>
</div>
</a-spin>
@ -196,7 +195,7 @@
const cargoInfo = defineAsyncComponent(() => import("./modules/cargoInfo.vue"))
const goodsTable = defineAsyncComponent(() => import("./modules/goodsTable.vue"))
const ediMore = defineAsyncComponent(() => import("./modules/ediMore.vue"))
const rightContent = defineAsyncComponent(() => import("./modules/rightContent.vue"))
import rightContent from './modules/rightContent.vue'
//
import costEntry from '/@/components/CostEntry/index.vue'
//

@ -590,7 +590,7 @@ function compareSuccess(){
setLoading(false);
reload()
}
onActivated(() => {
onMounted(() => {
//
reload()
// createdInit()

Loading…
Cancel
Save