MrShi
2024-02-26 9b44d6536190ff8ca71d0b3541a270bd164be304
h5/unpackage/dist/dev/mp-weixin/pages/visitorApplication/visitorApplication.js
@@ -158,34 +158,28 @@
      _vm.show5 = false
    }
    _vm.e6 = function ($event) {
      _vm.show = false
    }
    _vm.e7 = function ($event) {
      _vm.show = false
    }
    _vm.e8 = function ($event) {
      _vm.show1 = false
    }
    _vm.e9 = function ($event) {
    _vm.e7 = function ($event) {
      _vm.show1 = false
      _vm.show3 = true
    }
    _vm.e10 = function ($event) {
    _vm.e8 = function ($event) {
      _vm.show2 = false
    }
    _vm.e11 = function ($event) {
    _vm.e9 = function ($event) {
      _vm.show2 = false
    }
    _vm.e10 = function ($event) {
      _vm.show3 = false
    }
    _vm.e11 = function ($event) {
      _vm.show6 = true
    }
    _vm.e12 = function ($event) {
      _vm.show3 = false
    }
    _vm.e13 = function ($event) {
      _vm.show6 = true
    }
    _vm.e14 = function ($event) {
      _vm.show3 = false
    }
    _vm.e15 = function ($event) {
      _vm.show6 = false
    }
  }
@@ -586,6 +580,12 @@
    this.getUserValid();
  },
  methods: {
    closeMJ: function closeMJ() {
      this.show = false;
      this.columns.forEach(function (item) {
        item.active = false;
      });
    },
    submit: function submit() {
      if (!this.form1.receptMemberId) return uni.showToast({
        title: '被访人不能为空',
@@ -603,10 +603,12 @@
        title: '访问门禁不能为空',
        icon: 'none'
      });
      if (!this.form1.reason) return uni.showToast({
        title: '拜访事由不能为空',
        icon: 'none'
      });
      // if (!this.form1.reason) return uni.showToast({
      //    title: '拜访事由不能为空',
      //    icon: 'none'
      // })
      this.form1.starttime = this.form1.starttime + ':00';
      this.form1.endtime = this.form1.endtime + ':00';
      this.$u.api.createFk(_objectSpread(_objectSpread(_objectSpread({}, this.form), this.form1), {}, {
        openid: this.$store.state.openId,
        withUserList: this.personnel
@@ -767,11 +769,11 @@
      });
    },
    setinDate: function setinDate(e) {
      this.form1.starttime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
      this.form1.starttime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM');
      this.show4 = false;
    },
    setoutDate: function setoutDate(e) {
      this.form1.endtime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
      this.form1.endtime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM');
      this.show5 = false;
    },
    // 查询用户