| | |
| | | <!-- 折叠面板 --> |
| | | <!-- <u-collapse @change="change" @close="close" @open="open"> --> |
| | | <!-- @change="collapseChange" --> |
| | | <u-collapse style="max-height: 65vh;overflow: auto;"> |
| | | <u-collapse style="max-height: 62vh;overflow: auto;"> |
| | | <!-- :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)' --> |
| | | <scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore"> |
| | | <u-collapse-item style="position: relative;" :title="item.ordercode" :name='item.ordercode' |
| | | v-if='item.children.length!==0' :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)' |
| | | :label="item.children.length===0?'未派发':''" :disabled='item.children.length===0' |
| | | v-for="item in collapseArr" :key="item.ordercode"> |
| | | <!-- <scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore"> --> |
| | | <u-collapse-item style="position: relative;" :title="item.ordercode" :name='item.ordercode' |
| | | v-if='item.children.length!==0' :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)' |
| | | :label="item.children.length===0?'未派发':''" :disabled='item.children.length===0' |
| | | v-for="item in collapseArr" :key="item.ordercode"> |
| | | |
| | | |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | | {{item.partname}} {{item.partspec}} |
| | | </view> |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | | {{item.partname}} {{item.partspec}} |
| | | </view> |
| | | |
| | | <!-- <view style="position: absolute;width: 26%;left: 44%;top:16px;"> --> |
| | | <view style="position: absolute;width: 120px;left: 44%;top:16px;color:#0659ff" |
| | | @click="progressClick(item.ordercode)"> |
| | | <!-- {{item.partname}}{{item.partspec}} --> |
| | | <u-line-progress :percentage="parseFloat((item.ordergoodqty*100/item.orderqty).toFixed(2))" |
| | | inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress> |
| | | </view> |
| | | <!-- <view style="position: absolute;width: 26%;left: 44%;top:16px;"> --> |
| | | <view style="position: absolute;width: 120px;left: 44%;top:16px;color:#0659ff" |
| | | @click="progressClick(item.ordercode)"> |
| | | <!-- {{item.partname}}{{item.partspec}} --> |
| | | <u-line-progress :percentage="parseFloat((item.ordergoodqty*100/item.orderqty).toFixed(2))" |
| | | inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress> |
| | | </view> |
| | | |
| | | <!-- <view style="position: absolute;width: 100px;right: 33px; top:13px; "> |
| | | <!-- <view style="position: absolute;width: 100px;right: 33px; top:13px; "> |
| | | <view class="" style="display: flex;justify-content: flex-end;"> |
| | | <view style="color: #0659ff;"> |
| | | {{parseFloat(item.ordergoodqty)}} |
| | |
| | | --> |
| | | |
| | | |
| | | <view v-if="radiovalue==='生产工单'" style="margin:0 0 5px"> |
| | | <view class="flex_column"> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品编码:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partcode}}</view> |
| | | <view v-if="radiovalue==='生产工单'" style="margin:0 0 5px"> |
| | | <view class="flex_column"> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品编码:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partcode}}</view> |
| | | </view> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品名称:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partname}}</view> |
| | | </view> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品规格:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partspec?item.partspec:'/'}} |
| | | </view> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品名称:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partname}}</view> |
| | | </view> |
| | | <view style="display:flex"> |
| | | <view class="titleFont" style="font-size: 14px;">产品规格:</view> |
| | | <view class="contentFont" style="font-size: 14px;">{{item.partspec?item.partspec:'/'}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- {{item.children}} --> |
| | | <!-- <u--text class="u-collapse-content"> --> |
| | | <u-steps :current="-1" inactiveColor='#0659FF' direction="column"> |
| | | <view v-for="(it,ind) in item.children" :key="item.ordercode+it.name+ind" |
| | | @click="gotoPage(item.ordercode,it.code)" style="display: flex;align-items: center;"> |
| | | |
| | | <!-- <u-steps-item :title="it.code+'/'+it.name+it.spec"></u-steps-item> --> |
| | | <u-steps-item :title="it.code+'/'+it.name"></u-steps-item> |
| | | <view class="" style="width: 100px;"> |
| | | <u-line-progress :percentage="parseFloat((it.goodqty*100/it.planqty).toFixed(2))" |
| | | inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress> |
| | | </view> |
| | | <view style="width: 30%;text-align: right;"> |
| | | <view class="" style="display: flex;justify-content: flex-end;"> |
| | | <view style="color: #0659ff;"> |
| | | {{parseFloat(it.goodqty)}} |
| | | </view> |
| | | <view> |
| | | /{{ parseFloat(it.planqty)}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- {{item.children}} --> |
| | | <!-- <u--text class="u-collapse-content"> --> |
| | | <u-steps :current="-1" inactiveColor='#0659FF' direction="column"> |
| | | <view v-for="(it,ind) in item.children" :key="item.ordercode+it.name+ind" |
| | | @click="gotoPage(item.ordercode,it.code)" style="display: flex;align-items: center;"> |
| | | |
| | | <!-- <u-steps-item :title="it.code+'/'+it.name+it.spec"></u-steps-item> --> |
| | | <u-steps-item :title="it.code+'/'+it.name"></u-steps-item> |
| | | <view class="" style="width: 100px;"> |
| | | <u-line-progress :percentage="parseFloat((it.goodqty*100/it.planqty).toFixed(2))" |
| | | inactiveColor="#d1d6f5" height="10" activeColor="#0659ff"></u-line-progress> |
| | | </view> |
| | | <view style="width: 30%;text-align: right;"> |
| | | <view class="" style="display: flex;justify-content: flex-end;"> |
| | | <view style="color: #0659ff;"> |
| | | {{parseFloat(it.goodqty)}} |
| | | </view> |
| | | <view> |
| | | /{{ parseFloat(it.planqty)}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </u-steps> |
| | | <!-- </u--text> --> |
| | | </u-steps> |
| | | <!-- </u--text> --> |
| | | |
| | | |
| | | </u-collapse-item> |
| | | </scroll-view> |
| | | </u-collapse-item> |
| | | <!-- </scroll-view> --> |
| | | </u-collapse> |
| | | |
| | | <view class="uni-pagination-box"> |
| | |
| | | let that = this |
| | | uni.startPullDownRefresh({ |
| | | success() { |
| | | that.getProductOrderSearch() |
| | | that.getProductOrderSearch(that.currentpage) |
| | | uni.showToast({ |
| | | title: "下拉刷新", |
| | | icon: 'none' |
| | |
| | | }, |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | gotoPage(p1, p2) { |