Browse Source

必填项

zhaomin 3 years ago
parent
commit
4c81cc6147

+ 4 - 0
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_12/button_12.vue

39
 		},
39
 		},
40
 		methods: {
40
 		methods: {
41
 			submit(ref) {
41
 			submit(ref) {
42
+				if(!this.reason) {
43
+					this.$mHelper.toast('请输入申请退回原因');
44
+					return
45
+				}
42
 				const params = {
46
 				const params = {
43
 				  workorderid: this.workorderid,
47
 				  workorderid: this.workorderid,
44
 				  file: this.$mHelper.getImgString(this.imgIdList),
48
 				  file: this.$mHelper.getImgString(this.imgIdList),

+ 5 - 1
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_22/button_22.vue

3
 		<view class="form">
3
 		<view class="form">
4
 			<!-- 基础表单校验 -->
4
 			<!-- 基础表单校验 -->
5
 			<uni-forms >
5
 			<uni-forms >
6
-				<uni-forms-item label="是否向市民发送短信" name="detailRsult">
6
+				<uni-forms-item label="是否向市民发送短信" name="detailRsult" required>
7
 					<uni-data-checkbox v-model="siSend" :localdata="list" />
7
 					<uni-data-checkbox v-model="siSend" :localdata="list" />
8
 				</uni-forms-item>
8
 				</uni-forms-item>
9
 				<uni-forms-item label="结案意见" name="finalopinion" required>
9
 				<uni-forms-item label="结案意见" name="finalopinion" required>
42
 		},
42
 		},
43
 		methods: {
43
 		methods: {
44
 			submit(ref) {
44
 			submit(ref) {
45
+				if(!this.finalopinion) {
46
+					this.$mHelper.toast('请输入结案意见');
47
+					return
48
+				}
45
 				const params = {
49
 				const params = {
46
 					workorderid: this.workorderid,
50
 					workorderid: this.workorderid,
47
 					finalopinion: this.finalopinion,
51
 					finalopinion: this.finalopinion,

+ 8 - 0
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_40/button_40.vue

48
 		},
48
 		},
49
 		methods: {
49
 		methods: {
50
 			submit(ref) {
50
 			submit(ref) {
51
+				if(!this.result) {
52
+					this.$mHelper.toast('请输入办理结果');
53
+					return
54
+				}
55
+				if(!this.callContent) {
56
+					this.$mHelper.toast('请输入来电内容');
57
+					return
58
+				}
51
 				const params = {
59
 				const params = {
52
 					workorderid: this.workorderid,
60
 					workorderid: this.workorderid,
53
 					title: this.title,
61
 					title: this.title,

+ 7 - 0
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_47/button_47.vue

46
 		},
46
 		},
47
 		methods: {
47
 		methods: {
48
 			submit(ref) {
48
 			submit(ref) {
49
+				if(!this.result) {
50
+					this.$mHelper.toast('请输入反馈结果');
51
+					return
52
+				}
53
+				if(!this.idear) {
54
+					this.$mHelper.toast('请输入结案意见');
55
+				
49
 				const params = {
56
 				const params = {
50
 					workorderid: this.workorderid,
57
 					workorderid: this.workorderid,
51
 					result: this.result,
58
 					result: this.result,