| | |
| | | // Vue.prototype.baseUrl = "http://localhost:8081/acs" |
| | | Vue.prototype.baseHttp = 'http://' |
| | | Vue.prototype.basePort = '8080' |
| | | Vue.prototype.baseUrl = '/lywms' |
| | | Vue.prototype.baseUrl = '/jldqwms' |
| | | Vue.config.productionTip = false |
| | | App.mpType = 'app' |
| | | const app = new Vue({ |
| | |
| | | <view class="container"> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>商品编码</text></view> |
| | | <view class="text-title"><text>{{matData.matnr}}</text></view> |
| | | <view class="text-title"><text>{{matData.matNo}}</text></view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>商品名称</text></view> |
| | | <view class="text-title">{{matData.maktx}}</view> |
| | | <view class="text-title">{{matData.matName}}</view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>规格</text></view> |
| | | <view class="text-title">{{matData.specs}}</view> |
| | | <view class="text-title">{{matData.str2}}</view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>序列号</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.batch"></view> |
| | | <view class="text-title"><text>单位</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.str1"></view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>数量</text></view> |
| | | <view class="text-title"> |
| | | <view> |
| | | <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> |
| | | <uni-number-box v-model="matData.count" :max="9999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | matData: { |
| | | matnr: null, |
| | | maktx: null, |
| | | batch: null, |
| | | matNo: null, |
| | | matName: null, |
| | | str2: null, |
| | | anfme: null, |
| | | }, |
| | | baseIP:'', |
| | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('matData', function(data) { |
| | | that.matData = data.data |
| | | console.log(that.matData) |
| | | }) |
| | | |
| | | }, |
| | | onShow() { |
| | | this.matData.anfme = 0 |
| | | this.matData.count = 0 |
| | | }, |
| | | methods: { |
| | | blur() { |
| | |
| | | <!-- <view> |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </view> --> |
| | | <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view> |
| | | <view class="matnr"><text style="width: 400rpx;">编码:{{item.matNo}}</text></view> |
| | | <view><text style="width: 400rpx;">品名:{{item.matName}}</text></view> |
| | | <view><text style="width: 400rpx;">规格:{{item.str2}}</text></view> |
| | | <view> |
| | | <text style="width: 400rpx;">数量:{{item.anfme}}</text> |
| | | <text style="width: 400rpx;">数量:{{item.count}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="data-list-right"> |
| | |
| | | this.focus = true; |
| | | }); |
| | | }, |
| | | remove() { |
| | | // this.matList.splice(index,1) |
| | | for (var i = 0; i < this.matList.length; i++) { |
| | | if (this.matList[i].checked == true) { |
| | | this.matList.splice(i,1) |
| | | } |
| | | } |
| | | remove(item,index) { |
| | | this.matList.splice(index,1) |
| | | |
| | | // for (var i = 0; i < this.matList.length; i++) { |
| | | // if (this.matList[i].checked == true) { |
| | | // this.matList.splice(i,1) |
| | | // } |
| | | // } |
| | | this.checkList(); |
| | | uni.vibrateShort(); |
| | | }, |
| | |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | uni.hideLoading(); |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/matCode/auth', |
| | | data: { |
| | | matnr:that.matnr |
| | | id:that.matnr |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | uni.vibrateShort(); |
| | | let res = result.data |
| | | if (res.code === 200 && res.data) { |
| | |
| | | color: 'blue', |
| | | cuIcon: 'copy' |
| | | }, |
| | | { |
| | | title: '订单组托', |
| | | name: 'order', |
| | | color: 'blue', |
| | | cuIcon: 'goods' |
| | | }, |
| | | { |
| | | title: '库存查询', |
| | | name: 'stockQuery', |
| | | color: 'blue', |
| | | cuIcon: 'searchlist' |
| | | }, |
| | | { |
| | | title: '单据出库', |
| | | name: 'orderOut', |
| | | color: 'blue', |
| | | cuIcon: 'video' |
| | | }, |
| | | { |
| | | title: '库位出库', |
| | | name: 'stoOut', |
| | | color: 'blue', |
| | | cuIcon: 'video' |
| | | }, |
| | | { |
| | | title: '库存盘点', |
| | | name: 'stockCheck', |
| | | color: 'blue', |
| | | cuIcon: 'safe' |
| | | }, |
| | | // { |
| | | // title: '订单组托', |
| | | // name: 'order', |
| | | // color: 'blue', |
| | | // cuIcon: 'goods' |
| | | // }, |
| | | // { |
| | | // title: '库存查询', |
| | | // name: 'stockQuery', |
| | | // color: 'blue', |
| | | // cuIcon: 'searchlist' |
| | | // }, |
| | | // { |
| | | // title: '单据出库', |
| | | // name: 'orderOut', |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | // { |
| | | // title: '库位出库', |
| | | // name: 'stoOut', |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | // { |
| | | // title: '库存盘点', |
| | | // name: 'stockCheck', |
| | | // color: 'blue', |
| | | // cuIcon: 'safe' |
| | | // }, |
| | | { |
| | | title: '退出登录', |
| | | name: 'logOut', |
| | |
| | | uni.request({ |
| | | url: this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl + '/login.action', |
| | | data: { |
| | | username:this.userName, |
| | | mobile:this.userName, |
| | | password:md5.hex_md5(this.password) |
| | | }, |
| | | header: { |
| | | "content-type": "application/json" |
| | | }, |
| | | success: (result) => { |
| | | console.log(result) |
| | | let res = result.data; |
| | | uni.hideLoading(); |
| | | if (res.code == 200) { |