| | |
| | | </view> |
| | | <view class="loginBtn"><u-button type="primary" |
| | | text="确认" |
| | | @click="submit()"></u-button></view> |
| | | @click="submit()" |
| | | :loading="submitLoading"></u-button></view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | username: '', |
| | | password: '', |
| | | code: '' |
| | | code: '', |
| | | submitLoading: false |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | }) |
| | | }, |
| | | setUpWxOpenid(userName, passWord, code) { |
| | | this.submitLoading = true |
| | | uni.request({ |
| | | url: `${BaseUrl}/admin/user/setUpWxOpenid`, |
| | | data: { |
| | |
| | | console.log(res, '绑定结果'); |
| | | if (res.data.code === 1) { |
| | | this.$u.toast(res.data.msg ? res.data.msg : '绑定失败') |
| | | this.submitLoading = false |
| | | } else { |
| | | this.$u.toast('操作成功') |
| | | this.submitLoading = false |
| | | } |
| | | } |
| | | }) |
| | |
| | | <view class="receiverPopup__btn"><u-button text="确定" |
| | | type="primary" |
| | | @click="popupDetermineClick" |
| | | :disabled="canClick"></u-button></view> |
| | | :disabled="canClick" |
| | | :loading="popupDetermineClickLoading"></u-button></view> |
| | | </view> |
| | | </u-popup> |
| | | </view> |
| | |
| | | carNum: "", |
| | | // 剩余的提煤单数量 |
| | | carNumSurplus: '', |
| | | canClick: false |
| | | canClick: false, |
| | | popupDetermineClickLoading: false |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | popupDetermineClick() { |
| | | if (this.receiveNum > 0) { |
| | | this.popupDetermineClickLoading = true; |
| | | this.getOrderNum.num = this.receiveNum; |
| | | uni.showLoading({ title: '加载中...' }); |
| | | this.$reqPost('customerGet', this.getOrderNum, 'params').then(res => { |
| | | uni.hideLoading(); |
| | | if (res.code == 0) { |
| | | this.popupDetermineClickLoading = false; |
| | | this.getOrderNum.num = ''; |
| | | this.GetOrderPlan(); |
| | | this.show = false; |
| | |
| | | duration: 1000 |
| | | }); |
| | | } else { |
| | | this.popupDetermineClickLoading = false; |
| | | this.$u.toast(res.msg ? res.msg : '领取失败'); |
| | | } |
| | | }); |
| | |
| | | <u-button text="提交" |
| | | type="primary" |
| | | @click.stop="submitOriginInfo" |
| | | :disabled="isModifyoriginInfo"></u-button> |
| | | :disabled="isModifyoriginInfo" |
| | | :loading="submitOriginInfoLoading"></u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | timeout: '0', |
| | | wsgShow: false, |
| | | timeLineStatus: null, |
| | | originInfoNotice: '填写原发信息后可上磅计量' |
| | | originInfoNotice: '填写原发信息后可上磅计量', |
| | | submitOriginInfoLoading: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | if (this.originInfoForm.coalContactSkin && this.originInfoForm.coalContactHair && this |
| | | .originInfoForm |
| | | .contactPicture) { |
| | | this.submitOriginInfoLoading = true |
| | | this.$reqPost('appSaveContact', form, 'json').then(res => { |
| | | if (res.code === 0) { |
| | | this.$u.toast('提交成功') |
| | | this.submitOriginInfoLoading = false |
| | | } else { |
| | | this.submitOriginInfoLoading = false |
| | | this.isModifyoriginInfo = true |
| | | this.$u.toast(res.msg ? res.msg : '提交失败') |
| | | |
| | |
| | | plain |
| | | @click="evacuation" |
| | | throttleTime="500" |
| | | :loading="TwoEvacuationLoading" |
| | | v-if='weighList.skin||weighList.hair'></u-button> |
| | | <!-- 外销订单称皮时,返回加减吨按钮置灰。称毛时可用.外购订单,不出现返回加减吨的按钮 --> |
| | | <u-button type="primary" |
| | |
| | | :disabled="addAndSubtractCoalDisabled" |
| | | @click="addAndSubtractCoal" |
| | | class="jiajian" |
| | | v-if="outBuy||!isSkinWeigh"></u-button> |
| | | v-if="outBuy||!isSkinWeigh" |
| | | :loading="addAndSubtractCoalLoading"></u-button> |
| | | </view> |
| | | <view v-show="isExceedOrigin" |
| | | style="color: #ff6363;width: auto;margin: 0 auto;"> |
| | |
| | | refreshLoading: false, |
| | | timer: null, |
| | | afterEvacuationStatus: null, //放空后提煤单状态状态为21时提示‘等待磅房确认’ |
| | | afterEvacuationText: '' |
| | | afterEvacuationText: '', |
| | | TwoEvacuationLoading: false, |
| | | addAndSubtractCoalLoading: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | // 加减煤 |
| | | addAndSubtractCoal() { |
| | | this.addAndSubtractCoalLoading = true |
| | | this.$reqPost('addAndSubtractCoal', { |
| | | deptId: this.weighData.deptId, |
| | | sceneId: this.weighData.sceneId, |
| | |
| | | weigh: this.weighData.weigh |
| | | }, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.addAndSubtractCoalLoading = false |
| | | this.$u.toast('操作成功,即将返回上一页'); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | |
| | | }); |
| | | this.isConfirmWeighLoading = false; |
| | | }, 1000); |
| | | console.log(res, '加减煤'); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '操作失败'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | // 放空弹窗确认 |
| | | evacuationConfirm() { |
| | | this.TwoEvacuationLoading = true; |
| | | this.$reqPost('getTwoEvacuation', this.weighData, 'json').then(res => { |
| | | console.log(res, '第二次放空'); |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功'); |
| | | // setTimeout(() => { |
| | | // uni.navigateBack({ |
| | | // delta: 1 |
| | | // }); |
| | | // }, 1000); |
| | | if (res.msg.length > 4) { //大于4是等待后台确认 |
| | | this.TwoEvacuationLoading = true; |
| | | this.evacuationModalShow = false; |
| | | this.afterEvacuationStatus = res.data.status === 21 || res.data.status === 22 |
| | | this.afterEvacuationText = res.msg |
| | | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '操作失败'); |
| | | this.evacuationModalShow = true; |
| | | } else { //小于4成功 |
| | | this.TwoEvacuationLoading = false; |
| | | this.evacuationModalShow = false; |
| | | this.$u.toast('操作成功,即将返回上一页'); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 1000); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | confirmWeighConfirm() { |
| | | this.changeconfirmWeighVisiable(false) |
| | | this.isConfirmWeighLoading = false |
| | | this.TwoEvacuationLoading = false; |
| | | setTimeout(() => { |
| | | this.$u.toast('即将返回上一页'), |
| | | uni.navigateBack({ |
| | |
| | | </view> |
| | | <view class="loginBtn"><u-button type="primary" |
| | | :text="btnText == 1 ? '绑定' : '登录'" |
| | | @click="submit()"></u-button></view> |
| | | @click="submit()" |
| | | :loading="submitLoading"></u-button></view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | // username: '13333333332',// 司机 |
| | | password: '', |
| | | remember: true, |
| | | baseUrl: '' |
| | | baseUrl: '', |
| | | submitLoading: false |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | let grant_type = 'password'; |
| | | //登录接口 |
| | | this.submitLoading = true |
| | | await apiLoginPassword({ |
| | | username: this.username, |
| | | password: this.password, |
| | |
| | | setToken(res.access_token); |
| | | setRefreshToken(res.refresh_token); |
| | | if (this.btnText == 0) { |
| | | this.submitLoading = false |
| | | if (res.code != 1) { |
| | | // 登陆成功,存储相关信息 |
| | | setToken(res.access_token); |
| | |
| | | </view> |
| | | <view class="registerBtn"><u-button text="注册" |
| | | type="primary" |
| | | @click="registerClick"></u-button></view> |
| | | @click="registerClick" |
| | | :loading="registerClickloading"></u-button></view> |
| | | <!-- 图片预览弹出框 --> |
| | | <!-- <view class="previewImage-container"> |
| | | <u-popup :show="previewImageShow" mode="center" @close="previewImageClose" @open="previewImageOpen"> |
| | |
| | | title: '提示', |
| | | content: '当前填入信息,切换角色后,即清除,是否切换?', |
| | | wxcode: '', |
| | | openid: '' |
| | | openid: '', |
| | | registerClickloading: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | .validate() |
| | | .then(res => { |
| | | console.log(this.registerFormModel); |
| | | this.registerClickloading = true; |
| | | this.registerFormModel.username = this.registerFormModel.phone; |
| | | apiRegister(this.registerFormModel) |
| | | .then(res => { |
| | | this.registerClickloading = false; |
| | | if (res.data.code == 0) { |
| | | uni.showToast({ |
| | | title: '注册成功,即将返回登录页', |