工单确认
This commit is contained in:
@@ -14,12 +14,14 @@ Page({
|
|||||||
size: 20,
|
size: 20,
|
||||||
noticeFlowType,
|
noticeFlowType,
|
||||||
actionItems: [{
|
actionItems: [{
|
||||||
name: '确认',
|
name: '详情',
|
||||||
value: 'status'
|
value: 'detail'
|
||||||
}],
|
},{
|
||||||
|
name: '确认',
|
||||||
|
value: 'ok'
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
showActionMenu(e) {
|
showActionMenu(e) {
|
||||||
console.log("e", e)
|
|
||||||
this.setData({
|
this.setData({
|
||||||
currentActionSheet: e.currentTarget.dataset.id
|
currentActionSheet: e.currentTarget.dataset.id
|
||||||
});
|
});
|
||||||
@@ -55,9 +57,9 @@ onMenuSelect(e) {
|
|||||||
},
|
},
|
||||||
jumpToDetail(id) {
|
jumpToDetail(id) {
|
||||||
|
|
||||||
// wx.navigateTo({
|
wx.navigateTo({
|
||||||
// url: '/pages/workOrderDetail/index?id=' + id,
|
url: '/pages/workOrderDetail/index?id=' + id,
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
onConfirm(e) {
|
onConfirm(e) {
|
||||||
const { type, data = {}, way } = e.detail;
|
const { type, data = {}, way } = e.detail;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
{{ item.flow_status === 1 ? "处理中" : "已确认" }}
|
{{ item.flow_status === 1 ? "处理中" : "已确认" }}
|
||||||
</view>
|
</view>
|
||||||
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
|
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
|
||||||
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-data="{{index}}" class="more-icon" />
|
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-id="{{item.id}}" data-data="{{index}}" class="more-icon" />
|
||||||
<van-action-sheet
|
<van-action-sheet
|
||||||
show="{{ currentActionSheet === item.id }}"
|
show="{{ currentActionSheet === item.id }}"
|
||||||
actions="{{ actionItems }}"
|
actions="{{ actionItems }}"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</van-field>
|
</van-field>
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
<view class="operate">
|
<view class="operate">
|
||||||
<view class="submit"> <van-button type="info" block bind:click="onSubmit"> 提交 </van-button> </view>
|
<view class="submit" wx:if="{{detail.current_user_audit_status === 0}}"> <van-button type="info" block bind:click="onSubmit"> 确认 </van-button> </view>
|
||||||
<view class="cancel"> <van-button block bind:tap="goback"> 返回 </van-button> </view>
|
<view class="cancel"> <van-button block bind:tap="goback"> 返回 </van-button> </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -23,6 +23,13 @@
|
|||||||
"condition": {
|
"condition": {
|
||||||
"miniprogram": {
|
"miniprogram": {
|
||||||
"list": [
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "pages/workBenchTodoList/index",
|
||||||
|
"pathName": "pages/workBenchTodoList/index",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "pages/workOrderDetail/index",
|
"name": "pages/workOrderDetail/index",
|
||||||
"pathName": "pages/workOrderDetail/index",
|
"pathName": "pages/workOrderDetail/index",
|
||||||
|
|||||||
Reference in New Issue
Block a user