Browse Source

chore: 值班人员筛选改造前 checkpoint(学员页/小程序录入页既有改动)

harper 11 hours ago
parent
commit
03fcc84e60
3 changed files with 22 additions and 16 deletions
  1. 0 6
      web/page/biz/xy_baseInfo.ss.jsp
  2. 1 7
      web/page/biz/xy_inp.ss.jsp
  3. 21 3
      web/page/mp/mp_objInp.html

+ 0 - 6
web/page/biz/xy_baseInfo.ss.jsp

@@ -24,14 +24,8 @@
 			<td><input name="bjid" width="117px"/></td>
 			<td><input name="bjid" width="117px"/></td>
 		</tr>
 		</tr>
 		<tr>
 		<tr>
-			<th>消费余额</th>
-			<td><input name="xfye" width="117px"/></td>
 			<th>就读方式</th>
 			<th>就读方式</th>
 			<td><input name="jdfsm" width="117px"/></td>
 			<td><input name="jdfsm" width="117px"/></td>
-		</tr>
-		<tr>
-			<th>是否坐校车</th>
-			<td><input name="sfzxc" width="117px"/></td>
 			<th>是否晚自修</th>
 			<th>是否晚自修</th>
 			<td><input name="sfwzx" width="117px"/></td>
 			<td><input name="sfwzx" width="117px"/></td>
 		</tr>
 		</tr>

+ 1 - 7
web/page/biz/xy_inp.ss.jsp

@@ -3,7 +3,7 @@
 		<tr>
 		<tr>
 			<th rowspan="2" style="width:160px;">相片</th>
 			<th rowspan="2" style="width:160px;">相片</th>
 			<td rowspan="2">
 			<td rowspan="2">
-				<input name="yzjzwj" placeholder="default-photo.png" class="id-photo"/>
+				<input name="yzjzwj" placeholder="default-photo.png" class="id-photo" width="68px" style="width:68px;height:100px;"/>
 				<input name="yszwj" placeholder="default-personalPhoto.png" class="life-photo"/>
 				<input name="yszwj" placeholder="default-personalPhoto.png" class="life-photo"/>
 			</td>
 			</td>
 			<th style="width:160px;">姓名</th>
 			<th style="width:160px;">姓名</th>
@@ -24,14 +24,8 @@
 			<td><input name="bjid" width="117px"/></td>
 			<td><input name="bjid" width="117px"/></td>
 		</tr>
 		</tr>
 		<tr>
 		<tr>
-			<th>消费余额</th>
-			<td><input name="xfye" width="117px"/></td>
 			<th>就读方式</th>
 			<th>就读方式</th>
 			<td><input name="jdfsm" width="117px"/></td>
 			<td><input name="jdfsm" width="117px"/></td>
-		</tr>
-		<tr>
-			<th>是否坐校车</th>
-			<td><input name="sfzxc" width="117px"/></td>
 			<th>是否晚自修</th>
 			<th>是否晚自修</th>
 			<td><input name="sfwzx" width="117px"/></td>
 			<td><input name="sfwzx" width="117px"/></td>
 		</tr>
 		</tr>

+ 21 - 3
web/page/mp/mp_objInp.html

@@ -55,8 +55,9 @@
 
 
     <ss-bottom
     <ss-bottom
         v-if="showBottom"
         v-if="showBottom"
-        :buttons="bottomButtons"
+        :buttons="bottomSubmitting ? [{ text: '提交中...', action: 'saveSubmit' }] : bottomButtons"
         @button-click="handleBottomAction"
         @button-click="handleBottomAction"
+        :disabled="bottomSubmitting"
     >
     >
     </ss-bottom>
     </ss-bottom>
 
 
@@ -247,8 +248,14 @@
             return objectName === 'xxwjjl' || service.startsWith('xxwjjl_');
             return objectName === 'xxwjjl' || service.startsWith('xxwjjl_');
         };
         };
 
 
+        const isDisciplineAppearanceEntry = (serviceName = '', objName = '') => {
+            const service = String(serviceName || state.service || getUrlParams().service || '').trim();
+            const objectName = String(objName || state.ssObjName || '').trim();
+            return objectName === 'fjyrjc' || service.startsWith('fjyrjc_');
+        };
+
         const makeCloseBottomButton = (serviceName = '', objName = '') => ({
         const makeCloseBottomButton = (serviceName = '', objName = '') => ({
-            text: isSchoolViolationEntry(serviceName, objName) ? '取消' : '关闭',
+            text: isSchoolViolationEntry(serviceName, objName) || isDisciplineAppearanceEntry(serviceName, objName) ? '取消' : '关闭',
             action: 'close'
             action: 'close'
         });
         });
 
 
@@ -257,7 +264,7 @@
                 text: text || '保存并提交',
                 text: text || '保存并提交',
                 action: 'saveSubmit'
                 action: 'saveSubmit'
             };
             };
-            if (!isSchoolViolationEntry(serviceName, objName)) {
+            if (!isSchoolViolationEntry(serviceName, objName) && !isDisciplineAppearanceEntry(serviceName, objName)) {
                 button.backgroundColor = '#575d6d';
                 button.backgroundColor = '#575d6d';
                 button.color = '#fff';
                 button.color = '#fff';
             }
             }
@@ -417,7 +424,10 @@
         };
         };
 
 
         const submitSaveAndCommit = async () => {
         const submitSaveAndCommit = async () => {
+            const alignDormitorySubmit = isDisciplineAppearanceEntry(state.service, state.ssObjName);
+            if (alignDormitorySubmit && state.vm && state.vm.bottomSubmitting) return;
             try {
             try {
+                if (alignDormitorySubmit && state.vm) state.vm.bottomSubmitting = true;
                 const cfg = getSubmitConfig();
                 const cfg = getSubmitConfig();
                 if (!state.submitEnabled || !cfg.enabled) {
                 if (!state.submitEnabled || !cfg.enabled) {
                     if (typeof showToastEffect === 'function') showToastEffect('当前页面不支持保存并提交', 1800, 'warning');
                     if (typeof showToastEffect === 'function') showToastEffect('当前页面不支持保存并提交', 1800, 'warning');
@@ -475,6 +485,10 @@
                         serviceName: finalServ,
                         serviceName: finalServ,
                         payload: finalPayload,
                         payload: finalPayload,
                     };
                     };
+                    if (alignDormitorySubmit) {
+                        await submitFinalConfirm();
+                        return;
+                    }
                     if (state.vm) {
                     if (state.vm) {
                         state.vm.showSubmitConfirm = true;
                         state.vm.showSubmitConfirm = true;
                     }
                     }
@@ -490,6 +504,8 @@
                     2200,
                     2200,
                     'error'
                     'error'
                 );
                 );
+            } finally {
+                if (alignDormitorySubmit && state.vm) state.vm.bottomSubmitting = false;
             }
             }
         };
         };
 
 
@@ -527,6 +543,7 @@
                     placeholderText: '正在加载录入页面...',
                     placeholderText: '正在加载录入页面...',
                     showBottom: true,
                     showBottom: true,
                     showSubmitConfirm: false,
                     showSubmitConfirm: false,
+                    bottomSubmitting: false,
                     bottomButtons: [
                     bottomButtons: [
                         makeCloseBottomButton(getUrlParams().service),
                         makeCloseBottomButton(getUrlParams().service),
                         makeSubmitBottomButton('保存并提交', getUrlParams().service)
                         makeSubmitBottomButton('保存并提交', getUrlParams().service)
@@ -539,6 +556,7 @@
                     setTimeout(updateContentHeight, 0);
                     setTimeout(updateContentHeight, 0);
                 },
                 },
                 handleBottomAction(payload) {
                 handleBottomAction(payload) {
+                    if (this.bottomSubmitting) return;
                     if (payload && payload.action === 'close') {
                     if (payload && payload.action === 'close') {
                         goBack(false);
                         goBack(false);
                         return;
                         return;