| | |
| | | </view> |
| | | |
| | | |
| | | <u-alert :title="alertTitle" type="info"></u-alert> |
| | | <u-alert :title="'工单数量('+total+')'" type="info"></u-alert> |
| | | |
| | | |
| | | <!-- 折叠面板 --> |
| | |
| | | |
| | | <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"> --> |
| | | <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"> |
| | | v-for="(item,index) in collapseArr" :key="item.ordercode+index"> |
| | | |
| | | |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | |
| | | </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)"> |
| | | <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> |
| | |
| | | |
| | | |
| | | </u-collapse-item> |
| | | <!-- </scroll-view> --> |
| | | </scroll-view> |
| | | </u-collapse> |
| | | |
| | | |
| | |
| | | uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器 |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("扫描到的内容为:", content) |
| | | // _this.getCheckScanDeviceQrCodeData(content) |
| | | _this.getCheckScanDeviceQrCodeData(content) |
| | | }) |
| | | |
| | | |
| | | console.log(option, 8) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | ], //已选中的产品标签 |
| | | order: '', //单号 |
| | | placeholder2: '生产订单', |
| | | total: 10, |
| | | total: 0, |
| | | currentpage: 1, //第几页 |
| | | pageSize: 10, //每页显示多少条 |
| | | |
| | |
| | | |
| | | |
| | | uni.navigateTo({ |
| | | url: './scbg2?orderstep=' + orderstep |
| | | url: './scbg2?orderstep=' + orderstep + '¤tpage=' + this.currentpage |
| | | }) |
| | | }, |
| | | |
| | |
| | | let ordertype = '' // SO:销售订单 MO:生产订单 PO:生产工单 |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入工单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入工单信息' |
| | | ordertype = 'PO' |
| | | break |
| | | case '生产订单': |
| | | // this.alertTitle = '生产订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入生产订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入生产订单信息' |
| | | ordertype = 'MO' |
| | | break |
| | | case '销售订单': |
| | | // this.alertTitle = '销售订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入销售订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入销售订单信息' |
| | | ordertype = 'SO' |
| | | break |
| | | } |
| | |
| | | |
| | | this.collapseArr = res.data |
| | | this.collapseArrAll = res.data |
| | | this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | 1] |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | // 1] |
| | | |
| | | }, |
| | | loadMore() { |
| | |
| | | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | | this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | return p.ordercode.indexOf(val) !== -1 |
| | | }) |
| | | this.order = val |
| | | this.currentpage = 1 |
| | | this.getProductOrderSearch(1) |
| | | // this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | // return p.ordercode.indexOf(val) !== -1 |
| | | // }) |
| | | |
| | | |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '生产订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '销售订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | } |
| | | // switch (this.radiovalue) { |
| | | // case '生产工单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '生产订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '销售订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // } |
| | | |
| | | |
| | | |
| | |
| | | <page-nav title="生产报工"></page-nav> |
| | | |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <!-- <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">请扫描任务条码</div> |
| | | </div> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent" :style="{maxHeight:'1260rpx',overflow: 'scroll'}"> |
| | | <view class="mainContent" :style="{maxHeight:'72vh',overflow: 'scroll'}"> |
| | | |
| | | <!-- 报工信息 --> |
| | | <u-gap height="5" bgColor="#eff0f1"></u-gap> |
| | |
| | | onLoad(option) { |
| | | if (option.orderstep) { |
| | | this.fromType = '1' |
| | | this.currentpage = option.currentpage |
| | | this.getMesOrderStepStart(option.orderstep) |
| | | } else { |
| | | this.fromType = '2' |
| | |
| | | userSheetShow: false, |
| | | |
| | | fromType: '1', //来源于哪里 是页面1还是2 |
| | | |
| | | currentpage: 1, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | let pages = getCurrentPages(); // 页面集合 |
| | | let beforePage = pages[pages.length - 2]; //上一个页面 |
| | | // beforePage.$vm.getProductionScheduleKanban() |
| | | beforePage.$vm.getProductOrderSearch() |
| | | beforePage.$vm.getProductOrderSearch(this.currentpage) |
| | | |
| | | uni.navigateBack() |
| | | } |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="首检检验"></page-nav> |
| | | <page-nav title="首件检验"></page-nav> |
| | | |
| | | |
| | | <view class="flex_center" style="margin: 20rpx;"> |
| | |
| | | </view> |
| | | |
| | | |
| | | <u-alert :title="alertTitle" type="info"></u-alert> |
| | | <u-alert :title="'工单数量('+total+')'" type="info"></u-alert> |
| | | |
| | | |
| | | <!-- 折叠面板 --> |
| | | <!-- <u-collapse @change="change" @close="close" @open="open"> --> |
| | | <!-- @change="collapseChange" --> |
| | | |
| | | |
| | | <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"> --> |
| | | <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"> |
| | | v-for="(item,index) in collapseArr" :key="item.ordercode+index"> |
| | | |
| | | |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | |
| | | </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)"> |
| | | <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> |
| | |
| | | |
| | | |
| | | </u-collapse-item> |
| | | <!-- </scroll-view> --> |
| | | </scroll-view> |
| | | </u-collapse> |
| | | |
| | | |
| | | |
| | | |
| | | <view class="uni-pagination-box"> |
| | | <uni-pagination show-icon :page-size="pageSize" :current="currentpage" :total="total" |
| | | @change="pageChange" /> |
| | | </view> |
| | | |
| | | |
| | | <!-- 弹出层 --> |
| | | <!-- closeIconPos='top-left' closeOnClickOverlay closeable='true' --> |
| | |
| | | <view @click="scan2"> |
| | | <drag-ball :x='300' :y="600"></drag-ball> |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | ProductOrderSearch |
| | | } from '../../config/api.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器 |
| | |
| | | console.log("扫描到的内容为:", content) |
| | | _this.getCheckScanDeviceQrCodeData(content) |
| | | }) |
| | | |
| | | |
| | | console.log(option, 8) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | ], //已选中的产品标签 |
| | | order: '', //单号 |
| | | placeholder2: '生产订单', |
| | | total: 10, |
| | | total: 0, |
| | | currentpage: 1, //第几页 |
| | | pageSize: 10, //每页显示多少条 |
| | | |
| | |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | gotoPage(p1, p2) { |
| | | let orderstep = null |
| | | |
| | |
| | | |
| | | |
| | | uni.navigateTo({ |
| | | url: './sjjy1?orderstep=' + orderstep |
| | | url: './sjjy1?orderstep=' + orderstep + '¤tpage=' + this.currentpage |
| | | }) |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | |
| | | // 接口获取 |
| | | async getProductOrderSearch(current) { |
| | | let ordertype = '' // SO:销售订单 MO:生产订单 PO:生产工单 |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入工单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入工单信息' |
| | | ordertype = 'PO' |
| | | break |
| | | case '生产订单': |
| | | // this.alertTitle = '生产订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入生产订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入生产订单信息' |
| | | ordertype = 'MO' |
| | | break |
| | | case '销售订单': |
| | | // this.alertTitle = '销售订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入销售订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入销售订单信息' |
| | | ordertype = 'SO' |
| | | break |
| | | } |
| | |
| | | ordercode: this.order, |
| | | Ratetime: '', |
| | | // Ratetime: this.calendarRange, |
| | | |
| | | page: current, |
| | | rows: this.pageSize, |
| | | prop: 'lm_date', |
| | | sortorder: 'desc' |
| | | |
| | | } |
| | | const res = await ProductOrderSearch(data) |
| | | |
| | | this.total = res.count |
| | | |
| | | this.collapseArr = res.data |
| | | this.collapseArrAll = res.data |
| | | this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | 1] |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | // 1] |
| | | |
| | | }, |
| | | loadMore() { |
| | |
| | | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | | this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | return p.ordercode.indexOf(val) !== -1 |
| | | }) |
| | | this.order = val |
| | | this.currentpage = 1 |
| | | this.getProductOrderSearch(1) |
| | | // this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | // return p.ordercode.indexOf(val) !== -1 |
| | | // }) |
| | | |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '生产订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '销售订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | } |
| | | |
| | | // switch (this.radiovalue) { |
| | | // case '生产工单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '生产订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '销售订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // } |
| | | |
| | | |
| | | |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.collapseArr.length + this.alertTitle.split('/')[ |
| | | // 1] |
| | |
| | | ::v-deep .u-cell__body { |
| | | padding-bottom: 40rpx; |
| | | } |
| | | |
| | | |
| | | .uni-pagination-box { |
| | | height: 4vh; |
| | |
| | | <view> |
| | | <page-nav title="首检检验"></page-nav> |
| | | |
| | | <view v-if="processArr.length===0"> |
| | | <!-- <view v-if="processArr.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">扫描工序任务码</div> |
| | | </div> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 1340rpx;overflow: auto"> |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="height: 386rpx;overflow: auto;"> |
| | |
| | | <page-nav title="首检检验"></page-nav> |
| | | |
| | | |
| | | <view class="mainContent"> |
| | | <view class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | |
| | | </view> |
| | | |
| | | |
| | | <u-alert :title="alertTitle" type="info"></u-alert> |
| | | <u-alert :title="'工单数量('+total+')'" type="info"></u-alert> |
| | | |
| | | |
| | | <!-- 折叠面板 --> |
| | | <!-- <u-collapse @change="change" @close="close" @open="open"> --> |
| | | <!-- @change="collapseChange" --> |
| | | |
| | | |
| | | <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"> --> |
| | | <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"> |
| | | v-for="(item,index) in collapseArr" :key="item.ordercode+index"> |
| | | |
| | | |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | |
| | | </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)"> |
| | | <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> |
| | |
| | | |
| | | |
| | | </u-collapse-item> |
| | | <!-- </scroll-view> --> |
| | | </scroll-view> |
| | | </u-collapse> |
| | | |
| | | |
| | | |
| | | |
| | | <view class="uni-pagination-box"> |
| | | <uni-pagination show-icon :page-size="pageSize" :current="currentpage" :total="total" |
| | | @change="pageChange" /> |
| | | </view> |
| | | |
| | | |
| | | <!-- 弹出层 --> |
| | | <!-- closeIconPos='top-left' closeOnClickOverlay closeable='true' --> |
| | |
| | | <view @click="scan2"> |
| | | <drag-ball :x='300' :y="600"></drag-ball> |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | ProductOrderSearch |
| | | } from '../../config/api.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器 |
| | |
| | | console.log("扫描到的内容为:", content) |
| | | _this.getCheckScanDeviceQrCodeData(content) |
| | | }) |
| | | |
| | | |
| | | console.log(option, 8) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | ], //已选中的产品标签 |
| | | order: '', //单号 |
| | | placeholder2: '生产订单', |
| | | total: 10, |
| | | total: 0, |
| | | currentpage: 1, //第几页 |
| | | pageSize: 10, //每页显示多少条 |
| | | |
| | |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | gotoPage(p1, p2) { |
| | | let orderstep = null |
| | | |
| | |
| | | |
| | | |
| | | uni.navigateTo({ |
| | | url: './wgjy1?orderstep=' + orderstep |
| | | url: './wgjy1?orderstep=' + orderstep + '¤tpage=' + this.currentpage |
| | | }) |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | |
| | | // 接口获取 |
| | | async getProductOrderSearch(current) { |
| | | let ordertype = '' // SO:销售订单 MO:生产订单 PO:生产工单 |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入工单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入工单信息' |
| | | ordertype = 'PO' |
| | | break |
| | | case '生产订单': |
| | | // this.alertTitle = '生产订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入生产订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入生产订单信息' |
| | | ordertype = 'MO' |
| | | break |
| | | case '销售订单': |
| | | // this.alertTitle = '销售订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入销售订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入销售订单信息' |
| | | ordertype = 'SO' |
| | | break |
| | | } |
| | |
| | | ordercode: this.order, |
| | | Ratetime: '', |
| | | // Ratetime: this.calendarRange, |
| | | |
| | | page: current, |
| | | rows: this.pageSize, |
| | | prop: 'lm_date', |
| | | sortorder: 'desc' |
| | | |
| | | } |
| | | const res = await ProductOrderSearch(data) |
| | | |
| | | this.total = res.count |
| | | |
| | | this.collapseArr = res.data |
| | | this.collapseArrAll = res.data |
| | | this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | 1] |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | // 1] |
| | | |
| | | }, |
| | | loadMore() { |
| | |
| | | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | | this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | return p.ordercode.indexOf(val) !== -1 |
| | | }) |
| | | this.order = val |
| | | this.currentpage = 1 |
| | | this.getProductOrderSearch(1) |
| | | // this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | // return p.ordercode.indexOf(val) !== -1 |
| | | // }) |
| | | |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '生产订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '销售订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | } |
| | | |
| | | // switch (this.radiovalue) { |
| | | // case '生产工单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '生产订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '销售订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // } |
| | | |
| | | |
| | | |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.collapseArr.length + this.alertTitle.split('/')[ |
| | | // 1] |
| | |
| | | ::v-deep .u-cell__body { |
| | | padding-bottom: 40rpx; |
| | | } |
| | | |
| | | |
| | | .uni-pagination-box { |
| | | height: 4vh; |
| | |
| | | <view> |
| | | <page-nav title="完工检验"></page-nav> |
| | | |
| | | <view v-if="processArr.length===0"> |
| | | <!-- <view v-if="processArr.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">扫描工序任务码</div> |
| | | </div> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 1340rpx;overflow: auto"> |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="height: 386rpx;overflow: auto;"> |
| | |
| | | <page-nav title="完工检验"></page-nav> |
| | | |
| | | |
| | | <view class="mainContent"> |
| | | <view class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | |
| | | </view> |
| | | |
| | | |
| | | <u-alert :title="alertTitle" type="info"></u-alert> |
| | | <u-alert :title="'工单数量('+total+')'" type="info"></u-alert> |
| | | |
| | | |
| | | <!-- 折叠面板 --> |
| | | <!-- <u-collapse @change="change" @close="close" @open="open"> --> |
| | | <!-- @change="collapseChange" --> |
| | | |
| | | |
| | | <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"> --> |
| | | <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"> |
| | | v-for="(item,index) in collapseArr" :key="item.ordercode+index"> |
| | | |
| | | |
| | | <view style="position: absolute;left: 30rpx;top:34px;font-size: 24rpx;color: #999;"> |
| | |
| | | </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)"> |
| | | <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> |
| | |
| | | |
| | | |
| | | </u-collapse-item> |
| | | <!-- </scroll-view> --> |
| | | </scroll-view> |
| | | </u-collapse> |
| | | |
| | | |
| | | |
| | | |
| | | <view class="uni-pagination-box"> |
| | | <uni-pagination show-icon :page-size="pageSize" :current="currentpage" :total="total" |
| | | @change="pageChange" /> |
| | | </view> |
| | | |
| | | |
| | | <!-- 弹出层 --> |
| | | <!-- closeIconPos='top-left' closeOnClickOverlay closeable='true' --> |
| | |
| | | <view @click="scan2"> |
| | | <drag-ball :x='300' :y="600"></drag-ball> |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | ProductOrderSearch |
| | | } from '../../config/api.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器 |
| | |
| | | console.log("扫描到的内容为:", content) |
| | | _this.getCheckScanDeviceQrCodeData(content) |
| | | }) |
| | | |
| | | |
| | | console.log(option, 8) |
| | | }, |
| | | |
| | | onPullDownRefresh() { |
| | |
| | | ], //已选中的产品标签 |
| | | order: '', //单号 |
| | | placeholder2: '生产订单', |
| | | total: 10, |
| | | total: 0, |
| | | currentpage: 1, //第几页 |
| | | pageSize: 10, //每页显示多少条 |
| | | |
| | |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | gotoPage(p1, p2) { |
| | | let orderstep = null |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 页数改变时 分页触发 |
| | | pageChange(e) { |
| | | this.currentpage = e.current |
| | | this.getProductOrderSearch(e.current) |
| | | }, |
| | | |
| | | // 接口获取 |
| | | async getProductOrderSearch(current) { |
| | | let ordertype = '' // SO:销售订单 MO:生产订单 PO:生产工单 |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入工单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入工单信息' |
| | | ordertype = 'PO' |
| | | break |
| | | case '生产订单': |
| | | // this.alertTitle = '生产订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入生产订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入生产订单信息' |
| | | ordertype = 'MO' |
| | | break |
| | | case '销售订单': |
| | | // this.alertTitle = '销售订单数量(共/个)' |
| | | this.alertTitle = '工单数量(共/个)' |
| | | this.placeholder = '请输入销售订单信息' |
| | | // this.alertTitle = '工单数量(共/个)' |
| | | // this.placeholder = '请输入销售订单信息' |
| | | ordertype = 'SO' |
| | | break |
| | | } |
| | |
| | | ordercode: this.order, |
| | | Ratetime: '', |
| | | // Ratetime: this.calendarRange, |
| | | |
| | | page: current, |
| | | rows: this.pageSize, |
| | | prop: 'lm_date', |
| | | sortorder: 'desc' |
| | | |
| | | } |
| | | const res = await ProductOrderSearch(data) |
| | | |
| | | this.total = res.count |
| | | |
| | | this.collapseArr = res.data |
| | | this.collapseArrAll = res.data |
| | | this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | 1] |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.total + this.alertTitle.split('/')[ |
| | | // 1] |
| | | |
| | | }, |
| | | loadMore() { |
| | |
| | | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | | this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | return p.ordercode.indexOf(val) !== -1 |
| | | }) |
| | | this.order = val |
| | | this.currentpage = 1 |
| | | this.getProductOrderSearch(1) |
| | | // this.collapseArr = this.collapseArrAll.filter((p) => { |
| | | // return p.ordercode.indexOf(val) !== -1 |
| | | // }) |
| | | |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '生产订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | case '销售订单': |
| | | this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | break |
| | | } |
| | | |
| | | // switch (this.radiovalue) { |
| | | // case '生产工单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '生产订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // case '销售订单': |
| | | // this.alertTitle = '工单数量(共' + this.total + '个)' |
| | | // break |
| | | // } |
| | | |
| | | |
| | | |
| | | // this.alertTitle = this.alertTitle.split('/')[0] + this.collapseArr.length + this.alertTitle.split('/')[ |
| | | // 1] |
| | |
| | | ::v-deep .u-cell__body { |
| | | padding-bottom: 40rpx; |
| | | } |
| | | |
| | | |
| | | .uni-pagination-box { |
| | | height: 4vh; |
| | |
| | | <view> |
| | | <page-nav title="巡检检验"></page-nav> |
| | | |
| | | <view v-if="processArr.length===0"> |
| | | <!-- <view v-if="processArr.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">扫描工序任务码</div> |
| | | </div> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 1340rpx;overflow: auto"> |
| | | <view v-if="processArr.length!==0" class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="height: 386rpx;overflow: auto;"> |
| | |
| | | <page-nav title="巡检检验"></page-nav> |
| | | |
| | | |
| | | <view class="mainContent"> |
| | | <view class="mainContent" style="height: 72vh;overflow: auto"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |