Compare commits

..

No commits in common. "d2d47f5355facd3e6e81908034b9a0ce213fc010" and "a9c291d3f74b8c51f9022446dbefc2703411bcb8" have entirely different histories.

3 changed files with 164 additions and 40 deletions

View File

@ -135,23 +135,21 @@
},
//
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: {
dir:"images"
token: uni.getStorageInfoSync("token")
},
success: (uploadFileRes) => {
console.log(uploadFileRes)
}
});

View File

@ -241,7 +241,7 @@
},
data() {
return {
role: 4, // 1 2: 3: 4
role: 1, // 1 2: 3: 4
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
messageNumber: 16 ,//
noticeList:['2021年11月06日公司团建维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//

View File

@ -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" @keydown.enter="getDatalist()" class="int" v-model="dataPage.keyword" value="" placeholder="请输入关键字" />
<image @click="getDatalist()" class="search" src="../../static/iocn/ss.png" mode=""></image>
<input type="text" class="int" value="" placeholder="请输入关键字" />
<image 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="'name'">
<picker @change="bindPickerChange" :value="workeOrderStatusIndex" :range="array" :range-key="'title'">
<view class="li">
<view class="text" v-if="workeOrderStatus!=''">{{workeOrderStatus}}</view>
<view class="text" v-else>{{array[workeOrderStatusIndex].name}}</view>
<view class="text" v-else>{{array[workeOrderStatusIndex].title}}</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</view>
</picker>
@ -32,25 +32,24 @@
<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.order_number}}</view>
<view class="work-order-code">工单编号{{item.orderNum}}</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.project_name}}</view>
<view class="icon" :style="{backgroundColor: item.attributes.color}">{{item.attributes.text
}}</view>
<view class="text clips1">{{item.title}}</view>
<view class="icon" :style="{backgroundColor: item.backgroundColor}">{{['','待受理','等待派工','待接单','待维修','维修中','待收款','待审批','已完成','待回访','异常单','逾期单','超时单'][item.status]}}</view>
</view>
<view class="disjb fc" style="margin-left: -20rpx;height: 70%;">
<view class="serial-number scal09">
<view class="type">#{{item.fault_type}}#</view>
<view class="date">{{item.failure_time}}</view>
<view class="type">{{item.faultType}}</view>
<view class="date">已故障{{item.faultTime}}</view>
</view>
<view class="specification scal09">
紧急程度<view class="text"> {{item.principal}}</view>
紧急程度<view class="text"> {{item.urgentText}}</view>
</view>
<view class="specification scal09">主负责人{{item.name}}</view>
<view class="installation-site scal09">故障描述{{item.failure_description}}</view>
<view class="installation-site scal09">故障描述{{item.describe}}</view>
</view>
</view>
</view>
@ -92,18 +91,151 @@
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'
},
]
}
@ -111,6 +243,7 @@
onLoad(op) {
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
this.getDatalist()
this.getType()
},
@ -123,9 +256,7 @@
}).then(res => {
// this.$toolAll.tools.showToast(res.msg);
if (res.code == 1) {
console.log(res.data,"---aa")
this.array=[...res.data]
console.log( this.array)
this.dataList = res.data.data
} else {
}
@ -133,12 +264,15 @@
},
getDatalist(){
this.$requst.get('/universal/api.order/order_list',this.dataPage).then(res => {
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 if(res.code == 0){
this.dataList = res.data.data
} else {
}
})
},
@ -176,17 +310,9 @@
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) {
this.dataPage.order_times=date.detail.value
this.getDatalist()
console.log(date)
},
getDate(type) {
const date = new Date();