Browse Source

去掉console

master
zhang_li 8 months ago
parent
commit
13d75b8286
  1. 1
      .env.development
  2. 1
      src/api/http.ts
  3. 1
      src/api/uploadHttp.ts
  4. 3
      src/pages/inLocation/addForm.vue
  5. 3
      src/pages/index.vue
  6. 1
      src/pages/outLocation/addForm.vue
  7. 1
      src/pages/sparePartsReturn/addForm.vue

1
.env.development

@ -1,3 +1,4 @@
VITE_BASE_URL=http://192.168.0.106:12080/admin-api VITE_BASE_URL=http://192.168.0.106:12080/admin-api
#VITE_BASE_URL=http://dev.ccwin-in.com:25203/api/admin-api
VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api

1
src/api/http.ts

@ -103,7 +103,6 @@ instance.interceptors.response.use((v) => {
} }
return Promise.reject(v) return Promise.reject(v)
},error=>{ },error=>{
console.log(error)
uni.showToast({ uni.showToast({
title: '网络错误', title: '网络错误',
icon: 'none' icon: 'none'

1
src/api/uploadHttp.ts

@ -58,7 +58,6 @@ upload.interceptors.request.use((config) => {
}) })
} }
console.log(11, headers)
return { return {
...config, ...config,
headers headers

3
src/pages/inLocation/addForm.vue

@ -163,7 +163,6 @@
const isFocus = ref(false) const isFocus = ref(false)
const msg = ref('') const msg = ref('')
function submit() { function submit() {
console.log(form.value)
if (form.value.itemNumbers.length === 0) { if (form.value.itemNumbers.length === 0) {
proxy.$modal.showToast('请选择备件') proxy.$modal.showToast('请选择备件')
return; return;
@ -305,7 +304,6 @@
number: form1.value.itemNumber, number: form1.value.itemNumber,
id: form.value.id id: form.value.id
}).then(res => { }).then(res => {
console.log(res)
if (!res.data) { if (!res.data) {
itemNumber.value = '' itemNumber.value = ''
form1.value.areaNumber = '' form1.value.areaNumber = ''
@ -330,7 +328,6 @@
} }
}).catch((err) => { }).catch((err) => {
console.log(err)
itemNumber.value = '' itemNumber.value = ''
form1.value.areaNumber = '' form1.value.areaNumber = ''
form1.value.itemName = '' form1.value.itemName = ''

3
src/pages/index.vue

@ -119,15 +119,12 @@
}).catch(() => { }) }).catch(() => { })
} }
function handleLogin() { function handleLogin() {
console.log(11)
proxy.$tab.navigateTo('/pages/login') proxy.$tab.navigateTo('/pages/login')
} }
onLoad(async () => { onLoad(async () => {
await proxy.$onLaunched; await proxy.$onLaunched;
menus1.value = store.menus1 menus1.value = store.menus1
menus2.value = store.menus2 menus2.value = store.menus2
console.log(store)
}) })
onPageScroll((e) => { onPageScroll((e) => {
if (e.scrollTop > 0) { if (e.scrollTop > 0) {

1
src/pages/outLocation/addForm.vue

@ -356,7 +356,6 @@
if (option.data && JSON.parse(decodeURIComponent(option.data)) && JSON.parse(decodeURIComponent(option if (option.data && JSON.parse(decodeURIComponent(option.data)) && JSON.parse(decodeURIComponent(option
.data)).id) { .data)).id) {
let formData = JSON.parse(decodeURIComponent(option.data)) let formData = JSON.parse(decodeURIComponent(option.data))
console.log(form)
form.value.supplierName = formData.supplierName form.value.supplierName = formData.supplierName
form.value.number = formData.number form.value.number = formData.number
form.value.id = formData.id form.value.id = formData.id

1
src/pages/sparePartsReturn/addForm.vue

@ -243,7 +243,6 @@ const singleColumnShow = ref(false)
proxy.$modal.showToast('该库位属于帐内库,请选择帐外库') proxy.$modal.showToast('该库位属于帐内库,请选择帐外库')
return; return;
} }
console.log(itemNumber.value)
if (itemNumber.value) { if (itemNumber.value) {
proxy.$modal.showToast('该库位已绑定过其他备件') proxy.$modal.showToast('该库位已绑定过其他备件')
return; return;

Loading…
Cancel
Save