Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
8131596c93
@ -47,6 +47,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
|
|
||||||
getAfterListApi({deptId : this.deptId}).then(res => {
|
getAfterListApi({deptId : this.deptId}).then(res => {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
})
|
})
|
||||||
@ -155,9 +156,8 @@ export default {
|
|||||||
align="center"
|
align="center"
|
||||||
label="状态">
|
label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status == 0">未开始</span>
|
<span v-if="scope.row.status == 1">未支付</span>
|
||||||
<span v-if="scope.row.status == 1">进行中</span>
|
<span v-if="scope.row.status == 0">已支付</span>
|
||||||
<span v-if="scope.row.status == 2">已完成</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -186,9 +186,11 @@ export default {
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
v-if="scope.row.status == 1"
|
||||||
@click="handleEdit(scope.row)">修改</el-button>
|
@click="handleEdit(scope.row)">修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
v-if="scope.row.status == 1"
|
||||||
@click="handleEditshoukuan(scope.row)">收款</el-button>
|
@click="handleEditshoukuan(scope.row)">收款</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -7,10 +7,13 @@ import {
|
|||||||
updateBeforerApi
|
updateBeforerApi
|
||||||
} from "@/api/system/Site/compant";
|
} from "@/api/system/Site/compant";
|
||||||
|
|
||||||
|
import { getDeptName} from '@/api/indexBanner/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "beforeff",
|
name: "beforeff",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
deptName:'',
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
tableData: [ ],
|
tableData: [ ],
|
||||||
form: {
|
form: {
|
||||||
@ -40,8 +43,14 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getData()
|
this.getData()
|
||||||
|
this.getDeptName();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getDeptName(){
|
||||||
|
getDeptName().then(res=>{
|
||||||
|
this.deptName = res.data.deptName
|
||||||
|
})
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
getBeforeListApi({deptId : this.deptId}).then(res => {
|
getBeforeListApi({deptId : this.deptId}).then(res => {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
@ -155,9 +164,8 @@ export default {
|
|||||||
align="center"
|
align="center"
|
||||||
label="状态">
|
label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status == 0">未开始</span>
|
<span v-if="scope.row.remainingTransactionVolume > 0">进行中</span>
|
||||||
<span v-if="scope.row.status == 1">进行中</span>
|
<span v-if="scope.row.remainingTransactionVolume == 0">已完成</span>
|
||||||
<span v-if="scope.row.status == 2">已完成</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -170,7 +178,8 @@ export default {
|
|||||||
align="center"
|
align="center"
|
||||||
label="创建人">
|
label="创建人">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column
|
<el-table-column
|
||||||
|
v-if = "this.deptName === '百业兴总部'"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot="header" slot-scope="scope">
|
<template slot="header" slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -183,7 +192,7 @@ export default {
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleEdit( scope.row)">修改</el-button>
|
@click="handleEdit( scope.row)">修改</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="新增"
|
title="新增"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {addYearApi, getYearListApi, updateYearApi} from "@/api/system/Site/compant";
|
import {addYearApi, getYearListApi, updateYearApi} from "@/api/system/Site/compant";
|
||||||
import {parseTime} from "@/utils/fuint";
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
import { getDeptName} from '@/api/indexBanner/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "yearff",
|
name: "yearff",
|
||||||
@ -8,6 +9,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
deptName:'',
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
tableData: [ ],
|
tableData: [ ],
|
||||||
form: {
|
form: {
|
||||||
@ -26,10 +28,16 @@ export default {
|
|||||||
deptId: Number
|
deptId: Number
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.getDeptName();
|
||||||
console.log("deptId",this.deptId)
|
console.log("deptId",this.deptId)
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getDeptName(){
|
||||||
|
getDeptName().then(res=>{
|
||||||
|
this.deptName = res.data.deptName
|
||||||
|
})
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
getYearListApi({deptId : this.deptId}).then(res => {
|
getYearListApi({deptId : this.deptId}).then(res => {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
@ -116,9 +124,9 @@ export default {
|
|||||||
align="center"
|
align="center"
|
||||||
label="状态">
|
label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status == 0">未开始</span>
|
<span v-if="parseTime(scope.row.systemValidityPeriodStart) > parseTime(new Date())">未开始</span>
|
||||||
<span v-if="scope.row.status == 1">进行中</span>
|
<span v-if="parseTime(scope.row.systemValidityPeriodStart) < parseTime(new Date()) && parseTime(scope.row.systemValidityPeriodEnd) > parseTime(new Date())">进行中</span>
|
||||||
<span v-if="scope.row.status == 2">已完成</span>
|
<span v-if="parseTime(scope.row.systemValidityPeriodEnd) < parseTime(new Date())">已完成</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -131,7 +139,8 @@ export default {
|
|||||||
align="center"
|
align="center"
|
||||||
label="创建人">
|
label="创建人">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column
|
<el-table-column
|
||||||
|
v-if = "this.deptName === '百业兴总部'"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot="header" slot-scope="scope">
|
<template slot="header" slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -141,12 +150,12 @@ export default {
|
|||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.status == 0"
|
v-if="parseTime(scope.row.systemValidityPeriodEnd) > parseTime(new Date())"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleEdit(scope.row)">修改</el-button>
|
@click="handleEdit(scope.row)">修改</el-button>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
@ -32,6 +32,7 @@ service_fee_statistics,service_fee_limit,status,create_name,create_time
|
|||||||
dept_id = #{info.deptId}
|
dept_id = #{info.deptId}
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
<!-- <if test="id != null">-->
|
<!-- <if test="id != null">-->
|
||||||
<!-- and id = #{id}-->
|
<!-- and id = #{id}-->
|
||||||
@ -102,7 +103,7 @@ service_fee_statistics,service_fee_limit,status,create_name,create_time
|
|||||||
select
|
select
|
||||||
id,deduction_rate,payment_amount,likely_transaction_volume,service_fee_statistics,service_fee_limit,status
|
id,deduction_rate,payment_amount,likely_transaction_volume,service_fee_statistics,service_fee_limit,status
|
||||||
from dept_service_fee_info
|
from dept_service_fee_info
|
||||||
where dept_id = #{deptId}
|
where dept_id = #{deptId} and status = 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
|
@ -92,7 +92,7 @@ public class DeptPriceInfoServiceImpl implements DeptPriceInfoService {
|
|||||||
}
|
}
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
deptPriceInfo.setCreateName(nowAccountInfo.getRealName());
|
deptPriceInfo.setCreateName(nowAccountInfo.getRealName());
|
||||||
deptPriceInfo.setDeptId(nowAccountInfo.getDeptId());
|
deptPriceInfo.setDeptId(deptPriceInfo.getDeptId());
|
||||||
|
|
||||||
boolean isValid = isDateInRange(deptPriceInfo.getSystemValidityPeriodStart(),deptPriceInfo.getSystemValidityPeriodEnd());
|
boolean isValid = isDateInRange(deptPriceInfo.getSystemValidityPeriodStart(),deptPriceInfo.getSystemValidityPeriodEnd());
|
||||||
|
|
||||||
@ -113,14 +113,14 @@ public class DeptPriceInfoServiceImpl implements DeptPriceInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public DeptPriceInfo update(DeptPriceInfo deptPriceInfo) {
|
public DeptPriceInfo update(DeptPriceInfo deptPriceInfo) {
|
||||||
int countByTime = getCountByTime(deptPriceInfo);
|
// int countByTime = getCountByTime(deptPriceInfo);
|
||||||
if (countByTime>0) {
|
// if (countByTime>0) {
|
||||||
throw new RuntimeException("该时间段已有数据");
|
// throw new RuntimeException("该时间段已有数据");
|
||||||
}
|
// }
|
||||||
boolean isValid = isDateInRange(deptPriceInfo.getSystemValidityPeriodStart(),deptPriceInfo.getSystemValidityPeriodEnd());
|
boolean isValid = isDateInRange(deptPriceInfo.getSystemValidityPeriodStart(),deptPriceInfo.getSystemValidityPeriodEnd());
|
||||||
|
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
deptPriceInfo.setStatus(1);
|
deptPriceInfo.setStatus(0);
|
||||||
deptPriceInfoMapper.updateStatus(deptPriceInfo);
|
deptPriceInfoMapper.updateStatus(deptPriceInfo);
|
||||||
}
|
}
|
||||||
this.deptPriceInfoMapper.update(deptPriceInfo);
|
this.deptPriceInfoMapper.update(deptPriceInfo);
|
||||||
|
@ -132,6 +132,7 @@ public class DeptServiceFeeInfoServiceImpl implements DeptServiceFeeInfoService
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public DeptServiceFeeInfo update(DeptServiceFeeInfo deptServiceFeeInfo) {
|
public DeptServiceFeeInfo update(DeptServiceFeeInfo deptServiceFeeInfo) {
|
||||||
|
deptServiceFeeInfo.setStatus(0);
|
||||||
this.deptServiceFeeInfoMapper.update(deptServiceFeeInfo);
|
this.deptServiceFeeInfoMapper.update(deptServiceFeeInfo);
|
||||||
return this.queryById(deptServiceFeeInfo.getId());
|
return this.queryById(deptServiceFeeInfo.getId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user