Browse Source

优化

master
陈裕财 4 years ago
parent
commit
2b35291337
  1. 2
      src/api/xm/core/xmTaskOrder.js
  2. 12
      src/views/xm/core/xmTaskOrder/XmTaskOrderEdit.vue
  3. 16
      src/views/xm/core/xmTaskOrder/XmTaskOrderMng.vue

2
src/api/xm/core/xmTaskOrder.js

@ -9,7 +9,7 @@ let base = config.getCoreBasePath();
/**
* 任务相关费用订单表
*1 默认只开放普通查询所有查询只要上传 分页参数 {pageNum:当前页码从1开始,pageSize:每页记录数,total:总记录数如果是0后台会自动计算总记录数非0不会自动计算}后台都会自动按分页查询 其它 api用到再打开没用到的api请注释掉
*2 查询新增修改的参数格式 params={id:'订单编号 主键',userid:'用户编号',branchId:'公司ID-下单客户对应的企业',ostatus:'订单状态0-初始,1-待确认,2-待付款,3-已付款,4-已完成,5-已取消-未付款前可取消,取消后可删除,6-退单-退单后变为已取消,8已关闭-售后完成后可以关闭订单',ctime:'创建时间',ltime:'更新时间',payType:'支付方式',payStatus:'支付状态0待付款,1已付款',payTime:'支付时间',prepayId:'第三方支付订单编号',finalFee:'最终总费用=origin_fee',othFee:'其它费用',originFee:'原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds',payAt:'最终付款金额-客户付款后回填',payAuthId:'支付授权码',payOpenid:'支付账户对应的第三方openid,注意,下单根付款不一定是同一个人',payUserid:'付款用户编号',payUsername:'付款用户名称',discount:'折扣率0-199',topFee:'置顶费用',topStime:'置顶开始时间',topEtime:'置顶结束时间',hotFee:'热搜费用',hotStime:'热搜开始时间',hotEtime:'热搜结束时间',top:'是否置顶',hot:'是否热搜',crmSupFee:'客服包办费用',urgentFee:'加急费用',urgent:'是否加急',crmSup:'是否客服包办',efunds:'托管金额',estate:'资金托管状况0-无须托管,1-已托管,2-已付款给服务商,3-已退款',etoPlatTime:'托管资金付款给平台的时间',etoDevTime:'托管资金支付给服务商的时间',ebackTime:'托管资金退回甲方时间',taskId:'任务编号',topDays:'置顶天数',hotDays:'热搜天数',urgentDays:'加急天数',urgentStime:'加急开始时间',urgentEtime:'加急结束时间',calcStatus:'定时检查日期是否已过期,已过期则取消任务中的置顶、加急、热搜状态计算状态0-无须计算,1-本周期已计算待下周期计算,2-结束',calcTime:'计算时间'}
*2 查询新增修改的参数格式 params={id:'订单编号 主键',userid:'用户编号',branchId:'公司ID-下单客户对应的企业',ostatus:'订单状态0-初始,1-待确认,2-待付款,3-已付款,4-已完成,5-已取消-未付款前可取消,取消后可删除,6-退单-退单后变为已取消,8已关闭-售后完成后可以关闭订单',ctime:'创建时间',ltime:'更新时间',payType:'支付方式',payStatus:'支付状态0待付款,1已付款',payTime:'支付时间',prepayId:'第三方支付订单编号',finalFee:'最终总费用=origin_fee',othFee:'其它费用',originFee:'原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee',payAt:'最终付款金额-客户付款后回填',payAuthId:'支付授权码',payOpenid:'支付账户对应的第三方openid,注意,下单根付款不一定是同一个人',payUserid:'付款用户编号',payUsername:'付款用户名称',discount:'折扣率0-199',topFee:'置顶费用',topStime:'置顶开始时间',topEtime:'置顶结束时间',hotFee:'热搜费用',hotStime:'热搜开始时间',hotEtime:'热搜结束时间',top:'是否置顶',hot:'是否热搜',crmSupFee:'客服包办费用',urgentFee:'加急费用',urgent:'是否加急',crmSup:'是否客服包办',efunds:'托管金额',estate:'资金托管状况0-无须托管,1-已托管,2-已付款给服务商,3-已退款',etoPlatTime:'托管资金付款给平台的时间',etoDevTime:'托管资金支付给服务商的时间',ebackTime:'托管资金退回甲方时间',taskId:'任务编号',topDays:'置顶天数',hotDays:'热搜天数',urgentDays:'加急天数',urgentStime:'加急开始时间',urgentEtime:'加急结束时间',calcStatus:'定时检查日期是否已过期,已过期则取消任务中的置顶、加急、热搜状态计算状态0-无须计算,1-本周期已计算待下周期计算,2-结束',calcTime:'计算时间',oshare:'是否开启分享赚',shareFee:'分享赚佣金'}
**/
//普通查询 条件之间and关系

12
src/views/xm/core/xmTaskOrder/XmTaskOrderEdit.vue

@ -41,8 +41,8 @@
<el-form-item label="其它费用" prop="othFee">
<el-input v-model="editForm.othFee" placeholder="其它费用" :maxlength="10"></el-input>
</el-form-item>
<el-form-item label="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds" prop="originFee">
<el-input v-model="editForm.originFee" placeholder="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds" :maxlength="20"></el-input>
<el-form-item label="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee" prop="originFee">
<el-input v-model="editForm.originFee" placeholder="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee" :maxlength="20"></el-input>
</el-form-item>
<el-form-item label="最终付款金额-客户付款后回填" prop="payAt">
<el-input v-model="editForm.payAt" placeholder="最终付款金额-客户付款后回填" :maxlength="20"></el-input>
@ -137,6 +137,12 @@
<el-form-item label="计算时间" prop="calcTime">
<el-date-picker type="date" placeholder="选择日期" v-model="editForm.calcTime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
<el-form-item label="是否开启分享赚" prop="oshare">
<el-input v-model="editForm.oshare" placeholder="是否开启分享赚" :maxlength="1" @change="editSomeFields(editForm,'oshare',$event)"></el-input>
</el-form-item>
<el-form-item label="分享赚佣金" prop="shareFee">
<el-input v-model="editForm.shareFee" placeholder="分享赚佣金" :maxlength="20"></el-input>
</el-form-item>
</el-form>
</el-row>
@ -188,7 +194,7 @@
]
},
editForm: {
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:''
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:'',oshare:'',shareFee:''
},
maxTableHeight:300,
}//end return

16
src/views/xm/core/xmTaskOrder/XmTaskOrderMng.vue

@ -75,7 +75,7 @@
<span> {{scope.row.othFee}} </span>
</template>
</el-table-column>
<el-table-column prop="originFee" label="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds" min-width="120" show-overflow-tooltip>
<el-table-column prop="originFee" label="原始价格=top_fee+urgent_fee+crm_sup_fee+hot_fee+efunds+share_fee" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
<span> {{scope.row.originFee}} </span>
</template>
@ -233,6 +233,16 @@
<el-table-column prop="calcTime" label="计算时间" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
<span> {{scope.row.calcTime}} </span>
</template>
</el-table-column>
<el-table-column prop="oshare" label="是否开启分享赚" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
<span> {{scope.row.oshare}} </span>
</template>
</el-table-column>
<el-table-column prop="shareFee" label="分享赚佣金" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
<span> {{scope.row.shareFee}} </span>
</template>
</el-table-column>
<el-table-column label="操作" width="180" fixed="right">
@ -305,12 +315,12 @@ export default {
},// params={categoryId:'all',itemCodes:['sex']} {sex: [{id:'1',name:''},{id:'2',name:''}]}
addFormVisible: false,//xmTaskOrder
addForm: {
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:''
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:'',oshare:'',shareFee:''
},
editFormVisible: false,//
editForm: {
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:''
userid:'',branchId:'',ostatus:'',ctime:'',ltime:'',payType:'',payStatus:'',payTime:'',prepayId:'',id:'',finalFee:'',othFee:'',originFee:'',payAt:'',payAuthId:'',payOpenid:'',payUserid:'',payUsername:'',discount:'',topFee:'',topStime:'',topEtime:'',hotFee:'',hotStime:'',hotEtime:'',top:'',hot:'',crmSupFee:'',urgentFee:'',urgent:'',crmSup:'',efunds:'',estate:'',etoPlatTime:'',etoDevTime:'',ebackTime:'',taskId:'',topDays:'',hotDays:'',urgentDays:'',urgentStime:'',urgentEtime:'',calcStatus:'',calcTime:'',oshare:'',shareFee:''
},
maxTableHeight:300,
}

Loading…
Cancel
Save