+
item.index === id);
@@ -548,6 +569,15 @@ const categoriesduce = id => {
goriesloading.value = true;
removeItemById(form.value.AdditionalcategoriesData, id);
};
+
+// 附加费重置
+const iswarehouseIsAddFee = () => {
+ form.value.warehouseSubjoinFeeUnit = ''; //附加费计价单位
+ form.value.warehouseIsManageFee = 0; //是否有管理费
+ form.value.warehouseIsOperateFee = 0; //是否有操作/装卸费
+ form.value.warehouseIsSortFee = 0; //是否有分拣费用
+ form.value.warehouseIsCategorySubjoin = 0; //附加费用是否统一计费
+};
async function updateDictionary(targetArray, dictionaryType) {
await getDictionaryBiz(dictionaryType)
.then(res => {
@@ -568,6 +598,7 @@ async function updateDictionary(targetArray, dictionaryType) {
Operatingunloading.value = { ...Distinguishcategories.value }; //是否有操作/装卸费
Sortingfee.value = { ...Distinguishcategories.value }; //是否有分拣费用
Additionalfeebilling.value = { ...Distinguishcategories.value }; //附加费用是否统一计费
+ warehouseIsAddFeeList.value = { ...Distinguishcategories.value };
}
})
.catch(() => {})
@@ -613,7 +644,6 @@ const onLoad = async () => {
// 执行回显
form.value = await deepClone(request);
-
if (request.warehouseIsByCategory == 1) {
form.value.StoragecategoryData = [];
request.warehousePieceCategorys.forEach((res, index) => {
@@ -648,12 +678,11 @@ const onLoad = async () => {
value: res.id,
},
],
- });
+ });
});
}
- console.log(request.warehouseCalculationBasis,'request.warehouseCalculationBasis++++++===>>>');
- form.value.warehouseCalculationBasis= request.warehouseCalculationBasis|| 0;//计算基准
- console.log(form.value,'form.value.warehouseCalculationBasis');
+ form.value.warehouseCalculationBasis = request.warehouseCalculationBasis || 1; //计算基准
+ console.log(form.value, 'form.value.warehouseCalculationBasis');
}
formedit.value = deepClone(form.value);
@@ -733,7 +762,6 @@ const Submit = () => {
}
console.log(form.value, '要提交的参数');
-
ElMessageBox.confirm('是否保存?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -868,6 +896,7 @@ const AdditionalDisplayChange = val => {
.el_flex_row {
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
.el-form-item {
flex-direction: column;
margin-right: 0;