| | |
| | | <template> |
| | | <view class="canvas"> |
| | | <view class="canvas flex-center" v-show="show"> |
| | | <view class="main"> |
| | | <view class="titles"> |
| | | <view class="titles flex-center"> |
| | | {{title}} |
| | | </view> |
| | | <view class="decs"> |
| | | <slot></slot> |
| | | <view class="decs flex-center"> |
| | | <uni-number-box v-model="num" :max="max" :min="min"></uni-number-box> |
| | | </view> |
| | | <view class="operation"> |
| | | {{title}} |
| | | <view class="operation flex-center"> |
| | | <button size="mini" @click="confrim">确认</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | type: [String,Number], |
| | | default: 'title' |
| | | }, |
| | | // num: { |
| | | // type: Number, |
| | | // default: 0 |
| | | // }, |
| | | max: { |
| | | type: Number, |
| | | default: 100 |
| | | }, |
| | | min: { |
| | | type: Number, |
| | | default: 0 |
| | | }, |
| | | show: { |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }, |
| | | watch: { |
| | | // num(num) { |
| | | // this.num = num |
| | | // }, |
| | | show(show) { |
| | | this.show = show |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | num: 0, |
| | | }; |
| | | }, |
| | | methods: { |
| | | confrim() { |
| | | this.show = false |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .flex-center { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .canvas { |
| | | height: 100vh; |
| | | width: 100%; |
| | |
| | | position: fixed; |
| | | left: 0; |
| | | top: 0; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .main { |
| | | width: 80%; |
| | |
| | | <button class="cu-btn bg-blue " @click="comb()">组托</button> |
| | | </label> |
| | | </view> |
| | | |
| | | <!-- 弹窗 --> |
| | | <!-- 修改数量 --> |
| | | <uni-popup ref="revise" background-color="#fff"> |
| | |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | |
| | | <y-pop> |
| | | </y-pop> |
| | | <view> |
| | | <!-- 修改数量 --> |
| | | <uni-popup ref="revise" background-color="#fff" @change="change"> |
| | | <uni-popup ref="revise" @change="change"> |
| | | <view class="revise-box"> |
| | | <view class="revise-box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">修改</text> |
| | | </view> |
| | | <view class="text-box"> |
| | | <text>可组数量:{{enableQty}}</text> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | <view class="change"> |
| | | <view class="text-box"> |
| | | <text>数量:{{enableQty}}</text> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="revise-box-buttom"> |
| | | <view> |
| | |
| | | } // exprot |
| | | </script> |
| | | <style> |
| | | .revise-box { |
| | | width: 500rpx; |
| | | height: 300rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | border-radius: 20rpx; |
| | | background-color: #fff; |
| | | } |
| | | .change { |
| | | height: 150rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .revise-box-buttom { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .pak-seach-box { |
| | | background-color: #FFFFFF; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>添加商品</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input-btn"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+提取</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="pak-data-box"> |
| | | <view class="box-top"> |
| | | <view class="color-block-blue"></view> |
| | |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | <y-pop title="调整"></y-pop> |
| | | <!-- <y-pop v-model="count" title="修改" :max="9999999" :show="show"></y-pop> --> |
| | | <view> |
| | | <!-- 修改数量 --> |
| | | <uni-popup ref="revise" background-color="#fff" @change="change"> |
| | | <uni-popup ref="revise" @change="change"> |
| | | <view class="revise-box"> |
| | | <view class="revise-box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">修改</text> |
| | | </view> |
| | | <view class="text-box"> |
| | | <text>可组数量:{{enableQty}}</text> |
| | | <view class="change"> |
| | | <view class="text-box"> |
| | | <text>数量:{{enableQty}}</text> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="revise-box-buttom"> |
| | | <view> |
| | | <button class="cu-btn bg-blue" @click="confirm()">确认</button> |
| | |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | matList:[{}], |
| | | matList:[], |
| | | staNoList:[], |
| | | barcode: '', |
| | | staNo:'', |
| | | matnr:'', |
| | | enableQty:'', |
| | | count:'', |
| | | count:15, |
| | | maxCount:'', |
| | | minCount:0, |
| | | rowNum:'' |
| | | rowNum:'', |
| | | show: false, |
| | | focus: false, |
| | | |
| | | } |
| | | }, |
| | | mounted(){ |
| | |
| | | this.maxCount = item.maxCount |
| | | this.rowNum = index |
| | | this.eject() |
| | | // this.show = true |
| | | }, |
| | | remove(item,index) { |
| | | this.matList.splice(index,1) |
| | |
| | | } // exprot |
| | | </script> |
| | | <style> |
| | | .revise-box { |
| | | width: 500rpx; |
| | | height: 300rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | border-radius: 20rpx; |
| | | background-color: #F1F1F1; |
| | | } |
| | | .change { |
| | | height: 150rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .revise-box-buttom { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .pak-seach-box { |
| | | background-color: #FFFFFF; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |