#
whycq
2022-06-27 da65440626a5c429c202aa2d8b28db392a4d60b0
#
5个文件已修改
115 ■■■■ 已修改文件
main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/matQuery.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/pakin.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.js
@@ -5,7 +5,7 @@
// 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({
pages/basics/matQuery.vue
@@ -4,25 +4,25 @@
            <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>
@@ -41,9 +41,9 @@
        data() {
            return {
                matData: {
                    matnr: null,
                    maktx: null,
                    batch: null,
                    matNo: null,
                    matName: null,
                    str2: null,
                    anfme: null,
                },
                baseIP:'',
@@ -62,11 +62,12 @@
            // 监听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() {
pages/basics/pakin.vue
@@ -52,11 +52,11 @@
                        <!-- <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">
@@ -204,13 +204,14 @@
                    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();
            },
@@ -237,6 +238,7 @@
                        'token':uni.getStorageSync('token')
                    },
                    success(result) {
                        console.log(result)
                        uni.hideLoading();
                        var res = result.data
                        if (res.code === 200) {
@@ -282,14 +284,15 @@
            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) {
pages/index/index.vue
@@ -30,36 +30,36 @@
                        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',
pages/login/login.vue
@@ -225,13 +225,14 @@
                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) {