电子签名
This commit is contained in:
parent
5c4222ece5
commit
4455f9cc36
|
|
@ -45,7 +45,7 @@
|
|||
<scroll-view scroll-y @scrolltolower="onScrollTolower">
|
||||
<uni-swipe-action>
|
||||
<uni-swipe-action-item
|
||||
:right-options="current == 0 ? options : []"
|
||||
:right-options="current == 0 ? options : optionsFinish"
|
||||
v-for="(item, index) in tableList"
|
||||
:key="index"
|
||||
@click="(e) => onClickSwipe(e, item)"
|
||||
|
|
@ -70,6 +70,13 @@
|
|||
:type="item.taskStatus == 1 ? 'error' : 'success'"
|
||||
/>
|
||||
</div>
|
||||
<div>是否签名:
|
||||
<uni-tag
|
||||
:text="item.isElectronicSign == 1 ? '未签名' : '已签名'"
|
||||
:inverted="true"
|
||||
:type="item.isElectronicSign == 1 ? 'error' : 'success'"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</uni-swipe-action-item>
|
||||
|
|
@ -126,6 +133,15 @@ const options = ref([
|
|||
},
|
||||
},
|
||||
])
|
||||
const optionsFinish = ref([
|
||||
{
|
||||
text: '电子签名',
|
||||
style: {
|
||||
backgroundColor: '#c6bf3b',
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
const finish = computed(() => {
|
||||
if (total.value === tableList.value.length) return true
|
||||
})
|
||||
|
|
@ -191,19 +207,14 @@ const onClickSwipe = async (e, item) => {
|
|||
console.log('🚀 ~ onClickSwipe ~ e:', e, item)
|
||||
if (e.index == 0) {
|
||||
// 电子签名
|
||||
const params = JSON.stringify({
|
||||
id: item.id,
|
||||
taskId: item.taskId,
|
||||
isSign: true,
|
||||
})
|
||||
console.log('电子签名-e', e)
|
||||
console.log('电子签名-item', item)
|
||||
// const params = {
|
||||
// id: item.id,
|
||||
// leaseSignUrl: item.leaseSignUrl,
|
||||
const params = {
|
||||
id: item.id,
|
||||
leaseSignUrl: item.leaseSignUrl,
|
||||
// leaseSignType: item.leaseSignType,
|
||||
// isLease: true,
|
||||
// }
|
||||
isLease: true,
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/my/signature?params=${JSON.stringify(params)}`,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue