Преглед изворни кода

style(process/detail): 查看重复表改为查看明细
perf(process): 快速撤回时校验撤回备注

wangpx пре 1 година
родитељ
комит
b4bed907ea
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 1 1
      pages/process/detail/index.vue
  2. 4 0
      pages/process/index.vue

+ 1 - 1
pages/process/detail/index.vue

@@ -38,7 +38,7 @@
 		<view>
 			<!-- 重复表 -->
 			<uni-card v-if="repeatingFormNotEmpty" spacing="0" padding="0">
-				<button @click="handlerepeatingForm" type="primary">查看重复表</button>
+				<button @click="handlerepeatingForm" type="primary">查看明细</button>
 			</uni-card>
 			<uni-popup v-if="repeatingFormNotEmpty" ref="repeatingFormPopup">
 				<uni-card margin="0px" spacing="0px" padding="0px">

+ 4 - 0
pages/process/index.vue

@@ -169,6 +169,10 @@ function handleToCancelProcess(process) {
 		editable: true,
 		placeholderText: '请输入撤回备注',
 		success: ({confirm, content}) => {
+			if (content == '') {
+				$modal.msgError('撤回备注不能为空!')
+				return
+			}
 			if (confirm) {
 				cancelProcessFlow(userStore.user.useId, content, process)
 				.then(({ returnMsg }) => {