|
@@ -232,7 +232,9 @@ export default {
|
|
|
maxDate: new Date(),
|
|
maxDate: new Date(),
|
|
|
minTime: new Date(),
|
|
minTime: new Date(),
|
|
|
maxTime: new Date(),
|
|
maxTime: new Date(),
|
|
|
- approver: []
|
|
|
|
|
|
|
+ approver: [],
|
|
|
|
|
+ defaultUpTime: '',
|
|
|
|
|
+ defaultDownTime: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -355,7 +357,8 @@ export default {
|
|
|
const midStr = this.$common.getFormatDate('string', 10, this.xuanzeDate)
|
|
const midStr = this.$common.getFormatDate('string', 10, this.xuanzeDate)
|
|
|
const midDate = new Date(midStr)
|
|
const midDate = new Date(midStr)
|
|
|
const midMax = this.$common.getFormatDate('string', 10, midDate.setDate(midDate.getDate() + 1))
|
|
const midMax = this.$common.getFormatDate('string', 10, midDate.setDate(midDate.getDate() + 1))
|
|
|
-
|
|
|
|
|
|
|
+ this.defaultUpTime = midStr + ' ' + e.config.dateRange[0].startTime
|
|
|
|
|
+ this.defaultDownTime = (e.config.dateRange[0].isSecondDay === 'Y' ? midMax : midStr) + ' ' + e.config.dateRange[0].endTime
|
|
|
if (e.config.dateRange[0].isSecondDay === 'Y') {
|
|
if (e.config.dateRange[0].isSecondDay === 'Y') {
|
|
|
this.minTime = new Date(midStr + ' 00:00:00')
|
|
this.minTime = new Date(midStr + ' 00:00:00')
|
|
|
this.maxTime = new Date(midMax + ' 23:59:59')
|
|
this.maxTime = new Date(midMax + ' 23:59:59')
|
|
@@ -369,6 +372,7 @@ export default {
|
|
|
actionTypeCallback(e) {
|
|
actionTypeCallback(e) {
|
|
|
this.form.buKaLeiXing = e.text
|
|
this.form.buKaLeiXing = e.text
|
|
|
this.typeShow = false
|
|
this.typeShow = false
|
|
|
|
|
+ this.form.buKaShiJian = e.text === '上班' ? this.defaultUpTime : e.text === '下班' ? this.defaultDownTime : ''
|
|
|
},
|
|
},
|
|
|
async schedule(val) {
|
|
async schedule(val) {
|
|
|
const date = this.$common.getFormatDate('string', 10, val)
|
|
const date = this.$common.getFormatDate('string', 10, val)
|
|
@@ -449,13 +453,16 @@ export default {
|
|
|
this.form.buKaBanCi = this.reissueData.name
|
|
this.form.buKaBanCi = this.reissueData.name
|
|
|
this.form.buKaRiQi = this.selectDate
|
|
this.form.buKaRiQi = this.selectDate
|
|
|
this.form.buKaLeiXing = this.reissueType === '' ? '' : this.reissueType
|
|
this.form.buKaLeiXing = this.reissueType === '' ? '' : this.reissueType
|
|
|
- // this.form.buKaShiJian = this.$methCommon.time(16)
|
|
|
|
|
// this.xuanzeTime = new Date()
|
|
// this.xuanzeTime = new Date()
|
|
|
this.xuanzeDate = new Date(this.selectDate)
|
|
this.xuanzeDate = new Date(this.selectDate)
|
|
|
this.approver = this.reissueData.approver
|
|
this.approver = this.reissueData.approver
|
|
|
const midStr = this.$common.getFormatDate('string', 10, this.xuanzeDate)
|
|
const midStr = this.$common.getFormatDate('string', 10, this.xuanzeDate)
|
|
|
const midDate = new Date(midStr)
|
|
const midDate = new Date(midStr)
|
|
|
const midMax = this.$common.getFormatDate('string', 10, midDate.setDate(midDate.getDate() + 1))
|
|
const midMax = this.$common.getFormatDate('string', 10, midDate.setDate(midDate.getDate() + 1))
|
|
|
|
|
+ this.defaultUpTime = midStr + ' ' + this.reissueData.config.dateRange[0].startTime
|
|
|
|
|
+ this.defaultDownTime = (this.reissueData.config.dateRange[0].isSecondDay === 'Y' ? midMax : midStr) + ' ' + this.reissueData.config.dateRange[0].endTime
|
|
|
|
|
+ this.form.buKaShiJian = this.reissueType === '上班' ? this.defaultUpTime : this.reissueType === '下班' ? this.defaultDownTime : ''
|
|
|
|
|
+
|
|
|
if (this.reissueData.config.dateRange[0].isSecondDay === 'Y') {
|
|
if (this.reissueData.config.dateRange[0].isSecondDay === 'Y') {
|
|
|
this.minTime = new Date(midStr + ' 00:00:00')
|
|
this.minTime = new Date(midStr + ' 00:00:00')
|
|
|
this.maxTime = new Date(midMax + ' 23:59:59')
|
|
this.maxTime = new Date(midMax + ' 23:59:59')
|