master
parent
3f34c42132
commit
03365ff019
|
@ -135,21 +135,23 @@
|
|||
},
|
||||
// 图片选择事件
|
||||
chooseImg() {
|
||||
console.log( uni.getStorageSync('token'))
|
||||
console.log( uni.getStorageSync("token"))
|
||||
uni.chooseImage({
|
||||
success: (chooseImageRes) => {
|
||||
const tempFilePaths = chooseImageRes.tempFilePaths;
|
||||
this.imgSrc = chooseImageRes.tempFilePaths[0]
|
||||
uni.uploadFile({
|
||||
url: getApp().globalData.hostapi +
|
||||
'/universal/api.upload/upload', //仅为示例,非真实的接口地址
|
||||
url: getApp().globalData.hostapi+'/universal/api.upload/upload', //仅为示例,非真实的接口地址
|
||||
filePath: tempFilePaths[0],
|
||||
name: 'image',
|
||||
header:{
|
||||
token: uni.getStorageSync("token")
|
||||
},
|
||||
formData: {
|
||||
token: uni.getStorageInfoSync("token")
|
||||
dir:"images"
|
||||
},
|
||||
success: (uploadFileRes) => {
|
||||
|
||||
console.log(uploadFileRes)
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
role: 1, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
||||
role: 4, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
|
||||
messageNumber: 16 ,// 消息数量
|
||||
noticeList:['2021年11月06日公司团建,维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//公告
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
<container-subgroup-two>
|
||||
<view slot="content" style="margin: -25rpx -25rpx -0rpx;">
|
||||
<view class="project-list-input" :style="{top:statusBarHeight + 'px'}">
|
||||
<input type="text" class="int" value="" placeholder="请输入关键字" />
|
||||
<image class="search" src="../../static/iocn/ss.png" mode=""></image>
|
||||
<input type="text" @keydown.enter="getDatalist()" class="int" v-model="dataPage.keyword" value="" placeholder="请输入关键字" />
|
||||
<image @click="getDatalist()" class="search" src="../../static/iocn/ss.png" mode=""></image>
|
||||
<view class="xian"></view>
|
||||
</view>
|
||||
<view class="screen">
|
||||
<!-- 筛选状态查询、日期查询 -->
|
||||
<picker @change="bindPickerChange" :value="workeOrderStatusIndex" :range="array" :range-key="'title'">
|
||||
<picker @change="bindPickerChange" :value="workeOrderStatusIndex" :range="array" :range-key="'name'">
|
||||
<view class="li">
|
||||
<view class="text" v-if="workeOrderStatus!=''">{{workeOrderStatus}}</view>
|
||||
<view class="text" v-else>{{array[workeOrderStatusIndex].title}}</view>
|
||||
<view class="text" v-else>{{array[workeOrderStatusIndex].name}}</view>
|
||||
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
|
||||
</view>
|
||||
</picker>
|
||||
|
@ -32,24 +32,25 @@
|
|||
<view class="project-list">
|
||||
<!-- 列表循环体 -->
|
||||
<view class="li" @click="projectDetailsFun(item.status,item.id,item.statusText,item.backgroundColor)" v-for="(item,index) in dataList" :key="index">
|
||||
<view class="work-order-code">工单编号:{{item.orderNum}}</view>
|
||||
<view class="work-order-code">工单编号:{{item.order_number}}</view>
|
||||
<view class="message">
|
||||
<image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
|
||||
<view class="text">
|
||||
<view class="title">
|
||||
<view class="text clips1">{{item.title}}</view>
|
||||
<view class="icon" :style="{backgroundColor: item.backgroundColor}">{{['','待受理','等待派工','待接单','待维修','维修中','待收款','待审批','已完成','待回访','异常单','逾期单','超时单'][item.status]}}</view>
|
||||
<view class="text clips1">{{item.project_name}}</view>
|
||||
<view class="icon" :style="{backgroundColor: item.attributes.color}">{{item.attributes.text
|
||||
}}</view>
|
||||
</view>
|
||||
<view class="disjb fc" style="margin-left: -20rpx;height: 70%;">
|
||||
<view class="serial-number scal09">
|
||||
<view class="type">{{item.faultType}}</view>
|
||||
<view class="date">已故障{{item.faultTime}}</view>
|
||||
<view class="type">#{{item.fault_type}}#</view>
|
||||
<view class="date">{{item.failure_time}}</view>
|
||||
</view>
|
||||
<view class="specification scal09">
|
||||
紧急程度:<view class="text"> {{item.urgentText}}</view>
|
||||
紧急程度:<view class="text"> {{item.principal}}</view>
|
||||
</view>
|
||||
<view class="specification scal09">主负责人:{{item.name}}</view>
|
||||
<view class="installation-site scal09">故障描述:{{item.describe}}</view>
|
||||
<view class="installation-site scal09">故障描述:{{item.failure_description}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -91,151 +92,18 @@
|
|||
date: currentDate,
|
||||
workeOrderStatus:'工单状态',
|
||||
array: [
|
||||
{id:1,title:'待受理'},
|
||||
{id:2,title:'待指派'},
|
||||
{id:3,title:'待接单'},
|
||||
{id:4,title:'待维修'},
|
||||
{id:5,title:'维修中'},
|
||||
{id:6,title:'待收款'},
|
||||
{id:7,title:'待审批'},
|
||||
{id:8,title:'已收款'},
|
||||
{id:9,title:'待回访'},
|
||||
{id:10,title:'异常单'},
|
||||
{id:11,title:'逾期单'},
|
||||
{id:12,title:'超时单'}
|
||||
|
||||
],
|
||||
workeOrderStatusIndex: 0,
|
||||
dataPage:{
|
||||
list_rows:10,
|
||||
page:1,
|
||||
order_status:"",
|
||||
order_times:"",
|
||||
keyword:""
|
||||
},
|
||||
dataList:[
|
||||
{
|
||||
id:1,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:1,
|
||||
statusText:'待受理',
|
||||
backgroundColor:'#ff0000',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:2,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:2,
|
||||
statusText:'待指派',
|
||||
backgroundColor:'#112233',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:3,
|
||||
statusText:'待接单',
|
||||
backgroundColor:'#ff00ff',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:4,
|
||||
statusText:'待维修',
|
||||
backgroundColor:'#303545',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:5,
|
||||
statusText:'维修中',
|
||||
backgroundColor:'#006677',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:6,
|
||||
statusText:'待收款',
|
||||
backgroundColor:'#669955',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:7,
|
||||
statusText:'待审批',
|
||||
backgroundColor:'#558899',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:8,
|
||||
statusText:'已完成',
|
||||
backgroundColor:'#336655',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
orderNum:'222226666558',
|
||||
title:'长沙市望城区xxxxxx项目名称',
|
||||
status:9,
|
||||
statusText:'待回访',
|
||||
backgroundColor:'#224455',
|
||||
faultType:'#网络故障#',
|
||||
faultTime:'2小时37分',
|
||||
urgentText:'加急',
|
||||
name:'陈志远',
|
||||
describe:'LED显示屏开机后闪屏,不显示内容。主控电脑提示网络不通',
|
||||
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
}
|
||||
|
@ -243,7 +111,6 @@
|
|||
onLoad(op) {
|
||||
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
|
||||
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
||||
|
||||
this.getDatalist()
|
||||
this.getType()
|
||||
},
|
||||
|
@ -256,7 +123,9 @@
|
|||
}).then(res => {
|
||||
// this.$toolAll.tools.showToast(res.msg);
|
||||
if (res.code == 1) {
|
||||
this.dataList = res.data.data
|
||||
console.log(res.data,"---aa")
|
||||
this.array=[...res.data]
|
||||
console.log( this.array)
|
||||
} else {
|
||||
|
||||
}
|
||||
|
@ -264,15 +133,12 @@
|
|||
},
|
||||
|
||||
getDatalist(){
|
||||
this.$requst.get('/universal/api.order/order_list', {
|
||||
list_rows: this.dataPage.list_rows,
|
||||
page: this.dataPage.page,
|
||||
}).then(res => {
|
||||
this.$requst.get('/universal/api.order/order_list',this.dataPage).then(res => {
|
||||
// this.$toolAll.tools.showToast(res.msg);
|
||||
if (res.code == 1) {
|
||||
this.dataList = res.data.data
|
||||
} else {
|
||||
|
||||
} else if(res.code == 0){
|
||||
this.dataList = res.data.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -310,9 +176,17 @@
|
|||
|
||||
this.workeOrderStatus = '';
|
||||
this.workeOrderStatusIndex = data.detail.value;
|
||||
console.log( data.detail.value)
|
||||
this.dataPage.order_status=this.array[data.detail.value].id-0
|
||||
|
||||
this.getDatalist()
|
||||
|
||||
},
|
||||
bindDateChange(date) {
|
||||
console.log(date)
|
||||
this.dataPage.order_times=date.detail.value
|
||||
|
||||
this.getDatalist()
|
||||
|
||||
},
|
||||
getDate(type) {
|
||||
const date = new Date();
|
||||
|
|
Loading…
Reference in New Issue