Commit 838bb6c9 authored by huyufeng's avatar huyufeng

target

parent f37edf9c
...@@ -9,6 +9,15 @@ export function createDeptTarget(data) { ...@@ -9,6 +9,15 @@ export function createDeptTarget(data) {
}) })
} }
// 我的业绩
export function myAchievementByPage(data) {
return request({
url: '/sale/dept-target/myAchievementByPage',
method: 'post',
data: data
})
}
// 更新部门业绩目标设置 // 更新部门业绩目标设置
export function updateDeptTarget(data) { export function updateDeptTarget(data) {
return request({ return request({
......
...@@ -25,50 +25,30 @@ ...@@ -25,50 +25,30 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="目标名称" align="center" width="180"> <el-table-column label="序号" align="center" type="index"></el-table-column>
<el-table-column label="报价单号" align="center" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.deptName}}{{scope.row.targetPeriodName}}目标</span> <span>{{scope.row.offerId}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="部门" align="center" prop="deptName"/> <el-table-column label="报价结果" align="center">
<el-table-column label="目标类型" align="center" prop="targetType">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.TARGET_TYPE" :value="scope.row.targetType"/> <dict-tag :type="DICT_TYPE.ECW_OFFER_RESULT" :value="scope.row.offerStatus"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="时间范围" align="center" prop="targetPeriodName"> <el-table-column label="订单号" align="center" prop="orderId"/>
<el-table-column label="发货人" align="center" prop="consignorName"/>
<el-table-column label="唛头" align="center" prop="marks"/>
<el-table-column label="是否控货" align="center" prop="isCargoControl">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{dateFormat(scope.row.startTime)}}~{{dateFormat(scope.row.endTime)}}</span> {{scope.row.isCargoControl?'':''}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="部门人数" align="center" prop="deptEmpCount"/> <el-table-column label="方数" align="center" prop="sumVolume"/>
<el-table-column label="目标方数" align="center" prop="cubeNum"/> <el-table-column label="下单时间" align="center" prop="createTime"/>
<el-table-column label="运输方式" align="center" prop="transportType"> <el-table-column label="订单状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.TRANSPORT_TYPE" :value="scope.row.transportType"/> <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="出货渠道" align="center" prop="shippingChannel">
<template slot-scope="scope">
<span>{{ getShipChannelName(scope.row.shippingChannel) }}</span>
</template>
</el-table-column>
<el-table-column label="已完成方数" align="center" prop="completeCubeNum"/>
<el-table-column label="完成比例" align="center">
<template slot-scope="scope">
<span>{{ (scope.row.completeCubeNum/scope.row.cubeNum*100).toFixed(2)+'%' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:dept-target:update']">修改
</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['ecw:dept-target:delete']">删除
</el-button>
<el-button size="mini" type="text" icon="el-icon-search" @click="handleView(scope.row)"
v-hasPermi="['ecw:dept-target:create']"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -87,7 +67,8 @@ ...@@ -87,7 +67,8 @@
getDeptTargetPage, getDeptTargetPage,
exportDeptTargetExcel, exportDeptTargetExcel,
getCreateInitData, getCreateInitData,
getPersonTargetPage getPersonTargetPage,
myAchievementByPage
} from "@/api/ecw/deptTarget"; } from "@/api/ecw/deptTarget";
import {listSimpleDepts} from "@/api/system/dept"; import {listSimpleDepts} from "@/api/system/dept";
import {getChannelList} from '@/api/ecw/channel'; import {getChannelList} from '@/api/ecw/channel';
...@@ -136,12 +117,10 @@ ...@@ -136,12 +117,10 @@
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
deptId: null, beginStartTime:null,
targetType: null,
targetPeriodName: null,
transportType: null, transportType: null,
shippingChannel: null, shippingChannel: null,
cubeNum: null, endStartTime: null,
}, },
tableQueryParams: { tableQueryParams: {
pageNo: 1, pageNo: 1,
...@@ -206,7 +185,7 @@ ...@@ -206,7 +185,7 @@
getList() { getList() {
this.loading = true; this.loading = true;
// 执行查询 // 执行查询
getDeptTargetPage(params).then(response => { myAchievementByPage(this.queryParams).then(response => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
this.loading = false; this.loading = false;
......
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