瀏覽代碼

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

jwyu 3 年之前
父節點
當前提交
59a27d4f88
共有 2 個文件被更改,包括 36 次插入1 次删除
  1. 35 0
      pages-approve/seal/detail.vue
  2. 1 1
      utils/request.js

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

@@ -328,6 +328,41 @@
 			
 			
 			//审批通过 (修改内容)
 			//审批通过 (修改内容)
 			async handleApprovePassModify(){
 			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({
 				const res=await apiApprovalPassModify({
 					FileNum:Number(this.oldFileNum),
 					FileNum:Number(this.oldFileNum),
 					Remark:this.oldRemark,
 					Remark:this.oldRemark,

+ 1 - 1
utils/request.js

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