From c351a1c4204dd492c9ef0985e9c8412b32c3a026 Mon Sep 17 00:00:00 2001
From: xzg <4727863@qq.com>
Date: Thu, 9 Jan 2025 15:16:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=9D=BF=E5=B7=B2?=
=?UTF-8?q?=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Financialse/FinancialWarehousing.vue | 255 ++++++++----------
1 file changed, 109 insertions(+), 146 deletions(-)
diff --git a/src/views/financialsector/Financialse/FinancialWarehousing.vue b/src/views/financialsector/Financialse/FinancialWarehousing.vue
index 674311e6..10584d8f 100644
--- a/src/views/financialsector/Financialse/FinancialWarehousing.vue
+++ b/src/views/financialsector/Financialse/FinancialWarehousing.vue
@@ -4,38 +4,18 @@
-
-
+
+
-
-
+
+
@@ -54,17 +34,9 @@
-
- {{ item.label }}
+
+ {{ item.label
+ }}
@@ -73,29 +45,21 @@
仓储品类配置
-
+
- 新增
+
+
+ 新增
-
- 删除
+
+
+
+ 删除
@@ -113,37 +77,19 @@
-
- {{ item.label }}
+
+ {{ item.label
+ }}
-
-
+
+
@@ -163,12 +109,8 @@
- {{ item.label }}
+ {{ item.label
+ }}
@@ -188,17 +130,10 @@
-
- {{ item.label }}
+
+ {{ item.label
+ }}
@@ -208,26 +143,21 @@
附加费品类配置
-
+
- 新增
+
+
+ 新增
-
- 删除
+
+
+
+ 删除
@@ -366,7 +296,7 @@ const search = val => {
}
}
})
- .catch(res => {})
+ .catch(res => { })
.finally(() => {
SelectData.value.loading = false;
});
@@ -579,8 +509,8 @@ const iswarehouseIsAddFee = () => {
form.value.warehouseIsOperateFee = 0; //是否有操作/装卸费
form.value.warehouseIsSortFee = 0; //是否有分拣费用
form.value.warehouseIsCategorySubjoin = 0; //附加费用是否统一计费
- // 附加品类
- form.value.AdditionalcategoriesData=[
+ // 附加品类
+ form.value.AdditionalcategoriesData = [
{
index: 1,
warehousePieceCategory: '',
@@ -619,8 +549,8 @@ async function updateDictionary(targetArray, dictionaryType) {
warehouseIsAddFeeList.value = { ...Distinguishcategories.value };
}
})
- .catch(() => {})
- .finally(() => {});
+ .catch(() => { })
+ .finally(() => { });
}
/** 重置数据 */
@@ -664,39 +594,45 @@ const onLoad = async () => {
if (request.warehouseIsByCategory == 1) {
form.value.StoragecategoryData = [];
- request.warehousePieceCategorys.forEach((res, index) => {
- form.value.StoragecategoryData.push({
- index: index + 1,
- plus: !index ? true : false,
- reduce: index ? true : false,
- StateName: 'storage', //仓储标识
- warehousePieceCategory: res.id,
- loading: false,
- options: [
- {
- label: res.name,
- value: res.id,
- },
- ],
- });
+ request.warehousePieceCategorys.forEach((item, index) => {
+ if (item) {
+ form.value.StoragecategoryData.push({
+ index: index + 1,
+ plus: !index ? true : false,
+ reduce: index ? true : false,
+ StateName: 'storage', //仓储标识
+ warehousePieceCategory: item.id,
+ loading: false,
+ options: [
+ {
+ label: item.name,
+ value: item.id,
+ },
+ ],
+ });
+ }
+
});
}
if (request.warehouseIsCategorySubjoin == 1) {
form.value.AdditionalcategoriesData = [];
- request.warehouseSubjoinCategorys.forEach((res, index) => {
- form.value.AdditionalcategoriesData.push({
- index: index + 1,
- plus: !index ? true : false,
- reduce: index ? true : false,
- StateName: 'additional', //附加费标识
- warehousePieceCategory: res.id,
- options: [
- {
- label: res.name,
- value: res.id,
- },
- ],
- });
+ request.warehouseSubjoinCategorys.forEach((item, index) => {
+ if (item) {
+ form.value.AdditionalcategoriesData.push({
+ index: index + 1,
+ plus: !index ? true : false,
+ reduce: index ? true : false,
+ StateName: 'additional', //附加费标识
+ warehousePieceCategory: item.id,
+ options: [
+ {
+ label: item.name,
+ value: item.id,
+ },
+ ],
+ });
+ }
+
});
}
form.value.warehouseCalculationBasis = request.warehouseCalculationBasis || 1; //计算基准
@@ -878,48 +814,59 @@ const AdditionalDisplayChange = val => {
.content_max {
padding: 10px;
}
+
.el_Storage {
margin-bottom: 30px;
+
.el_Cselect {
margin-left: 10px;
}
+
.el_table_span {
font-size: 16px;
font-weight: 500;
display: inline-block;
width: 160px;
}
+
.Storage-cont {
display: flex;
flex-direction: column;
}
}
+
.el_hr {
height: 1px;
background-color: #378cbe;
border: none;
border-radius: 10px;
}
+
.el_Surcharge_title {
margin-bottom: 10px;
}
+
.el_Surcharge {
.el_Storage {
width: 24%;
display: flex;
flex-direction: column;
+
.el_Cselect {
margin-left: 0;
background-color: #f5f5f6;
}
}
+
.el_flex_row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
+
.el-form-item {
flex-direction: column;
margin-right: 0;
+
.el-radio-group {
width: 100%;
padding: 0 10px;
@@ -927,24 +874,30 @@ const AdditionalDisplayChange = val => {
}
}
}
+
.el_submit {
width: 100%;
display: flex;
justify-content: flex-end;
}
+
.el_flex {
display: flex;
+
.el_Cselect {
margin-left: 0;
}
}
+
.el_flex_box {
display: flex;
justify-content: space-between;
+
.el-form-item {
flex-direction: column;
margin-right: 0;
}
+
.el_Storage {
width: 24%;
display: flex;
@@ -958,26 +911,31 @@ const AdditionalDisplayChange = val => {
}
}
}
+
.el_btn_a,
.el_btn_b {
font-size: 14px;
display: flex;
align-items: center;
cursor: pointer;
+
.el-icon {
font-size: 14px;
}
}
+
:deep(.el_row_table) {
thead {
th {
background-color: #f5f8fa;
color: #172e60;
}
+
.cell {
padding: 0 10px;
}
}
+
tbody {
.el-table tr:hover {
background-color: transparent;
@@ -986,8 +944,10 @@ const AdditionalDisplayChange = val => {
.cell {
text-align: center;
padding: 0 10px;
+
.el-input-number {
width: 100%;
+
.el-input__wrapper {
box-shadow: none;
}
@@ -999,15 +959,18 @@ const AdditionalDisplayChange = val => {
}
}
}
+
.eml_btn {
display: flex;
justify-content: space-evenly;
align-items: center;
}
+
.el_Storage {
.el-form-item {
flex-direction: column;
margin-right: 0;
+
.el-radio-group {
width: 100%;
padding: 0 10px;