| | |
| | | <view class="table"> |
| | | <uni-table border |
| | | id="table-box" |
| | | v-if='coalDetailsData.isWeight === 1' |
| | | emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center" >产品</uni-th> |
| | |
| | | <uni-th align="center">毛重</uni-th> |
| | | <uni-th align="center">净重</uni-th> |
| | | <uni-th align="center">扣吨</uni-th> |
| | | <uni-th align="center">件数</uni-th> |
| | | <!-- <uni-th align="center">件数</uni-th> --> |
| | | </uni-tr> |
| | | <uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index"> |
| | | <uni-td align="center"> |
| | |
| | | <uni-td align="right"> |
| | | <view>{{ subItem.discount }}</view |
| | | ></uni-td> |
| | | <!-- <uni-td align="right"> |
| | | <view>{{ subItem.productQuantity }}</view |
| | | ></uni-td> --> |
| | | </uni-tr> |
| | | </uni-table> |
| | | <uni-table border |
| | | id="table-box" |
| | | v-else |
| | | emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center" >产品</uni-th> |
| | | <!-- <uni-th align="center">皮重</uni-th> |
| | | <uni-th align="center">毛重</uni-th> |
| | | <uni-th align="center">净重</uni-th> --> |
| | | |
| | | <uni-th align="center">件数</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index"> |
| | | <uni-td align="left"> |
| | | <view class="name">{{ subItem.productName }}</view></uni-td> |
| | | <!-- <uni-td align='right'> |
| | | <view v-if="subItem.skin">{{ Number( subItem.skin).toFixed(2) || ''}}</view> |
| | | </uni-td> |
| | | <uni-td align='right'> |
| | | <view class="name" v-if="subItem.hair">{{ Number(subItem.hair) .toFixed(2) || '' }}</view> |
| | | </uni-td> |
| | | <uni-td align='right'> |
| | | <view class="name" v-if="(subItem.clean || (subItem.clean && subItem.clean === 0))">{{ Number( subItem.clean).toFixed(2) || '' }}</view> |
| | | </uni-td> --> |
| | | |
| | | |
| | | <uni-td align="right"> |
| | | <view>{{ subItem.productQuantity }}</view |
| | | ></uni-td> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="origin-info" |
| | | v-if="originInfoVisible&&!isSpecial"> |
| | | v-if="originInfoVisible&&!isSpecial&&isShowYuanFa"> |
| | | <view class="origin-info_wrapper"> |
| | | <view class="origin-info_content"> |
| | | <!-- 折叠 --> |
| | |
| | | <u--input placeholder="净重" |
| | | border="surround" |
| | | v-model="coalContactClean" |
| | | :disabled="isModifyoriginInfo"></u--input> |
| | | disabled></u--input> |
| | | </view> |
| | | <view class="unit">吨</view> |
| | | </view> |
| | |
| | | plain |
| | | @click="rcsqClick" |
| | | shape="circle" |
| | | :disabled="currentPageCoalStatus>= 3"></u-button> |
| | | :disabled="currentPageCoalStatus>= 3 && currentPageCoalStatus!==24"></u-button> |
| | | <!-- <u-button text="入场申请" |
| | | type="primary" |
| | | plain |
| | |
| | | name() { |
| | | return uni.getStorageSync('name'); |
| | | }, |
| | | roleType() { |
| | | return uni.getStorageSync('roleType'); |
| | | }, |
| | | openid() { |
| | | return uni.getStorageSync('openid'); |
| | | }, |
| | |
| | | return tempArr[index]; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | isShowYuanFa(){ |
| | | if(this.coalContactClean && !this.coalDetailsData.tmTaskCoalList.length){ |
| | | return false |
| | | }else{ |
| | | return true |
| | | } |
| | | } |
| | | |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changewsgVisiable', 'changeisUploadimg', 'changeglobalIsFirstWeighing']), |
| | |
| | | } |
| | | }) |
| | | } else { |
| | | this.fileList1 = [] |
| | | this.fileList1 = [''] |
| | | } |
| | | |
| | | } else { |
| | |
| | | } |
| | | }, 1000) |
| | | } |
| | | |
| | | this.coalDayPage(); |
| | | }) |
| | | }, |
| | | // 日志查询 |
| | |
| | | if (res.code == 0) { |
| | | this.timeLineStatus = res.data[0].taskStatus |
| | | this.timeLineEqCode = res.data[0].eqCode |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | | this.dayRZ = res.data.map((v,i) => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if(this.coalDetailsData.packingType === 1 && (this.roleType == 3 || this.roleType ==1 )){ |
| | | if (slicedate == this.currentDate && !/[皮毛净]/.test(v.taskStatusDes)) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } else if( /[皮毛净]/.test(v.taskStatusDes)){ |
| | | return null |
| | | }else{ |
| | | return {...v} |
| | | } |
| | | }); |
| | | }else{ |
| | | if (slicedate == this.currentDate) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } |
| | | } |
| | | |
| | | |
| | | }).filter(Boolean); |
| | | } |
| | | }); |
| | | }, 5000); |