| | |
| | | <uni-td align="center">{{ (item.startTime || '') + '-' + (item.endTime || '') }}</uni-td> |
| | | <uni-td align="center">{{ item.carNum || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.carNum1 || '' }}</uni-td> |
| | | <uni-td><u-button text="预约" type="primary" :disabled="item.carNum == item.carNum1" @click="yuYueBtnClick(item)"></u-button></uni-td> |
| | | <uni-td><u-button text="选择" type="primary" :disabled="item.carNum == item.carNum1" @click="yuYueBtnClick(item)"></u-button></uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | </view> |
| | |
| | | |
| | | <script> |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { BigNumber } from 'bignumber.js'; |
| | | export default { |
| | | components: { |
| | | combinedTitle |
| | | }, |
| | | data() { |
| | | return { |
| | | // 预约列表请求参数 |
| | | yuYueListParams: { |
| | | filedId: '', |
| | | deptId: '', |
| | | sendDate: '' |
| | | }, |
| | | // 预约请求参数 |
| | | yuYuePostParams: { |
| | | takeCoalId: null, |
| | | yuYueId: null |
| | |
| | | uni.hideLoading(); |
| | | if (res.code == 0) { |
| | | this.yuYueData = res.data; |
| | | } else { |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('预约成功!'); |
| | | let timer = setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '预约失败'); |
| | | this.$u.toast(res.msg ? res.msg : '预约失败'); |
| | | } |
| | | setTimeout(() => { |
| | | this.yuYueList(); |
| | |
| | | this.rcsqData.filedId = value.filedId; |
| | | this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('新建入场申请成功。'); |
| | | this.$u.toast('入场申请成功'); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '入场申请失败,请稍后重试'); |
| | | } |
| | | }); |
| | | } |