| | |
| | | @click="confirmWeigh"> |
| | | </u-button> |
| | | </view> |
| | | <view class="chengzhong-btn" v-if="weighData.tmId && roleType == 4"> |
| | | <!-- 收发单信息时 status: 领取(0),预约(1),签到(2),入场(3),称皮(4),称毛(5),离场(6), 入磅房(7),出磅房(8),入煤仓(9),出煤仓(10) |
| | | ,放空(11),作废(12),入场申请(13),进入场院(14),申请计量(15); --> |
| | | <!-- <view class="chengzhong-btn" v-if="weighData.tmId && roleType == 4"> |
| | | <!– 收发单信息时 status: 领取(0),预约(1),签到(2),入场(3),称皮(4),称毛(5),离场(6), 入磅房(7),出磅房(8),入煤仓(9),出煤仓(10) |
| | | ,放空(11),作废(12),入场申请(13),进入场院(14),申请计量(15); –> |
| | | <u-button type="primary" |
| | | text="复磅" |
| | | :loading="repeatWeighLoading" |
| | | loadingText="确认" |
| | | :disabled="isFuBangSHow" |
| | | @click="confirmRepeatWeigh"></u-button> |
| | | </view> |
| | | @click="showModal = true"></u-button> |
| | | </view>--> |
| | | <view class="chengzhong-btn" v-if="weighData.tmId && outBuy && roleType == 4"> |
| | | <u-button type="primary" |
| | | text="返回加减吨" |
| | |
| | | class="jiajian" |
| | | ></u-button> |
| | | </view> |
| | | <view class="chengzhong-btn" v-if='weighData.tmId && canUnload && !isJixuxiehuo && roleType == 4'> |
| | | <view class="chengzhong-btn" v-if='weighData.tmId && canUnload && isJixuxiehuo && roleType == 4'> |
| | | <u-button type="primary" |
| | | text="继续卸货" |
| | | @click="UnloadingAgainHandle" |
| | | :loading="UnloadingAgainLoading" |
| | | |
| | | loadingText="确认" |
| | | :disabled="isweigh||realTimeWeigh == 0" |
| | | :disabled="isweigh||realTimeWeigh == 0 || statusWeigh == 3" |
| | | ></u-button> |
| | | </view> |
| | | <!-- 放空 --> |
| | |
| | | throttleTime="500" |
| | | :disabled="!isEvacuation"></u-button> |
| | | </view> |
| | | |
| | | <!--二次确认--> |
| | | <u-modal :show="showModal" |
| | | :asyncClose="true" |
| | | @cancel="showModal = false" |
| | | :content="modalContent" |
| | | :showCancelButton="true" |
| | | :cancelButtonText="'取消'" |
| | | :showConfirmButton="true" |
| | | :confirmButtonText="'确认'" |
| | | @confirm="confirmRepeatWeigh" /> |
| | | </view> |
| | | <!-- 放空弹窗 --> |
| | | <view class="evacuationModal"> |
| | |
| | | applyHouseId:'', //磅房号 |
| | | noCarNo:0, //是否有车牌号(有车牌0,无车牌1) |
| | | status:null, //状态 |
| | | orderCode:'' |
| | | orderCode:'', |
| | | showModal: false, |
| | | modalContent: '确认要复磅吗?' |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | ...mapState(['globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg', |
| | | 'globalisLogin', 'socketTask','is_open_socket', |
| | | ]), |
| | | ...mapGetters(['globalweigh','yuanFaList']), |
| | | ...mapGetters(['globalweigh']), |
| | | token() { |
| | | return uni.getStorageSync('token'); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | isJixuxiehuo() { //是否显示继续卸货按钮 |
| | | console.log(this.yuanFaList,'this.yuanFaList=====质检员---是否显示继续卸货11111') |
| | | if(this.weighList?.tmTaskCoalItems && this.weighList?.tmTaskCoalItems.length > 0 && this.yuanFaList && this.yuanFaList.length > 0) { |
| | | console.log(this.yuanFaList,'this.yuanFaList=====质检员---是否显示继续卸货2222222') |
| | | return this.weighList?.tmTaskCoalItems.length == this.yuanFaList.length |
| | | if(this.weighList?.tmTaskCoalItems && this.weighList?.tmTaskCoalItems.length > 0) { |
| | | return this.weighList?.tmTaskCoalItems.length > 0 |
| | | }else { |
| | | return false |
| | | } |
| | |
| | | if(this.noCarNo == 1) { //无车牌的时候复磅都能点击 |
| | | //条件: 不是称重完成+不是未称重+有车牌+司机 【未称重0,称重中1,验质中2,称重完成3,验质完成4】 noCarNo 是否有车牌号(有车牌0,无车牌1) |
| | | if(this.statusWeigh == 0 || this.statusWeigh == 3 || this.globalweigh == 0) { |
| | | // if( this.statusWeigh == 3 || this.globalweigh == 0) { |
| | | return true |
| | | }else { |
| | | return false |
| | |
| | | // 继续卸货只有外购类型第二次会有 |
| | | this.canUnload = this.weighList.orderType === '外购' && this.showWeigh.hair > 0; |
| | | this.getShebeiData() //获取设备信息 |
| | | this.getYuanfaList() |
| | | }else { |
| | | Object.keys(this.weighList).forEach(key => { |
| | | this.weighList[key] = ''; |
| | |
| | | this.$u.toast(res.msg ? res.msg : '占无磅单信息'); |
| | | } |
| | | }); |
| | | }, |
| | | getYuanfaList() { //原发信息list |
| | | this.$reqGet('getMaterialDetailByOrderCode', { orderCode: this.orderCode }).then(res => { |
| | | if(res.code == 0) { |
| | | this.$store.commit('GET_YUANFALIST',res.data) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | getShebeiData() { //获取设备信息 |
| | | let params = { |
| | |
| | | saveWeigh() { //点击确认称重按钮 |
| | | // this.weighData.coalContactClean = this.coalContactClean; |
| | | console.log(this.weighData,'复磅参数----') |
| | | this.$reqPost('saveWeighYZY', this.weighData, 'json') |
| | | this.$reqPost('saveWeigh', this.weighData, 'json') |
| | | .then(res => { |
| | | console.log(res, '称重接口'); |
| | | if (res.code == 0) { |
| | |
| | | this.isConfirmWeighLoading = false; |
| | | }); |
| | | }, |
| | | confirmRepeatWeigh() { //复磅 |
| | | confirmAction() { //复磅 |
| | | this.showModal = true |
| | | }, |
| | | confirmRepeatWeigh() { //复磅二次确认 |
| | | this.repeatWeighLoading = true |
| | | setTimeout(() => { |
| | | // 3秒后自动关闭 |
| | | this.showModal = false; |
| | | }, 2000) |
| | | console.log(this.weighData.weigh,'this.weighData.weigh======') |
| | | if(this.weighData.weigh && this.weighData.weigh != 0) { |
| | | this.$reqPost('reWeighYZY', this.weighData, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.repeatWeighLoading = false; |
| | | this.init() |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |