master
parent
718c7be666
commit
3f34c42132
|
@ -63,7 +63,7 @@ const request = (method, url, options) => {
|
||||||
methods = 'GET'
|
methods = 'GET'
|
||||||
headers = {
|
headers = {
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
'Content-Type': 'application/json; charset=UTF-8',
|
||||||
'Authorization': 'Bearer '+uni.getStorageSync('token') || ''
|
'token':uni.getStorageSync('token') || ''
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'post':
|
case 'post':
|
||||||
|
|
|
@ -147,15 +147,17 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
time: '12:01',
|
time: '12:01',
|
||||||
// dataArr:{
|
dataArr:{
|
||||||
// customerName:"长沙警校",
|
customerName:"长沙警校",
|
||||||
// customerCode:"xxxxxxxxx",
|
customerCode:"xxxxxxxxx",
|
||||||
// customerVIP:"VIP1",
|
customerVIP:"VIP1",
|
||||||
// industryInvolved:"安防",
|
industryInvolved:"安防",
|
||||||
// customerType:"xxxx",
|
customerType:"xxxx",
|
||||||
// warehouseTime:"2022.3.1" ,
|
warehouseTime:"2022.3.1" ,
|
||||||
|
projectNum:"50",
|
||||||
|
area:"长沙",
|
||||||
|
|
||||||
// }
|
},
|
||||||
projectList:[],
|
projectList:[],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -105,6 +105,10 @@
|
||||||
{id:12,title:'超时单'}
|
{id:12,title:'超时单'}
|
||||||
],
|
],
|
||||||
workeOrderStatusIndex: 0,
|
workeOrderStatusIndex: 0,
|
||||||
|
dataPage:{
|
||||||
|
list_rows:10,
|
||||||
|
page:1,
|
||||||
|
},
|
||||||
dataList:[
|
dataList:[
|
||||||
{
|
{
|
||||||
id:1,
|
id:1,
|
||||||
|
@ -239,8 +243,39 @@
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
|
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
|
||||||
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
||||||
|
|
||||||
|
this.getDatalist()
|
||||||
|
this.getType()
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
hurryUpEv(id) {
|
||||||
this.$toolAll.tools.showToast(`已催单成功`);
|
this.$toolAll.tools.showToast(`已催单成功`);
|
||||||
|
@ -272,7 +307,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bindPickerChange(data) {
|
bindPickerChange(data) {
|
||||||
console.log(data)
|
|
||||||
this.workeOrderStatus = '';
|
this.workeOrderStatus = '';
|
||||||
this.workeOrderStatusIndex = data.detail.value;
|
this.workeOrderStatusIndex = data.detail.value;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue