master
tangyi 2022-03-31 11:15:53 +08:00
parent 718c7be666
commit 3f34c42132
3 changed files with 47 additions and 10 deletions

View File

@ -63,7 +63,7 @@ const request = (method, url, options) => {
methods = 'GET'
headers = {
'Content-Type': 'application/json; charset=UTF-8',
'Authorization': 'Bearer '+uni.getStorageSync('token') || ''
'token':uni.getStorageSync('token') || ''
}
break;
case 'post':

View File

@ -147,15 +147,17 @@
data() {
return {
time: '12:01',
// dataArr:{
// customerName:"",
// customerCode:"xxxxxxxxx",
// customerVIP:"VIP1",
// industryInvolved:"",
// customerType:"xxxx",
// warehouseTime:"2022.3.1" ,
dataArr:{
customerName:"长沙警校",
customerCode:"xxxxxxxxx",
customerVIP:"VIP1",
industryInvolved:"安防",
customerType:"xxxx",
warehouseTime:"2022.3.1" ,
projectNum:"50",
area:"长沙",
// }
},
projectList:[],
}
},

View File

@ -105,6 +105,10 @@
{id:12,title:'超时单'}
],
workeOrderStatusIndex: 0,
dataPage:{
list_rows:10,
page:1,
},
dataList:[
{
id:1,
@ -239,8 +243,39 @@
onLoad(op) {
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
this.getDatalist()
this.getType()
},
methods: {
getType(){
this.$requst.get('/universal/api.order/order_type', {
list_rows: this.dataPage.list_rows,
page: this.dataPage.page,
}).then(res => {
// this.$toolAll.tools.showToast(res.msg);
if (res.code == 1) {
this.dataList = res.data.data
} else {
}
})
},
getDatalist(){
this.$requst.get('/universal/api.order/order_list', {
list_rows: this.dataPage.list_rows,
page: this.dataPage.page,
}).then(res => {
// this.$toolAll.tools.showToast(res.msg);
if (res.code == 1) {
this.dataList = res.data.data
} else {
}
})
},
//
hurryUpEv(id) {
this.$toolAll.tools.showToast(`已催单成功`);
@ -272,7 +307,7 @@
}
},
bindPickerChange(data) {
console.log(data)
this.workeOrderStatus = '';
this.workeOrderStatusIndex = data.detail.value;
},