|
@@ -129,6 +129,7 @@
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="150" align="center" title="合同编号" field="contractNo"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="合同编号" field="contractNo"></vxe-column>
|
|
|
|
+ <vxe-column min-width="150" align="center" title="客户名称" field="clientContactsName"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="案卷号" field="filedNo"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="案卷号" field="filedNo"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="签约日期" field="signingDate"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="签约日期" field="signingDate"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="合同金额(元)" field="contractAmount"></vxe-column>
|
|
<vxe-column min-width="150" align="center" title="合同金额(元)" field="contractAmount"></vxe-column>
|
|
@@ -175,15 +176,15 @@
|
|
<!--归档撤回-->
|
|
<!--归档撤回-->
|
|
<!-- <el-button v-if="hasPermission('cw:workContract:back') && scope.row.status === '5' && scope.row.filedType === '2'" type="text" size="small" @click="rebackFiled(scope.row)">撤回</el-button>-->
|
|
<!-- <el-button v-if="hasPermission('cw:workContract:back') && scope.row.status === '5' && scope.row.filedType === '2'" type="text" size="small" @click="rebackFiled(scope.row)">撤回</el-button>-->
|
|
<!--合同借用-->
|
|
<!--合同借用-->
|
|
- <el-button v-if="hasPermission('cw:workContract:borrow') && scope.row.status === '5' && scope.row.filedPaperType === '5' && (scope.row.borrowType === undefined || scope.row.borrowType === '0' || scope.row.borrowType === '1')" type="text" size="small" @click="borrow(scope.row.id)">借用</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:borrow') && scope.row.status === '5' && scope.row.filedPaperType === '5' && (scope.row.borrowType === undefined || scope.row.borrowType === '0' || scope.row.borrowType === '1')" type="text" size="small" @click="borrow(scope.row)">借用</el-button>
|
|
<!--借用撤回-->
|
|
<!--借用撤回-->
|
|
<el-button v-if="hasPermission('cw:workContract:back') && scope.row.status === '5' && scope.row.filedPaperType === '5' && scope.row.borrowType === '2'" type="text" size="small" @click="rebackBorrow(scope.row)">撤回借用申请</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:back') && scope.row.status === '5' && scope.row.filedPaperType === '5' && scope.row.borrowType === '2'" type="text" size="small" @click="rebackBorrow(scope.row)">撤回借用申请</el-button>
|
|
<!--借用归还-->
|
|
<!--借用归还-->
|
|
<el-button v-if="hasPermission('cw:workContract:reture') && scope.row.status === '5' && scope.row.filedPaperType === '5' && scope.row.borrowType === '5'" type="text" size="small" @click="retureBorrow(scope.row)">归还合同</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:reture') && scope.row.status === '5' && scope.row.filedPaperType === '5' && scope.row.borrowType === '5'" type="text" size="small" @click="retureBorrow(scope.row)">归还合同</el-button>
|
|
|
|
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === undefined)" type="text" size="small" @click="paperFiled(scope.row.id)">纸质归档</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === undefined)" type="text" size="small" @click="paperFiled(scope.row)">纸质归档</el-button>
|
|
<!--纸质归档暂存修改-->
|
|
<!--纸质归档暂存修改-->
|
|
- <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && scope.row.filedPaperType === '1'" type="text" size="small" @click="paperFiled(scope.row.id)">纸质归档</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && scope.row.filedPaperType === '1'" type="text" size="small" @click="paperFiled(scope.row)">纸质归档</el-button>
|
|
<!--纸质归档撤回驳回修改-->
|
|
<!--纸质归档撤回驳回修改-->
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '3')" type="text" size="small" @click="paperFiledAndClose(scope.row.id)">纸质归档</el-button>
|
|
<el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '3')" type="text" size="small" @click="paperFiledAndClose(scope.row.id)">纸质归档</el-button>
|
|
<!--纸质归档撤回-->
|
|
<!--纸质归档撤回-->
|
|
@@ -683,15 +684,15 @@
|
|
}
|
|
}
|
|
}, */
|
|
}, */
|
|
// 借用
|
|
// 借用
|
|
- borrow (id) {
|
|
|
|
|
|
+ borrow (row) {
|
|
this.processService.getByName('会计-合同借用').then(({data}) => {
|
|
this.processService.getByName('会计-合同借用').then(({data}) => {
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
// console.log('data', data)
|
|
// console.log('data', data)
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
- let tabTitle = `发起流程【会计-合同借用】`
|
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [会计-合同借用]`
|
|
|
|
|
|
+ let tabTitle = ' ' + row.contractNo + ' - ' + row.contractName
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 ` + tabTitle + '[会计-合同借用]'
|
|
this.taskService.getTaskDef({ procDefId: data.id,
|
|
this.taskService.getTaskDef({ procDefId: data.id,
|
|
- businessId: id,
|
|
|
|
|
|
+ businessId: row.id,
|
|
businessTable: 'cw_work_contract_borrow',
|
|
businessTable: 'cw_work_contract_borrow',
|
|
status: 'startAndCloseBorrow'}).then((reture) => {
|
|
status: 'startAndCloseBorrow'}).then((reture) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -705,7 +706,7 @@
|
|
formUrl: reture.data.formUrl,
|
|
formUrl: reture.data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'cw_work_contract_borrow',
|
|
businessTable: 'cw_work_contract_borrow',
|
|
- businessId: id,
|
|
|
|
|
|
+ businessId: row.id,
|
|
isShow: false,
|
|
isShow: false,
|
|
routePath: '/cw/workContract/ContractRegistration'
|
|
routePath: '/cw/workContract/ContractRegistration'
|
|
}
|
|
}
|
|
@@ -756,15 +757,16 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 纸质归档
|
|
// 纸质归档
|
|
- paperFiled (id) {
|
|
|
|
|
|
+ paperFiled (row) {
|
|
|
|
+ console.log('row', row)
|
|
this.processService.getByName('会计-合同纸质归档').then(({data}) => {
|
|
this.processService.getByName('会计-合同纸质归档').then(({data}) => {
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
// console.log('data', data)
|
|
// console.log('data', data)
|
|
// 读取流程表单
|
|
// 读取流程表单
|
|
- let tabTitle = `发起流程【会计-合同纸质归档】`
|
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [会计-合同纸质归档]`
|
|
|
|
|
|
+ let tabTitle = ' ' + row.contractNo + ' - ' + row.contractName
|
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 ` + tabTitle + '[会计-合同纸质归档]'
|
|
this.taskService.getTaskDef({ procDefId: data.id,
|
|
this.taskService.getTaskDef({ procDefId: data.id,
|
|
- businessId: id,
|
|
|
|
|
|
+ businessId: row.id,
|
|
businessTable: 'cw_work_contract_file_paper',
|
|
businessTable: 'cw_work_contract_file_paper',
|
|
status: 'startAndHoldFiled'}).then((reture) => {
|
|
status: 'startAndHoldFiled'}).then((reture) => {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -779,7 +781,7 @@
|
|
formUrl: reture.data.formUrl,
|
|
formUrl: reture.data.formUrl,
|
|
formTitle: processTitle,
|
|
formTitle: processTitle,
|
|
businessTable: 'cw_work_contract_file_paper',
|
|
businessTable: 'cw_work_contract_file_paper',
|
|
- businessId: id,
|
|
|
|
|
|
+ businessId: row.id,
|
|
isShow: false,
|
|
isShow: false,
|
|
routePath: '/cw/workContract/ContractRegistration'
|
|
routePath: '/cw/workContract/ContractRegistration'
|
|
}
|
|
}
|