Bladeren bron

嘉溢项目bug调整

sangwenwei 1 jaar geleden
bovenliggende
commit
d99b3266f1

+ 1 - 1
src/views/common/UpLoadComponent.vue

@@ -52,7 +52,7 @@
         </el-table-column>
         <el-table-column label="操作" width="200px" fixed="right" align="center">
           <template  #default="scope">
-            <el-button :disabled="auth==='view'&&delFlag === false&&createBy!==scope.row.createBy.name" text type="primary" key="01" icon="el-icon-download" size="small" @click="toHref(scope.row)" >下载</el-button>
+            <el-button text type="primary" key="01" icon="el-icon-download" size="small" @click="toHref(scope.row)" >下载</el-button>
             <el-button text type="primary" key="02" icon="el-icon-delete" size="small"  @click="deleteById(scope.row, scope.$index)" :disabled="auth==='view'&&delFlag === false&&createBy!==scope.row.createBy.name">删除</el-button>
 <!--            <el-button v-if="createBy===scope.row.createBy.name" type="text"  icon="el-icon-delete" size="small"  @click="deleteById(scope.row, scope.$index)" :disabled="auth==='view'&&delFlag === false">删除2</el-button>-->
           </template>

+ 9 - 3
src/views/flowable/task/TaskForm.vue

@@ -144,7 +144,7 @@
 							</el-input>
 						</el-form-item>
 					</el-col>
-					<el-row v-show=" companyName !=='嘉溢'">
+					<el-row v-show=" companyName !=='嘉溢'&& status==='startAndHold'">
 						<el-col :span="16">
 							<el-form-item>
 								<el-checkbox v-model="isCC">是否抄送</el-checkbox>
@@ -424,7 +424,7 @@ export default {
 			this.statusFlag = this.$route.query.statusFlag
 			this.wareHouseId = this.$route.query.wareHouseId
 			this.returnId = this.$route.query.returnId
-			this.officeNcompanyNameame=this.$store.state.user.company.name
+			this.companyName=this.$store.state.user.company.name
 			if (this.commonJS.isEmpty(this.$route.query.isShow)) {
 				this.isShow = 'true'
 			} else {
@@ -697,6 +697,9 @@ export default {
 		// Process_1695863980264 嘉溢-合同归档
 		// Process_1697006029203 嘉溢-项目登记
 		// Process_1697425720571 嘉溢-用印申请
+		// Process_1697679946239 嘉溢-项目一级校审
+		// Process_1697680274149 嘉溢-项目二级校审
+		// Process_1697680423391 嘉溢-项目三级校审
 
 		// 驳回
 		reject(vars) {
@@ -738,7 +741,10 @@ export default {
 				this.procDefId.includes('Process_1694762268070') ||
 				this.procDefId.includes('Process_1695863980264') ||
 				this.procDefId.includes('Process_1697006029203') ||
-				this.procDefId.includes('Process_1697425720571')
+				this.procDefId.includes('Process_1697425720571') ||
+				this.procDefId.includes('Process_1697679946239') ||
+				this.procDefId.includes('Process_1697680274149') ||
+				this.procDefId.includes('Process_1697680423391')
 			) {
 				console.log('进入新版驳回')
 				this.$confirm(`确定驳回流程吗?`, '提示', {

+ 27 - 51
src/views/jy/project/ProjectDia.vue

@@ -276,54 +276,14 @@
 					highlight-current-row
 					:edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear:  status === 'audit' || status === 'taskFormDetail' ? true : false, icon: '#'}"
 				>
-					<vxe-table-column field="name" title="姓名" :edit-render="{name: '$input'}" align="center">
-						<template v-slot:edit="scope">
-							<vxe-input v-model="scope.row.name" :disabled="commonJS.isNotEmpty(scope.row.userId) || status === 'audit' || status === 'taskFormDetail'"  style="width: 100%">
-								<template #suffix>
-									<el-button :disabled="true"  @click="openUserSearch(scope.$rowIndex)" type="text" content="" icon="el-icon-search" ></el-button>
-								</template>
-							</vxe-input>
-						</template>
-					</vxe-table-column>
-					<vxe-table-column field="workHours" title="预计工时(时)" :edit-render="{name: '$input'}"  align="center">
-						<template v-slot:edit="scope">
-							<vxe-input
-								:disabled="true"
-								v-model="scope.row.workHours"
-								type="float"
-								digits="1"
-								placeholder="请输入预计工时(时)"
-								clearable>
-							</vxe-input>
-						</template>
-					</vxe-table-column>
-					<vxe-table-column  align="center" field="type" title="人员类型" :edit-render="{name: '$select', options: $dictUtils.getDictList('program_registered_member_type')}">
-						<template v-slot:edit="scope">
-							<vxe-select :disabled="true" v-model="scope.row.type" placeholder="请选择人员类型" clearable style="width: 100%;" transfer>
-								<vxe-option
-									v-for="item in $dictUtils.getDictList('program_registered_member_type')"
-									:key="item.value"
-									:label="item.label"
-									:value="item.value">
-								</vxe-option>
-							</vxe-select>
-						</template>
-					</vxe-table-column>
-					<vxe-table-column align="center" field="job" title="项目职务" :edit-render="{name: '$select', options: $dictUtils.getDictList('program_registered_member_position')}">
-						<template v-slot:edit="scope">
-							<vxe-select :disabled="true" v-model="scope.row.job" placeholder="请选择项目职务" clearable style="width: 100%;" transfer>
-								<vxe-option
-									v-for="item in $dictUtils.getDictList('program_registered_member_position')"
-									:key="item.value"
-									:label="item.label"
-									:value="item.value">
-								</vxe-option>
-							</vxe-select>
-						</template>
-					</vxe-table-column>
-					<vxe-table-column align="center" title="操作" width="100">
-						<template v-slot="scope">
-							<el-button :disabled="true" size="default" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'member')">删除</el-button>
+					<vxe-table-column min-width="218" align="center" field="name" title="姓名"></vxe-table-column>
+					<vxe-table-column min-width="218" align="center" field="officeName" title="部门"></vxe-table-column>
+					<vxe-table-column min-width="218" align="center" field="roleName" title="角色"></vxe-table-column>
+					<vxe-table-column min-width="218" align="center" field="mobile" title="手机号"></vxe-table-column>
+					<vxe-table-column min-width="218" align="center" field="status" title="状态">
+						<template #default="scope">
+							<span v-if="scope.row.status === '0'" style="color: #67C23A">正常</span>
+							<span v-else>移除</span>
 						</template>
 					</vxe-table-column>
 				</vxe-table>
@@ -332,9 +292,10 @@
 			  </el-col>
 		  </el-row>
 		  </el-form>
+		  <!--        附件-->
+		  <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
 	  </el-dialog>
-      <!--        附件-->
-      <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
+
       <ContractForm  ref="contractForm" @getContract="getContract"></ContractForm>
       <ContactForm  ref="contactForm" @getContract="getContact"></ContactForm>
 
@@ -349,6 +310,7 @@
 	import SelectUserTree from '@/views/utils/treeUserSelect'
 	import ProjectInfoService from "@/api/jy/ProjectInfoService";
 	import UpLoadComponent from '@/views/common/UpLoadComponent'
+	import userService from '@/api/sys/UserService'
   export default {
     props: {
       businessId: {
@@ -594,6 +556,20 @@
 						this.inputForm.clientList=data.clientList
 						this.inputForm.createByName=data.createById
 						this.inputForm.clientList=data.clientList
+						this.inputForm.members=data.projectMembers
+						if (this.commonJS.isEmpty(this.inputForm.members)) {
+							this.inputForm.cwProjectMembersDTOList = []
+						} else {
+							this.inputForm.members.forEach((member, index) => {
+								userService.queryDetailById(member.userId).then((data) => {
+									member.name = this.commonJS.isEmpty(data.name) ? '' : data.name
+									member.mobile = this.commonJS.isEmpty(data.mobile) ? '' : data.mobile
+									member.officeName = this.commonJS.isEmpty(data.officeDTO) ? '' : this.commonJS.isEmpty(data.officeDTO.name) ? '' : data.officeDTO.name
+									member.roleName = this.commonJS.isEmpty(data.roleList) ? '' : data.roleList.map(role => { return this.commonJS.isEmpty(role.name) ? '' : role.name }).join(',')
+									this.tableKeyMembers = Math.random()
+								})
+							})
+						}
 						this.getLocation()
 						// this.inputForm.cwWorkClientContactDTOList=data.cwWorkClientContactDTOList
 						console.log('data', data)
@@ -603,7 +579,7 @@
 						if (this.formReadOnly) {
 							method = 'view'
 						}
-						this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'jyProject', null, null, null, null, false)
+						this.$refs.uploadComponent.newUpload('view', this.inputForm.files, 'jyProject', null, null, null, null, null)
 						// this.$refs.archiveFile.newUpload('view', [], 'cwWorkContract', null, null, null, null, false)
 						this.loading = false
 					})

+ 63 - 72
src/views/jy/project/ProjectForm.vue

@@ -15,10 +15,10 @@
 					</el-form-item>
 				</el-col>
 				<el-row  :gutter="15" v-show="inputForm.contractStatus === '1'">
-					<el-col :span="24" >
-						<el-divider content-position="left"><i class="el-icon-document"></i>
-							<span style="color: red;border-top: 20px">*</span>选择合同
-						</el-divider>
+					<el-divider content-position="left"><i class="el-icon-document"></i>
+						<span style="color: red;border-top: 20px">*</span>选择合同
+					</el-divider>
+					<el-col :span="12" >
 						<el-form-item label="选择合同" prop="contractName"
 									  :rules="[
                  ]">
@@ -28,13 +28,6 @@
 						</el-form-item>
 					</el-col>
 					<el-col :span="12">
-						<el-form-item label="合同名称" prop="contractName"
-									  :rules="[
-                 ]">
-							<el-input :disabled="true" v-model="inputForm.contractName" placeholder="请填写合同名称"></el-input>
-						</el-form-item>
-					</el-col>
-					<el-col :span="12">
 						<el-form-item label="合同金额(元)" prop="amount"
 									  :rules="[
                  ]">
@@ -100,12 +93,11 @@
                       children: 'children'    // 子级字段名
                     }"
 							url="/system-server/sys/area/treeData"
-							:value="inputForm.projectPlace"
+							:value="computedProjectPlace"
 							:clearable="true"
 							size="large"
 							:accordion="true"
 							@getValue="(value) => {inputForm.projectPlace=value}"
-							@click="getLocation"
 						/>
 					</el-form-item>
 				</el-col>
@@ -270,54 +262,14 @@
 								highlight-current-row
 								:edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear:  status === 'audit' || status === 'taskFormDetail' ? true : false, icon: '#'}"
 							>
-								<vxe-table-column field="name" title="姓名" :edit-render="{name: '$input'}" align="center">
-									<template v-slot:edit="scope">
-										<vxe-input v-model="scope.row.name" :disabled="commonJS.isNotEmpty(scope.row.userId) || status === 'audit' || status === 'taskFormDetail'"  style="width: 100%">
-											<template #suffix>
-												<el-button :disabled="status === 'audit' || status === 'taskFormDetail'"  @click="openUserSearch(scope.$rowIndex)" type="text" content="" icon="el-icon-search" ></el-button>
-											</template>
-										</vxe-input>
-									</template>
-								</vxe-table-column>
-								<vxe-table-column field="workHours" title="预计工时(时)" :edit-render="{name: '$input'}"  align="center">
-									<template v-slot:edit="scope">
-										<vxe-input
-											:disabled="status === 'audit' || status === 'taskFormDetail'"
-											v-model="scope.row.workHours"
-											type="float"
-											digits="1"
-											placeholder="请输入预计工时(时)"
-											clearable>
-										</vxe-input>
-									</template>
-								</vxe-table-column>
-								<vxe-table-column  align="center" field="type" title="人员类型" :edit-render="{name: '$select', options: $dictUtils.getDictList('program_registered_member_type')}">
-									<template v-slot:edit="scope">
-										<vxe-select :disabled="status === 'audit' || status === 'taskFormDetail'" v-model="scope.row.type" placeholder="请选择人员类型" clearable style="width: 100%;" transfer>
-											<vxe-option
-												v-for="item in $dictUtils.getDictList('program_registered_member_type')"
-												:key="item.value"
-												:label="item.label"
-												:value="item.value">
-											</vxe-option>
-										</vxe-select>
-									</template>
-								</vxe-table-column>
-								<vxe-table-column align="center" field="job" title="项目职务" :edit-render="{name: '$select', options: $dictUtils.getDictList('program_registered_member_position')}">
-									<template v-slot:edit="scope">
-										<vxe-select :disabled="status === 'audit' || status === 'taskFormDetail'" v-model="scope.row.job" placeholder="请选择项目职务" clearable style="width: 100%;" transfer>
-											<vxe-option
-												v-for="item in $dictUtils.getDictList('program_registered_member_position')"
-												:key="item.value"
-												:label="item.label"
-												:value="item.value">
-											</vxe-option>
-										</vxe-select>
-									</template>
-								</vxe-table-column>
-								<vxe-table-column align="center" title="操作" width="100">
-									<template v-slot="scope">
-										<el-button size="default" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'member')">删除</el-button>
+								<vxe-table-column min-width="218" align="center" field="name" title="姓名"></vxe-table-column>
+								<vxe-table-column min-width="218" align="center" field="officeName" title="部门"></vxe-table-column>
+								<vxe-table-column min-width="218" align="center" field="roleName" title="角色"></vxe-table-column>
+								<vxe-table-column min-width="218" align="center" field="mobile" title="手机号"></vxe-table-column>
+								<vxe-table-column min-width="218" align="center" field="status" title="状态">
+									<template #default="scope">
+										<span v-if="scope.row.status === '0'" style="color: #67C23A">正常</span>
+										<span v-else>移除</span>
 									</template>
 								</vxe-table-column>
 							</vxe-table>
@@ -325,8 +277,17 @@
 					</el-row>
 				</el-col>
 			</el-row>
+<!--			<el-row  :gutter="15" v-show=" method==='view' || status ==='audit' ">-->
+<!--				<el-col :span="24">-->
+<!--					<el-divider content-position="left"><i class="el-icon-document"></i>-->
+<!--						<span>附件信息</span>-->
+<!--					</el-divider>-->
+<!--				</el-col>-->
+<!--			</el-row>-->
+
+
 		</el-form>
-		<!--        附件-->
+		<!--		&lt;!&ndash;        附件&ndash;&gt;-->
 		<UpLoadComponent ref="uploadComponent"></UpLoadComponent>
 		<ContractForm  ref="contractForm" @getContract="getContract"></ContractForm>
 		<ContactForm  ref="contactForm" @getContract="getContact"></ContactForm>
@@ -344,6 +305,7 @@
 	import ProjectInfoService from "@/api/jy/ProjectInfoService";
 	import UpLoadComponent from '@/views/common/UpLoadComponent'
 	import WorkClientChooseRadio from '../workClientInfo/WorkClientChooseRadio'
+	import userService from '@/api/sys/UserService'
 
 	export default {
 		props: {
@@ -382,7 +344,7 @@
 					processDefinitionId: '', // 流程信息
 					members: [], // 成员列表
 					files: [], // 附件信息
-					contractStatus: '',//合同情况
+					contractStatus: '1',//合同情况
 					contractType:'',//合同类型(小类)
 					contractTypeFirst:'', //合同类型(大类)
 					buildPlace:'', // 建设地点
@@ -414,7 +376,8 @@
 				},
 				provience:'',
 				city:'',
-				con:''
+				con:'',
+				formReadOnly:''
 			}
 		},
 		ProjectInfoService:null,
@@ -430,6 +393,14 @@
 				set (val) {
 					this.businessId = val
 				}
+			},
+			computedProjectPlace() {
+				if (this.commonJS.isNotEmpty(this.inputForm.projectPlace)){
+					this.getLocation()
+					return this.inputForm.projectPlace
+				}else {
+					this.getLocation()
+				}
 			}
 		},
 		watch: {
@@ -495,6 +466,7 @@
 					projectLeader:'', //项目负责人
 					clientList:[], //委托方联系人
 					files: [], // 附件信息
+					formReadOnly:''
 				}
 				this.inputForm.id = id
 				if (method === 'add') {
@@ -519,7 +491,20 @@
 							this.inputForm.clientList=data.clientList
 							this.inputForm.createByName=data.createById
 							this.inputForm.createDate=data.createTime
-							this.inputForm.clientList=data.clientList
+							this.inputForm.members=data.projectMembers
+							if (this.commonJS.isEmpty(this.inputForm.members)) {
+								this.inputForm.cwProjectMembersDTOList = []
+							} else {
+								this.inputForm.members.forEach((member, index) => {
+									userService.queryDetailById(member.userId).then((data) => {
+										member.name = this.commonJS.isEmpty(data.name) ? '' : data.name
+										member.mobile = this.commonJS.isEmpty(data.mobile) ? '' : data.mobile
+										member.officeName = this.commonJS.isEmpty(data.officeDTO) ? '' : this.commonJS.isEmpty(data.officeDTO.name) ? '' : data.officeDTO.name
+										member.roleName = this.commonJS.isEmpty(data.roleList) ? '' : data.roleList.map(role => { return this.commonJS.isEmpty(role.name) ? '' : role.name }).join(',')
+										this.tableKeyMembers = Math.random()
+									})
+								})
+							}
 							this.getLocation()
 							// this.inputForm.cwWorkClientContactDTOList=data.cwWorkClientContactDTOList
 							console.log('data', data)
@@ -529,7 +514,11 @@
 							if (this.formReadOnly) {
 								method = 'view'
 							}
-							this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'jyProject', null, null, null, null, false)
+							if (this.status === 'audit' || this.status === 'taskFormDetail') {
+								method = 'view'
+							}
+							console.log('me',this.method)
+							this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'jyProject', null, null, null, null, null)
 							// this.$refs.archiveFile.newUpload('view', [], 'cwWorkContract', null, null, null, null, false)
 							this.loading = false
 						})
@@ -559,7 +548,7 @@
 						} else {
 							_this.inputForm.clientList.forEach((client, index) => {
 								if (_this.inputForm.customerNo === client.no) {
-									_this.$refs.contactTable.remove(client)
+									_this.$refs.clientTable.remove(client)
 									_this.inputForm.clientList.splice(index, 1)
 								}
 							})
@@ -572,7 +561,8 @@
 				waitForEach().then(() => {
 					this.inputForm.contractId = row.id // 合同id
 					this.inputForm.contractName = row.name // 合同名称
-					this.inputForm.clientName = row.clientName // 委托方名称
+					this.inputForm.clientName = row.primaryLinkman // 委托方名称
+					this.inputForm.amount = row.contractAmount // 合同金额
 					this.inputForm.contractType = row.contractType // 合同类型(小类)
 					this.inputForm.contractTypeFirst = row.contractTypeFirst // 合同类型(大类)
 					const wait = function () {
@@ -621,7 +611,8 @@
 			},
 			//添加委托方联系人
 			getContact(row){
-				this.inputForm.clientList.push({name: row.linkmanList[0].name,id: row.linkmanList[0].id})
+				console.log('o',this.$store.state.user)
+				this.inputForm.clientList.push({name: row.linkmanList[0].name,id: row.linkmanList[0].id,linkPhone:row.linkmanList[0].linkPhone,linkMobile:row.linkmanList[0].linkMobile,position:row.linkmanList[0].position})
 				this.$refs.clientTable.insertAt({name: row.linkmanList[0].name,id: row.linkmanList[0].id,linkPhone:row.linkmanList[0].linkPhone,linkMobile:row.linkmanList[0].linkMobile,position:row.linkmanList[0].position})
 				this.clientTableKey = Math.random()
 			},
@@ -682,7 +673,7 @@
 								throw new Error()
 							} else {
 								this.loading = true
-								this.inputForm.workAttachmentList = this.$refs.uploadComponent.getDataList()
+								this.inputForm.files = this.$refs.uploadComponent.getDataList()
 								if (this.$store.state.user.office.name ==='总经办'){
 									this.inputForm.status = '5'
 								}else {
@@ -812,7 +803,7 @@
 							}
 						})
 					} else if (type === 'hold') {
-						this.programProjectListInfoService.queryById(this.inputForm.id).then((data) => {
+						this.projectInfoService.findById(this.inputForm.id).then((data) => {
 							if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
 								this.loading = false
 								this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
@@ -820,7 +811,7 @@
 							} else {
 								// 终止
 								let param = {status: '1', id: this.inputForm.id}
-								this.programProjectListInfoService.updateStatusById(param).then(() => {
+								this.projectInfoService.updateStatusById(param).then(() => {
 									this.loading = false
 									callback()
 								})

+ 88 - 44
src/views/jy/project/ProjectList.vue

@@ -12,7 +12,7 @@
 				<UserSelect :limit='1' :readonly="true" :modelValue="searchForm.createById" @update:modelValue='(value) => {searchForm.createById = value}'></UserSelect>
 			</el-form-item>
 			<el-form-item v-if="showHideItem" label="项目负责人" prop="projectLeader">
-				<el-input v-model="searchForm.projectLeader" placeholder="请输入项目负责人" clearable></el-input>
+				<UserSelect :limit='1' :readonly="true" :modelValue="searchForm.projectLeader" @update:modelValue='(value) => {searchForm.projectLeader = value}'></UserSelect>
 			</el-form-item>
 			<el-form-item v-if="showHideItem" label="合同名称" prop="contractName">
 				<el-input v-model="searchForm.contractName" placeholder="请输入合同名称" clearable></el-input>
@@ -218,31 +218,31 @@
 					</vxe-column>
 					<vxe-column title="操作" min-width="200px" fixed="right" align="center">
 						<template  #default="scope">
-							<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.status === '1' || scope.row.status === '3')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))" text type="primary"  @click="registeredPush(scope.row)">修改</el-button>
+							<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.status === '1' || scope.row.status === '3')&&scope.row.createBy === $store.state.user.id" text type="primary"  @click="registeredPush(scope.row)">修改</el-button>
 							<!--管理员角色登记完成后可修改-->
 							<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && isAdmin" text type="primary"  @click="edit(scope.row.id)">修改</el-button>
 							<!--项目负责人修改-->
 							<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '5' && scope.row.projectLeader === $store.state.user.id" text type="primary"  @click="edit(scope.row.id)">修改</el-button>
-							<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '2'&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))" text type="primary"  @click="registeredReback(scope.row)">撤回</el-button>
+							<el-button v-if="hasPermission('jy_project:info:edit')&&scope.row.status === '2'&&scope.row.createBy === $store.state.user.id" text type="primary"  @click="registeredReback(scope.row)">撤回</el-button>
 							<!--项目登记  审核-->
 							<el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" text type="primary"   @click="examine(scope.row)">登记审核</el-button>
 							<!--项目登记  被驳回后当前申请人重新调整-->
 							<el-button v-if="hasPermission('jy_project:info:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.status === '4'" text type="primary"   @click="adjust(scope.row)">驳回调整</el-button>
 
-							<el-button v-if="hasPermission('jy_project:info:del')&&(scope.row.status === '1' || scope.row.status === '3')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))" text type="primary"  @click="del(scope.row.id)">删除</el-button>
+							<el-button v-if="hasPermission('jy_project:info:del')&&(scope.row.status === '1' || scope.row.status === '3')&&scope.row.createBy === $store.state.user.id" text type="primary"  @click="del(scope.row.id)">删除</el-button>
 							<!--管理员角色登记完成后可删除-->
 							<el-button v-if="hasPermission('jy_project:info:del')&&scope.row.status === '5' && isAdmin" text type="primary"  @click="del(scope.row.id)">删除</el-button>
 
 							<!--              <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isEmpty(scope.row.reportNo) && scope.row.createBy === $store.state.user.id" text type="primary"  @click="saveReportNo(scope.row.id)">生成报告号</el-button>-->
 
 <!--							&lt;!&ndash; 一级校审  发起&ndash;&gt;-->
-<!--							<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&(scope.row.status1 === '0'||scope.row.status1 === '1'||scope.row.status1 === '3')" text type="primary"  @click="firstAuditPush(scope.row)">一级校审</el-button>-->
+							<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&(scope.row.firstInstanceStatus === '0'||scope.row.firstInstanceStatus === '1'||scope.row.firstInstanceStatus === '3')" text type="primary"  @click="firstAuditPush(scope.row)">一级校审</el-button>
 <!--							&lt;!&ndash; 一级校审  撤回&ndash;&gt;-->
-<!--							<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status1 === '2' &&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))" text type="primary"  @click="firstAuditReback(scope.row)">校审撤回</el-button>-->
+							<el-button v-if="hasPermission('program:registered:edit')&&scope.row.firstInstanceStatus === '2' &&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))" text type="primary"  @click="firstAuditReback(scope.row)">校审撤回</el-button>
 <!--							&lt;!&ndash; 一级校审  审核&ndash;&gt;-->
-<!--							<el-button v-if="scope.row.status1==='2' && checkIsAuditFirst(scope.row)" text type="primary"   @click="examineFirst(scope.row)">一级校审审核</el-button>-->
+							<el-button v-if="scope.row.firstInstanceStatus==='2' && checkIsAuditFirst(scope.row)" text type="primary"   @click="examineFirst(scope.row)">一级校审审核</el-button>
 <!--							&lt;!&ndash; 一级校审  被驳回后当前申请人重新调整&ndash;&gt;-->
-<!--							<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.status1 === '4'" text type="primary"   @click="adjustFirst(scope.row)">驳回调整</el-button>-->
+							<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.firstInstanceStatus === '4'" text type="primary"   @click="adjustFirst(scope.row)">驳回调整</el-button>
 
 <!--							&lt;!&ndash; 二级校审  发起&ndash;&gt;-->
 <!--							<el-button v-if="hasPermission('program:registered:edit')&&(scope.row.createBy === $store.state.user.id||haveProjectIds.includes(scope.row.id))&&scope.row.status1 === '5'&&(scope.row.status2 === '0'||scope.row.status2 === '1'||scope.row.status2 === '3')" text type="primary"  @click="secondAuditPush(scope.row)">二级校审</el-button>-->
@@ -311,8 +311,9 @@
 					@page-change="currentChangeHandle">
 				</vxe-pager>
 			</div>
+			<ProjectDia  ref="projectDia" @refreshDataList="refreshList"></ProjectDia>
 		</div>
-		<ProjectDia  ref="projectDia" @refreshDataList="refreshList"></ProjectDia>
+
 		<ProjectFormUpdate ref="projectFormUpdate" @refreshDataList="refreshList"></ProjectFormUpdate>
 		<ProofreadForm  ref="proofreadForm" @refreshDataList="refreshList"></ProofreadForm>
 		<ProofreadBrowseForm  ref="proofreadBrowseForm" @refreshDataList="refreshList"></ProofreadBrowseForm>
@@ -365,7 +366,9 @@ export default {
 			isAdmin: false,
 			processDefinitionId:'',
 			procDefKey:'',
-			haveProjectIds:''
+			haveProjectIds:'',
+			processDefinitionId1:'',
+			procDefKey1:''
 		}
 	},
 	ProjectInfoService:null,
@@ -436,6 +439,7 @@ export default {
 				'orders': this.tablePage.orders,
 				...this.searchForm
 			}).then((data) => {
+				console.log('s',data.records)
 				this.dataList = data.records
 				this.tablePage.total = data.total
 				this.loading = false
@@ -456,6 +460,12 @@ export default {
 					this.procDefKey = data.key
 				}
 			})
+			processService.getByName('嘉溢-项目一级校审').then((data) => {
+				if (!this.commonJS.isEmpty(data.id)) {
+					this.processDefinitionId1 = data.id
+					this.procDefKey1 = data.key
+				}
+			})
 		},
 		// 当前页
 		currentChangeHandle ({ currentPage, pageSize }) {
@@ -532,38 +542,38 @@ export default {
 			console.log('is',this.isAdmin)
 		},
 		// 发起项目登记审批
-		// registeredPush (row) {
-		// 	// 读取流程表单
-		// 	let title = `发起流程【项目登记审批】`
-		// 	let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[项目登记审批]`
-		// 	let status = 'startAndHold'
-		// 	if (row.status === '3') {
-		// 		status = 'startAndClose'
-		// 	} else if (row.status === '4') {
-		// 		status = 'reapplyFlag'
-		// 	}
-		// 	taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
-		// 		businessId: row.id,
-		// 		businessTable: 'program_project_list_info'}).then((data) => {
-		// 		this.$router.push({
-		// 			path: '/flowable/task/TaskForm',
-		// 			query: {
-		// 				...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
-		// 				procDefId: this.processDefinitionAuditId,
-		// 				procDefKey: this.procDefAuditKey,
-		// 				title: title,
-		// 				formType: data.formType,
-		// 				formUrl: data.formUrl,
-		// 				formTitle: processTitle,
-		// 				businessTable: 'program_project_list_info',
-		// 				businessId: row.id,
-		// 				isShow: 'false',
-		// 				status: status,
-		// 				routePath: '/program/registered/ProjectList'
-		// 			}
-		// 		})
-		// 	})
-		// },
+		registeredPush (row) {
+			// 读取流程表单
+			let title = `发起流程【嘉溢-项目登记】`
+			let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[嘉溢-项目登记]`
+			let status = 'startAndHold'
+			if (row.status === '3') {
+				status = 'startAndClose'
+			} else if (row.status === '4') {
+				status = 'reapplyFlag'
+			}
+			taskService.getTaskDef({ procDefId: this.processDefinitionId,
+				businessId: row.id,
+				businessTable: 'jy_project_record'}).then((data) => {
+				this.$router.push({
+					path: '/flowable/task/TaskForm',
+					query: {
+						...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+						procDefId: this.processDefinitionId,
+						procDefKey: this.procDefKey,
+						title: title,
+						formType: data.formType,
+						formUrl: data.formUrl,
+						formTitle: processTitle,
+						businessTable: 'jy_project_record',
+						businessId: row.id,
+						isShow: 'false',
+						status: status,
+						routePath: '/jy/project/ProjectList'
+					}
+				})
+			})
+		},
 		// // 查看项目登记审批流程结果
 		registeredDetail (row) {
 			if (row.status !== '0' && row.status !== '1') {
@@ -669,13 +679,14 @@ export default {
 				this.$router.push({
 					path: '/flowable/task/TaskForm',
 					query: {
-						...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId'),
+						...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId','method'),
 						isShow: false,
 						formReadOnly: true,
 						formTitle: `${data.taskName}`,
 						cUser: cUser,
 						title: `审批【${data.taskName || ''}】`,
-						routePath: '/jy/project/ProjectList'   // 数据处理后需要跳转的页面路径
+						routePath: '/jy/project/ProjectList' , // 数据处理后需要跳转的页面路径
+						method:'view'
 					}
 				})
 			})
@@ -683,6 +694,39 @@ export default {
 		viewContract (id) {
 			this.$refs.contractAddForm.init('view', id)
 		},
+		// 发起一级校审
+		firstAuditPush (row) {
+			// 读取流程表单
+			let title = `发起流程【嘉溢-项目一级校审】`
+			let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[嘉溢-项目一级校审]`
+			let status = 'startAndHold'
+			if (row.firstInstanceStatus === '3') {
+				status = 'startAndClose'
+			} else if (row.firstInstanceStatus === '4') {
+				status = 'reapplyFlag'
+			}
+			taskService.getTaskDef({ procDefId: this.processDefinitionId1,
+				businessId: row.auditId1,
+				businessTable: 'jy_project_audit'}).then((data) => {
+				this.$router.push({
+					path: '/flowable/task/TaskForm',
+					query: {
+						...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+						procDefId: this.processDefinitionId1,
+						procDefKey: this.procDefKey1,
+						title: title,
+						formType: data.formType,
+						formUrl: data.formUrl,
+						formTitle: processTitle,
+						businessTable: 'program_audit',
+						businessId: row.auditId1,
+						isShow: 'false',
+						status: status,
+						routePath: '/program/registered/ProjectList'
+					}
+				})
+			})
+		},
 	}
 }
 </script>

+ 8 - 4
src/views/jy/workContractInfo/ContractAddForm.vue

@@ -225,9 +225,9 @@
 							highlight-current-row
 							:edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear: false}"
 						>
-							<vxe-table-column align="center" field="no" title="客户编号" :edit-render="{}">
+							<vxe-table-column align="center" field="number" title="客户编号" :edit-render="{}">
 								<template v-slot:edit="scope">
-									<el-input :readonly="true" v-model="scope.row.no" placeholder="客户编号" clearable></el-input>
+									<el-input :readonly="true" v-model="scope.row.number" placeholder="客户编号" clearable></el-input>
 								</template>
 							</vxe-table-column>
 							<vxe-table-column align="center" field="name" title="客户名称" :edit-render="{}">
@@ -342,6 +342,7 @@
           uscCode: '',
           customerNo: '',
           contractFees: [],
+			workAttachmentList: [],
           contractFee: '',
           contractNo: '',
           contractType: '',
@@ -521,7 +522,8 @@
           contractOpposite: '',
 			contractTypes:[],
 			primaryLinkman:'',
-			contractTypeFirst:''
+			contractTypeFirst:'',
+			workAttachmentList:[]
         }
         this.inputForm.id = id
 
@@ -546,9 +548,11 @@
           // this.$refs.archiveFile.clearUpload()
 			if (this.commonJS.isNotEmpty(this.inputForm.id)){
 				this.contractService.findContractById(this.inputForm.id).then((data) => {
+					console.log('a',data)
 					this.inputForm = this.recover(this.inputForm, data)
 					this.inputForm.contractNo=data.no
 					this.inputForm.contractTypes=data.contractTypeList
+					this.inputForm.cwWorkClientContactDTOList=data.cwWorkClientContactDTOList
 					if(data.contractType){
 						this.showType(data.contractType)
 					}else {
@@ -570,7 +574,7 @@
 					if (this.status === 'audit' || this.status === 'taskFormDetail') {
 						method = 'view'
 					}
-					this.$refs.uploadComponent.newUpload(method, this.inputForm.contractProperList, 'jyWorkContract', null, null, null, null, false)
+					this.$refs.uploadComponent.newUpload(method, this.inputForm.workAttachmentList, 'jyWorkContract', null, null, null, null, false)
 					// this.$refs.archiveFile.newUpload('view', [], 'cwWorkContract', null, null, null, null, false)
 					this.loading = false
 				})

+ 36 - 5
src/views/jy/workContractInfo/JyWorkContractList.vue

@@ -10,7 +10,7 @@
 				<el-input  v-model="searchForm.name" placeholder="请输入合同名称" clearable></el-input>
 			</el-form-item>
 
-			<el-form-item label="合同编号" prop="name">
+			<el-form-item label="合同编号" prop="no">
 				<el-input  v-model="searchForm.no" placeholder="请输入合同编号" clearable></el-input>
 			</el-form-item>
 
@@ -64,6 +64,8 @@
 					placement="bottom-start"
 					v-model="searchForm.createDates"
 					type="datetimerange"
+					format="YYYY-MM-DD HH:mm:ss"
+					value-format="YYYY-MM-DD HH:mm:ss"
 					range-separator="至"
 					start-placeholder="开始日期"
 					end-placeholder="结束日期">
@@ -132,11 +134,11 @@
 					<vxe-column title="操作" width="200px" fixed="right" align="center">
 						<template  #default="scope">
 							<!--归档暂存修改-->
-							<el-button v-if="hasPermission('jy_work_contract:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.filedType === '0' || scope.row.filedType === '1')" text type="primary"  @click="updateFiled(scope.row.id)">修改</el-button>
+							<el-button v-if="hasPermission('jy_work_contract:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.filedType === '0' || scope.row.filedType === '1' ||scope.row.filedType === '3')" text type="primary"  @click="updateFiled(scope.row)">修改</el-button>
 							<!--归档撤回-->
 							<el-button v-if="hasPermission('jy_work_contract:info:back') && scope.row.filedType === '2'  && scope.row.createId === $store.state.user.id" text type="primary"   @click="rebackFiled(scope.row)">撤回</el-button>
 							<!--              合同归档  审核-->
-							<el-button v-if="scope.row.filedType==='2' && checkIsAuditFiled(scope.row)" text type="primary"   @click="examineFiled(scope.row)">审核</el-button>
+							<el-button v-if="scope.row.filedType==='2' && checkIsAudit(scope.row)" text type="primary"   @click="examineFiled(scope.row)">审核</el-button>
 							<!--              合同归档  被驳回后当前申请人重新调整-->
 							<el-button v-if="hasPermission('jy_work_contract:info:edit')&&scope.row.createId === $store.state.user.id&&scope.row.filedType === '4'" text type="primary"   @click="adjustFiled(scope.row)">驳回调整</el-button>
 							</template>
@@ -503,8 +505,37 @@
 			// 	})
 			// },
 			//修改
-			updateFiled(id){
-				this.$refs.contractAddForm.init('edit', id)
+			//暂存修改
+			updateFiled(row){
+				let tabTitle = `发起流程【嘉溢-合同归档】`
+				let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[嘉溢-合同归档]`
+				let status = 'startAndHold'
+				if (row.filedType === '3') {
+					status = 'startAndClose'
+				} else if (row.filedType === '4') {
+					status = 'reapplyFlag'
+				}
+				taskService.getTaskDef({ procDefId: this.processDefinitionId,
+					businessId: row.id,
+					businessTable: 'work_contract_info'}).then((data) => {
+					this.$router.push({
+						path: '/flowable/task/TaskForm',
+						query: {
+							...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+							procDefId: this.processDefinitionId,
+							procDefKey: this.procDefKey,
+							title: tabTitle,
+							formType: data.formType,
+							formUrl: data.formUrl,
+							formTitle: processTitle,
+							businessTable: 'jy_work_contract_info',
+							businessId: row.id,
+							isShow: 'false',
+							status: status,
+							routePath: '/jy/workContractInfo/JyWorkContractList'
+						}
+					})
+				})
 			},
 			// 归档详情
 			detailFiled (row) {

+ 11 - 10
src/views/jy/workContractInfo/WorkContractForm.vue

@@ -62,7 +62,8 @@
 			value: 'value',
 			label: 'label', // 显示名称
 			children: 'children', // 子级字段名
-			multiple: true
+			multiple: true,
+			emitPath: false
 		}"
 							/>
 
@@ -234,9 +235,9 @@
 									highlight-current-row
 									:edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear: false}"
 								>
-									<vxe-table-column align="center" field="no" title="客户编号" :edit-render="{}">
+									<vxe-table-column align="center" field="number" title="客户编号" :edit-render="{}">
 										<template v-slot:edit="scope">
-											<el-input :readonly="true" v-model="scope.row.no" placeholder="客户编号" clearable></el-input>
+											<el-input :readonly="true" v-model="scope.row.number" placeholder="客户编号" clearable></el-input>
 										</template>
 									</vxe-table-column>
 									<vxe-table-column align="center" field="name" title="客户名称" :edit-render="{}">
@@ -553,10 +554,10 @@
 					// this.$refs.archiveFile.clearUpload()
 					if (this.commonJS.isNotEmpty(this.inputForm.id)){
 						this.contractService.findContractById(this.inputForm.id).then((data) => {
-							console.log('1',data)
+							console.log('1',data.contractTypeList)
 							this.inputForm = this.recover(this.inputForm, data)
 							this.inputForm.contractNo=data.no
-							this.inputForm.contractTypes=data.contractTypeList
+							this.inputForm.contractTypes=data.contractTypes
 							if(data.contractType){
 								this.showType(data.contractType)
 							}else {
@@ -573,7 +574,7 @@
 							}
 
 							this.inputForm.department=data.department
-							console.log('data',data)
+							console.log('data',this.inputForm)
 							if (this.commonJS.isEmpty(this.inputForm.department)) {
 								this.inputForm.department = this.$store.state.user.office.id
 							}
@@ -703,8 +704,8 @@
 					}
 					wait().then(() => {
 						if (_num === 0) {
-							this.inputForm.cwWorkClientContactDTOList.push({no: list.number, name: list.name})
-							this.$refs.contactTable.insertAt({name: list.name,id: list.id,no: list.number})
+							this.inputForm.cwWorkClientContactDTOList.push({number: list.number, name: list.name})
+							this.$refs.contactTable.insertAt({name: list.name,id: list.id,number: list.number})
 							this.tableKeyClient = Math.random()
 						}
 					})
@@ -946,7 +947,6 @@
 						option.disabled = true
 					}
 				})
-
 			},
 
 			// 表单提交
@@ -1013,7 +1013,8 @@
 						this.loading = true
 						this.inputForm.workAttachmentList = this.$refs.uploadComponent.getDataList()
 						this.inputForm.filedType = '2'
-						// this.inputForm.contractTypes=[]
+						console.log('in',this.inputForm)
+
 						await this.contractService.save(this.inputForm).then((data) => {
 							this.inputForm.id = data.businessId
 							callback(data.businessTable, data.businessId, this.inputForm)

+ 10 - 8
src/views/materialManagement/userSeal/SignetAddForm.vue

@@ -233,11 +233,11 @@
 				this.$nextTick(() => {
 					this.$refs.inputForm.resetFields()
 					this.loading = true
+					this.$refs.uploadComponent.clearUpload()
 					if (this.commonJS.isNotEmpty(this.inputForm.id)) {
 						console.log('this.inputForm.id', this.inputForm.id)
 						this.signetService.queryById(this.inputForm.id).then((data)=>{
 							console.log('s',data)
-							this.$refs.uploadComponent.clearUpload()
 							this.inputForm = this.recover(this.inputForm, data)
 							var list=data.projectList
 							this.inputForm.projectList=list
@@ -246,8 +246,8 @@
 							if (this.commonJS.isEmpty(this.inputForm.createDate)) {
 								this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD')
 							}
+							this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'jySeal',null, null, null, null, false)
 						})
-						this.$refs.uploadComponent.newUpload(method, this.inputForm.types, 'jySeal')
 						this.loading = false
 					}
 				})
@@ -314,11 +314,7 @@
 					// 暂存
 					this.loading = true
 					this.inputForm.status = '1'
-					this.inputForm.workAttachmentDtoList = this.$refs.uploadComponent.getDataList()
-					if (this.commonJS.isEmpty(this.inputForm.reportType)) {
-						this.$message.error('请选择报备类型')
-						this.loading = false
-					}
+					this.inputForm.files = this.$refs.uploadComponent.getDataList()
 					if (this.commonJS.isEmpty(this.inputForm.types)) {
 						this.$message.error('请选择用印类型')
 						this.loading = false
@@ -401,6 +397,12 @@
 			},
 			insertEvent(type) {
 				if (type === 'base') {
+					if (this.inputForm.projectList.length>=1){
+						if (this.commonJS.isEmpty(this.inputForm.projectList[0].projectId)){
+							this.$message.error('第一行不能为空')
+							return
+						}
+					}
 					this.$refs.baseTable.insertAt({})
 					this.inputForm.projectList.push({})
 					this.baseKey = Math.random()
@@ -492,7 +494,7 @@
 							} else {
 								// 终止
 								let param = {status: '1', id: this.inputForm.id}
-								financeInvoiceService.updateStatusById(param).then(() => {
+								this.signetService.updateStatusById(param).then(() => {
 									this.loading = false
 									callback()
 								})

+ 30 - 9
src/views/materialManagement/userSeal/SignetList.vue

@@ -97,11 +97,12 @@
           <vxe-column title="操作" width="150px" fixed="right" align="center">
             <template  #default="scope">
               <div v-if="isAdmin">
-<!--                <el-button text type="primary"  @click="edit(scope.row.id)">修改</el-button>-->
                 <el-button text type="primary" size="small" v-if="scope.row.status==='0' || scope.row.status==='5'" @click="del(scope.row.id)">删除</el-button>
               </div>
               <div v-else>
-              <!--              当前申请人撤回-->
+				  <el-button text type="primary" size="small" v-if="scope.row.status==='0' || scope.row.status==='1'|| scope.row.status==='3'" @click="del(scope.row.id)">删除</el-button>
+				  <el-button v-if="scope.row.status === '1'|| scope.row.status === '3'" size="small" text type="primary"  @click="edit(scope.row)">修改</el-button>
+				  <!--              当前申请人撤回-->
                 <el-button v-if="scope.row.createById === $store.state.user.id && scope.row.status==='2'" text type="primary" size="small" @click="reback(scope.row)">撤回</el-button>
 
                 <el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" text type="primary" size="small" @click="examine(scope.row)">审核</el-button>
@@ -122,9 +123,9 @@
         <SupplierChooseForm ref="supplierChooseForm" @getSupplier="getSupplier"></SupplierChooseForm>
 		  <ProgramForm ref="programForm"></ProgramForm>
 
-		  <el-dialog v-model="dialogTableVisible" width="1100px"
+		  <el-dialog v-model="dialogTableVisible" width="1100px" v-dialogDrag append-to-body :close-on-click-modal="false"
 					 height="auto" title="关联项目">
-			  <el-table :data="gridData" width="auto"  border="inner" height="550px">
+			  <el-table :data="gridData" width="auto"  border="inner" highlight-current-row>
 				  <el-table-column property="name" label="项目名称" width="200" >
 					  <template #default="scope">
 						  <el-link  type="primary" :underline="false" @click="openProject(scope.row.id)">{{scope.row.name}}</el-link>
@@ -253,11 +254,31 @@ export default {
 		  })
       },
       // 修改
-      edit (id) {
-        id = id || this.$refs.clientTable.getCheckboxRecords().map(item => {
-          return item.id
-        })[0]
-        this.$refs.wareHouseAddForm.init('edit', id)
+      edit (row) {
+		  let tabTitle = `发起流程【嘉溢-用印流程】`
+		  let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [嘉溢-用印流程]`
+		  taskService.getTaskDef({ procDefId: this.processDefinitionId,
+			  businessId: row.id,
+			  businessTable: 'jy_user_signet',
+			  status: 'startAndHold'}).then((data) => {
+			  this.$router.push({
+				  path: '/flowable/task/TaskForm',
+				  query: {
+					  ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+					  procDefId: this.processDefinitionId,
+					  procDefKey: this.procDefKey,
+					  status: 'startAndHold',
+					  title: tabTitle,
+					  formType: data.formType,
+					  formUrl: data.formUrl,
+					  formTitle: processTitle,
+					  businessId: row.id,
+					  businessTable: 'jy_user_signet',
+					  isShow: false,
+					  routePath: '/materialManagement/userSeal/SignetList'
+				  }
+			  })
+		  })
       },
       // 查看
       view (row) {