Browse Source

新增用印实际使用方需求修改

jwyu 3 years ago
parent
commit
aef083da05
2 changed files with 25 additions and 4 deletions
  1. 13 2
      pages-approve/seal/addSeal.vue
  2. 12 2
      pages-approve/seal/edit.vue

+ 13 - 2
pages-approve/seal/addSeal.vue

@@ -29,7 +29,7 @@
 				<input type="text" v-model="CreditCode" placeholder="请填写统一社会信用码" disabled/>
 			</view>
 			<view class="section white-wrap" v-if="UseCompanyName">
-				<view class="section-title">实际使用方名称</view>
+				<view :class="['section-title',purpose=='代付合同'?'require':'']">实际使用方名称</view>
 				<input type="text" v-model="UseCompanyName" placeholder="请填写实际使用方名称" disabled/>
 			</view>
 			<view class="section white-wrap" v-if="ServiceType">
@@ -48,7 +48,7 @@
 				<input type="text" v-model="CreditCode" placeholder="请填写统一社会信用码"/>
 			</view>
 			<view class="section white-wrap">
-				<view class="section-title">实际使用方名称</view>
+				<view :class="['section-title',purpose=='代付合同'?'require':'']">实际使用方名称</view>
 				<input type="text" v-model="UseCompanyName" placeholder="请填写实际使用方名称"/>
 			</view>
 			<view class="section white-wrap">
@@ -284,6 +284,17 @@
 					})
 					return
 				}
+
+				// 代付合同 实际使用方必填
+				if(params.Use=='代付合同'){
+					if(!params.UseCompanyName&&this.radioVal==='上传附件'){
+						uni.showToast({
+							title:'请填写实际使用方',
+							icon:"none"
+						})
+						return
+					}
+				}
 				console.log(params);
 				
 				const res=await apiSealAdd(params)

+ 12 - 2
pages-approve/seal/edit.vue

@@ -22,7 +22,7 @@
 				<input type="text" v-model="CreditCode" placeholder="请填写统一社会信用码" disabled/>
 			</view>
 			<view class="section white-wrap" v-if="UseCompanyName">
-				<view class="section-title">实际使用方名称</view>
+				<view :class="['section-title',purpose=='代付合同'?'require':'']">实际使用方名称</view>
 				<input type="text" v-model="UseCompanyName" placeholder="请填写实际使用方名称" disabled/>
 			</view>
 			<view class="section white-wrap" v-if="ServiceType">
@@ -41,7 +41,7 @@
 				<input type="text" v-model="CreditCode" placeholder="请填写统一社会信用码"/>
 			</view>
 			<view class="section white-wrap">
-				<view class="section-title">实际使用方名称</view>
+				<view :class="['section-title',purpose=='代付合同'?'require':'']">实际使用方名称</view>
 				<input type="text" v-model="UseCompanyName" placeholder="请填写实际使用方名称"/>
 			</view>
 			<view class="section white-wrap">
@@ -325,6 +325,16 @@
 					})
 					return
 				}
+				// 代付合同 实际使用方必填
+				if(params.Use=='代付合同'){
+					if(!params.UseCompanyName&&this.radioVal==='上传附件'){
+						uni.showToast({
+							title:'请填写实际使用方',
+							icon:"none"
+						})
+						return
+					}
+				}
 				
 				const res=await apiSealEdit(params)
 				if(res.code===200){