Browse Source

bug修改

master
zhang_li 9 months ago
parent
commit
f9de47b5ac
  1. 1
      src/api/upload.js
  2. 4
      src/components/form/index.vue
  3. 2
      src/components/verifition/verifyPoint/verifyPoint.vue
  4. 2
      src/pages/device/index.vue
  5. 7
      src/pages/deviceReport/addForm.vue
  6. 7
      src/pages/deviceReport/index.vue
  7. 4
      src/pages/deviceReport/myDeviceReport.vue
  8. 5
      src/pages/index.vue
  9. 6
      src/pages/login.vue
  10. 6
      src/pages/mine/index.vue
  11. 2
      src/pages/mold/index.vue
  12. 6
      src/pages/overhaulOrder/addForm.vue
  13. 4
      src/pages/overhaulOrder/addServiceRecord.vue
  14. 4
      src/pages/overhaulOrder/detail.vue
  15. 5
      src/pages/overhaulOrder/index.vue
  16. 6
      src/pages/repairOrder/addForm.vue
  17. 6
      src/pages/repairOrder/addServiceRecord.vue
  18. 11
      src/pages/repairOrder/detail.vue
  19. 4
      src/pages/repairOrder/index.vue
  20. 5
      src/pages/repairOrder/myOrder.vue
  21. 3
      src/pages/repairOrder/transfer.vue
  22. 3
      src/pages/spareParts/index.vue
  23. 40
      src/pages/sparePartsApplication/addForm.vue
  24. 6
      src/pages/sparePartsApplication/detail.vue
  25. 4
      src/pages/sparePartsApplication/index.vue
  26. 2
      src/pages/sparePartsApplication/mySparePartsApplication.vue
  27. 6
      src/pages/sparePartsApplicationApprove/index.vue
  28. 2
      src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue
  29. 6
      src/pages/sparePartsServiceWorkOrderList/addForm.vue
  30. 2
      src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue
  31. 2
      src/pages/spotCheckOrder/addForm.vue
  32. 3
      src/pages/spotCheckOrder/myOrder.vue
  33. 11
      src/pages/upkeepOrder/addServiceRecord.vue
  34. 4
      src/pages/upkeepOrder/detail.vue
  35. 3
      src/pages/upkeepOrder/index.vue
  36. 3
      src/pages/upkeepOrder/myOrder.vue
  37. 1
      src/utils/upload.js

1
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',

4
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])

2
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)
}
}
</script>

2
src/pages/device/index.vue

@ -83,7 +83,7 @@
} else {
this.status = 'nomore'
}
})
}).catch(()=>{})
},
},
onShow() {

7
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()
});

7
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);
}
}
});

4
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(()=>{})
})
},

5
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) {

6
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(()=>{})
}
}
}

6
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')

2
src/pages/mold/index.vue

@ -87,7 +87,7 @@
} else {
this.status = 'nomore'
}
})
}).catch(()=>{})
},
},
onShow() {

6
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(()=>{})
}
},

4
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() {

4
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(()=>{})
})
},

5
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

6
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')

6
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() {

11
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() {

4
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

5
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

3
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

3
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() {

40
src/pages/sparePartsApplication/addForm.vue

@ -19,12 +19,12 @@
</view>
<u-row gutter="16">
<u-col :span="24">
<view class="dec">
类型:{{`${item.type=='DEVICE'?'设备' : '模具'}`}}
<view class="dec" v-if="item.type">
类型:{{`${item.type=='DEVICE'?'设备' :item.type=='MOLD'?'模具' : ''}`}}
</view>
</u-col>
<u-col :span="24">
<view class="dec">
<view class="dec" v-if="item.deviceName">
{{`${item.type=='DEVICE'?'设备' : '模具'}`}}:{{item.deviceName}}
</view>
</u-col>
@ -75,7 +75,7 @@
<u-icon name="arrow-right" color="#aaaaaa" size="28"></u-icon>
</view>
</u-form-item>
<u-form-item label="类型" prop="type" required>
<u-form-item label="类型" prop="type" >
<view class="select" @click="openSingleColumn('type',form1.type,deviceMoldType)">
<view class="input" v-if='form1.type'>
{{selectFormat(form1.type,deviceMoldType)}}
@ -86,7 +86,7 @@
<u-icon name="arrow-right" color="#aaaaaa" size="28"></u-icon>
</view>
</u-form-item>
<u-form-item :label="`${form1.type=='DEVICE'?'设备' : '模具'}`" prop="deviceNumber" required>
<u-form-item :label="`${form1.type=='DEVICE'?'设备' : '模具'}`" prop="deviceNumber" >
<view class="select" @click="openSingleColumn('deviceNumber',form1.deviceNumber,deviceList)">
<view class="input" v-if='form1.deviceNumber'>
{{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)
}
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()
}
}

6
src/pages/sparePartsApplication/detail.vue

@ -21,10 +21,10 @@
<view class="items-name">
备件名称{{cur.itemName}}
</view>
<view class="items-dec">
<view class="items-dec" v-if="cur.type">
类型{{cur.type == 'type'?'设备' :'模具'}}
</view>
<view class="items-dec">
<view class="items-dec" v-if="cur.name">
{{cur.type == 'type'?'设备' :'模具'}}名称{{cur.name}}
</view>
<view class="items-dec">
@ -63,7 +63,7 @@
getSparePartsApplicationDetail(){
sparePartsApplicationApi.sparePartsApplicationDetail(this.number).then((res)=>{
this.data = res.data
})
}).catch(()=>{})
},
//
agree() {

4
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(()=>{})
})

2
src/pages/sparePartsApplication/mySparePartsApplication.vue

@ -90,7 +90,7 @@
} else {
this.status = 'nomore'
}
})
}).catch(()=>{})
},
},
onLoad(option) {

6
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(()=>{})
})
},

2
src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue

@ -90,7 +90,7 @@
} else {
this.status = 'nomore'
}
})
}).catch(()=>{})
},
},
onLoad(option) {

6
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;

2
src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue

@ -86,7 +86,7 @@
} else {
this.status = 'nomore'
}
})
}).catch(()=>{})
},
},
onLoad(option) {

2
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])

3
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

11
src/pages/upkeepOrder/addServiceRecord.vue

@ -8,10 +8,10 @@
<!-- <u-form-item label="保养部位" prop="equipmentParts" required>
<u-input v-model="form.equipmentParts" placeholder="请输入保养部位" maxlength="50" disabled/>
</u-form-item> -->
<u-form-item label="预估人数" prop="peoples" required class="disabled">
<u-form-item label="预估人数" prop="peoples" class="disabled">
<u-input v-model="form.peoples" type="number" placeholder="请输入预估人数" maxlength="50"/>
</u-form-item>
<u-form-item label="预估分钟" prop="estimatedMinutes" required class="disabled">
<u-form-item label="预估分钟" prop="estimatedMinutes" class="disabled">
<u-input v-model="form.estimatedMinutes" type="number" placeholder="请输入预估分钟" maxlength="50"/>
</u-form-item>
<u-form-item label="实际分钟" prop="actualMinutes" required>
@ -111,7 +111,7 @@
</view>
</u-form-item>
<u-form-item label="数量" prop="qty" required>
<u-input v-model="form1.qty" type="number" placeholder="请输入故障描述" />
<u-input v-model="form1.qty" type="number" placeholder="请输入数量" />
</u-form-item>
</u-form>
</view>
@ -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()

4
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(()=>{})
})
},

3
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

3
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

1
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 || {}

Loading…
Cancel
Save