Commit bd956fd8 authored by 我在何方's avatar 我在何方

不可出渠道异常修复

parent b76fee56
<template> <template>
<div> <div>
<el-form ref="cabinetForm" :rules="rules" :model="cabinetObj" label-width="80px"> <el-form ref="cabinetForm" :rules="rules" :model="cabinetObj" label-width="80px">
<el-form-item :label="$t('到仓时间')"> <el-form-item :label="$t('到仓时间1')">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="cabinetObj.ldInWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="cabinetObj.ldInWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item :label="$t('仓库')"> <el-form-item :label="$t('仓库')">
......
...@@ -9,20 +9,20 @@ ...@@ -9,20 +9,20 @@
<el-form-item :label="$t('到仓时间')"> <el-form-item :label="$t('到仓时间')">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item :label="$t('卸柜时间')"> <!-- <el-form-item :label="$t('卸柜时间')">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulBoxTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="unloadingObj.ulBoxTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
<el-row class="operate-button"> <el-row class="operate-button">
<el-button type="primary" @click="onSubmit(1)">{{$t('保存')}}</el-button> <el-button type="primary" @click="onSubmit(1)">{{$t('保存')}}</el-button>
<el-button type="success" @click="onSubmit(2)">{{$t('提交')}}</el-button> <el-button type="success" @click="onSubmit(2)">{{$t('提交')}}</el-button>
<el-button @click="cancel">{{$t('关闭')}}</el-button> <el-button @click="cancel">{{$t('关闭')}}</el-button>
<el-button type="danger" @click="startUnloading" :disabled="isStartUnloading">{{$t('开始卸柜')}}</el-button> <el-button type="danger" @click="startUnloading" :disabled="isStartUnloading">{{$t('到仓')}}</el-button>
</el-row> </el-row>
<!-- 开始卸柜 --> <!-- 开始卸柜 -->
<el-dialog :title="$t('开始卸柜')" :visible.sync="dialogVisible" fullscreen :modal-append-to-body=false append-to-body> <el-dialog :title="$t('到仓')" :visible.sync="dialogVisible" fullscreen :modal-append-to-body=false append-to-body>
<startUnloading v-if="dialogVisible" v-bind="$attrs" @closeStart="closeStart" /> <startUnloading v-if="dialogVisible" v-bind="$attrs" @closeStart="closeStart" />
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -2,14 +2,17 @@ ...@@ -2,14 +2,17 @@
<div class="app-startUnloading"> <div class="app-startUnloading">
<!-- 自编号 --> <!-- 自编号 -->
<el-row>
<p style="color:#D9001B;">{{$t('过机重量异常')}}:机场误差3%以内/我司误差超10kg/超过机场重量《N》kg</p>
</el-row>
<el-row class="number-area"> <el-row class="number-area">
<p class="label-font">{{$t('自编号')}}</p> <p class="label-font">{{$t('自编号')}}</p>
<p class="label-font">{{selfNo}}</p> <p class="label-font">{{selfNo}}</p>
<el-input v-model="labelNo" :placeholder="$t('请输入')"></el-input> <el-input v-model="labelNo" :placeholder="$t('请输入')"></el-input>
<div> <div>
<el-button type="primary" @click="modifyUnload">{{$t('提交')}}</el-button> <!-- <el-button type="primary" @click="modifyUnload">{{$t('提交')}}</el-button> -->
<el-button type="primary" @click="modifyBatchUnload">{{$t('批量输入')}}</el-button> <el-button type="primary" @click="modifyBatchUnload">{{$t('批量输入')}}</el-button>
<el-button type="primary" @click="modifyAllUnload">{{$t('一键卸柜')}}</el-button> <el-button type="primary" @click="modifyAllUnload">{{$t('全部到仓')}}</el-button>
</div> </div>
</el-row> </el-row>
...@@ -74,9 +77,12 @@ ...@@ -74,9 +77,12 @@
{{getUnloadError(scope.row.exceptionList)}} {{getUnloadError(scope.row.exceptionList)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" width="170" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope" >
<div class="number-area">
<el-button type="danger" size="small" @click="openError(scope.row)">{{$t('异常')}}</el-button> <el-button type="danger" size="small" @click="openError(scope.row)">{{$t('异常')}}</el-button>
<el-button plain type="primary" size="small" @click="openError(scope.row)">{{$t('出仓修改 ')}}</el-button>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -106,7 +112,7 @@ ...@@ -106,7 +112,7 @@
</div> </div>
<!-- 操作 --> <!-- 操作 -->
<div v-if="!isUnderReview"> <div v-if="!isUnderReview">
<el-button type="success" @click="onSubmit">{{$t('卸柜完成')}}</el-button> <el-button type="success" @click="onSubmit">{{$t('完成到仓')}}</el-button>
<el-button plain type="primary" @click="$emit('closeStart')">{{$t('返回')}}</el-button> <el-button plain type="primary" @click="$emit('closeStart')">{{$t('返回')}}</el-button>
</div> </div>
<div v-if="isUnderReview"> <div v-if="isUnderReview">
......
...@@ -278,6 +278,10 @@ export default { ...@@ -278,6 +278,10 @@ export default {
if(row.orderItemId){ if(row.orderItemId){
var productData = this.orderData.orderItemVOList.find(item=>item.orderItemId==row.orderItemId) var productData = this.orderData.orderItemVOList.find(item=>item.orderItemId==row.orderItemId)
if(productData){ if(productData){
if(row.orderExceptionType=='customs_fee_not_quote_exception'&&productData.prodId){
this.$router.push('/product/product-list?prodId=' + productData.prodId)
return
}else{
getProduct(productData.prodId).then(res=>{ getProduct(productData.prodId).then(res=>{
let params = { let params = {
product_id: productData.prodId, product_id: productData.prodId,
...@@ -314,7 +318,6 @@ export default { ...@@ -314,7 +318,6 @@ export default {
} }
return this.$router.push(url) return this.$router.push(url)
}) })
/* +productData.prodId /* +productData.prodId
+'&product_type='+res.data.typeId +'&product_type='+res.data.typeId
+'&transportId='+this.orderData.transportId +'&transportId='+this.orderData.transportId
...@@ -322,6 +325,7 @@ export default { ...@@ -322,6 +325,7 @@ export default {
}) })
} }
}
}else{ }else{
return this.$confirm(this.$t('数据缺少orderItemId参数,确定要跳转设置路线价格么?')).then(res => { return this.$confirm(this.$t('数据缺少orderItemId参数,确定要跳转设置路线价格么?')).then(res => {
let url = '' let url = ''
......
...@@ -510,30 +510,79 @@ ...@@ -510,30 +510,79 @@
</select> </select>
</div> </div>
<!-- 不可出渠道异常 --> <!-- 不可出渠道异常 -->
<div v-if="orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&(handlerParams.orderExceptionHandlerResult=='change_channel'||handlerParams.orderExceptionHandlerResult=='continue_channel')"> <div v-if="orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&(handlerParams.orderExceptionHandlerResult=='change_channel'||handlerParams.orderExceptionHandlerResult=='continue_channel')" class="card">
<div v-for="row in orderData.orderItemVOList" :key="row.orderItemId"> <el-table v-loading="loading" border :data="orderData.orderItemVOList">
<div v-if="row.charging ==1"> <el-table-column :label="$t('序号')" align="center" prop="id" type="index">
<el-form-item style="margin-left:40px" :label="$t('全包价成交单价')+':'" size="medium"> <template slot-scope="scope">
<span v-if="!row.oneSeaFreight">{{$t('未报价')}}</span> <span>{{scope.$index + 1}}</span>
<span v-else>{{row.oneSeaFreight}} {{currencyMap[row.seaFreightCurrency]}} / {{unitMap[row.seaFreightVolume]}}</span> </template>
<el-button v-if="orderExceptionData.orderExceptionStatus!=2" class="button" type="primary" plain @click="routeToPrice(row,2)">{{!row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button> </el-table-column>
</el-form-item> <el-table-column :label="$t('中文名')" align="center" prop="prodTitleZh" />
<el-table-column :label="$t('英文名')" align="center" prop="prodTitleEn" />
<el-table-column :label="$t('品牌')" align="center" prop="brandType">
<template slot-scope="scope">
<dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="scope.row.brandType"></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('填单箱数')" prop="num" />
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('填单特性')" prop="prodAttrIds" width="200">
<template slot-scope="scope">
{{getProdAtrr(scope.row.prodAttrIds)}}
</template>
</el-table-column>
<el-table-column :label="$t('入仓箱数')">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.cartonsNum:0}}
</template>
</el-table-column>
<!-- v2.0 入仓特性异常 -->
<el-table-column :label="$t('入仓特性')" prop="num">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO&&scope.row.warehouseInInfoVO.prodAttrIds?getProdAtrr(scope.row.warehouseInInfoVO.prodAttrIds):''}}
</template>
</el-table-column>
<el-table-column :label="$t('方数')" prop="volume">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.volume:0}}
</template>
</el-table-column>
<el-table-column :label="$t('重量')" prop="weight">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.weight:0}}
</template>
</el-table-column>
<el-table-column :label="$t('数量')" prop="quantity">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.quantityAll:0}}
</template>
</el-table-column>
<el-table-column :label="$t('货值')" prop="worth" />
<el-table-column :label="$t('运费/全包价')" prop="quantity" width="260">
<template slot-scope="scope" >
<div v-if="scope.row.charging ==1" class="channel">
<span v-if="!scope.row.oneSeaFreight">{{$t('全包价')}}:{{$t('未报价')}}</span>
<span v-else>{{$t('全包价')}}:{{scope.row.oneSeaFreight}} {{currencyMap[scope.row.seaFreightCurrency]}} / {{unitMap[scope.row.seaFreightVolume]}}</span>
<el-button type="primary" plain @click="routeToPrice(scope.row,1)">{{!scope.row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button>
</div> </div>
<div v-else class="feeList"> <div v-else class="channel">
<el-form-item :label="$t('运费成交单价')+':'" size="medium"> <span v-if="!scope.row.oneSeaFreight">{{$t('运费')}}:{{$t('未报价')}}</span>
<span v-if="!row.oneSeaFreight">{{$t('未报价')}}</span> <span v-else>{{$t('运费')}}:{{scope.row.oneSeaFreight}} {{currencyMap[scope.row.seaFreightCurrency]}} / {{unitMap[scope.row.seaFreightVolume]}}</span>
<span v-else>{{row.oneSeaFreight}} {{currencyMap[row.seaFreightCurrency]}} / {{unitMap[row.seaFreightVolume]}}</span> <el-button type="primary" plain @click="routeToPrice(scope.row,1)">{{!scope.row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button>
<el-button v-if="orderExceptionData.orderExceptionStatus!=2" class="button" type="primary" plain @click="routeToPrice(row,1)">{{!row.oneSeaFreight?$t('报价'):$t('修改报价')}}</el-button>
</el-form-item>
<el-form-item :label="$t('清关费成交单价')+':'" size="medium">
<span v-if="!row.oneClearanceFreight">{{$t('未报价')}}</span>
<span v-else>{{row.oneClearanceFreight}} {{currencyMap[row.clearanceFreightCurrency]}} / {{unitMap[row.clearanceFreightVolume]}}</span>
<el-button v-if="orderExceptionData.orderExceptionStatus!=2" class="button" type="primary" plain @click="routeToPrice(row,2)">{{!row.oneClearanceFreight?$t('报价'):$t('修改报价')}}</el-button>
</el-form-item>
</div> </div>
</template>
</el-table-column>
<el-table-column :label="$t('清关费')" prop="quantity" width="260">
<template slot-scope="scope">
<div class="channel">
<span v-if="!scope.row.oneClearanceFreight">{{$t('未报价')}}</span>
<span v-else>{{scope.row.oneClearanceFreight}} {{currencyMap[scope.row.clearanceFreightCurrency]}} / {{unitMap[scope.row.clearanceFreightVolume]}}</span>
<el-button type="primary" plain @click="routeToPrice(scope.row,2)">{{!scope.row.oneClearanceFreight?$t('报价'):$t('修改报价')}}</el-button>
</div> </div>
</template>
</el-table-column>
</el-table>
</div> </div>
<!-- 渠道异常 --> <!-- 渠道异常 -->
<div v-if="orderExceptionData.orderExceptionType=='channel_exception'&&handlerParams.orderExceptionHandlerResult=='set_shipment_channel'"> <div v-if="orderExceptionData.orderExceptionType=='channel_exception'&&handlerParams.orderExceptionHandlerResult=='set_shipment_channel'">
<div v-for="row in orderData.orderItemVOList" :key="row.orderItemId"> <div v-for="row in orderData.orderItemVOList" :key="row.orderItemId">
...@@ -555,7 +604,9 @@ ...@@ -555,7 +604,9 @@
</div> </div>
</div> </div>
</div> </div>
<el-form-item v-if="orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&handlerParams.orderExceptionHandlerResult=='change_channel'&&orderExceptionData.reason" :label="$t('审核驳回原因')+':'" size="medium">
<span>{{orderExceptionData.orderExceptionNotes}}</span>
</el-form-item>
</el-form> </el-form>
</el-card> </el-card>
<!-- 只有不需要预付才需要审核 --> <!-- 只有不需要预付才需要审核 -->
...@@ -658,14 +709,19 @@ ...@@ -658,14 +709,19 @@
}; };
}, },
activated(){ activated(){
this.getOrderData() console.log(111)
if(this.$route.query.id){
console.log(this.$route.query.id)
this.orderExceptionId = this.$route.query.id
this.handlerParams.orderExceptionId = this.$route.query.id
this.getList()
}
}, },
async created() { async created() {
if(this.$route.query.id){ if(this.$route.query.id){
this.orderExceptionId = this.$route.query.id this.orderExceptionId = this.$route.query.id
this.handlerParams.orderExceptionId = this.$route.query.id this.handlerParams.orderExceptionId = this.$route.query.id
this.getList() this.getList()
} }
getUnitList().then(res => this.unitList = res.data) getUnitList().then(res => this.unitList = res.data)
this.channelList = (await getChannelList()).data this.channelList = (await getChannelList()).data
...@@ -860,7 +916,6 @@ ...@@ -860,7 +916,6 @@
this.orderData = response.data this.orderData = response.data
this.handlerParams.channelId = this.orderData.channelId this.handlerParams.channelId = this.orderData.channelId
this.handlerParams.lineId = this.orderData.lineId this.handlerParams.lineId = this.orderData.lineId
this.getOpenedRouterList()
if(response.data.customerId){ if(response.data.customerId){
this.getCustomerData(response.data.customerId) this.getCustomerData(response.data.customerId)
} }
...@@ -932,6 +987,10 @@ ...@@ -932,6 +987,10 @@
// this.productId1 = this.handlerParams.productId // this.productId1 = this.handlerParams.productId
// this.productId2 = this.handlerParams.productId // this.productId2 = this.handlerParams.productId
// } // }
if(this.orderExceptionData.orderExceptionType=='not_shipping_channel_exception'){
this.getOpenedRouterList()
}
}, },
submitForm(){ submitForm(){
if(!this.handlerParams.orderExceptionHandlerResult){ if(!this.handlerParams.orderExceptionHandlerResult){
...@@ -1123,6 +1182,12 @@ ...@@ -1123,6 +1182,12 @@
.card{ .card{
margin-top: 20px; margin-top: 20px;
} }
.channel{
width: 100%;
display: flex;
align-items: center;
justify-content:space-evenly;
}
.dialog-footer{ .dialog-footer{
padding: 40px; padding: 40px;
width: 60%; width: 60%;
......
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