-
+
原币申请
{{ item.applyAmount }}
@@ -50,8 +51,9 @@
-
折算人民币申请
+
折算人民币申请
{{ totalRmb }} RMB
@@ -208,7 +210,6 @@ const [registerTable, { getForm, setSelectedRowKeys, getSelectRows, setProps, ge
maxHeight: '600',
pagination: true,
striped: true,
- rowKey: 'id',
bordered: true,
indexColumnProps: {
width: 60,
@@ -237,7 +238,7 @@ const exchangeFlag = ref(false)
const loading = ref(false)
const form = ref({
isYB: true,
- isRMB:false
+ isRMB: false
}) as any
function handleChangeApply(e) {
form.value.isRMB = !e.target.checked
@@ -248,6 +249,8 @@ const exchangeData = ref({}) as any
// 转换汇率 如果选择的费用明细里有外币 并且选择了人民币结算就弹出汇率
function handleChangeApply1(e) {
form.value.isYB = !e.target.checked
+}
+function changeApply() {
const arr = getSelectRowsFee()
const exchangeArr = [] as any
if (arr.length > 0) {
@@ -284,9 +287,6 @@ function handleChangeApply1(e) {
totalRmb.value = total
}
}
-
-
-
}
const totalRmb = ref(0)
@@ -308,13 +308,25 @@ function handleSureExhange() {
}
})
totalRmb.value = total
- exchangeFlag.value = false
+ setTimeout(() => {
+ arr.forEach(item => {
+ item.originalCurrency = item.currency
+ item.currency = 'RMB'
+ item.originalAmount = item.applyAmount
+ item.applyAmount = Number((Number(item.applyAmount) * Number(item.exchangeRate)).toFixed(2))
+ })
+ emits('updateList', arr, 'isRMB')
+ open.value = false
+ exchangeFlag.value = false
+ }, 100)
+
}
function handleClick(record, index) {
setSelectedRowKeys([record.id])
const data = {
id: record.id,
- businessType: record.businessType
+ businessType: record.businessType,
+ customerId:record.customerId
}
loading.value = true
InvoiceApplicationGetFees([data]).then(res => {
@@ -347,11 +359,11 @@ function init(data) {
customerId: customerIdP.value
})
}
- if(data.isRMB){
+ if (data.isRMB) {
form.value.isRMB = true
form.value.isYB = false
}
- if(data.isYB){
+ if (data.isYB) {
form.value.isYB = true
form.value.isRMB = false
}
@@ -395,19 +407,11 @@ function handleAddDetial() {
})
}
if (form.value.isRMB) {
- arr.forEach(item => {
- item.originalCurrency = item.currency
- item.currency = 'RMB'
- item.originalAmount = item.applyAmount
- item.applyAmount = Number((Number(item.applyAmount) * Number(item.exchangeRate)).toFixed(2))
- })
- }
- open.value = false
- if (form.value.isRMB) {
- emits('updateList', arr, 'isRMB')
+ changeApply()
}
if (form.value.isYB) {
emits('updateList', arr, 'isYB')
+ open.value = false
}
}
const amountArr = ref([]) as any
@@ -506,12 +510,12 @@ function addDetailed() {
});
});
return Promise.all(promises).then(() => {
- emits('addLeft', arrRight, queryDataStr, exchangarr,'isRMB')
+ emits('addLeft', arrRight, queryDataStr, exchangarr, 'isRMB')
open.value = false
setLoading(false)
});
} else {
- emits('addLeft', arrRight, queryDataStr, [],'isRMB')
+ emits('addLeft', arrRight, queryDataStr, [], 'isRMB')
open.value = false
setLoading(false)
}
@@ -520,7 +524,7 @@ function addDetailed() {
}
if (arrRight.length > 0 && form.value.isYB) {
- emits('addLeft', arrRight, queryDataStr, [],'isYB')
+ emits('addLeft', arrRight, queryDataStr, [], 'isYB')
open.value = false
setLoading(false)
}
@@ -596,6 +600,7 @@ defineExpose({ init, changeCustIn })
font-weight: bold;
margin: 0 10px;
}
+
/deep/ .ant-checkbox-wrapper-checked .ant-checkbox-inner {
background-color: #257afa;
border-color: #257afa;
diff --git a/src/views/operation/invoiceApply/detail/index.vue b/src/views/operation/invoiceApply/detail/index.vue
index 9dcb90ce..1da9dec1 100644
--- a/src/views/operation/invoiceApply/detail/index.vue
+++ b/src/views/operation/invoiceApply/detail/index.vue
@@ -989,7 +989,8 @@ function addLeftSave(arr, query, exchang, type) {
arr.forEach(item => {
itemList.push({
id: item.id,
- businessType: item.businessType
+ businessType: item.businessType,
+ customerId:item.customerId
})
})
const data = {
diff --git a/src/views/operation/seaexport/modules/importBc.vue b/src/views/operation/seaexport/modules/importBc.vue
index c5a615b7..caa7be6e 100644
--- a/src/views/operation/seaexport/modules/importBc.vue
+++ b/src/views/operation/seaexport/modules/importBc.vue
@@ -486,7 +486,7 @@
},
filterOption(input, option) {
return (
- option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
)
},
handleYardChange(index) {
diff --git a/src/views/system/datarule/index.vue b/src/views/system/datarule/index.vue
index 923ee0ff..07599623 100644
--- a/src/views/system/datarule/index.vue
+++ b/src/views/system/datarule/index.vue
@@ -30,17 +30,21 @@
应用操作范围到当前页
+
+ {{ record.templateName ? record.templateName : record.permissioName }}
+
-
- {{ item.ruleScopeName
+
+ {{
+ item.ruleScopeName
}}
-
- {{
+
+ {{
item.ruleScopeName }}
@@ -49,14 +53,14 @@