Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2022-04-01 14:59:47 +08:00
6 changed files with 104 additions and 34 deletions
@@ -698,11 +698,15 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList (item) {
item.commentText = ''
this.$nextTick(() => {
if(item.form){
this.hisListForm = JSON.parse(JSON.stringify(item.form))
this.listForm = JSON.parse(JSON.stringify(item.form))
if(item.taskInfo === '被驳回之后的保存'){
this.commentText = item.commentText
}else{
this.commentText = ''
}
this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName
this.listForm['id'] = item.id
@@ -920,7 +924,7 @@ export default {
_formData.append("taskIds", this.taskIds);
_formData.append("prcType", "5");
_formData.append("json", JSON.stringify({
taskInfo: "选择已拆分标准",
taskInfo: "被驳回之后的保存",
form: this.listForm,
roleForm: this.roleForm,
commentText: this.commentText
@@ -1020,7 +1024,8 @@ export default {
commentText: this.commentText
}
};
let json = this.hisListForm
this.listForm.dataList = this.dataList
let json = this.listForm
this.$http.post("lawss/activiti/completeTaskNew", {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
@@ -43,7 +43,7 @@
</el-form-item>
<el-form-item label="标准编号" prop="standNumber" class="add-form-item form-item-disabled">
<el-input
v-model="form.standNumber"
v-model.trim="form.standNumber"
placeholder="请输入标准编号"
clearable
></el-input>
@@ -289,7 +289,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%; line-height: 40px">
<div v-for="(item,index) in xgdFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -314,7 +314,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in FBGBJBDFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -339,7 +339,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%; line-height: 40px">
<div v-for="(item,index) in ssgFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -364,7 +364,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in caFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -389,7 +389,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in zbjbdFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -416,7 +416,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in xdbFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -441,7 +441,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in kwjFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -468,7 +468,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in jdwjFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -493,7 +493,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in bpgFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -518,7 +518,7 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div style="width: 80%;line-height: 40px">
<div v-for="(item,index) in zqyjgFileList" :key="index" @click="filePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
{{ item.name }}
</div>
@@ -741,7 +741,7 @@ export default {
.wfhxzgStep1 {
/deep/ .el-table--scrollable-y .el-table__body-wrapper {
height: calc(100% - 57px) !important;
// height: calc(100% - 57px) !important;
}
/deep/ .el-drawer__container {
@@ -805,3 +805,19 @@ export default {
}
}
</style>
<style lang="less">
.wfhxzgStep1 {
.el-drawer__container {
}
/*.el-table{*/
/* overflow: auto;*/
/*}*/
/*.el-table__body-wrapper{*/
/* overflow:visible;*/
/*}*/
/*.el-table::after{*/
/* position: relative;*/
/*}*/
}
</style>
@@ -4618,13 +4618,15 @@ export default {
}
}
if(item){
if(item.advanceSearchVOStr.length){
advanceSearchVOList.push({
connect: item.advanceSearchVOStr[0].connect,
field: item.advanceSearchVOStr[0].field,
type: item.advanceSearchVOStr[0].type,
value: item.advanceSearchVOStr[0].value,
})
if(item.advanceSearchVOStr){
if(item.advanceSearchVOStr.length){
advanceSearchVOList.push({
connect: item.advanceSearchVOStr[0].connect,
field: item.advanceSearchVOStr[0].field,
type: item.advanceSearchVOStr[0].type,
value: item.advanceSearchVOStr[0].value,
})
}
}
}
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList)
@@ -764,6 +764,17 @@
:disabled="true"
></custom-input>
</template>
<template v-else-if="field.attrField === 'WJSCRYBUSS'">
<el-form-item
prop="WJSCRYBUSS"
label-width="150px"
class="add-form-item"
>
<template slot="label">文件上传人员</template>
<el-input v-model="sarBussionessStandEO[field.attrField]" :title="sarBussionessStandEO[field.attrField]" placeholder="选择文件上传人员" @click.native="choiceWJSCRY('WJSCRYBUSS', '选择文件上传人员', sarBussionessStandEO[field.attrField])">
</el-input>
</el-form-item>
</template>
<template v-else>
<custom-input
:config="field"
@@ -1475,7 +1486,12 @@
@checkedRole="checkedRole2"
:nodeList="nodeList2"
></Role-tree>
<Role-tree
:is-title="drawerTitle"
:is-visible.sync="modalShowRoleFlag1"
@checkedRole="checkedRole2"
:nodeList="nodeList3"
></Role-tree>
<Mechanism-tree
is-title="选择部门信息"
:is-visible.sync="modalshowflagZRBM"
@@ -2358,8 +2374,10 @@ export default {
drawerTitle4: '',
drawerTitle2: '',
modalShowRoleFlag: false,
modalShowRoleFlag1: false,
nodeList: [],
nodeList2: [],
nodeList3: [],
nodeListZRBM: [],
modalshowflagZRBM: false,
addOrUPdateFlag: 1, // 新增:1 修改:2
@@ -3625,6 +3643,24 @@ export default {
this.drawerTitle = title
this.modalShowRoleFlag = true
},
choiceWJSCRY(type, title, nameId) {
this.nodeList3 = []
if (nameId) {
let nameId1 = nameId.split(',')
let idList = []
nameId1.forEach(item => {
let a, b
a = item.substring(item.indexOf('(') +1)
b = a.substring(0, a.lastIndexOf(')'))
idList.push(b)
})
idList = idList.join(',')
this.nodeList3 = idList.split(',')
}
this.userType = type
this.drawerTitle = title
this.modalShowRoleFlag1 = true
},
checkedRole2(data) {
let idList = ''
let nameList = ''
@@ -3645,10 +3681,19 @@ export default {
if (this.drawerTitle === '查询起草人') {
this.sarBussionessSearch['QCRBUSS'] = nameList
}
this.$set(this.sarBussionessStandEO, 'QCRBUSS', nameList)
if (this.sarBussionessStandEO.QCRBUSS) {
this.$refs.sarBussionessStandForm.validateField('QCRBUSS')
if (this.drawerTitle === '选择起草人') {
this.$set(this.sarBussionessStandEO, 'QCRBUSS', nameList)
if (this.sarBussionessStandEO.QCRBUSS) {
this.$refs.sarBussionessStandForm.validateField('QCRBUSS')
}
}
if (this.drawerTitle === '选择文件上传人员') {
this.$set(this.sarBussionessStandEO, 'WJSCRYBUSS', nameList)
if (this.sarBussionessStandEO.WJSCRYBUSS) {
this.$refs.sarBussionessStandForm.validateField('WJSCRYBUSS')
}
}
// this.sarBussionessStandEO['QCRBUSS'] = nameList
},
choiceQCDW(type, title, id) {
@@ -4603,7 +4648,7 @@ export default {
this.OCRData = res.data
} else {
this.$message.warning('当前标准没有' + text + '文件')
this.this.OCRData = []
this.OCRData = []
}
}
})
@@ -3976,13 +3976,15 @@ export default {
}
if(item){
if(item.advanceSearchVOStr.length){
advanceSearchVOList.push({
connect: item.advanceSearchVOStr[0].connect,
field: item.advanceSearchVOStr[0].field,
type: item.advanceSearchVOStr[0].type,
value: item.advanceSearchVOStr[0].value,
})
if(item.advanceSearchVOStr){
if(item.advanceSearchVOStr.length){
advanceSearchVOList.push({
connect: item.advanceSearchVOStr[0].connect,
field: item.advanceSearchVOStr[0].field,
type: item.advanceSearchVOStr[0].type,
value: item.advanceSearchVOStr[0].value,
})
}
}
}
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList)