| | |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import BigNumber from "bignumber.js" |
| | | const dayjs = require('dayjs') |
| | | import isBetween from 'dayjs/plugin/isBetween' |
| | | export default { |
| | | components: { |
| | | combinedTitle |
| | |
| | | this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao |
| | | } |
| | | this.fileList1 = [] |
| | | dayjs.extend(isBetween) |
| | | if (this.globalIsFirstWeighing === 1) { |
| | | this.getTakeCoal(); //获取提煤单详情 |
| | | } |
| | |
| | | this.primarySkin = this.coalDetailsData.skinTwo; |
| | | this.primaryHair = this.coalDetailsData.hairTwo; |
| | | this.primaryClean = this.coalDetailsData.cleanTwo; |
| | | // 判断当前时间是否超出预约时间 |
| | | let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this.coalDetailsData |
| | | .yuYueSection.slice(-5); |
| | | if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) { |
| | | this.$u.toast('已超出预约时间,可点击入场申请重新入场') |
| | | this.timeout = '1' |
| | | } |
| | | // 入门证 和 出门证 是否显示 |
| | | this.ablePrintInduction = this.coalDetailsData.hair || this.coalDetailsData.skin |
| | | this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin || this |
| | | .coalDetailsData.status === 6 |
| | | // 原发信息回显以及控制是否可修改 |
| | | |
| | | this.haveInputOrigin = !this.coalDetailsData.skinTwo && this.coalDetailsData.orderType === |
| | | '外购' |
| | | this.deletable = this.isModifyoriginInfo = this.coalDetailsData.status > 3 |
| | |
| | | } |
| | | }).then(() => { |
| | | this.getgetService(); //获取客服 |
| | | }).then(() => { |
| | | // 判断当前时间是否超出预约时间 |
| | | setTimeout(() => { |
| | | let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this |
| | | .coalDetailsData |
| | | .yuYueSection.slice(-5); |
| | | if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) { |
| | | this.$u.toast('已超出预约时间,可点击入场申请重新入场') |
| | | this.timeout = '1' |
| | | } |
| | | }, 1000) |
| | | }) |
| | | }, |
| | | // 日志查询 |