| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input type="text" v-model="billNo" placeholder="扫码 / 输入" @input="searchBillNo"> |
| | | <input type="text" v-model="billNo" placeholder="扫码 / 输入" @input="searchBillNo" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBillNo"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | billNo: 'CK6266262626A', |
| | | commonUrl:null, |
| | | billNo: '', |
| | | matList: [], |
| | | sites: [], |
| | | siteId: '' |
| | | } |
| | | }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT; |
| | | this.staNoSelect(); |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | this.staNoSelect(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | // 清空单号搜索框 |
| | | removeBillNo() { |
| | | this.billNo = null |
| | |
| | | searchBillNo() { |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/orderDetl/list/auth", |
| | | url: that.commonUrl + "/orderDetl/list/auth", |
| | | header: { |
| | | 'content-type':"application/x-www-form-urlencoded", |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | staNoSelect() { |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/available/take/site", |
| | | url: that.commonUrl + "/available/take/site", |
| | | header: {'token':uni.getStorageSync('token')}, |
| | | success(result) { |
| | | console.log(result) |
| | |
| | | console.log(param) |
| | | // return |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/order/out/pakout/auth", |
| | | url: that.commonUrl + "/mobile/order/out/pakout/auth", |
| | | header: { |
| | | 'token':uni.getStorageSync('token')}, |
| | | // data: JSON.stringify(param), |