| | |
| | | <!-- @change="collapseChange" --> |
| | | <u-collapse style="max-height: 590px;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' |
| | |
| | | |
| | | |
| | | </u-collapse-item> |
| | | |
| | | </scroll-view> |
| | | </u-collapse> |
| | | |
| | | |
| | |
| | | </u-radio-group> |
| | | </view> |
| | | |
| | | <u--input :placeholder="'请输入'+placeholder2" style="border: 1rpx solid #eee;" :clearable='true' |
| | | v-model="order"></u--input> |
| | | |
| | | |
| | | <view style="margin-top: 20px;display: flex;align-items: center;"> |
| | | |
| | | <view class=""> |
| | |
| | | |
| | | </view> |
| | | |
| | | |
| | | <view style="display: flex;flex-wrap: wrap;"> |
| | | <u-tag style="width:220rpx;" :text="item.name" v-for="item in tagArr" :key="item.code" |
| | | :closable="true" :show="item.close" @close="tagClose(item)"></u-tag> |
| | |
| | | |
| | | |
| | | |
| | | <view class="head" style="margin-top: 10px;"> |
| | | <!-- <view class="head" style="margin-top: 10px;"> |
| | | <view class="head_block" style="height: 80rpx; display: flex;justify-content: space-around;"> |
| | | <u-button :plain='today' style="width: 70px;height: 25px;" @click="dateChange('today')" |
| | | type="primary" shape="circle" text="今日"> |
| | |
| | | <u-button :plain='custom' style="width: 70px;height: 25px;" @click="dateChange('custom')" |
| | | type="primary" shape="circle" text="自定义"></u-button> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view v-if="!custom" class="flex_column" |
| | | <!-- <view v-if="!custom" class="flex_column" |
| | | style="display: flex;justify-content: space-around;width: 100%;"> |
| | | <view class="" style="display: flex;justify-content: space-evenly;width: 100%;"> |
| | | <view class="titleFont">开始日期</view> |
| | |
| | | </u-button> |
| | | </view> |
| | | |
| | | <uni-calendar ref="calendar" :range='true' :insert="false" @confirm="calendarConfirm" /> |
| | | <uni-calendar ref="calendar" :range='true' :insert="false" @confirm="calendarConfirm" /> --> |
| | | |
| | | </view> |
| | | </u-popup> |
| | |
| | | |
| | | <script> |
| | | import { |
| | | ProductionScheduleKanban |
| | | ProductOrderSearch |
| | | } from '../../config/api.js'; |
| | | export default { |
| | | onLoad(option) { |
| | |
| | | // code: '1006' |
| | | // }, |
| | | ], //已选中的产品标签 |
| | | |
| | | order: '', //单号 |
| | | placeholder2: '生产订单' |
| | | |
| | | } |
| | | }, |
| | |
| | | let that = this |
| | | uni.startPullDownRefresh({ |
| | | success() { |
| | | that.getProductionScheduleKanban() |
| | | that.getProductOrderSearch() |
| | | uni.showToast({ |
| | | title: "下拉刷新", |
| | | icon: 'none' |
| | |
| | | mounted() { |
| | | this.init() |
| | | |
| | | this.getProductionScheduleKanban() |
| | | this.getProductOrderSearch() |
| | | }, |
| | | methods: { |
| | | init() { |
| | |
| | | }, |
| | | |
| | | // 接口获取 |
| | | async getProductionScheduleKanban() { |
| | | async getProductOrderSearch() { |
| | | let ordertype = '' // SO:销售订单 MO:生产订单 PO:生产工单 |
| | | switch (this.radiovalue) { |
| | | case '生产工单': |
| | |
| | | const data = { |
| | | ordertype, |
| | | partcode: this.tagArr.map(i => i.code).join(','), |
| | | Ratetime: this.calendarRange, |
| | | ordercode: this.order, |
| | | Ratetime: '', |
| | | // Ratetime: this.calendarRange, |
| | | |
| | | } |
| | | const { |
| | | data: res |
| | | } = await ProductionScheduleKanban(data) |
| | | } = await ProductOrderSearch(data) |
| | | |
| | | this.collapseArr = res |
| | | this.collapseArrAll = res |
| | |
| | | 1] |
| | | |
| | | }, |
| | | loadMore() { |
| | | |
| | | }, |
| | | |
| | | //输入框回车确认事件 |
| | | confirmInputBoxValue(val) { |
| | |
| | | |
| | | // 弹出层收起 |
| | | popupClose() { |
| | | this.getProductionScheduleKanban() |
| | | this.getProductOrderSearch() |
| | | this.popupShow = false |
| | | }, |
| | | |
| | |
| | | // 单选按钮切换 |
| | | groupChange(val) { |
| | | console.log(val) |
| | | this.placeholder2 = val |
| | | }, |
| | | |
| | | |