Эх сурвалжийг харах

用印审批修改并审核判断数据是否合法

jwyu 3 жил өмнө
parent
commit
59a27d4f88

+ 35 - 0
pages-approve/seal/detail.vue

@@ -328,6 +328,41 @@
 			
 			//审批通过 (修改内容)
 			async handleApprovePassModify(){
+				if(!this.oldFileNum){
+					uni.showToast({
+						title:'请填写文件份数',
+						icon:"none"
+					})
+					return
+				}
+				if(this.oldFileNum<1){
+					uni.showToast({
+						title:'文件份数不合法',
+						icon:"none"
+					})
+					return
+				}
+				if(!this.oldSealType){
+					uni.showToast({
+						title:'印章类型不能为空',
+						icon:"none"
+					})
+					return
+				}
+				if(!this.oldUse){
+					uni.showToast({
+						title:'请选择用印用途',
+						icon:"none"
+					})
+					return
+				}
+				if(!this.files.url){
+					uni.showToast({
+						title:'合同附件不能为空',
+						icon:"none"
+					})
+					return
+				}
 				const res=await apiApprovalPassModify({
 					FileNum:Number(this.oldFileNum),
 					Remark:this.oldRemark,

+ 1 - 1
utils/request.js

@@ -57,7 +57,7 @@ const http=(url,params,method)=>{
 				console.log(error);
 				setTimeout(() => {
 					uni.showToast({
-						title:'服务器错误',
+						title:'网络异常',
 						icon:'none'
 					})
 				}, 0);