|
@@ -22,20 +22,34 @@ export const navToPage = (function () {
|
|
|
userinfo.isGZSign &&
|
|
|
!['/pages/index/index', '/pages/repairConfirmation'].find(item => !!~url.indexOf(item))
|
|
|
) {
|
|
|
- uni.showModal({
|
|
|
- title: '温馨提示',
|
|
|
- content: '您未签署确认书!',
|
|
|
- cancelText: '取消',
|
|
|
- confirmText: '去签署',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- uni[goToType]({
|
|
|
- url: webHref('/pages/repairConfirmation?type=gz'),
|
|
|
- ...data
|
|
|
- })
|
|
|
+ if (
|
|
|
+ await this.$api.post('/worker/check/manual/sign/confirm', {
|
|
|
+ type: 'gz'
|
|
|
+ }).data
|
|
|
+ ) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: '您未签署确认书!',
|
|
|
+ cancelText: '取消',
|
|
|
+ confirmText: '去签署',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni[goToType]({
|
|
|
+ url: webHref('/pages/repairConfirmation?type=gz'),
|
|
|
+ ...data
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: '签署确认书正在审核!',
|
|
|
+ cancelText: '取消',
|
|
|
+ confirmText: '知道了',
|
|
|
+ success: res => {}
|
|
|
+ })
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -44,20 +58,34 @@ export const navToPage = (function () {
|
|
|
userinfo.isFSSign &&
|
|
|
!['/pages/index/index', '/pages/repairConfirmation'].find(item => !!~url.indexOf(item))
|
|
|
) {
|
|
|
- uni.showModal({
|
|
|
- title: '温馨提示',
|
|
|
- content: '您未签署确认书!',
|
|
|
- cancelText: '取消',
|
|
|
- confirmText: '去签署',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- uni[goToType]({
|
|
|
- url: webHref('/pages/repairConfirmation?type=fs'),
|
|
|
- ...data
|
|
|
- })
|
|
|
+ if (
|
|
|
+ await this.$api.post('/worker/check/manual/sign/confirm', {
|
|
|
+ type: 'fs'
|
|
|
+ }).data
|
|
|
+ ) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: '您未签署确认书!',
|
|
|
+ cancelText: '取消',
|
|
|
+ confirmText: '去签署',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni[goToType]({
|
|
|
+ url: webHref('/pages/repairConfirmation?type=fs'),
|
|
|
+ ...data
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: '签署确认书正在审核!',
|
|
|
+ cancelText: '取消',
|
|
|
+ confirmText: '知道了',
|
|
|
+ success: res => {}
|
|
|
+ })
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
|