Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
郑艺斌
/
emaint-servicer-wechat-app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b99df3a4
authored
Nov 30, 2022
by
严沛汀
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
转蓝鲸
parent
4310a86a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
8 deletions
app.json
pages/baobiao/baobiao.wxml
pages/baobiaojin/baobiaojin.wxml
pages/baobiaojin/baobiaojin.wxss
pages/information/information.js
pages/information/information.json
pages/information/information.wxml
app.json
View file @
b99df3a4
...
...
@@ -20,7 +20,8 @@
"pages/weishou/weishou"
,
"pages/addcan/addcan"
,
"pages/baobiaojin/baobiaojin"
,
"pages/custSearch/search"
"pages/custSearch/search"
,
"pages/changeProblemType/problemType"
],
"window"
:
{
"backgroundTextStyle"
:
"light"
,
...
...
pages/baobiao/baobiao.wxml
View file @
b99df3a4
...
...
@@ -2,9 +2,9 @@
<view class="container" style="padding: 0px">
<view class="page__bd">
<view class="weui-cells weui-cells_after-title" style="background-color:rgb(21,141,233);color: white;font-size: 20px;">
<view class="weui-cells weui-cells_after-title" style="
margin-top:0px;
background-color:rgb(21,141,233);color: white;font-size: 20px;">
<view class="weui-cell">
<view class="weui-cell__bd">今日工单</view>
<view class="weui-cell__bd"
style="color: white;"
>今日工单</view>
<view class="weui-cell__ft" style="color: white;font-size: 14px;">{{day}}</view>
</view>
</view>
...
...
pages/baobiaojin/baobiaojin.wxml
View file @
b99df3a4
...
...
@@ -46,6 +46,7 @@
</view>
</view>
</view>
</view>
<!-- 无数据 -->
<nodata wx:else></nodata>
...
...
pages/baobiaojin/baobiaojin.wxss
View file @
b99df3a4
...
...
@@ -21,6 +21,7 @@
}
.textactive{
border-bottom: 4rpx solid rgba(16, 142, 233, 1);
font-weight: bold;
}
.container-title-right{
...
...
pages/information/information.js
View file @
b99df3a4
...
...
@@ -30,6 +30,15 @@ Page({
buttonClickeds
:
false
,
id
:
''
,
buttonConfig
:
null
,
dialogShow
:
false
,
dialogTitle
:
"转蓝鲸"
,
dialogContent
:
""
,
dialogButtons
:
[
{
text
:
'确认'
}
],
isComplete
:
''
,
},
// 图片放大预览
...
...
@@ -133,6 +142,49 @@ Page({
},
//转蓝鲸
transferLanjing
(){
var
that
=
this
;
console
.
log
(
this
.
data
.
baolist
.
workOrderNo
);
wx
.
request
({
url
:
baseUrl
+
'/api/lanjing/repairProblem/toLanJing'
,
data
:
{
workOrderNo
:
that
.
data
.
baolist
.
workOrderNo
},
method
:
'POST'
,
// OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header
:
{
"Content-Type"
:
"application/json"
,
"accessToken"
:
wx
.
getStorageSync
(
'accessToken'
),
},
// 设置请求的 header
success
:
function
(
res
)
{
console
.
log
(
res
);
var
dialogContent
if
(
res
.
data
.
resMessage
==
'成功'
){
dialogContent
=
'已完成转入'
that
.
setData
({
isComplete
:
true
})
}
else
if
(
res
.
data
.
resMessage
==
'失败'
){
dialogContent
=
res
.
data
.
responseResult
}
that
.
setData
({
dialogShow
:
true
,
dialogTitle
:
res
.
data
.
resMessage
,
dialogContent
:
dialogContent
})
}
})
},
//关闭提示
tapDialogButton
(){
this
.
setData
({
dialogShow
:
false
})
},
// 点击备注
beizhu
(
e
)
{
var
that
=
this
;
...
...
@@ -241,10 +293,12 @@ Page({
zhixingren
:
res
.
data
.
responseResult
.
userName
,
})
// }
console
.
log
(
res
.
data
.
responseResult
.
lanjingSn
);
that
.
setData
({
baolist
:
res
.
data
.
responseResult
,
baolistlist
:
res
.
data
.
responseResult
.
recordEntityList
.
reverse
(),
imglist
:
arr2
,
isComplete
:
res
.
data
.
responseResult
.
lanjingSn
?
true
:
false
})
}
else
if
(
res
.
data
.
statusCode
==
'101'
){
...
...
pages/information/information.json
View file @
b99df3a4
{
"navigationBarTitleText"
:
"工单详情"
,
"usingComponents"
:{
"my_btn"
:
"/components/btn/btn"
"my_btn"
:
"/components/btn/btn"
,
"mp-dialog"
:
"weui-miniprogram/dialog/dialog"
}
}
\ No newline at end of file
pages/information/information.wxml
View file @
b99df3a4
...
...
@@ -129,12 +129,17 @@
</view>
</view>
</view>
<view class="information-btn clearfix">
<text class='btn two' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='changeProblemType'>问题类型</text>
<view class="clearfix" style="text-align: right;margin-top: 20rpx;height: 104rpx;margin-right: 32rpx;">
<text class='btn two' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='changeProblemType'>变更问题</text>
<text class='btn two' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='biangengdan'>变更执行</text>
</view>
<view class=" clearfix" style="text-align: right;margin-top: 20rpx;height: 104rpx;margin-right: 32rpx;">
<text class='btn two' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='beizhu'>备注</text>
<text class='btn two' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='biangengdan'>变更</text>
<text class='btn one' wx-if="{{baorespid == baolist.userId && (baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" bindtap='wanchengdan' data-id="{{baolist.id}}">完成</text>
</view>
</view>
<view wx:if="{{!isComplete}}" class=" clearfix" style="text-align: right;margin-top: 20rpx;height: 104rpx;margin-right: 32rpx;">
<text class='btn one' wx-if="{{(baolist.state =='待派单'&&beitype == '0')||(beitype == '0'&&baolist.state !='待评价'&&baolist.state !='已评价')|| ((baorespid == baolist.userId) &&baolist.state !='待评价'&&baolist.state !='已评价'&&baolist.state !='待派单')}}" data-gonglist="{{baolist}}" bindtap='transferLanjing'>转蓝鲸</text>
</view>
<!--完成维修弹窗 -->
<!-- <view class="wantan" wx-if="{{wantan}}" catchtouchmove="return"></view>
<view class="wantannei" wx-if="{{wantan}}" catchtouchmove="return">
...
...
@@ -145,3 +150,7 @@
</view>
</view> -->
</view>
<mp-dialog title="{{dialogTitle}}" show="{{dialogShow}}" bindbuttontap="tapDialogButton" buttons="{{dialogButtons}}">
<view>{{dialogContent}}</view>
</mp-dialog>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment