Commit dc62bd98 authored by yujinyao's avatar yujinyao

Merge branch 'pre-release' of...

Merge branch 'pre-release' of http://110.41.143.128:8081/lanbaoming/jiedao-app-operator-master into yujinyao
parents 99740436 6f0114a9
...@@ -1061,6 +1061,14 @@ export function getRegionList(type,regionId){ ...@@ -1061,6 +1061,14 @@ export function getRegionList(type,regionId){
return request({ return request({
url:'/ecw/warehouse/getRegionList?type='+type+'&regionId='+regionId, url:'/ecw/warehouse/getRegionList?type='+type+'&regionId='+regionId,
method: 'get', method: 'get',
})
}
// 复制订单
export function copyOrder(orderId){
return request({
url: '/ecw/order/copy/' + orderId,
method: 'post'
}) })
} }
\ No newline at end of file
...@@ -523,7 +523,8 @@ ...@@ -523,7 +523,8 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('唛头')" align="center" prop="marks" /> <el-table-column :label="$t('发货人编号')" align="center" prop="consignorCustomerNumber" />
<el-table-column :label="$t('收货人编号')" align="center" prop="consigneeCustomerNumber" />
<el-table-column <el-table-column
:label="$t('总箱数/入仓箱数')" :label="$t('总箱数/入仓箱数')"
align="center" align="center"
...@@ -562,12 +563,10 @@ ...@@ -562,12 +563,10 @@
<div v-else>{{row.costVO.totalVolume}}m³ /{{row.costVO.totalWeight}}Kg</div> --> <div v-else>{{row.costVO.totalVolume}}m³ /{{row.costVO.totalWeight}}Kg</div> -->
<div>{{ row.sumVolume }}m³ /{{ row.sumWeight }}Kg</div> <div>{{ row.sumVolume }}m³ /{{ row.sumWeight }}Kg</div>
</component> </component>
<!-- <el-tooltip v-if="scope.row.orderExceptionType=='order_heavy_cargo_exception'" class="item" effect="dark" :content="(scope.row.wvolume||0)+'m³'" placement="bottom">
<span style="color:#ff4949" v-if="scope.row.orderStatus >= 5 ">{{scope.row.volume+"m³/"+scope.row.weight+"kg"}}</span>
<span style="color:#ff4949" v-else>{{scope.row.totalVolume+"m³/"+scope.row.totalWeight+"kg"}}</span>
</el-tooltip> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
:label="$t('始发仓')" :label="$t('始发仓')"
align="center" align="center"
...@@ -581,7 +580,7 @@ ...@@ -581,7 +580,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
:label="$t('运输方式/目的地')" :label="$t('运输方式-渠道/目的地')"
align="center" align="center"
prop="transportId" prop="transportId"
> >
...@@ -590,6 +589,9 @@ ...@@ -590,6 +589,9 @@
:type="DICT_TYPE.ECW_TRANSPORT_TYPE" :type="DICT_TYPE.ECW_TRANSPORT_TYPE"
:value="row.transportId" :value="row.transportId"
/> />
<template v-if="row.channelName">
- {{row.channelName}}
</template>
/ {{ row.dstWarehouseName }} / {{ row.dstWarehouseName }}
</template> </template>
</el-table-column> </el-table-column>
...@@ -601,18 +603,34 @@ ...@@ -601,18 +603,34 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('订单状态')" align="center" prop="status">
<el-table-column :label="$t('增值服务')" align="center" prop="status">
<template slot-scope="{row}">
{{ getTypeText(row.type)}}
</template>
</el-table-column>
<el-table-column :label="$t('状态')" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> --> <!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> -->
{{ scope.row.statusMsg }} {{ scope.row.statusText }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('唛头')" align="center" prop="marks" />
<el-table-column v-if="dept" :label="$t('客户经理')" align="center" prop="salesmanName" />
<el-table-column :label="$t('发货人客服')" align="center" prop="consignorFollowCustomerService" />
<el-table-column :label="$t('收货人客服')" align="center" prop="consigneeFollowCustomerService" />
<el-table-column :label="$t('到仓箱数/方数重量')" align="center" prop="status">
<template slot-scope="scope">
暂无数据
</template>
</el-table-column>
<el-table-column :label="$t('提货率')" align="center" prop="pickRatio" />
<el-table-column :label="$t('动态')" align="center" prop="statusMsg" />
<el-table-column <el-table-column
:label="$t('操作')" :label="$t('操作')"
align="center" align="center"
class-name="small-padding fixed-width actions" class-name="small-padding fixed-width actions"
width="150px" width="180px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html --> <!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html -->
...@@ -893,6 +911,21 @@ ...@@ -893,6 +911,21 @@
v-hasPermi="['ecw:order:turnException']" v-hasPermi="['ecw:order:turnException']"
>{{ $t("转异") }}</el-dropdown-item >{{ $t("转异") }}</el-dropdown-item
> >
<template
v-if="scope.row.abnormalState != 0"
>
<el-dropdown-item
@click.native="openException(scope.row)"
>{{ $t("查看异常") }}</el-dropdown-item
>
<el-dropdown-item
v-if="canHandleException(scope.row)"
@click.native="openException(scope.row)"
>{{ $t("处理异常") }}</el-dropdown-item
>
</template>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -1161,6 +1194,8 @@ ...@@ -1161,6 +1194,8 @@
> >
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button type="text" @click="handleCopyOrder(scope.row.orderId)">{{$t('复制')}}</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
...@@ -1286,8 +1321,8 @@ import { ...@@ -1286,8 +1321,8 @@ import {
setCanShipment, setCanShipment,
setCanNotShipment, setCanNotShipment,
getParentOrder, getParentOrder,
getRegionList, getRegionList, copyOrder
} from "@/api/ecw/order"; } from '@/api/ecw/order'
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */ /* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import PrintTag from "./components/PrintTag"; import PrintTag from "./components/PrintTag";
import PrintWarehouseReceipt from "./components/PrintWarehouseReceipt"; import PrintWarehouseReceipt from "./components/PrintWarehouseReceipt";
...@@ -1693,6 +1728,26 @@ export default { ...@@ -1693,6 +1728,26 @@ export default {
return arr.indexOf(state) == -1; return arr.indexOf(state) == -1;
}; };
}, },
// 根据异常类型和用户权限校验是否可以处理异常
canHandleException(){
return (order) => {
// TODO 需要等接口返回异常类型
return true
}
},
// 增值服务文本
getTypeText(){
return type => {
const arr = []
if(type.indexOf('1') > -1){
arr.push(this.$t('集运'))
}
if(type.indexOf('4') > -1){
arr.push(this.$t('海外仓'))
}
return arr.join("")
}
}
}, },
activated() { activated() {
this.getList(); this.getList();
...@@ -2127,6 +2182,18 @@ export default { ...@@ -2127,6 +2182,18 @@ export default {
handleExceptionClose() { handleExceptionClose() {
this.tureExceptionOrder = null; this.tureExceptionOrder = null;
}, },
// 复制订单
handleCopyOrder(orderId){
copyOrder(orderId).then(res => {
this.$router.push({ path: '/order/edit', query: { id: res.data } });
});
},
// 查看异常
openException(order){
this.$router.push({
path: "./pending?id=" + order.orderId,
});
}
}, },
}; };
</script> </script>
......
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