Browse Source

修改6月6号到8号的问题 修改装配收货 弹出软键盘 预生产收货任务列表--上拉加载

hella_vue3
zhang_li 3 months ago
parent
commit
1c12bb1a47
  1. 1
      src/api/http.ts
  2. 2
      src/mycomponents/scan/winComScan.vue
  3. 4
      src/mycomponents/scan/winComScanFg.vue
  4. 17
      src/pages/index/index.vue
  5. 1
      src/pages/productReceipt/job/fgProductReceiptDetail.vue

1
src/api/http.ts

@ -8,6 +8,7 @@ const instance = axios.create({
adapter(config) { adapter(config) {
const { url, method, data, params, headers, baseURL, paramsSerializer } = const { url, method, data, params, headers, baseURL, paramsSerializer } =
config config
config.timeout = 300000
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
method: method!.toUpperCase() as any, method: method!.toUpperCase() as any,

2
src/mycomponents/scan/winComScan.vue

@ -171,7 +171,7 @@ const getfocus = () => {
nextTick((r) => { nextTick((r) => {
boxfocus.value = true boxfocus.value = true
}) })
hide() // hide()
} }
const losefocus = () => { const losefocus = () => {
nextTick((r) => { nextTick((r) => {

4
src/mycomponents/scan/winComScanFg.vue

@ -88,14 +88,14 @@ const itemCode = ref('')
const comMessageRef = ref() const comMessageRef = ref()
onMounted(() => { onMounted(() => {
boxfocus.value = true boxfocus.value = true
uni.hideKeyboard() // uni.hideKeyboard()
// #ifdef H5 // #ifdef H5
if (document.querySelector('textarea') != null) { if (document.querySelector('textarea') != null) {
document.querySelector('textarea').setAttribute('inputmode', 'none') document.querySelector('textarea').setAttribute('inputmode', 'none')
} }
// #endif // #endif
hide() // hide()
placeholderValue.value = `请扫描${props.placeholder}` placeholderValue.value = `请扫描${props.placeholder}`
}) })
watch( watch(

17
src/pages/index/index.vue

@ -136,25 +136,10 @@ onHide(() => {
}) })
onShow(() => { onShow(() => {
if (uni.getStorageSync('hasLogin') == null || uni.getStorageSync('hasLogin') == false) { if (uni.getStorageSync('hasLogin') == null || uni.getStorageSync('hasLogin') == false) {
uni.showModal({ // uni.showModal({
title: '未登录',
content: '您未登录 , 需要登录后才能继续', //
showCancel: !forcedLogin.value,
success: (res) => {
if (res.confirm) {
// 使reLanch
if (forcedLogin.value) {
uni.reLaunch({ uni.reLaunch({
url: '../login/index' url: '../login/index'
}) })
} else {
uni.navigateTo({
url: '../login/index'
})
}
}
}
})
} else { } else {
timerRefresh() timerRefresh()
} }

1
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -384,6 +384,7 @@ const commit = () => {
submitJob() submitJob()
} }
} else { } else {
subitem.scaned = true
submitJob() submitJob()
} }
}) })

Loading…
Cancel
Save