|
|
@@ -139,6 +139,24 @@ export default {
|
|
|
methods: {
|
|
|
// region 其他操作
|
|
|
/**
|
|
|
+ * @desc : 获取结转的最大账务月
|
|
|
+ * @author : 姜宁
|
|
|
+ * @date : 2023/4/10 11:27
|
|
|
+ */
|
|
|
+ getMaxMouldCarryoverDate() {
|
|
|
+ let params = {
|
|
|
+ ftyId: this.$store.state.user.ftyId,
|
|
|
+ }
|
|
|
+ this.excute(this.$service.mouldCarryoverService, this.$service.mouldCarryoverService.getMaxMouldCarryoverDate, params).then(res => {
|
|
|
+ if (res.code === this.$config.SUCCESS_CODE && res.data) {
|
|
|
+ let date = new Date(res.data);
|
|
|
+ this.formData.crovMonth = date.addMonths(1);
|
|
|
+ }
|
|
|
+ // 获取账务月开始和结束
|
|
|
+ this.getCarryoverAccountDate(this.formData.crovMonth.format());
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @desc : 获取账务月开始和结束
|
|
|
* @author : 姜宁
|
|
|
* @date : 2023/2/7 14:09
|
|
|
@@ -171,8 +189,8 @@ export default {
|
|
|
button: this.$config.formMode.carryover,
|
|
|
closeFlag: true
|
|
|
}
|
|
|
- // 获取账务月开始和结束
|
|
|
- this.getCarryoverAccountDate(this.formData.crovMonth)
|
|
|
+ // 获取结转的最大账务月
|
|
|
+ this.getMaxMouldCarryoverDate();
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 反结
|
|
|
@@ -305,7 +323,7 @@ export default {
|
|
|
*/
|
|
|
setParams(){
|
|
|
this.params = {...this.formData}
|
|
|
- this.params.crovMonth = this.formData.crovMonth.toDateStr();
|
|
|
+ this.params.crovMonth = this.formData.crovMonth.getFirstDateStr();
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 调用同一路由,需要使用这个方法去设置created的方法
|