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" >
<el-button type="danger" size="small" @click="openError(scope.row)">{{$t('异常')}}</el-button> <div class="number-area">
<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,43 +278,46 @@ export default { ...@@ -278,43 +278,46 @@ 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){
getProduct(productData.prodId).then(res=>{ if(row.orderExceptionType=='customs_fee_not_quote_exception'&&productData.prodId){
let params = { this.$router.push('/product/product-list?prodId=' + productData.prodId)
product_id: productData.prodId, return
product_type: res.data.typeId, }else{
transportId: this.orderData.transportId, getProduct(productData.prodId).then(res=>{
exportCity: this.orderData.logisticsInfoDto.startCityId, let params = {
importCity: this.orderData.logisticsInfoDto.destCityId, product_id: productData.prodId,
startWarehouseId: this.orderData.logisticsInfoDto.startWarehouseId, product_type: res.data.typeId,
destWarehouseId: this.orderData.logisticsInfoDto.destWarehouseId, transportId: this.orderData.transportId,
lineId: this.orderData.logisticsInfoDto.lineId, exportCity: this.orderData.logisticsInfoDto.startCityId,
channelId: this.orderData.logisticsInfoDto.channelId importCity: this.orderData.logisticsInfoDto.destCityId,
} startWarehouseId: this.orderData.logisticsInfoDto.startWarehouseId,
let queryParams = { destWarehouseId: this.orderData.logisticsInfoDto.destWarehouseId,
productId: productData.prodId, lineId: this.orderData.logisticsInfoDto.lineId,
lineId: this.orderData.logisticsInfoDto.lineId, channelId: this.orderData.logisticsInfoDto.channelId
channelId: this.orderData.logisticsInfoDto.channelId }
} let queryParams = {
let url = '' productId: productData.prodId,
if([3,4].indexOf(this.orderData.transportId) > -1){ lineId: this.orderData.logisticsInfoDto.lineId,
url = '../../lineProject/product-price/edit-air?' + (new URLSearchParams(params)).toString() channelId: this.orderData.logisticsInfoDto.channelId
}else{
url = '../../lineProject/product-price/edit-sea?' + (new URLSearchParams(params)).toString()
}
getProductPriceGetPrice(queryParams).then(res=>{
console.log(res)
if(res.data){
if([3,4].indexOf(+this.orderData.transportId) > -1){
url = '../../lineProject/product-price/edit-air?action=update&id='+res.data.id
}else{
url = '../../lineProject/product-price/edit-sea?action=update&id='+res.data.id
}
} }
return this.$router.push(url) let url = ''
}) if([3,4].indexOf(this.orderData.transportId) > -1){
url = '../../lineProject/product-price/edit-air?' + (new URLSearchParams(params)).toString()
}else{
url = '../../lineProject/product-price/edit-sea?' + (new URLSearchParams(params)).toString()
}
getProductPriceGetPrice(queryParams).then(res=>{
console.log(res)
if(res.data){
if([3,4].indexOf(+this.orderData.transportId) > -1){
url = '../../lineProject/product-price/edit-air?action=update&id='+res.data.id
}else{
url = '../../lineProject/product-price/edit-sea?action=update&id='+res.data.id
}
}
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 = ''
......
This diff is collapsed.
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