Commit 79ad5b69 authored by dragondean@qq.com's avatar dragondean@qq.com

价格为0的单询异常可以修改单位

parent c886d29c
......@@ -1047,12 +1047,13 @@
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}</span
>
<!-- <selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" />
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" /> -->
{{ currencyMap[scope.row.seaFreightCurrency] }} /
{{ unitMap[scope.row.seaFreightVolume] }}
<!--template v-else>
<selector v-model="scope.row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w100" />
/
<selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" class="w100" />
</template-->
</div>
</div>
<div v-else class="channel">
......@@ -1100,12 +1101,12 @@
:placeholder="$t('整数或者两位小数')"
class="w100"
/>
<span
>{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}</span
>
<!-- <selector v-model="scope.row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" />
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w100" /> -->
{{ currencyMap[scope.row.clearanceFreightCurrency] }} /
{{ unitMap[scope.row.clearanceFreightVolume] }}
<!--
<selector v-model="scope.row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w100" />
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" class="w100" />
-->
</div>
</div>
<div v-else>
......@@ -1193,12 +1194,14 @@
type="number"
:placeholder="$t('整数或者两位小数')"
/>
<span
>{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}</span
>
<!-- <selector style="width:100px" v-model="row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 />
/ <selector style="width:100px" v-model="row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 /> -->
<span v-if="!unitChangable">
{{ currencyMap[row.seaFreightCurrency] }} /
{{ unitMap[row.seaFreightVolume] }}
</span>
<template v-else>
<selector style="width:100px" v-model="row.seaFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 />
/ <selector style="width:100px" v-model="row.seaFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 />
</template>
</div>
</div>
</div>
......@@ -1221,12 +1224,14 @@
type="number"
:placeholder="$t('整数或者两位小数')"
/>
<span
>{{ currencyMap[row.clearanceFreightCurrency] }} /
{{ unitMap[row.clearanceFreightVolume] }}</span
>
<!-- <selector style="width:100px" v-model="row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 />
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 /> -->
<span v-if="!unitChangable">
{{ currencyMap[row.clearanceFreightCurrency] }} /
{{ unitMap[row.clearanceFreightVolume] }}
</span>
<template v-else>
<selector style="width:100px" v-model="row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" />
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l('title')" value-field="id" />
</template>
</div>
</div>
</div>
......@@ -2280,6 +2285,8 @@ export default {
selectLine: null,
calculating: false, // 是否正在计算费用,防止频繁重新请求,
loopOrderItem: [], //线路单询异常清关费,
// 単询异常是否可以更改单位
unitChangable: false
};
},
activated() {
......@@ -2331,7 +2338,7 @@ export default {
this.orderExceptionData.orderExceptionAmountCurrencyId
);
}
if (
this.orderExceptionData.orderExceptionType ==
"not_shipping_channel_exception"
......@@ -2493,6 +2500,7 @@ export default {
that.loading = true;
getExceptionById(that.orderExceptionId).then((response) => {
that.orderExceptionData = response.data;
that.loading = false;
that.orderId = response.data.orderId;
that.getOrderData();
......@@ -2578,6 +2586,19 @@ export default {
//not_shipping_channel_exception 不可出渠道异常
getOrder(this.orderId).then((response) => {
this.orderData = response.data;
const orderItem = this.orderData.orderItemVOList.find(item => item.orderItemId === this.orderExceptionData.orderItemId)
console.log("uniChangable", this.orderExceptionData.orderExceptionStatus,
this.orderExceptionData.orderExceptionType,
orderItem?.oneSeaFreight, orderItem?.oneClearanceFreight)
// 待处理 且 単询异常 且 清关费和运费为0则可以修改单位
if(
this.orderExceptionData.orderExceptionStatus == 0 &&
this.orderExceptionData.orderExceptionType === "line_loop_exception" &&
orderItem && orderItem.oneSeaFreight === 0 && orderItem.oneClearanceFreight === 0
){
this.unitChangable = true
}else this.unitChangable = false
if (this.orderData.channelId != 0) {
this.channelList.map((v) => {
if (v.channelId == this.orderData.channelId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment