n20-common-lib 2.18.17 → 2.19.0
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
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</div>
|
|
102
102
|
</el-form-item>
|
|
103
103
|
</div>
|
|
104
|
-
<el-form-item :label="'审批意见' | $lc" :error="errMsg" :required="requiredC" class="m-t-s">
|
|
104
|
+
<el-form-item v-if="approveBtns" :label="'审批意见' | $lc" :error="errMsg" :required="requiredC" class="m-t-s">
|
|
105
105
|
<el-input
|
|
106
106
|
ref="msg-input"
|
|
107
107
|
v-model="messageC"
|
|
@@ -127,26 +127,6 @@
|
|
|
127
127
|
/>
|
|
128
128
|
</template> -->
|
|
129
129
|
</el-form-item>
|
|
130
|
-
<el-form-item v-if="fileKitT">
|
|
131
|
-
<span slot="label">
|
|
132
|
-
<span v-if="mustUploadWidget" style="color: red">*</span>
|
|
133
|
-
{{ $lc('附件上传') }}
|
|
134
|
-
</span>
|
|
135
|
-
<cl-upload
|
|
136
|
-
class="upload-224"
|
|
137
|
-
:file-name.sync="fileName"
|
|
138
|
-
multiple
|
|
139
|
-
:data="fileData"
|
|
140
|
-
:file-url.sync="fileUrl"
|
|
141
|
-
:on-success="onSuccess"
|
|
142
|
-
:on-remove="onRemove"
|
|
143
|
-
show-file-list
|
|
144
|
-
:action="
|
|
145
|
-
apiPrefix ? apiPrefix + `/neams/eamsbaserecord/batchSavejson` : `/neams/eamsbaserecord/batchSavejson`
|
|
146
|
-
"
|
|
147
|
-
msg-type="message"
|
|
148
|
-
/>
|
|
149
|
-
</el-form-item>
|
|
150
130
|
</el-form>
|
|
151
131
|
<!-- 加签按钮 -->
|
|
152
132
|
<div v-if="authList.includes('byAddTask') && addTaskList.length > 0" class="text-c">
|
|
@@ -165,6 +145,7 @@
|
|
|
165
145
|
</div>
|
|
166
146
|
|
|
167
147
|
<div v-else-if="!authList.includes('byAddTask')" class="text-c">
|
|
148
|
+
<div v-if="!approveBtns" style="text-align: center; font-size: 18px">请点击左上角返回处,进入OA待办页面</div>
|
|
168
149
|
<!-- 特殊会签按钮 START -->
|
|
169
150
|
<el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
|
|
170
151
|
btnsNames['pass']
|
|
@@ -172,7 +153,7 @@
|
|
|
172
153
|
<el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{ btnsNames['refuse'] }}</el-button>
|
|
173
154
|
<el-button v-if="authList.includes('takeOff')" plain @click="qjFn">{{ btnsNames['takeOff'] }}</el-button>
|
|
174
155
|
<!-- END -->
|
|
175
|
-
<el-button v-if="authList.includes('approval')" type="primary" @click="showAdvancePop">{{
|
|
156
|
+
<el-button v-if="authList.includes('approval') && approveBtns" type="primary" @click="showAdvancePop">{{
|
|
176
157
|
btnsNames['approval']
|
|
177
158
|
}}</el-button>
|
|
178
159
|
<!-- <el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">
|
|
@@ -182,7 +163,9 @@
|
|
|
182
163
|
>{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button
|
|
183
164
|
>
|
|
184
165
|
<el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button> -->
|
|
185
|
-
<el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{
|
|
166
|
+
<el-button v-if="authList.includes('reject') && approveBtns" plain @click="rejectFn">{{
|
|
167
|
+
btnsNames['reject']
|
|
168
|
+
}}</el-button>
|
|
186
169
|
<!-- <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
|
|
187
170
|
btnsNames['rejectPre']
|
|
188
171
|
}}</el-button>
|
|
@@ -515,7 +498,8 @@ export default {
|
|
|
515
498
|
approval: this.$l('批 准'),
|
|
516
499
|
discard: this.$l('作 废'),
|
|
517
500
|
rejectTo: this.$l('驳回至')
|
|
518
|
-
}
|
|
501
|
+
},
|
|
502
|
+
approveBtns: true
|
|
519
503
|
}
|
|
520
504
|
},
|
|
521
505
|
computed: {
|
|
@@ -557,36 +541,7 @@ export default {
|
|
|
557
541
|
methods: {
|
|
558
542
|
// 查询选择审批人
|
|
559
543
|
async showAdvancePop() {
|
|
560
|
-
|
|
561
|
-
if (this.mustUploadWidget && this.fileDtos.length === 0) {
|
|
562
|
-
this.$message.warning($lc(`请先上传附件`))
|
|
563
|
-
return false
|
|
564
|
-
}
|
|
565
|
-
this.beforeFn(this.beforeRatify, async () => {
|
|
566
|
-
try {
|
|
567
|
-
const res = await this.$axios.post(
|
|
568
|
-
'/bems/activiti/admin/todo/showAdvancePop',
|
|
569
|
-
{
|
|
570
|
-
isAgentcy: this.$route.query.isAgentcy,
|
|
571
|
-
taskId: this.$route.query.taskId
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
loading: false,
|
|
575
|
-
noMsg: true
|
|
576
|
-
}
|
|
577
|
-
)
|
|
578
|
-
// 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
|
|
579
|
-
if (res.code === 200 && res.data && (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)) {
|
|
580
|
-
this.setSpr = true
|
|
581
|
-
this.selectSprList = res.data
|
|
582
|
-
} else {
|
|
583
|
-
this.checkFlowFn()
|
|
584
|
-
}
|
|
585
|
-
} catch (error) {
|
|
586
|
-
console.log(error)
|
|
587
|
-
this.checkFlowFn()
|
|
588
|
-
}
|
|
589
|
-
})
|
|
544
|
+
this.checkFlowFn()
|
|
590
545
|
},
|
|
591
546
|
// 选择审批人
|
|
592
547
|
selectSprListFn(data) {
|
|
@@ -675,7 +630,6 @@ export default {
|
|
|
675
630
|
// 动态获取按钮
|
|
676
631
|
getBtns() {
|
|
677
632
|
if (!this.taskId || !this.showBtn) return false
|
|
678
|
-
|
|
679
633
|
axios
|
|
680
634
|
.get('/bems/activiti/admin/todo/authList/' + this.taskId, null, {
|
|
681
635
|
loading: false,
|
|
@@ -824,7 +778,7 @@ export default {
|
|
|
824
778
|
} else {
|
|
825
779
|
this.$emit('afterFn', str)
|
|
826
780
|
this.$message.success(str + $lc('成功'))
|
|
827
|
-
|
|
781
|
+
this.approveBtns = false
|
|
828
782
|
}
|
|
829
783
|
},
|
|
830
784
|
addErrFn() {
|