| | |
| | | reportType: 1 |
| | | }, |
| | | rules: { |
| | | 'info.checkUserName': { |
| | | checkUserName: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入姓名', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'info.checkTelephone': [{ |
| | | }], |
| | | checkTelephone: [{ |
| | | type: 'number', |
| | | required: true, |
| | | message: '请输入手机', |
| | |
| | | } |
| | | |
| | | ], |
| | | 'info.applyName': { |
| | | applyName: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入事由', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'info.applyTime': { |
| | | }], |
| | | applyTime: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入选择时间', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'info.location': { |
| | | }], |
| | | location: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入位置', |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | }] |
| | | }, |
| | | showSelectDate: false, |
| | | applyTime: Number(new Date()), |
| | |
| | | this.$set(this.info, "checkUserName", userInfo.real_name); |
| | | this.$set(this.info, "checkTelephone", userInfo.phone); |
| | | this.$set(this.info, "checkUserId", userInfo.user_id); |
| | | this.$set(this.info, "applyTime", uni.$u.timeFormat(Number(new Date()), 'yyyy-mm-dd hh:MM:ss')) |
| | | }, |
| | | |
| | | onReady() { |
| | |
| | | }, |
| | | |
| | | updateRequest() { |
| | | this.info.applyTime = Number(new Date(res.data.applyTime)); |
| | | // this.info.applyTime = Number(new Date(res.data.applyTime)); |
| | | updateBailReporting(this.info).then(res => { |
| | | uni.showToast({ |
| | | icon: 'success', |