15807800591 2 jaren geleden
bovenliggende
commit
651d019fbe
2 gewijzigde bestanden met toevoegingen van 21 en 0 verwijderingen
  1. 1 0
      common/http.js
  2. 20 0
      pages/model/return.vue

+ 1 - 0
common/http.js

@@ -23,6 +23,7 @@ const urls = {
 	
 	documents: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/documents/', //获取文档详情
 	empty: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/forms/__0FLGNncOS1lz0T9jsFn/empty?formId=__0FLGNncOS1lz0T9jsFn&appId=__gAPYBW4YxB3UePM3lqO', //创建委托单文档
+	validate: ip + 'http://192.168.0.251/obpm/runtime/__gAPYBW4YxB3UePM3lqO/documents/__79Wtw03ya4dJUDGPyAN/validate', //保存文档
 }
 /**
  * 封装的http请求wt_

+ 20 - 0
pages/model/return.vue

@@ -106,6 +106,26 @@ export default {
 			});
 		},
 		//提交
+		validate() {
+			this.http.request({
+				url: this.http.urls.user_task_add,
+				data: this.item,
+				method: 'POST',
+				success: res => {
+					uni.showModal({
+						title: '提示',
+						content: '提交成功',
+						showCancel: false,
+						success: res => {
+							if (res.confirm) {
+								uni.navigateBack();
+							}
+						}
+					});
+				}
+			});
+		}
+		//提交
 		add() {
 			this.http.request({
 				url: this.http.urls.user_task_add,