|
@@ -189,10 +189,31 @@ export default {
|
|
|
this.init()
|
|
this.init()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- init() {
|
|
|
|
|
|
|
+ async init() {
|
|
|
const isEmpty = Object.keys(this.params).length === 0
|
|
const isEmpty = Object.keys(this.params).length === 0
|
|
|
// 查阅状态初始化
|
|
// 查阅状态初始化
|
|
|
if (!isEmpty) {
|
|
if (!isEmpty) {
|
|
|
|
|
+ //先校验该班次是否被申请过
|
|
|
|
|
+ const { first, second } = this.$store.getters.level || {}
|
|
|
|
|
+ const { userId } = this.$store.getters || {}
|
|
|
|
|
+ const riqi = this.params.bu_ka_ri_qi_ || this.params.buKaRiQi
|
|
|
|
|
+ const banci = this.params.bu_ka_ban_ci_ || this.params.buKaBanCi
|
|
|
|
|
+ const response = await this.$common.request('query', {
|
|
|
|
|
+ key: 'getUserReissueInfo',
|
|
|
|
|
+ params: [riqi, userId, second || first]
|
|
|
|
|
+ })
|
|
|
|
|
+ let shiFouShenQin = false
|
|
|
|
|
+ response.variables.data.forEach((el)=>{
|
|
|
|
|
+ debugger
|
|
|
|
|
+ if(el.bu_ka_ri_qi_ === riqi && el.bu_ka_ban_ci_ === banci){
|
|
|
|
|
+ shiFouShenQin = true
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ if(shiFouShenQin){
|
|
|
|
|
+ this.$message.warning('该异常班次已申请!')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.buKaBanCiOptions = [
|
|
this.buKaBanCiOptions = [
|
|
|
{
|
|
{
|
|
|
label: this.params.bu_ka_ban_ci_ || this.params.buKaBanCi,
|
|
label: this.params.bu_ka_ban_ci_ || this.params.buKaBanCi,
|