9.30禅道bug修复

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

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

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

@ -119,23 +119,22 @@
</otherInfo> </otherInfo>
</transition> </transition>
<transition name="slide"> <transition name="slide">
<div class="right-content" v-if="id && !isOpenSet"> <rightContent
<rightContent v-if="id && !isOpenSet"
ref="RefrightContent" ref="RefrightContent"
:id="id" :id="id"
:details="bookingDetails" :details="bookingDetails"
:PexcuteRules="excuteRules" :PexcuteRules="excuteRules"
:PexcuteRulesType="excuteRulesType" :PexcuteRulesType="excuteRulesType"
@fileNewUpadte="fileNewUpadte" @fileNewUpadte="fileNewUpadte"
@changeAtd="changeAtd" @changeAtd="changeAtd"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@rules="getRules" @rules="getRules"
@inGoodsSave="inGoodsSaveFun" @inGoodsSave="inGoodsSaveFun"
@handleRefsh="handleRefshRight" @handleRefsh="handleRefshRight"
@openFlag="setOpenFlag" @openFlag="setOpenFlag"
> >
</rightContent> </rightContent>
</div>
</transition> </transition>
</div> </div>
</a-spin> </a-spin>
@ -196,7 +195,7 @@
const cargoInfo = defineAsyncComponent(() => import("./modules/cargoInfo.vue")) const cargoInfo = defineAsyncComponent(() => import("./modules/cargoInfo.vue"))
const goodsTable = defineAsyncComponent(() => import("./modules/goodsTable.vue")) const goodsTable = defineAsyncComponent(() => import("./modules/goodsTable.vue"))
const ediMore = defineAsyncComponent(() => import("./modules/ediMore.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' import costEntry from '/@/components/CostEntry/index.vue'
// //

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

Loading…
Cancel
Save