ソースを参照

报告管理添加管理员修改功能

huangguoce 16 時間 前
コミット
aeb61bc9e4

+ 18 - 1
src/views/cw/reportManagement/ReportManagementList.vue

@@ -301,7 +301,7 @@
 									v-if="scope.row.signatureAnnotatorStatus !== '0'"
 									:type="$dictUtils.getDictLabel('cw_status_flag', scope.row.signatureAnnotatorStatus, '-')">
 									{{ $dictUtils.getDictLabel("cw_archive_status", scope.row.signatureAnnotatorStatus,
-									'-') }}
+										'-') }}
 								</el-button>
 								<el-button v-else effect="dark">
 									未发起
@@ -498,6 +498,10 @@
 									v-if="hasPermission('cw:workContract:filed') && scope.row.createById === $store.state.user.id && scope.row.rebackStatus === '2'"
 									text type="primary" @click="revocation(scope.row)">撤回</el-button>
 							</div>
+							<div v-if="isAdmin === false">
+								<el-button v-if="hasPermission('cwProjectReport:adminEdit')" text type="primary"
+									@click="adminEdit(scope.row.id)">修改</el-button>
+							</div>
 						</template>
 					</vxe-column>
 				</vxe-table>
@@ -508,6 +512,8 @@
 				</vxe-pager>
 			</div>
 		</div>
+		<ReportManagementUpdateForm ref="reportManagementUpdateForm" @refreshList="refreshList">
+		</ReportManagementUpdateForm>
 		<ReportManagementForm ref="reportManagementForm" @refreshList="refreshList"></ReportManagementForm>
 		<ReportApprovedAmountForm ref="reportApprovedAmountForm" @refreshList="refreshList"></ReportApprovedAmountForm>
 		<ReportManagementAddForm ref="reportManagementAddForm" @refreshList="refreshList"></ReportManagementAddForm>
@@ -538,6 +544,7 @@ import ProjectReportArchiveService from '@/api/cw/projectRecords/ProjectReportAr
 import taskService from '@/api/flowable/TaskService'
 import processService from '@/api/flowable/ProcessService'
 import ReportManagementForm from './ReportManagementForm'
+import ReportManagementUpdateForm from './ReportManagementUpdateForm'
 import ReportApprovedAmountForm from './ReportApprovedAmountForm'
 import ReportManagementAddForm from './ReportManagementAddForm'
 import pick from 'lodash.pick'
@@ -626,6 +633,7 @@ export default {
 	},
 	components: {
 		ReportManagementForm,
+		ReportManagementUpdateForm,
 		ReportApprovedAmountForm,
 		ReportManagementAddForm,
 		SelectUserTree,
@@ -685,6 +693,15 @@ export default {
 			// this.$refs.reportManagementTaskForm.init('edit', id)
 			this.$refs.reportManagementForm.init('edit', id, '')
 		},
+		// 管理员修改
+		adminEdit(id) {
+			id = id || this.$refs.clientTable.getCheckboxRecords().map(item => {
+				return item.id
+			})[0]
+			// this.$refs.workClientForm.init('edit', id)
+			// this.$refs.reportManagementTaskForm.init('edit', id)
+			this.$refs.reportManagementUpdateForm.init('edit', id, '')
+		},
 		// 审定金额修改
 		editApprovedAmount(id) {
 			id = id || this.$refs.clientTable.getCheckboxRecords().map(item => {

ファイルの差分が大きいため隠しています
+ 1688 - 0
src/views/cw/reportManagement/ReportManagementUpdateForm.vue