#
whycq
2024-03-16 e7b93793b29b465d656c42b47eaa5419b4a01643
pages/order/orderPutDown.vue
@@ -50,6 +50,12 @@
                     <uni-tag :text="item.batch" type="warning"></uni-tag>
                  </view>
               </view>
               <!-- <view class="list-left-item">
                  <view class="desc">重量:</view>
                  <view class="left-item">
                     <uni-tag :text="item.weight" type="warning"></uni-tag>
                  </view>
               </view> -->
               <view class="list-left-item">
                  <view class="desc">数量:</view>
                  <view class="left-item">{{item.anfme}}</view>
@@ -84,10 +90,14 @@
                  <view class="popup-item-left">批号:</view>
                  <view class="popup-item-right"><input type="text" v-model="batch"></view>
               </view> -->
               <!-- <view class="popup-item">
                  <view class="popup-item-left">重量:</view>
                  <view class="popup-item-right"><input type="text" v-model="weight"></view>
               </view> -->
               <view class="popup-item">
                  <view class="popup-item-left">数量:</view>
                  <view class="popup-item-right" style="border: none;justify-content: center;">
                     <uni-number-box :value="count" :max="9999999" color="#747474" @change="changeValue" />
                     <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" />
                  </view>
               </view>
               <view class="btn">
@@ -149,6 +159,7 @@
            matnr: '',
            matnr1: '',
            batch: '',
            weight: '',
            msgType1: 'success',
            msgType: 'success',
            messageText: '',
@@ -194,9 +205,15 @@
         // 搜索物料
         findMat() {
            let that = this
            var matnr =  that.matnr.split(";")
            that.order = matnr[0]
            that.matnr = matnr[1]
            if (matnr[1]) {
               that.order = matnr[0]
               that.matnr = matnr[1]
               if (matnr[2] === null) {
                  that.batch = ''
                  matnr[2] = ''
               }
               that.anfme = matnr[3]
            }
            uni.request({
               url: that.baseUrl + '/mat/auth',
               data: {
@@ -211,7 +228,11 @@
                     that.matData = result.data
                     that.matnr = ''
                     that.matData['batch'] = ''
                     result.data.batch = matnr[2]
                     that.matData['anfme'] = ''
                     if (matnr[2] === null) {
                        result.data.batch = ''
                     }
                     result.data.anfme = matnr[3]
                     uni.navigateTo({
                        url: "../mat/matSelected",
                        // 通过eventChannel向被打开页面传送数据
@@ -369,6 +390,7 @@
            this.matnr1 = this.dataList[i].matnr
            this.count = this.dataList[i].anfme
            this.batch = this.dataList[i].batch
            this.weight = this.dataList[i].weight
            this.rowNum = i
            this.eject()
         },
@@ -393,6 +415,7 @@
         reviseConfirm() {
            this.dataList[this.rowNum].anfme = this.count
            this.dataList[this.rowNum].batch = this.batch
            this.dataList[this.rowNum].weight = this.weight
            this.messageText = "修改成功"
            this.messageToggle('success')
            this.$refs.revise.close()