diff --git a/src/api/upload.js b/src/api/upload.js index 31891f5..c5da232 100644 --- a/src/api/upload.js +++ b/src/api/upload.js @@ -2,7 +2,6 @@ import upload from '@/utils/upload' import request from '@/utils/request' // 上传 export function uploadFile(data) { - console.log(data) return upload({ url: '/infra/file/upload', method: 'PUT', diff --git a/src/components/form/index.vue b/src/components/form/index.vue index dc78e5a..f6eae52 100644 --- a/src/components/form/index.vue +++ b/src/components/form/index.vue @@ -322,10 +322,8 @@ }, // 单列模式点击确定之后 chooseSingleColumn(e){ - console.log(e) this.$forceUpdate() this.data[this.field] = e[0].value - console.log(this.data) this.singleColumnShow = false this.$emit('singleColumn',this.field,this.data[this.field]) }, @@ -380,7 +378,6 @@ }, // 地区 openRegion(field,val){ - console.log(val) this.field = field this.data[this.field] = val ? val :[] if(val){ @@ -391,7 +388,6 @@ this.regionShow = true }, chooseRegion(e){ - console.log(e) this.data[this.field] = [e.province.code,e.city.code,e.area.code] this.regionText = `${e.province.name}-${e.city.name}-${e.area.name}` this.$emit('region',this.field,this.data[this.field]) diff --git a/src/components/verifition/verifyPoint/verifyPoint.vue b/src/components/verifition/verifyPoint/verifyPoint.vue index 57d7d03..923cc62 100644 --- a/src/components/verifition/verifyPoint/verifyPoint.vue +++ b/src/components/verifition/verifyPoint/verifyPoint.vue @@ -238,7 +238,6 @@ let y =Math.round(155 * p.y/parseInt(imgSize.height)) return {x,y} }) - // console.log(newPointArr,"newPointArr"); return newPointArr }, }, @@ -252,7 +251,6 @@ } }, mounted() { - console.log(this.defaultImg) } } diff --git a/src/pages/device/index.vue b/src/pages/device/index.vue index feb0ddd..0ac8f5d 100644 --- a/src/pages/device/index.vue +++ b/src/pages/device/index.vue @@ -83,7 +83,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onShow() { diff --git a/src/pages/deviceReport/addForm.vue b/src/pages/deviceReport/addForm.vue index 2083ad4..8ffff44 100644 --- a/src/pages/deviceReport/addForm.vue +++ b/src/pages/deviceReport/addForm.vue @@ -120,7 +120,7 @@ } else { this.factoryAreaList = [] } - }) + }).catch(()=>{}) }, // 根据设备/模具号查询信息 getDetailsByNumber() { @@ -135,7 +135,7 @@ } else { this.deviceList = [] } - }) + }).catch(()=>{}) } else if (this.type == 'MOLD') { moldApi.getMoldByFactoryAreaNumber(this.form.factoryAreaNumber).then((res) => { if (res.data && res.data.length > 0) { @@ -147,7 +147,7 @@ } else { this.deviceList = [] } - }) + }).catch(()=>{}) } }, // 触发提交表单 @@ -251,7 +251,6 @@ }).then(ret => { this.$modal.closeLoading() this.imgList.push(ret.data) - console.log(ret) }).catch((err) => { this.$modal.closeLoading() }); diff --git a/src/pages/deviceReport/index.vue b/src/pages/deviceReport/index.vue index c6f7c22..8251d91 100644 --- a/src/pages/deviceReport/index.vue +++ b/src/pages/deviceReport/index.vue @@ -78,7 +78,6 @@ this.$tab.navigateTo(`/pages/deviceReport/screen?type=${this.type}`) }, addForm() { - console.log(this.params) this.$tab.navigateTo(`/pages/deviceReport/addForm?type=${this.params.type}`) }, // 获取设备保修列表 @@ -95,7 +94,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 撤销 cancle(item) { @@ -108,7 +107,7 @@ this.status = 'loadmore' await this.getList() this.$modal.showToast('撤销成功') - }) + }).catch(()=>{}) }) }, @@ -122,7 +121,7 @@ console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片'); }, fail: function(err) { - console.log(err.errMsg); + // console.log(err.errMsg); } } }); diff --git a/src/pages/deviceReport/myDeviceReport.vue b/src/pages/deviceReport/myDeviceReport.vue index 8f0ae21..286ccec 100644 --- a/src/pages/deviceReport/myDeviceReport.vue +++ b/src/pages/deviceReport/myDeviceReport.vue @@ -85,7 +85,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 撤销 cancle(item) { @@ -95,7 +95,7 @@ this.list = [] this.status = 'loadmore' this.getList() - }) + }).catch(()=>{}) }) }, diff --git a/src/pages/index.vue b/src/pages/index.vue index ebc0e70..b9803a9 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -163,12 +163,12 @@ getCounts() { getCounts().then(res => { this.counts = res.data - }) + }).catch(()=>{}) }, getToDoCountsByUser() { getToDoCountsByUser().then(res => { this.counts1 = res.data - }) + }).catch(()=>{}) }, }, onLoad: async function() { @@ -176,7 +176,6 @@ this.getCounts() this.getToDoCountsByUser() } -console.log( this.$store.state) }, onPageScroll(e) { if (e.scrollTop > 0) { diff --git a/src/pages/login.vue b/src/pages/login.vue index 5e73f25..66a0188 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -96,17 +96,17 @@ this.$modal.closeLoading() await this.loginSuccess() // this.$tab.reLaunch('/pages/index') - }) + }).catch(()=>{}) }, // 登录成功后,处理函数 async loginSuccess(result) { // 设置用户信息 await this.$store.dispatch('GetPermissionInfo').then(res => { // this.$tab.reLaunch('/pages/index') - }) + }).catch(()=>{}) await this.$store.dispatch('GetInfo').then(res => { this.$tab.reLaunch('/pages/index') - }) + }).catch(()=>{}) } } } diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index c0963c3..52c8637 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -124,7 +124,7 @@ getInfo() { getInfo().then(res => { this.user = res.data - }) + }).catch(()=>{}) }, handleToInfo() { this.$tab.navigateTo('/pages/mine/info/index') @@ -160,8 +160,8 @@ this.$modal.confirm('确定注销并退出系统吗?').then(() => { this.$store.dispatch('LogOut').then(() => { this.$tab.reLaunch('/pages/login') - }) - }) + }).catch(()=>{}) + }).catch(()=>{}) }, handleLogin() { this.$tab.navigateTo('/pages/login/index') diff --git a/src/pages/mold/index.vue b/src/pages/mold/index.vue index 7e1bfb3..c06ec7c 100644 --- a/src/pages/mold/index.vue +++ b/src/pages/mold/index.vue @@ -87,7 +87,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onShow() { diff --git a/src/pages/overhaulOrder/addForm.vue b/src/pages/overhaulOrder/addForm.vue index 5bb05e8..1fb7aaa 100644 --- a/src/pages/overhaulOrder/addForm.vue +++ b/src/pages/overhaulOrder/addForm.vue @@ -221,7 +221,7 @@ item.label = item.describes }) this.repairOrderList = res.data - }) + }).catch(()=>{}) }, // 获取设备/模具列表 @@ -233,7 +233,7 @@ item.label = item.name }) this.deviceList = res.data - }) + }).catch(()=>{}) }else if(this.type == 'MOLD'){ await moldApi.moldList().then(res => { res.data.map(item => { @@ -241,7 +241,7 @@ item.label = item.name }) this.deviceList = res.data - }) + }).catch(()=>{}) } }, diff --git a/src/pages/overhaulOrder/addServiceRecord.vue b/src/pages/overhaulOrder/addServiceRecord.vue index 5104106..ee6ea2f 100644 --- a/src/pages/overhaulOrder/addServiceRecord.vue +++ b/src/pages/overhaulOrder/addServiceRecord.vue @@ -328,7 +328,7 @@ }) }) this.selecUserList = res.data - }) + }).catch(()=>{}) }, // 打开人员列表 openSelecUser() { @@ -380,7 +380,7 @@ item.label = item.name }) this.sparePartsList = res.data - }) + }).catch(()=>{}) }, // 打开弹窗 open() { diff --git a/src/pages/overhaulOrder/detail.vue b/src/pages/overhaulOrder/detail.vue index 1f4026d..8a0eb7f 100644 --- a/src/pages/overhaulOrder/detail.vue +++ b/src/pages/overhaulOrder/detail.vue @@ -224,7 +224,7 @@ if (res.data) { this.serviceList = res.data } - }) + }).catch(()=>{}) }, // 删除维修内容 delService(item) { @@ -233,7 +233,7 @@ overhaulOrderApi.overhaulOrderDetailDelete(item.id).then((res) => { this.$modal.closeLoading() this.getOverhaulOrderDetailList() - }) + }).catch(()=>{}) }) }, diff --git a/src/pages/overhaulOrder/index.vue b/src/pages/overhaulOrder/index.vue index f20b8ba..b1c0fb1 100644 --- a/src/pages/overhaulOrder/index.vue +++ b/src/pages/overhaulOrder/index.vue @@ -98,7 +98,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 撤销 cancle(item) { @@ -110,7 +110,7 @@ this.list = [] this.status = 'loadmore' this.getList() - }) + }).catch(()=>{}) }) } }, @@ -120,7 +120,6 @@ onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/pages/repairOrder/addForm.vue b/src/pages/repairOrder/addForm.vue index 245ca6d..9471c99 100644 --- a/src/pages/repairOrder/addForm.vue +++ b/src/pages/repairOrder/addForm.vue @@ -224,8 +224,7 @@ item.label = item.name }) this.deviceList = res.data - // console.log(22,this.deviceList) - }) + }).catch(()=>{}) }else if(this.type == 'MOLD'){ await moldApi.moldList().then(res => { res.data.map(item => { @@ -233,7 +232,7 @@ item.label = item.name }) this.deviceList = res.data - }) + }).catch(()=>{}) } }, @@ -253,7 +252,6 @@ faultType: data.faultType, type: data.type } - console.log(this.form) }; await this.getDeviceList() this.maintenanceShift = await dictApi.getDict('maintenance_shift') diff --git a/src/pages/repairOrder/addServiceRecord.vue b/src/pages/repairOrder/addServiceRecord.vue index 317c0fc..53a6c11 100644 --- a/src/pages/repairOrder/addServiceRecord.vue +++ b/src/pages/repairOrder/addServiceRecord.vue @@ -164,7 +164,6 @@ this.$modal.showToast('请选择备件') return; } - console.log(this.form) if (this.form.id) { this.$modal.confirm('是否修改维修内容').then(() => { this.$modal.loading('加载中') @@ -242,7 +241,7 @@ }) }) this.selecUserList = res.data - }) + }).catch(()=>{}) }, // 打开人员列表 openSelecUser() { @@ -280,7 +279,6 @@ }, // 单列模式点击确定之后 chooseSingleColumn(e) { - console.log(e[0]) this.form1[this.field] = e[0].value this.singleColumnShow = false @@ -295,7 +293,7 @@ item.label = item.name }) this.sparePartsList = res.data - }) + }).catch(()=>{}) }, // 打开弹窗 open() { diff --git a/src/pages/repairOrder/detail.vue b/src/pages/repairOrder/detail.vue index 5282cff..c2c771f 100644 --- a/src/pages/repairOrder/detail.vue +++ b/src/pages/repairOrder/detail.vue @@ -225,7 +225,6 @@ }, methods: { change(index) { - console.log("index", index); this.current = index this.changeItem = this.list[this.current] }, @@ -257,8 +256,6 @@ orderClickSuccess() { // 如果点击完成是否与接单人员一致 if (this.data.status == 'PECEIVED') { - console.log(this.$store.state.user.id) - console.log(this.data) if (this.$store.state.user.id != this.data.maintenance) { this.$modal.showToast('当前人员与接单人员不一致') return; @@ -276,7 +273,6 @@ this.isShowSuccess = true }, radioGroupChange(e) { - console.log(e) this.result = e }, sure() { @@ -336,9 +332,8 @@ }).then((res) => { if (res.data) { this.data1 = res.data - console.log(this.data1) } - }) + }).catch(()=>{}) }, // 获取维修内容列表 getRepairOrderDetaiList() { @@ -348,7 +343,7 @@ if (res.data) { this.serviceList = res.data } - }) + }).catch(()=>{}) }, // 删除维修内容 delService(item) { @@ -357,7 +352,7 @@ repairOrderApi.repairOrderDetailDelete(item.id).then((res) => { this.$modal.closeLoading() this.getRepairOrderDetaiList() - }) + }).catch(()=>{}) }) }, transfer() { diff --git a/src/pages/repairOrder/index.vue b/src/pages/repairOrder/index.vue index e93dcd9..727b970 100644 --- a/src/pages/repairOrder/index.vue +++ b/src/pages/repairOrder/index.vue @@ -83,7 +83,6 @@ this.$tab.navigateTo(`/pages/repairOrder/screen?type=${this.params.type}`) }, itemClick(item, index) { - console.log(33,item) this.$tab.navigateTo(`/pages/repairOrder/detail?type=${this.params.type}&data=${encodeURIComponent(JSON.stringify(item))}`) }, addForm(item) { @@ -115,7 +114,7 @@ this.list = [] this.status = 'loadmore' this.getList() - }) + }).catch(()=>{}) }) } @@ -126,7 +125,6 @@ onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/pages/repairOrder/myOrder.vue b/src/pages/repairOrder/myOrder.vue index 03ea8d9..f4d4fd5 100644 --- a/src/pages/repairOrder/myOrder.vue +++ b/src/pages/repairOrder/myOrder.vue @@ -92,7 +92,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 撤销 cancle(item) { @@ -104,7 +104,7 @@ this.list = [] this.status = 'loadmore' this.getList() - }) + }).catch(()=>{}) }) } @@ -112,7 +112,6 @@ onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/pages/repairOrder/transfer.vue b/src/pages/repairOrder/transfer.vue index 1a3698c..2aa989e 100644 --- a/src/pages/repairOrder/transfer.vue +++ b/src/pages/repairOrder/transfer.vue @@ -169,7 +169,6 @@ }, // 单列模式点击确定之后 chooseSingleColumn(e) { - console.log(e[0]) this.form[this.field] = e[0].value if (this.field == 'receiverType') { this.type = this.form[this.field] @@ -190,7 +189,7 @@ }, // 获取设备/模具列表 async getDeviceList() { - if (this.type == 'DEVICE') { + if (this.type == 'DEVICE'||this.type=='TECH') { await deviceApi.deviceList().then(res => { res.data.map(item => { item.value = item.number diff --git a/src/pages/spareParts/index.vue b/src/pages/spareParts/index.vue index 0a93361..4928b31 100644 --- a/src/pages/spareParts/index.vue +++ b/src/pages/spareParts/index.vue @@ -76,7 +76,6 @@ }, // 筛选 screen() { - console.log(222) this.$tab.navigateTo(`/pages/spareParts/screen`) }, // 获取设备保修列表 @@ -93,7 +92,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onShow() { diff --git a/src/pages/sparePartsApplication/addForm.vue b/src/pages/sparePartsApplication/addForm.vue index 4288c98..c0b8dee 100644 --- a/src/pages/sparePartsApplication/addForm.vue +++ b/src/pages/sparePartsApplication/addForm.vue @@ -19,12 +19,12 @@ - - 类型:{{`${item.type=='DEVICE'?'设备' : '模具'}`}} + + 类型:{{`${item.type=='DEVICE'?'设备' :item.type=='MOLD'?'模具' : ''}`}} - + {{`${item.type=='DEVICE'?'设备' : '模具'}`}}:{{item.deviceName}} @@ -75,7 +75,7 @@ - + {{selectFormat(form1.type,deviceMoldType)}} @@ -86,7 +86,7 @@ - + {{selectFormat(form1.deviceNumber,deviceList)}} @@ -149,9 +149,9 @@ subList:[] }, form1: { - itemNumber: "", + itemNumber: undefined, type:'', - deviceNumber: '', + deviceNumber: undefined, isRadeIn: '', currentQty: '', qty: '' @@ -225,7 +225,7 @@ }) }) this.selecUserList = res.data - }) + }).catch(()=>{}) }, selectFormat(val, array) { let str = array.filter(item => item.value == val)[0].label @@ -266,11 +266,10 @@ item.label = item.name }) this.sparePartsList = res.data - }) + }).catch(()=>{}) }, // 获取设备列表 async getApplyDeviceList() { - console.log(this.form1.type) if (this.form1.type == 'DEVICE') { await deviceApi.getApplyDeviceList().then(res => { res.data.map(item => { @@ -278,7 +277,7 @@ item.label = item.name }) this.deviceList = res.data - }) + }).catch(()=>{}) } else if (this.form1.type == 'MOLD') { moldApi.getApplyMoldList().then((res) => { res.data.map(item => { @@ -286,15 +285,15 @@ item.label = item.name }) this.deviceList = res.data - }) + }).catch(()=>{}) } }, // 打开弹窗 open() { this.form1 = { - itemNumber: "", + itemNumber:undefined, type:'', - deviceNumber: '', + deviceNumber: undefined, isRadeIn: '', currentQty: "", qty: '', @@ -307,10 +306,10 @@ this.$modal.showToast('请选择备件') return; } - if (!this.form1.deviceNumber) { - this.$modal.showToast('请选择设备') - return; - } + // if (!this.form1.deviceNumber) { + // this.$modal.showToast('请选择设备') + // return; + // } if (!this.form1.qty || this.form1.qty==0) { this.$modal.showToast('请输入数量') return; @@ -319,8 +318,12 @@ this.$modal.showToast('数量不可以大于库存') return; } + if(this.form1.itemNumber){ this.form1.name = this.selectFormat(this.form1.itemNumber, this.sparePartsList) - this.form1.deviceName = this.selectFormat(this.form1.deviceNumber, this.deviceList) + } + if(this.form1.deviceNumber){ + this.form1.deviceName = this.selectFormat(this.form1.deviceNumber, this.deviceList) + } if (this.form.subList && this.form.subList.length > 0) { let arr = this.form.subList.filter(item => item.itemNumber == this.form1.itemNumber) if (arr && arr.length > 0) { @@ -348,7 +351,6 @@ this.$set(this.form, 'subList', this.form.subList) }; this.deviceMoldType = await dictApi.getDict('device_mold_type') - console.log(this.deviceMoldType) await this.getApplySparePartsList() } } diff --git a/src/pages/sparePartsApplication/detail.vue b/src/pages/sparePartsApplication/detail.vue index dae480c..5f0300e 100644 --- a/src/pages/sparePartsApplication/detail.vue +++ b/src/pages/sparePartsApplication/detail.vue @@ -21,10 +21,10 @@ 备件名称:{{cur.itemName}} - + 类型:{{cur.type == 'type'?'设备' :'模具'}} - + {{cur.type == 'type'?'设备' :'模具'}}名称:{{cur.name}} @@ -63,7 +63,7 @@ getSparePartsApplicationDetail(){ sparePartsApplicationApi.sparePartsApplicationDetail(this.number).then((res)=>{ this.data = res.data - }) + }).catch(()=>{}) }, // 触发提交表单 agree() { diff --git a/src/pages/sparePartsApplication/index.vue b/src/pages/sparePartsApplication/index.vue index 93d0e68..82ab10f 100644 --- a/src/pages/sparePartsApplication/index.vue +++ b/src/pages/sparePartsApplication/index.vue @@ -90,7 +90,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 撤销 cancle(item) { @@ -103,7 +103,7 @@ this.status = 'loadmore' await this.getList() this.$modal.showToast('撤回成功') - }) + }).catch(()=>{}) }) diff --git a/src/pages/sparePartsApplication/mySparePartsApplication.vue b/src/pages/sparePartsApplication/mySparePartsApplication.vue index e07e3db..105d74f 100644 --- a/src/pages/sparePartsApplication/mySparePartsApplication.vue +++ b/src/pages/sparePartsApplication/mySparePartsApplication.vue @@ -90,7 +90,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onLoad(option) { diff --git a/src/pages/sparePartsApplicationApprove/index.vue b/src/pages/sparePartsApplicationApprove/index.vue index dcc2b1e..7c285da 100644 --- a/src/pages/sparePartsApplicationApprove/index.vue +++ b/src/pages/sparePartsApplicationApprove/index.vue @@ -89,7 +89,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, // 通过 agree(item) { @@ -104,7 +104,7 @@ this.$modal.showToast('审核成功') }) - }) + }).catch(()=>{}) }, // 驳回 reject(item) { @@ -117,7 +117,7 @@ this.status = 'loadmore' await this.getList() this.$modal.showToast('已驳回') - }) + }).catch(()=>{}) }) }, diff --git a/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue b/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue index 5410b2e..922c429 100644 --- a/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue +++ b/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue @@ -90,7 +90,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onLoad(option) { diff --git a/src/pages/sparePartsServiceWorkOrderList/addForm.vue b/src/pages/sparePartsServiceWorkOrderList/addForm.vue index 6686052..49fcef2 100644 --- a/src/pages/sparePartsServiceWorkOrderList/addForm.vue +++ b/src/pages/sparePartsServiceWorkOrderList/addForm.vue @@ -196,7 +196,6 @@ this.form1[this.field] = e[0].value if (this.field == 'itemNumber') { this.choosesingleColumnItem = this.singleColumnList.filter(item => item.number == e[0].value) - console.log( this.choosesingleColumnItem[0]) this.form1.locationNumber = this.choosesingleColumnItem[0].locationNumber this.form1.areaNumber = this.choosesingleColumnItem[0].areaNumber if(!this.choosesingleColumnItem[0].locationNumber){ @@ -217,7 +216,7 @@ item.label = item.name }) this.sparePartsList = res.data - }) + }).catch(()=>{}) }, // 扫描设备条码 chickRightButton(field) { @@ -237,7 +236,7 @@ this.form1.areaNumber = res.data.areaNumber; this.isInAccount = res.data.isInAccount this.itemNumber = res.data.itemNumber - }) + }).catch(()=>{}) }, blur() { if (this.form1.locationNumber) { @@ -263,7 +262,6 @@ this.$modal.showToast('请选择备件') return; } - console.log(this.form1) if (!this.form1.locationNumber) { this.$modal.showToast('请扫描库位') return; diff --git a/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue b/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue index eda74b6..8ee0001 100644 --- a/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue +++ b/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue @@ -86,7 +86,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onLoad(option) { diff --git a/src/pages/spotCheckOrder/addForm.vue b/src/pages/spotCheckOrder/addForm.vue index 3ac3e63..489bb78 100644 --- a/src/pages/spotCheckOrder/addForm.vue +++ b/src/pages/spotCheckOrder/addForm.vue @@ -188,7 +188,6 @@ }, // 重置 reset() { - console.log('表单数据信息1:', this.data); this.form = {} }, selectFormat(val, array) { @@ -208,7 +207,6 @@ }, // 单列模式点击确定之后 chooseSingleColumn(e) { - console.log(e[0]) this.form[this.field] = e[0].value this.singleColumnShow = false this.$emit('singleColumn', this.field, this.form[this.field]) diff --git a/src/pages/spotCheckOrder/myOrder.vue b/src/pages/spotCheckOrder/myOrder.vue index 9bc3bee..b49113d 100644 --- a/src/pages/spotCheckOrder/myOrder.vue +++ b/src/pages/spotCheckOrder/myOrder.vue @@ -75,13 +75,12 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/pages/upkeepOrder/addServiceRecord.vue b/src/pages/upkeepOrder/addServiceRecord.vue index 423a6b0..df88ef5 100644 --- a/src/pages/upkeepOrder/addServiceRecord.vue +++ b/src/pages/upkeepOrder/addServiceRecord.vue @@ -8,10 +8,10 @@ - + - + @@ -111,7 +111,7 @@ - + @@ -327,7 +327,7 @@ }) }) this.selecUserList = res.data - }) + }).catch(()=>{}) }, // 打开人员列表 openSelecUser() { @@ -379,7 +379,7 @@ item.label = item.name }) this.sparePartsList = res.data - }) + }).catch(()=>{}) }, // 打开弹窗 open() { @@ -463,7 +463,6 @@ this.$set(this.form,'itemNumbers',this.form.items) this.formatDate =this.form.completionTime ? this.$time.formatDate(this.form.completionTime*1000):'' }; - console.log(this.form) this.jxDetailsStatus = await dictApi.getDict('jx_details_status') await this.getSelecUser() diff --git a/src/pages/upkeepOrder/detail.vue b/src/pages/upkeepOrder/detail.vue index 90d5804..fc62232 100644 --- a/src/pages/upkeepOrder/detail.vue +++ b/src/pages/upkeepOrder/detail.vue @@ -258,7 +258,7 @@ if (res.data) { this.serviceList = res.data } - }) + }).catch(()=>{}) }, // 删除维修内容 delService(item) { @@ -267,7 +267,7 @@ upkeepOrderApi.upkeepOrderDetailDelete(item.id).then((res) => { this.$modal.closeLoading() this.getUpkeepOrderDetailList() - }) + }).catch(()=>{}) }) }, diff --git a/src/pages/upkeepOrder/index.vue b/src/pages/upkeepOrder/index.vue index e44b10a..32c892d 100644 --- a/src/pages/upkeepOrder/index.vue +++ b/src/pages/upkeepOrder/index.vue @@ -91,7 +91,7 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onLoad(option) { @@ -100,7 +100,6 @@ onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/pages/upkeepOrder/myOrder.vue b/src/pages/upkeepOrder/myOrder.vue index d013f19..839ff88 100644 --- a/src/pages/upkeepOrder/myOrder.vue +++ b/src/pages/upkeepOrder/myOrder.vue @@ -84,13 +84,12 @@ } else { this.status = 'nomore' } - }) + }).catch(()=>{}) }, }, onShow() { uni.$on('screen',(data)=>{ - console.log(data) this.params = {...this.params,...data} }) this.params.pageNo = 1 diff --git a/src/utils/upload.js b/src/utils/upload.js index eb0b018..04e5f89 100644 --- a/src/utils/upload.js +++ b/src/utils/upload.js @@ -8,7 +8,6 @@ const baseUrl = config.baseUrl const baseApi = config.baseApi const upload = config => { -console.log(config) // 是否需要设置 token const isToken = (config.headers || {}).isToken === false config.header = config.header || {}