| | |
| | | @select="selectUnqualifiedClick"></u-action-sheet> |
| | | </view> |
| | | </view> |
| | | <!-- 原发出场时间 --> |
| | | <view v-if="roleType!==3"> |
| | | <view> |
| | | <text>货物发货地出场时间或发货磅单时间:</text> |
| | | </view> |
| | | <view> |
| | | <uni-datetime-picker |
| | | v-model="outDate" |
| | | type="datetime" |
| | | @change="datechange" |
| | | /> |
| | | </view> |
| | | </view> |
| | | <!-- 新增 验质备注。验质说明 --> |
| | | <view v-if=" isYanz()"> |
| | | <view v-if="coalDetailsData.orderType == '外购'"> |
| | |
| | | @close='unqualifiedClose' |
| | | @select="selectUnqualifiedClick"></u-action-sheet> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | |
| | | <script> |
| | | |
| | | import BigNumber from "bignumber.js" |
| | | import formatDate from '@/utils/date' |
| | | import { BaseUrl } from '@/api/publicInterface.js'; |
| | | import { onlineurl } from '@/api/request.js' |
| | | import { mapState, mapMutations } from "vuex" |
| | | export default { |
| | | data() { |
| | | return { |
| | | dateInpShow:false, |
| | | outDate:'', |
| | | dateValue:'', |
| | | previewImageShow:false, |
| | | qualityInstructions:"", |
| | | previewImageSrc: '', |
| | |
| | | }, |
| | | cleanWeight(){ |
| | | return function(item){ |
| | | if(!item.weight){ |
| | | // if(!item.weight){ |
| | | // return '' |
| | | // }else if(item.weight && !item.unqualifiedWeight){ |
| | | // return item.weight |
| | | // }else if(item.weight && item.unqualifiedWeight){ |
| | | // return item.weight |
| | | // } |
| | | if(item.weight){ |
| | | return item.weight |
| | | }else if(!item.clean){ |
| | | return '' |
| | | }else if(item.weight && !item.unqualifiedWeight){ |
| | | return item.weight |
| | | }else if(item.weight && item.unqualifiedWeight){ |
| | | return item.weight |
| | | |
| | | } else if(item.clean && !item.unqualifiedWeight){ |
| | | return item.clean |
| | | }else if(item.clean && item.cinderWeight){ |
| | | return new BigNumber(item.clean - 0).minus(item.cinderWeight - 0); |
| | | } |
| | | console.log(item,'clearnWeight') |
| | | } |
| | | }, |
| | | //合格净重 |
| | |
| | | let z = new BigNumber(znums.reduce((p,n)=>{ |
| | | return (p - 0) + (n - 0) |
| | | },0)) |
| | | return (item.weight - z).toFixed(2); |
| | | let y = new BigNumber(item.cinderWeight) |
| | | return new BigNumber(item.clean - 0).minus(z).minus(y); |
| | | } |
| | | } |
| | | |
| | |
| | | uni.hideLoading() |
| | | this.coalDetailsData = res.data; |
| | | this.remarks = res.data.remarks; |
| | | this.dateValue = res.data.startTime; |
| | | this.outDate = res.data.startTime; |
| | | this.qualityInstructions = res.data.qualityInstructions |
| | | this.orderCode = res.data.orderCode |
| | | this.showWeigh = this.coalDetailsData.tmTaskCoalItems ? this.coalDetailsData |
| | |
| | | let params = {},unqualifiedWeightAll; |
| | | params.qualityInstructions = this.qualityInstructions; |
| | | params.remarks = this.remarks; |
| | | params.startTime = this.dateValue; |
| | | console.log( this.showWeigh,' this.showWeigh') |
| | | this.showWeigh = this.showWeigh.map((v, i) => { |
| | | console.log(this.penaltyType,this.$refs.checkbox,'123') |
| | |
| | | // } |
| | | console.log(event,'event') |
| | | |
| | | }, |
| | | dateInpFoucs(){ |
| | | console.log('聚焦'); |
| | | this.dateInpShow = true; |
| | | }, |
| | | datechange(value){ |
| | | console.log('dateChange',value,formatDate.formatDate(new Date(value)) ); |
| | | this.dateValue = (formatDate.formatDate(new Date(value)) + ':' + '00'); |
| | | |
| | | |
| | | } |
| | | }, |
| | | } |