Browse Source

修改扫描叫料光标和版本号显示

hella_online_20240829
lijuncheng 5 months ago
parent
commit
db5cc9e986
  1. 4
      src/manifest.json
  2. 22
      src/mycomponents/common/comMessage.vue
  3. 6
      src/pages/issue/request/issueScanRequest.vue

4
src/manifest.json

@ -2,8 +2,8 @@
"name" : "wms", "name" : "wms",
"appid" : "__UNI__C9CF4BF", "appid" : "__UNI__C9CF4BF",
"description" : "", "description" : "",
"versionName" : "1.0.5", "versionName" : "1.0.11",
"versionCode" : 5, "versionCode" : 11,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

22
src/mycomponents/common/comMessage.vue

@ -2,6 +2,12 @@
<view> <view>
<u-modal v-model="show" :title-style="{color: 'red'}" :title="title" :showTitle="false" <u-modal v-model="show" :title-style="{color: 'red'}" :title="title" :showTitle="false"
:showConfirmButton="false" ref="modal"> :showConfirmButton="false" ref="modal">
<view class="" style="width: 100%;display: flex; align-items: center; justify-content: center;margin-top: 10rpx; " >
<view class="" style="">
版本号 : {{version}}
</view>
</view>
<view class="slot-content"> <view class="slot-content">
<slot name="icon"> <slot name="icon">
<image class="icon" :src="icon" /> <image class="icon" :src="icon" />
@ -9,7 +15,6 @@
<slot name="content"> <slot name="content">
<rich-text class="content" :nodes="content"> <rich-text class="content" :nodes="content">
</rich-text> </rich-text>
</slot> </slot>
<view class='split_line'></view> <view class='split_line'></view>
<slot name="button"> <slot name="button">
@ -56,9 +61,22 @@
cancel: false, // true cancel: false, // true
isDisabled: true, // true isDisabled: true, // true
seconds: 0, seconds: 0,
success: () => {} // success: () => {} ,//
version:""
} }
}, },
mounted() {
const systemInfo = uni.getSystemInfoSync();
// #ifdef H5
this.version = systemInfo.appVersion;
console.log(systemInfo.appVersion, '版本号');
// #endif
// #ifdef APP
this.version = systemInfo.appWgtVersion;
// #endif
},
methods: { methods: {

6
src/pages/issue/request/issueScanRequest.vue

@ -83,6 +83,12 @@
methods: { methods: {
goScan() { goScan() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
setTimeout(res => {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus();
}
}, 400)
}, },
getScanResult(data){ getScanResult(data){
this.detailSource = { this.detailSource = {

Loading…
Cancel
Save