| | |
| | | // 同时发送异步请求的次数,防止一次点击有多次请求 |
| | | let ajaxTime = 0; |
| | | export const baseUrl = 'http://localhost:7788' |
| | | //export const baseUrl = 'http://10.135.75.70:7788' //生产用 |
| | | //export const baseUrl = 'http://localhost:7788' |
| | | export const baseUrl = 'http://10.135.75.70:7788' //生产用 |
| | | //export const baseUrl = 'http://192.168.216.203:7788' //测试用 |
| | | |
| | | // 公共的request方法 |
| | |
| | | data |
| | | }) |
| | | } |
| | | |
| | | |
| | | // 出库统计 /api/pdaservice/getOutBoundWorkPieceInfoCountList |
| | | export function getOutBoundWorkPieceInfoCountList(data) { |
| | | return request({ |
| | | url: `/api/pdaservice/getOutBoundWorkPieceInfoCountList`, |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | |
| | | production:"/pages/production/index", |
| | | outBound:'/pages/outBound/index', |
| | | unLine:'/pages/unLine/index', |
| | | outBoundNew:'/pages/outBoundNew/index' |
| | | outBoundNew:'/pages/outBoundNew/index', |
| | | outBoundWorkPieceInfoCount:'/pages/outBoundWorkPieceInfoCount/index' |
| | | } |
| | | } |
| | |
| | | export default { |
| | | errMsg:'网络错误!', |
| | | host:{ //接口调用的域名设置 |
| | | //'default':'http://10.135.75.70:7788',//生产用 |
| | | 'default':'http://10.135.75.70:7788',//生产用 |
| | | //'default':'http://192.168.216.203:7788', //生产环境地址 |
| | | 'default':'http://localhost:7788', |
| | | //'default':'http://localhost:7788', |
| | | 'mock':'http://localhost:3012' |
| | | }, |
| | | block:{ |
| | |
| | | "name" : "连杆线数采", |
| | | "appid" : "__UNI__F24DEB0", |
| | | "description" : "一汽连杆", |
| | | "versionName" : "2.0.16", |
| | | "versionName" : "2.0.19", |
| | | "versionCode" : 6, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | |
| | | "path": "pages/unLine/index" |
| | | }, |
| | | { |
| | | "path": "pages/outBoundWorkPieceInfoCount/index" |
| | | }, |
| | | { |
| | | "path": "pages/outBoundNew/index" |
| | | } |
| | | ], |
| | |
| | | <u-input :readonly="true" placeholder="请选择出库日期" v-model="form.planTime" |
| | | @click.native="timeShow = true"></u-input> |
| | | </u-form-item> |
| | | |
| | | </u-form> |
| | | <!-- 时间选择器 --> |
| | | <u-datetime-picker closeOnClickOverlay :show="timeShow" @confirm="timeConfirm" :mode="mode" |
| | | v-model="value1" @close="timeShow=false" @cancel="timeShow=false"></u-datetime-picker> |
| | | </u-form> |
| | | @close="timeShow=false" v-model="value1" @cancel="timeShow=false"></u-datetime-picker> |
| | | <view class="btn-view"> |
| | | <view class="search-btn" @tap.stop="onSearchContainter">搜索</view> |
| | | </view> |
| | | <!-- 详情 --> |
| | | <view> |
| | | <!-- 基础信息 --> |
| | | <bar-content v-for="item in list" :title="'出库人:' + item.workPieceOutboundUserName" :content="item" :propArr="detailArr" :key="item.id"></bar-content> |
| | | <bar-content v-for="item in list" :title="'出库人:' + item.workPieceOutboundUserName" :content="item" :propArr="detailArr" :key="item.workPieceOutboundUserName"></bar-content> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | // this.barDetail = {special: "SAE1041(0.80%~1.10%Mn)",barType: "高碳钢",barSpec: "70号",material: "229-255HBS",status: 1}; |
| | | // this.statusArr = [{code: 1,title: '不合格'},{code: 2,title: '合格'},{code: 3,title: '疑似'}] |
| | | this.detailArr = [{code: "count",title: '出库数量'}] |
| | | this.mode = 'date' |
| | | var date=new Date(); |
| | | this.form.planTime = moment(date).format('YYYY-MM-DD') |
| | | this.onSearchContainter(); |
| | |
| | | this.timeShow = false |
| | | |
| | | }, |
| | | onSearchContainter(barId) { |
| | | onSearchContainter() { |
| | | if(this.form.planTime == '') { |
| | | return uni.showModal({ |
| | | title:'出库日期不能为空', |
| | | showCancel: false |
| | | }) |
| | | } |
| | | this.list = [] |
| | | //debugger |
| | | const param = {Date: this.form.planTime} |
| | | getOutBoundWorkPieceInfoCountList(param).then(res => { |
| | | //debugger |
| | | this.list = res.data |
| | | }) |
| | | }, |