|
@@ -34,7 +34,7 @@
|
|
|
<div style="margin-left: 10px;">
|
|
|
<el-button @click="ComputeRoyalties" type="primary">查 询</el-button>
|
|
|
<!-- <el-button @click="derivelist" type="primary">导出提成列表</el-button> -->
|
|
|
- <el-button @click="derivelist" type="primary">确认</el-button>
|
|
|
+ <el-button @click="RoyaltyConfirmByUser" type="primary">确认</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -102,6 +102,22 @@
|
|
|
{{ processingprice(scope.row.price)+ ' 元' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="price"
|
|
|
+ label="是否确认"
|
|
|
+ width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.isConfirm==1?'已确认':'未确认'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="price"
|
|
|
+ label="是否发放"
|
|
|
+ width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.isSeed==1?'已发放':'未发放'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<div class="numpice">
|
|
|
该时间段提成总额: {{ numpices }} 元
|
|
@@ -354,6 +370,17 @@ export default {
|
|
|
},
|
|
|
//提成确认
|
|
|
RoyaltyConfirmByUser(){
|
|
|
+ if (this.multipleSelection.length==0) {
|
|
|
+ this.$message({
|
|
|
+ message:"请选中数据",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let dataarr=[];
|
|
|
+ for(let i=0;i<this.multipleSelection.length;i++){
|
|
|
+ dataarr.push(this.multipleSelection[i].id);
|
|
|
+ }
|
|
|
var url = "/api/Financial/RoyaltyConfirmByUser"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -363,12 +390,8 @@ export default {
|
|
|
Authorization: 'Bearer '
|
|
|
},
|
|
|
data:{
|
|
|
- startData:that.getdate(this.value2[0]),
|
|
|
- endData:that.getdate(this.value2[1]),
|
|
|
- userId:that.uservalue,
|
|
|
- deparId:that.depvalue,
|
|
|
- companyId:that.value,
|
|
|
- computeRoyaltiesList:that.multipleSelection,
|
|
|
+ data:dataarr,
|
|
|
+ state:1,
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if(res.data.code==200){
|