Commit 262a7a8d authored by 我在何方's avatar 我在何方

空运出货操作到仓

parent e44ec836
......@@ -3,7 +3,15 @@
<!-- 自编号 -->
<el-row>
<p style="color:#D9001B;">{{$t('过机重量异常')}}:机场误差3%以内/我司误差超10kg/超过机场重量《N》kg</p>
<p style="color:#D9001B;" v-if="pageData.boxCustomsBackVO&&pageData.boxCustomsBackVO.overMachineStatus==2&&pageData.boxCustomsBackVO.overMachineAbnormalStatus==2&&pageData.boxCustomsBackVO.weightMisreport==1">
{{$t('过机重量异常')}}:{{$t('机场误差3%以内')}}
</p>
<p style="color:#D9001B;" v-if="pageData.boxCustomsBackVO&&pageData.boxCustomsBackVO.overMachineStatus==2&&pageData.boxCustomsBackVO.overMachineAbnormalStatus==2&&pageData.boxCustomsBackVO.weightMisreport==2">
{{$t('过机重量异常')}}:{{$t('我司误差超10kg')}}
</p>
<p style="color:#D9001B;" v-if="pageData.boxCustomsBackVO&&pageData.boxCustomsBackVO.overMachineStatus==2&&pageData.boxCustomsBackVO.overMachineAbnormalStatus==2&&pageData.boxCustomsBackVO.overWeight>0">
{{$t('过机重量异常')}}:{{$t('超过机场重量')}}{{boxCustomsBackVO.overWeight}}kg
</p>
</el-row>
<el-row class="number-area">
<p class="label-font">{{$t('自编号')}}</p>
......@@ -81,7 +89,7 @@
<template slot-scope="scope" >
<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>
<el-button v-if="pageData.boxCustomsBackVO&&pageData.boxCustomsBackVO.overMachineStatus==2&&pageData.boxCustomsBackVO.overMachineAbnormalStatus==2" plain type="primary" size="small" @click="$router.push('/order/warehousing-update?id='+scope.row.orderId)">{{$t('仓修改 ')}}</el-button>
</div>
</template>
</el-table-column>
......
......@@ -3,7 +3,7 @@
<el-form ref="errorForm" :model="errorObj" label-width="100px" :rules="rules">
<el-form-item :label="$t('异常')" prop="exceptionType">
<el-radio-group v-model="errorObj.exceptionType">
<el-radio v-for="item in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_UNLOADING_ERROR)" :key="item.value" :label="item.value">{{$l(item, 'label')}}</el-radio>
<el-radio class="exception-list" v-for="item in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_UNLOADING_ERROR)" :key="item.value" :label="item.value">{{$l(item, 'label')}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('品名')">
......@@ -85,4 +85,7 @@ export default {
</script>
<style lang="scss" scoped>
.exception-list{
margin-bottom: 20px;
}
</style>
......@@ -135,14 +135,14 @@ export default {
},
/** 节点点击 */
nodeClick(currIndex, node) {
// if (!checkPermi(['box:'+node.type+':action'])) {
// this.$message.error(this.$t("没有此操作的权限"));
// return;
// }
// if (currIndex > this.currIndex) {
// this.$message.error(this.errorMsg);
// return;
// }
if (!checkPermi(['box:'+node.type+':action'])) {
this.$message.error(this.$t("没有此操作的权限"));
return;
}
if (currIndex > this.currIndex) {
this.$message.error(this.errorMsg);
return;
}
this.currNode = node;
this.currentComponent = `${node.type}Widget`;
this.$set(this.dialogConfig, "width", "500px");
......
......@@ -558,7 +558,45 @@
</template>
</el-table-column>
<el-table-column :label="$t('货值')" prop="worth" />
<el-table-column :label="$t('运费/全包价')" prop="quantity" width="260">
<el-table-column :label="$t('运费/全包价')" prop="quantity" width="360" v-if="handlerParams.orderExceptionHandlerResult=='continue_channel'">
<template slot-scope="scope" >
<div v-if="scope.row.charging ==1" class="channel">
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('全包价')}}:{{$t('未报价')}}</span> -->
<div class="channel">
<div style="width:80px">{{$t('全包价')}}:</div>
<div style="width:88%" class="channel">
<inputor default2="0" v-model.number="scope.row.oneSeaFreight" type="number" :placeholder="$t('整数或者两位小数')" class="w100 mr10" />
<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" />
</div>
</div>
</div>
<div v-else>
<!-- <span v-if="!scope.row.oneSeaFreight">{{$t('运费')}}:{{$t('未报价')}}</span> -->
<div class="channel">
<div style="width:80px">{{$t('运费')}}:</div>
<div style="width:88%" class="channel">
<inputor default2="0" v-model.number="scope.row.oneSeaFreight" type="number" :placeholder="$t('整数或者两位小数')" class="w100 mr10" />
<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" />
</div>
</div>
</div>
</template>
</el-table-column>
<el-table-column :label="$t('清关费')" prop="quantity" width="360" v-if="handlerParams.orderExceptionHandlerResult=='continue_channel'">
<template slot-scope="scope">
<div class="channel">
<!-- <span v-if="!scope.row.oneClearanceFreight">{{$t('未报价')}}</span> -->
<div class="channel">
<inputor default2="0" v-model.number="scope.row.oneClearanceFreight" type="number" :placeholder="$t('整数或者两位小数')" class="w100 mr10" />
<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" />
</div>
</div>
</template>
</el-table-column>
<el-table-column :label="$t('运费/全包价')" prop="quantity" width="260" v-if="handlerParams.orderExceptionHandlerResult=='change_channel'">
<template slot-scope="scope" >
<div v-if="scope.row.charging ==1" class="channel">
<span v-if="!scope.row.oneSeaFreight">{{$t('全包价')}}:{{$t('未报价')}}</span>
......@@ -572,7 +610,7 @@
</div>
</template>
</el-table-column>
<el-table-column :label="$t('清关费')" prop="quantity" width="260">
<el-table-column :label="$t('清关费')" prop="quantity" width="260" v-if="handlerParams.orderExceptionHandlerResult=='change_channel'">
<template slot-scope="scope">
<div class="channel">
<span v-if="!scope.row.oneClearanceFreight">{{$t('未报价')}}</span>
......@@ -660,11 +698,12 @@
import { getUnitList } from '@/api/ecw/unit';
import {getProduct} from '@/api/ecw/product'
import {getProductPriceGetPrice} from '@/api/ecw/productPrice'
import Inputor from '@/components/Inputor'
export default {
name: "EcwOrderPrepaydeal",
components: {
FileUpload, WorkFlow,FilePreview,ProductSelector,Selector
FileUpload, WorkFlow,FilePreview,ProductSelector,Selector,Inputor
},
data() {
return {
......@@ -718,11 +757,7 @@
}
},
async created() {
if(this.$route.query.id){
this.orderExceptionId = this.$route.query.id
this.handlerParams.orderExceptionId = this.$route.query.id
this.getList()
}
getUnitList().then(res => this.unitList = res.data)
this.channelList=(await getChannelList()).data
this.productAttrList = (await getProductAttrList()).data
......@@ -732,6 +767,11 @@
getCurrencyList().then(res => this.currencyList = res.data)
this.tradeCityList = (await getTradeCityList()).data
if(this.$route.query.id){
this.orderExceptionId = this.$route.query.id
this.handlerParams.orderExceptionId = this.$route.query.id
this.getList()
}
},
watch:{
'handlerParams.orderExceptionHandlerResult'(val){
......@@ -922,6 +962,19 @@
if(response.data.customerId){
this.getCustomerData(response.data.customerId)
}
if(this.orderExceptionData.orderExceptionType=='not_shipping_channel_exception'){
console.log(this.curreynList)
this.orderData.orderItemVOList.map(v=>{
if(!v.oneSeaFreight){
v.seaFreightCurrency = this.currencyList[0]['id']
v.seaFreightVolume = this.unitList[0]['id']
}
if(!v.oneClearanceFreight){
v.clearanceFreightCurrency = this.currencyList[0]['id']
v.clearanceFreightVolume = this.unitList[0]['id']
}
})
}
});
},
getCustomerData(id){
......@@ -1025,6 +1078,9 @@
return
}
}
if(this.orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&this.handlerParams.orderExceptionHandlerResult=='continue_channel'){
this.handlerParams.orderItemVOList = this.orderData.orderItemVOList
}
handlerExceptionByExceptionId(this.handlerParams).then(res=>{
this.$modal.msgSuccess(this.$t('提交成功'));
this.$redirect('/order/pending?id=' + this.orderData.orderId)
......
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