|
|
|
@ -32,6 +32,7 @@
|
|
|
|
|
style="width: 100%" |
|
|
|
|
multiple |
|
|
|
|
@remove-tag="removeTag" |
|
|
|
|
@change="DeliveryType" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
style="padding: 0" |
|
|
|
@ -188,27 +189,31 @@
|
|
|
|
|
<div class="el_Commercial_ercial"> |
|
|
|
|
<span class="el_title_span">附加费计费</span> |
|
|
|
|
<div class="el_fj"> |
|
|
|
|
<!-- 是否有分货费 --> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<span class="el_table_span">是否有分货费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsSortFee" class="el_Cselect"> |
|
|
|
|
<el-radio v-for="item in Distributionfee" :key="item.label" :label="item.value">{{ |
|
|
|
|
<span class="el_table_span">是否附加费</span> |
|
|
|
|
<el-radio-group |
|
|
|
|
v-model="form.dispatchIsAddFee" |
|
|
|
|
class="el_Cselect" |
|
|
|
|
@change="isdispatchIsAddFee" |
|
|
|
|
> |
|
|
|
|
<el-radio v-for="item in additionalfee" :key="item.label" :label="item.value">{{ |
|
|
|
|
item.label |
|
|
|
|
}}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
<!-- 是否有操作/装卸费 --> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<span class="el_table_span">是否有操作/装卸费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsOperateFee" class="el_Cselect"> |
|
|
|
|
<el-radio v-for="item in Operatingfee" :key="item.label" :label="item.value">{{ |
|
|
|
|
|
|
|
|
|
<!-- 是否有分货费 --> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<span class="el_table_span">是否有分货费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsSortFee" class="el_Cselect"> |
|
|
|
|
<el-radio v-for="item in Distributionfee" :key="item.label" :label="item.value">{{ |
|
|
|
|
item.label |
|
|
|
|
}}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 是否有上楼费 --> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<div class="el_upstairs_a"> |
|
|
|
|
<span class="el_table_span">是否有上楼费</span> |
|
|
|
|
<el-radio-group |
|
|
|
@ -222,7 +227,7 @@
|
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<div class="el_upstairs_b" v-if="form.dispatchIsStairsCarryingCharge"> |
|
|
|
|
<span class="el_table_span">是否配置免费层数</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsFeeFloor" class="el_Cselect"> |
|
|
|
@ -235,7 +240,7 @@
|
|
|
|
|
</div> |
|
|
|
|
<div class="el_translation"> |
|
|
|
|
<!-- 是否有平移费 --> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<span class="el_table_span">是否有平移费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsShiftingCharge" class="el_Cselect el_fx"> |
|
|
|
|
<el-radio v-for="item in Translationfee" :key="item.label" :label="item.value">{{ |
|
|
|
@ -243,9 +248,18 @@
|
|
|
|
|
}}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
<!-- 是否有操作/装卸费 --> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<span class="el_table_span">是否有操作/装卸费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsOperateFee" class="el_Cselect el_fx"> |
|
|
|
|
<el-radio v-for="item in Operatingfee" :key="item.label" :label="item.value">{{ |
|
|
|
|
item.label |
|
|
|
|
}}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 附加费是否统一计费 --> |
|
|
|
|
<div class="el_Storage"> |
|
|
|
|
<div class="el_Storage" v-if="form.dispatchIsAddFee"> |
|
|
|
|
<span class="el_table_span">附加费是否按品类计费</span> |
|
|
|
|
<el-radio-group v-model="form.dispatchIsCategorySubjoin" class="el_Cselect el_fx"> |
|
|
|
|
<el-radio |
|
|
|
@ -386,9 +400,9 @@ const SelectData = ref({});
|
|
|
|
|
const formedit = ref({}); //编辑重置 |
|
|
|
|
const formCopy = ref(null); //拷贝的数据 |
|
|
|
|
const form = ref({ |
|
|
|
|
dispatchPieceCategoryState: true, //按件是否显示 |
|
|
|
|
dispatchWeightCategoryState: true, //按重量是否显示 |
|
|
|
|
dispatchCubeCategoryState: true, //按方是否显示 |
|
|
|
|
dispatchPieceCategoryState: false, //按件是否显示 |
|
|
|
|
dispatchWeightCategoryState: false, //按重量是否显示 |
|
|
|
|
dispatchCubeCategoryState: false, //按方是否显示 |
|
|
|
|
dispatchServiceType: '', //仓储计费类型 |
|
|
|
|
dispatchIsByCategory: 0, //是否区分品类 |
|
|
|
|
dispatchIsLeaveBehind: 0, //是否有遗留件 |
|
|
|
@ -398,6 +412,7 @@ const form = ref({
|
|
|
|
|
dispatchIsFeeFloor: null, //是否配置免费层数 |
|
|
|
|
dispatchIsShiftingCharge: 0, //是否有平移费 |
|
|
|
|
dispatchIsCategorySubjoin: 0, //附加费 |
|
|
|
|
dispatchIsAddFee: 0, //是否附加费 |
|
|
|
|
dispatchIsMinCost: 0, //是否最低计费 |
|
|
|
|
dispatchMinCostMode: null, //最低计费方式 |
|
|
|
|
dispatchMinCostType: 1, //最低计费类型 |
|
|
|
@ -500,6 +515,8 @@ const upstairs = ref([]);
|
|
|
|
|
const MinimumState = ref(false); |
|
|
|
|
//是否有分货费 |
|
|
|
|
const Distributionfee = ref([]); |
|
|
|
|
// 是否附加费 |
|
|
|
|
const additionalfee = ref([]); |
|
|
|
|
//是否有操作装卸费 |
|
|
|
|
const Operatingfee = ref([]); |
|
|
|
|
const Deliveryloading = ref(false); |
|
|
|
@ -544,7 +561,43 @@ const UpstairsChange = val => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 是否区分品类 |
|
|
|
|
const categoryChange = val => {}; |
|
|
|
|
const categoryChange = val => { |
|
|
|
|
form.value.dispatchPieceCategoryData = [ |
|
|
|
|
{ |
|
|
|
|
index: 1, |
|
|
|
|
Warehousecategory: '', |
|
|
|
|
options: [], |
|
|
|
|
plus: true, |
|
|
|
|
reduce: false, |
|
|
|
|
StateName: 'storage', //仓储标识 |
|
|
|
|
loading: false, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
form.value.dispatchWeightCategoryData = [ |
|
|
|
|
{ |
|
|
|
|
index: 1, |
|
|
|
|
Warehousecategory: '', |
|
|
|
|
options: [], |
|
|
|
|
plus: true, |
|
|
|
|
reduce: false, |
|
|
|
|
StateName: 'storage', //仓储标识 |
|
|
|
|
loading: false, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
form.value.dispatchCubeCategoryData = [ |
|
|
|
|
{ |
|
|
|
|
index: 1, |
|
|
|
|
Warehousecategory: '', |
|
|
|
|
options: [], |
|
|
|
|
plus: true, |
|
|
|
|
reduce: false, |
|
|
|
|
StateName: 'storage', //仓储标识 |
|
|
|
|
loading: false, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
}; |
|
|
|
|
// 是否最低计费展示 |
|
|
|
|
const MinimumChange = val => { |
|
|
|
|
console.log(val); |
|
|
|
@ -647,6 +700,7 @@ const isChecked = async item => {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
const DeliveryType = async value => {}; |
|
|
|
|
// 点击移除 |
|
|
|
|
const removeTag = value => { |
|
|
|
|
console.log(value, '点击移除value'); |
|
|
|
@ -806,6 +860,7 @@ async function updateDictionary(targetArray, dictionaryType) {
|
|
|
|
|
if (dictionaryType == 'price_yes_no') { |
|
|
|
|
Leftoverparts.value = { ...Distinguishcategories.value }; //是否有遗留件 |
|
|
|
|
Distributionfee.value = { ...Distinguishcategories.value }; //是否有分货费 |
|
|
|
|
additionalfee.value = { ...Distinguishcategories.value }; //是否附加费 |
|
|
|
|
Operatingfee.value = { ...Distinguishcategories.value }; //是否有操作/装卸费 |
|
|
|
|
upstairs.value = { ...Distinguishcategories.value }; //是否有上楼费 |
|
|
|
|
Numberlayers.value = { ...Distinguishcategories.value }; //是否配置免费层数 |
|
|
|
@ -873,6 +928,16 @@ const search = val => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 是否附加费 |
|
|
|
|
|
|
|
|
|
const isdispatchIsAddFee = value => { |
|
|
|
|
(form.value.dispatchIsSortFee = 0), //是否有分货费 |
|
|
|
|
(form.value.dispatchIsStairsCarryingCharge = 0), //是否有上楼费 |
|
|
|
|
(form.value.dispatchIsFeeFloor = null), //是否配置免费层数 |
|
|
|
|
(form.value.dispatchIsShiftingCharge = 0), //是否有平移费 |
|
|
|
|
(form.value.dispatchIsOperateFee = 0), //是否有操作装卸 |
|
|
|
|
(form.value.dispatchIsCategorySubjoin = 0); //附加费是否按品类计费 |
|
|
|
|
}; |
|
|
|
|
function updateOptions(allDropdowns) { |
|
|
|
|
// 拉平所有的下拉框组到一个单一数组中 |
|
|
|
|
let dropdowns = [].concat(...allDropdowns); |
|
|
|
|