From 9201045a62b97c63e0cda7a63bc383b4074b2ee0 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期三, 16 四月 2025 16:22:12 +0800
Subject: [PATCH] d

---
 pages/modal/5601.vue |  269 ++++++++++++++++++++---------------------------------
 1 files changed, 101 insertions(+), 168 deletions(-)

diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 12bcb8e..5dbc622 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -31,7 +31,7 @@
 										<div class="dv-panel-button"
 											v-if="pageData.Select_Button==true || pageData.Row_Button.length > 0">
 
-											<checkbox v-if="pageData.Select_Button==true" :model="ii"
+											<checkbox v-if="pageData.Select_Button==true" :value="ii"
 												:checked="style.SelBut_Checked" />
 											<!-- <text></text> -->
 											<!-- <button type="primary" @click="savaItem(ii)" v-if="param.Sub_Page[0].OK_Button==true">淇濆瓨</Button> -->
@@ -365,21 +365,18 @@
 								Name: page.After_Delete?.Name
 							};
 						}
-
-						if (evt.ID) {
-							return [{
-								Cls_Name: this.param?.master_cls?.name || "",
-								Cls_ID: this.param?.master_cls?.id || "",
-								FunCode: "Delete",
-								ShowName: this.$t("sys.delete"),
-								Style: "text",
-								Prompt: false,
-								NotTriggerSYSEvent: false,
-								DataStateVerify: false,
-								AttrVerify: false,
-								AfterProcess_Event: evt,
-							}];
-						}
+						return [{
+							Cls_Name: this.param?.master_cls?.name || "",
+							Cls_ID: this.param?.master_cls?.id || "",
+							FunCode: "Delete",
+							ShowName: this.$t("sys.delete"),
+							Style: "text",
+							Prompt: false,
+							NotTriggerSYSEvent: false,
+							DataStateVerify: false,
+							AttrVerify: false,
+							AfterProcess_Event: evt,
+						}];
 					}
 					return [];
 				}
@@ -1295,14 +1292,12 @@
 										} else if (ele2.name == 'Layout') {
 											ele2.setting.colList.forEach(col => {
 												if (col) {
-													if (col.fieldId == attr
-														.attr) {
+													if (col.fieldId == attr.attr) {
 														col.value = $this
 															.operationNumber(
 																col.value,
 																attr.value,
-																attr
-																.operation
+																attr.operation
 															)
 													}
 												}
@@ -1312,80 +1307,74 @@
 								});
 							}
 						} else if (rowData.condition) {
-							const conditions = rowData.condition || [];
-							if (conditions.length > 0) {
-								let bFindCondition = true;
-								for (let i in conditions) {
-									const condition = conditions[i];
-									let bFind = false;
-									for (let i2 in ele.form.items) {
-										const ele2 = ele.form.items[i2];
-										if (ele2.name != "Layout") {
-											if (ele2.fieldId == condition.attr) {
-												if (condition.value == ele2.value) {
+							const conditions = rowData.condition
+							let bFindCondition = true;
+							for (let i in conditions) {
+								const condition = conditions[i];
+								let bFind = false;
+								for (let i2 in ele.form.items) {
+									const ele2 = ele.form.items[i2];
+									if (ele2.name != "Layout") {
+										if (ele2.fieldId == condition.attr) {
+											if (condition.value == ele2.value) {
+												bFind = true;
+											}
+											break;
+										}
+									} else {
+										const colList = ele2.setting.colList || [];
+										for (let i3 in colList) {
+											const col = colList[i3];
+											if (col.fieldId == condition.attr) {
+												if (condition.value == col.value) {
 													bFind = true;
 												}
 												break;
 											}
-										} else {
-											const colList = ele2.setting.colList || [];
-											for (let i3 in colList) {
-												const col = colList[i3];
-												if (col.fieldId == condition.attr) {
-													if (condition.value == col.value) {
-														bFind = true;
-													}
-													break;
-												}
-											}
-											if (bFind) break;
 										}
-									}
-									if (!bFind) {
-										bFindCondition = false;
-										break;
+										if (bFind) break;
 									}
 								}
-								if (bFindCondition) {
-									rowData.attrs.forEach(attr => {
-										ele.form.items.forEach(ele2 => {
-											if (ele2.name != 'Layout') {
-												if (ele2.fieldId == attr.attr) {
-													ele2.value =
-														$this.operationNumber(
-															ele2.value,
-															attr.value,
-															attr.operation
-														)
-												}
-											} else if (ele2.name == 'Layout') {
-												ele2.setting.colList.forEach(col => {
-													if (col) {
-														if (col.fieldId == attr
-															.attr) {
-															col.value =
-																$this
-																.operationNumber(
-																	col.value,
-																	attr
-																	.value,
-																	attr
-																	.operation)
-														}
-													}
-												})
-											}
-										});
-									});
-
+								if (!bFind) {
+									bFindCondition = false;
+									break;
 								}
 							}
+							if (bFindCondition) {
+								rowData.attrs.forEach(attr => {
+									ele.form.items.forEach(ele2 => {
+										if (ele2.name != 'Layout') {
+											if (ele2.fieldId == attr.attr) {
+												ele2.value =
+													$this.operationNumber(
+														ele2.value,
+														attr.value,
+														attr.operation
+													)
+											}
+										} else if (ele2.name == 'Layout') {
+											ele2.setting.colList.forEach(col => {
+												if (col) {
+													if (col.fieldId == attr.attr) {
+														col.value =
+															$this.operationNumber(
+																col.value, attr
+																.value, attr
+																.operation)
+													}
+												}
+											})
+										}
+									});
+								});
+
+							}
+
 						}
 					})
 				});
 				pageData.DefList = detailStyleDefList
 				$this.$set(this.pageDetail, pageIndex, pageData)
-
 			},
 			//鍔犺浇姝e湪鐮佺洏鍐呭
 			viewAceionRow(data) {
@@ -1565,6 +1554,13 @@
 							if (ele.fieldId == attr.attr) {
 								ele.value = attr.value;
 								ele.oldvalue = attr.value;
+								if (ele.name == "Input") {
+									if (attr.prompt) ele.placeholder = attr.prompt;
+								}
+								if (attr.enable !== undefined) {
+									if (attr.enable) ele.disabled = false;
+									else ele.disabled = true;
+								}
 							}
 						} else if (ele.name == "Layout") {
 							ele.setting.colList.forEach((col) => {
@@ -1572,6 +1568,13 @@
 									if (col.fieldId == attr.attr) {
 										col.value = attr.value;
 										col.oldvalue = attr.value;
+										if (col.name == "Input") {
+											if (attr.prompt) col.placeholder = attr.prompt;
+										}
+										if (attr.enable !== undefined) {
+											if (attr.enable) col.disabled = false;
+											else col.disabled = true;
+										}
 									}
 								}
 							});
@@ -2343,7 +2346,8 @@
 						const style = pageData.DefList[index];
 						//鍒犻櫎鐮佺洏涓牱寮忛潰鏉� 						pageData.DefList.splice(index, 1);
-						this.del(pageData, style, btn.AfterProcess_Event);
+						if (btn.AfterProcess_Event.ID)
+							this.del(pageData, style, btn.AfterProcess_Event);
 						this.$set(this.pageDetail, pageIndex, pageData)
 					}
 				} else if (btn.FunCode == "Modify") {
@@ -2491,22 +2495,22 @@
 			},
 			sava(pageData, event) {
 				var $this = this;
-				if (pageData.DefList.length == 0) {
-					uni.showModal({
-						title: this.translateSys("tip"),
-						content: this.translate(
-								"tip_no_data_first") +
-							this.translateSys(
-								"quotation_mark_left") + pageData.Name + this
-							.translateSys(
-								"quotation_mark_right") +
-							this.translate(
-								"tip_no_data_last"),
-						showCancel: false,
-						confirmText: this.translateSys('close')
-					});
-					return false;
-				}
+				// if (pageData.DefList.length == 0) {
+				// 	uni.showModal({
+				// 		title: this.translateSys("tip"),
+				// 		content: this.translate(
+				// 				"tip_no_data_first") +
+				// 			this.translateSys(
+				// 				"quotation_mark_left") + pageData.Name + this
+				// 			.translateSys(
+				// 				"quotation_mark_right") +
+				// 			this.translate(
+				// 				"tip_no_data_last"),
+				// 		showCancel: false,
+				// 		confirmText: this.translateSys('close')
+				// 	});
+				// 	return false;
+				// }
 				//鑾峰彇琛ㄥご灞炴�
 				var head_attr = {};
 				this.head_styledef.form.items.forEach(item => {
@@ -2911,38 +2915,6 @@
 			flex-direction: column;
 		}
 
-		.v-head-style {
-			width: 98%;
-
-			.uni-forms-item {
-				margin-bottom: 11rpx;
-			}
-
-			.input-wrapper {
-				border: 1px solid #d5d5d5;
-				width: 100%;
-				display: flex;
-				flex-direction: row;
-
-				.uni-input {
-					flex: 1;
-					padding: 12rpx 8rpx;
-					color: #2d8cf0;
-					// height: 40rpx;
-					// line-height: 40rpx;
-				}
-
-				.uni-icon {
-					padding: 10rpx 5rpx;
-					font-size: 32rpx;
-					color: rgb(192, 196, 204);
-				}
-			}
-
-			.input-wrapper:hover {
-				border: 1px solid rgb(41, 121, 255);
-			}
-		}
 
 		.view-content {
 			display: flex;
@@ -3085,11 +3057,6 @@
 				padding: 0px;
 				margin: 0;
 
-				.dv-panel-form-item {
-					margin: 0;
-					padding: 0px;
-				}
-
 				.uni-forms-item {
 					padding-bottom: 5rpx;
 					margin-bottom: 0;
@@ -3098,33 +3065,7 @@
 						height: 20px !important;
 						padding: 0 10rpx 0 0 !important;
 					}
-
-					.uni-input {
-						width: calc(100% - 12rpx);
-						padding: 5rpx;
-						border: 1px solid #d5d5d5;
-						color: #2d8cf0;
-						height: 20px;
-						background: #FFF;
-						line-height: 20px;
-						border-radius: 6px !important;
-						font-size: 14px;
-						font-family: inherit;
-						box-shadow: none !important;
-						transition-duration: 0.1s;
-						vertical-align: middle;
-					}
-
-					.form-item-span {
-						vertical-align: text-top;
-						color: #2d8cf0;
-						white-space: normal;
-						word-break: break-all;
-						width: 100%;
-					}
 				}
-
-
 
 			}
 
@@ -3245,14 +3186,6 @@
 
 		.input-disabled {
 			background-color: #f3f3f3 !important;
-		}
-
-		::v-deep .uni-row {
-			margin-bottom: 0px;
-		}
-
-		.view-tabpage ::v-deep .uni-row {
-			margin-bottom: 5px;
 		}
 
 		.demo-uni-col {

--
Gitblit v1.9.1