vue2-client 1.15.18 → 1.15.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -229,7 +229,7 @@
|
|
229
229
|
<a-form layout="vertical">
|
230
230
|
<a-form-item label="退回原因" :wrapper-col="{ span: 24 }" required>
|
231
231
|
<a-textarea
|
232
|
-
v-model="
|
232
|
+
v-model="backNote"
|
233
233
|
:auto-size="{ minRows: 4, maxRows: 10 }"
|
234
234
|
placeholder="请填写退回原因 / 备注"
|
235
235
|
/>
|
@@ -480,6 +480,7 @@ export default {
|
|
480
480
|
formValid: false,
|
481
481
|
// 备忘
|
482
482
|
note: '',
|
483
|
+
backNote: '', // 新增退回原因专用变量
|
483
484
|
// 是否是最后一步
|
484
485
|
lastStep: false,
|
485
486
|
// 存储每一步骤填表人和时间数据
|
@@ -754,7 +755,7 @@ export default {
|
|
754
755
|
})
|
755
756
|
},
|
756
757
|
async preClick () {
|
757
|
-
const notes = this.
|
758
|
+
const notes = this.backNote.trim()
|
758
759
|
if (!notes) {
|
759
760
|
this.$message.error('退回请在备注中填写理由')
|
760
761
|
return
|
@@ -768,8 +769,11 @@ export default {
|
|
768
769
|
res => {
|
769
770
|
this.saveWorkflowLog('退回', this.generateStepChangeText(this.currentStepId, this.preBtnTo), { notes })
|
770
771
|
this.$message.success('退回成功')
|
772
|
+
this.backNote = '' // 退回成功后清空退回原因
|
771
773
|
this.loading = true
|
772
774
|
this.loadingHistory = true
|
775
|
+
this.currentStepId = this.preBtnTo
|
776
|
+
this.activeStepId = this.preBtnTo
|
773
777
|
this.$emit('refresh')
|
774
778
|
this.onClose()
|
775
779
|
this.init()
|
@@ -920,6 +924,19 @@ export default {
|
|
920
924
|
},
|
921
925
|
// 根据当前节点,判断之后流程,以及按钮的显示
|
922
926
|
workflowControl () {
|
927
|
+
// 重置所有控制数据为默认值,避免之前状态的影响
|
928
|
+
this.showNextBtn = false
|
929
|
+
this.nextBtnTo = undefined
|
930
|
+
this.nextBtnTitle = ''
|
931
|
+
this.showStepNextBtn = false
|
932
|
+
this.stepNextBtnTo = undefined
|
933
|
+
this.stepNextBtnTitle = ''
|
934
|
+
this.stepNextBtnText = []
|
935
|
+
this.showPrevBtn = false
|
936
|
+
this.preBtnTo = undefined
|
937
|
+
this.preBtnTitle = ''
|
938
|
+
this.preBtnText = []
|
939
|
+
|
923
940
|
// 分类收集不同类型的actions
|
924
941
|
const submitActions = this.currentDirections.filter(item => item.type === 'submit')
|
925
942
|
const conditionalActions = this.currentDirections.filter(item => item.type === 'conditionalBranch')
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
-
<div>
|
4
|
-
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
-
<address-select :addressShow="showDialog"/>
|
6
|
-
</div>
|
7
|
-
</template>
|
8
|
-
|
9
|
-
<script>
|
10
|
-
import AddressSelect from '@/pages/addressSelect'
|
11
|
-
|
12
|
-
export default {
|
13
|
-
components: { AddressSelect },
|
14
|
-
data: () => ({
|
15
|
-
showDialog: false
|
16
|
-
}),
|
17
|
-
methods: {
|
18
|
-
open () {
|
19
|
-
console.log('打开选择地址弹窗')
|
20
|
-
this.showDialog = true
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
+
<div>
|
4
|
+
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
+
<address-select :addressShow="showDialog"/>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
import AddressSelect from '@/pages/addressSelect'
|
11
|
+
|
12
|
+
export default {
|
13
|
+
components: { AddressSelect },
|
14
|
+
data: () => ({
|
15
|
+
showDialog: false
|
16
|
+
}),
|
17
|
+
methods: {
|
18
|
+
open () {
|
19
|
+
console.log('打开选择地址弹窗')
|
20
|
+
this.showDialog = true
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|