Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
| | |
| | | processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => { |
| | | if (res.data.data.records && res.data.data.records.length != 0) { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + '-申请[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.processName = this.userName + '-申请[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.type = 'PUBLIC'; |
| | | this.parameter.code = this.templateOid; |
| | | this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; |
| | |
| | | processTS({templateId: this.templateOid, buttonTypeKey: 'DISABLE'}).then(res => { |
| | | if (res.data.records != [] && res.data.data.records.length != 0) { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + '-停用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.processName = this.userName + '-停用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.type = 'DISABLE'; |
| | | this.parameter.code = this.templateOid |
| | | this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; |
| | |
| | | if (res.data.data.records && res.data.data.records.length != 0) { |
| | | this.parameter = res.data.data.records[0] |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + '-启用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.processName = this.userName + '-启用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.type = 'Released'; |
| | | this.parameter.code = this.templateOid |
| | | this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; |
| | |
| | | processTS({templateId: this.templateOid, buttonTypeKey: 'ROLLBACK'}).then(res => { |
| | | if (res.data.records != [] && res.data.data.records.length != 0) { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + '-回收[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.processName = this.userName + '-回收[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']'; |
| | | this.parameter.type = 'TakeBack'; |
| | | this.parameter.code = this.templateOid |
| | | this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; |
| | |
| | | } |
| | | } |
| | | }, |
| | | crudArrayFlag:{ |
| | | handler(newval,olaval){ |
| | | console.log('crudArrayFlag',newval) |
| | | } |
| | | }, |
| | | crudArray:{ |
| | | handler(newval,oldval){ |
| | | if(newval != undefined){ |
| | |
| | | if(item.componentRule){ |
| | | //组合规则 |
| | | num++ |
| | | console.log('componentRule',num) |
| | | } |
| | | if(item.enumString || item.enumId){ |
| | | //枚举 |
| | | num++ |
| | | console.log('enumString',num) |
| | | } |
| | | if(item.referConfig || item.referBtmId){ |
| | | //参照 |
| | | num++ |
| | | console.log('referConfig',num) |
| | | } |
| | | if(item.codeDateFormat){ |
| | | //时间格式 |
| | | num++ |
| | | console.log('codeDateFormat',num) |
| | | } |
| | | if(item.classifyInvokeLevel){ |
| | | //如果空后台返回none |
| | | if(item.classifyInvokeLevel && item.classifyInvokeLevel != 'none'){ |
| | | //分类注入 |
| | | num++ |
| | | console.log('classifyInvokeLevel',num) |
| | | console.log(item.classifyInvokeLevel) |
| | | } |
| | | if(num>1 && ischeck){ |
| | | this.$message({ |
| | |
| | | label: '英文名称' |
| | | } |
| | | ], |
| | | SelectValue:"", |
| | | SelectValue:"id", |
| | | SelectFInd:"", |
| | | addFlag:false, |
| | | // 表格当前行id |
| | |
| | | } |
| | | }, |
| | | watch:{ |
| | | TreeFlagCode:{ |
| | | handler(newval,oldval){ |
| | | console.log('TreeFlagCode',newval) |
| | | } |
| | | } |
| | | |
| | | }, |
| | | //tab栏默认是表格 |
| | | mounted() { |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | // 关闭弹窗 |
| | | |
| | | /** 导入 */ |
| | | ImportExcel(){ |
| | | this.ThemeImportVisible=true; |
| | |
| | | 'conditionMap[id]':this.SelectFInd |
| | | } |
| | | this.MasterdefaultRend(masterParameter); |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | }else if(this.SelectValue == 'name'){ |
| | | const masterParameter={ |
| | | 'conditionMap[name]':this.SelectFInd |
| | | } |
| | | this.MasterdefaultRend(masterParameter) |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | //编码规则确定 |
| | |
| | | 'conditionMap[id]':this.SelectFInd |
| | | } |
| | | this.KeydefaultRend(masterParameter); |
| | | this.SelectValue=""; |
| | | this.SelectFInd=""; |
| | | }else if(this.SelectValue == 'name'){ |
| | | const masterParameter={ |
| | | 'conditionMap[name]':this.SelectFInd |
| | | } |
| | | this.KeydefaultRend(masterParameter) |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | //关键属性接口 |
| | |
| | | 'conditionMap[id]':this.SelectFInd |
| | | } |
| | | this.simdefaultRend(masterParameter); |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | }else if(this.SelectValue == 'name'){ |
| | | const masterParameter={ |
| | | 'conditionMap[name]':this.SelectFInd |
| | | } |
| | | this.simdefaultRend(masterParameter) |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | // 相似项多选 |
| | |
| | | 'conditionMap[id]':this.SelectFInd |
| | | } |
| | | this.btmdefaultRend(masterParameter); |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | }else if(this.SelectValue == 'name'){ |
| | | const masterParameter={ |
| | | 'conditionMap[name]':this.SelectFInd |
| | | } |
| | | this.btmdefaultRend(masterParameter); |
| | | this.SelectValue=""; |
| | | this.SelectFInd=""; |
| | | } |
| | | }, |
| | | //业务类型多选 |
| | |
| | | this.editTreeFLagCode = !data.parentId; |
| | | this.nodeClickList = data; |
| | | this.selectRow = 0; |
| | | this.crudArray=[] |
| | | try { |
| | | this.requestCount += 1; |
| | | const [res1, res2, res3] = await Promise.all([ |
| | |
| | | } |
| | | }, |
| | | //克隆模板单选框改变 |
| | | selectionChange(row){ |
| | | this.CloneSelect=row; |
| | | //双向绑定,提交表单输入框回填上当前选择的数据 |
| | | this.CloneModel.id=row[0].id; |
| | | this.CloneModel.name=row[0].name; |
| | | //这里有点绕,CloneSelect是我选择框选择的数据。等于this.nodeClickList.oid是因为,克隆模板传递数据要把当前选择树的oid传递给后端。而不是当前要克隆模板的oid |
| | | this.CloneSelect[0].codeclassifyoid=this.nodeClickList.oid |
| | | selectionChange(row) { |
| | | Object.assign(this.CloneModel, row[0]); |
| | | this.CloneSelect = [row[0]]; |
| | | this.CloneSelect[0].codeclassifyoid = this.nodeClickList.oid; |
| | | }, |
| | | //克隆表单提交 |
| | | Clonesubmit(row,done){ |
| | | //重新赋值CloneSelect传递的数据为输入框可以修改的数据,CloneModel提交表单输入框双向绑定数据 |
| | | this.CloneSelect[0].id=this.CloneModel.id; |
| | | this.CloneSelect[0].name=this.CloneModel.name; |
| | | copy(this.CloneSelect[0]).then(()=>{ |
| | | //因为是嵌套弹窗所以手动关闭CloneinnerVisible,CloneVisible两个弹窗。 |
| | | this.CloneinnerVisible=false |
| | | this.CloneVisible=false |
| | | this.$message.success("复制成功") |
| | | this.CrudRend() |
| | | done(row) |
| | | }).catch(res=>{ |
| | | done(res) |
| | | }) |
| | | Clonesubmit(row, done) { |
| | | // 重新赋值CloneSelect传递的数据为输入框可以修改的数据,CloneModel提交表单输入框双向绑定数据 |
| | | Object.assign(this.CloneSelect[0], this.CloneModel); |
| | | copy(this.CloneSelect[0]) |
| | | .then(() => { |
| | | // 因为是嵌套弹窗所以手动关闭CloneinnerVisible,CloneVisible两个弹窗。 |
| | | this.CloneinnerVisible = false; |
| | | this.CloneVisible = false; |
| | | this.$message.success("复制成功"); |
| | | this.TemRefresh(); |
| | | done(row); |
| | | }) |
| | | .catch((error) => { |
| | | done(error); |
| | | }); |
| | | }, |
| | | //刷新 |
| | | TemRefresh() { |
| | |
| | | <attrCrud :ProData="ProData" :crudOid="crudOid" :checkStatus="checkStatus" :crudLCStatus="crudLCStatus" :crudArray="crudArray" :Formlist="Formlist" :codeClassifyOid="codeClassifyOid"></attrCrud> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'"> |
| | | <FlowPath :code="this.crudOid" :checkStatus="checkStatus" :crudLCStatus="crudLCStatus"></FlowPath> |
| | | <FlowPath ref="FlowPath" :code="this.crudOid" :checkStatus="checkStatus" :crudLCStatus="crudLCStatus" :Formlist="Formlist"></FlowPath> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab3'"> |
| | | <stage :code="this.crudOid"></stage> |
| | | <stage ref="stage" :code="this.crudOid" :Formlist="Formlist"></stage> |
| | | </span> |
| | | </basic-container> |
| | | |
| | |
| | | typeof: String, |
| | | required: true, |
| | | default: "" |
| | | }, |
| | | Formlist:{ |
| | | type:Array, |
| | | default:[] |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | this.data = data.records |
| | | this.page.total = data.total |
| | | } else this.loading = false |
| | | }else { |
| | | this.data=[] |
| | | } |
| | | |
| | | }, |
| | |
| | | <el-input placeholder="流程模板" v-model="saveParam.modelName" disabled></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="流程名称" prop="processName"> |
| | | <el-input placeholder="流程名称" v-model="saveParam.template"> |
| | | <el-input placeholder="流程名称" v-model="saveParam.processName"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="流程描述"> |
| | |
| | | </div> |
| | | <el-form :model="collectParam" class="demo-form-inline" label-position="left" label-width="auto"> |
| | | <el-form-item :label="item.taskName" v-for="(item, index) in initFrom" :key="index"> |
| | | <el-select style="width: 80%;" filterable v-model="collectParam.flowTaskUsers[index]['userId']" |
| | | <el-select style="width: 100%;" filterable v-model="collectParam.flowTaskUsers[index]['userId']" |
| | | :placeholder="item.taskName" @change="handleSelect($event, index)"> |
| | | <el-option :label="key.userNames" :value="key.userId" v-for="(key, keyi) in typeName" |
| | | :key="keyi"></el-option> |
| | |
| | | export default { |
| | | name: 'SetPersonnel', |
| | | props: { |
| | | // 是否打开 |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | // 标题 |
| | | title: { |
| | | typeof: String, |
| | | default: '流程审批' |
| | | }, |
| | | // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板, |
| | | // flowTemplate: |
| | | // vars:object格式,名字为vars,里面key键值,自己随意 |
| | | parameter: { |
| | | typeof: Object, |
| | | default: () => { } |
| | | }, |
| | | parameterKeys: { |
| | | typeof: Object, |
| | | default: () => { |
| | | return { |
| | | ids: 'ids', |
| | | flowTemplate: 'flowTemplate', |
| | | code: 'code', |
| | | type: 'type', |
| | | btmtype:'btmtype' |
| | | } |
| | | } |
| | | // 是否打开 |
| | | visible: { |
| | | typeof: Boolean, |
| | | default: false |
| | | }, |
| | | // 标题 |
| | | title: { |
| | | typeof: String, |
| | | default: '流程审批' |
| | | }, |
| | | // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板, |
| | | // flowTemplate: |
| | | // vars:object格式,名字为vars,里面key键值,自己随意 |
| | | parameter: { |
| | | typeof: Object, |
| | | default: () => { |
| | | } |
| | | |
| | | }, |
| | | parameterKeys: { |
| | | typeof: Object, |
| | | default: () => { |
| | | return { |
| | | ids: 'ids', |
| | | processName: 'processName', |
| | | code: 'code', |
| | | type: 'type', |
| | | btmtype: 'btmtype' |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | if (n) { |
| | | this.apiInit() |
| | | this.apiDict() |
| | | } |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | if (n) { |
| | | this.apiInit() |
| | | this.apiDict() |
| | | } |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | }, |
| | | users: { |
| | | handler(val) { |
| | | this.collectParam.flowTaskUsers = val |
| | | }, |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | deep: true, |
| | | immediate: true |
| | | }, |
| | | parameter: { |
| | | handler(newval, oldval) { |
| | | this.saveParam = Object.assign({processName:'',processDesc: ''},newval) ; |
| | | }, |
| | | users:{ |
| | | handler(val){ |
| | | this.collectParam.flowTaskUsers = val |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | }, |
| | | parameter:{ |
| | | handler(newval,oldval){ |
| | | this.saveParam=newval; |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | deep: true, |
| | | immediate: true |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | users: [], |
| | | rules: { |
| | | processName: [ |
| | | { required: true, message: '模板名称不能为空', trigger: 'blur' }, |
| | | { min: 1, max: 20, message: '长度在 3 到 20 个字符', trigger: 'blur' } |
| | | { required: true, message: '流程名称不能为空', trigger: 'blur' }, |
| | | { min: 3, max: 50, message: '长度在 3 到 50 个字符', trigger: 'blur' } |
| | | ] |
| | | } |
| | | } |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | setSaveParam() { |
| | | return { |
| | | processName: this.parameter[this.parameterKeys.flowTemplate], |
| | | topName: this.title, |
| | | ids: this.parameter[this.parameterKeys.ids], |
| | | oids: this.parameter[this.parameterKeys.ids], |
| | | btmtype:this.parameter[this.parameterKeys.btmtype], |
| | | vars:this.parameter['vars'] |
| | | } |
| | | }, |
| | | userIndex(arr1) { |
| | | return this.initFrom.findIndex(i => i.taskId === arr1) |
| | | }, |
| | |
| | | let flowTaskUsers = response.data.data.user |
| | | this.collectParam = { modelKey, templateId, flowTaskUsers: flowTaskUsers } |
| | | this.users = response.data.data.user |
| | | console.log(this.collectParam) |
| | | console.log('this.saveParam.before',this.saveParam) |
| | | this.saveParam = { ...this.saveParam, modelKey, templateId, modelName } |
| | | console.log('this.saveParam',this.saveParam) |
| | | if (this.tags.length !== 0) this.handleClickTag(this.tags[0]) |
| | | } |
| | | }, |
| | |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | }).then(async ({ value }) => { |
| | | console.log(this.users) |
| | | this.collectParam.flowTaskUsers = this.users |
| | | this.collectParam = { ...this.collectParam, name: value } |
| | | console.log(this.collectParam) |
| | | const response = await personnelCollect(this.collectParam) |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | this.$nextTick(() => { |
| | | this.apiInit() |
| | |
| | | this.data = data.records |
| | | this.page.total = data.total |
| | | } else this.loading = false |
| | | }else { |
| | | this.data=[] |
| | | } |
| | | }, |
| | | // 获取阶段列表 |
| | |
| | | </p> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import ElCheckboxGroup from 'element-ui/packages/checkbox-group'; |
| | | import ElCheckbox from 'element-ui/packages/checkbox'; |
| | |
| | | |
| | | methods: { |
| | | updateAllChecked() { |
| | | |
| | | |
| | | const checkableDataKeys = this.checkableData.map(item => item[this.keyProp]); |
| | | |
| | | |
| | | this.allChecked = checkableDataKeys.length > 0 && |
| | | checkableDataKeys.every(item => this.checked===item); |
| | | }, |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | delBtn: false, |
| | | column: [{ |
| | | label: '任务名称', |
| | | prop: 'name', |
| | | prop: 'taskName', |
| | | sortable:true, |
| | | headerAlign:'center', |
| | | align:'left', |
| | | html: true, |
| | | formatter: (val) => { |
| | | return '<a name="processname" href="javascript:;" style="color: #66b1ff;">' + val.taskName + '</a>' |
| | | return '<a name="processname" href="javascript:;" style="color: #66b1ff;">' + val.variables.processName+'-'+val.taskName + '</a>' |
| | | } |
| | | }, |
| | | { |
| | | label: '上一步处理时间', |
| | | prop: 'createTime' |
| | | }, |
| | | { |
| | | label: '描述', |
| | | prop: 'description' |
| | | sortable:true, |
| | | prop: 'historyActivityDurationTime' |
| | | }, |
| | | { |
| | | label: '上一步操作人', |
| | | prop: 'creator_name' |
| | | sortable:true, |
| | | prop: 'historyActivityAssigneName' |
| | | }, |
| | | { |
| | | label: '流程描述', |
| | | prop: 'processDesc', |
| | | formatter: (val) => { |
| | | return val.variables.processDesc |
| | | } |
| | | }, |
| | | { |
| | | label: '所属流程模板', |
| | | sortable:true, |
| | | prop: 'categoryName' |
| | | } |
| | | ] |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 200, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "流程分类", |
| | | type: "select", |
| | | row: true, |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | prop: "category", |
| | | search: true, |
| | | hide: true, |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: '流程名称', |
| | | prop: 'processDefinitionName', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: '流程版本', |
| | | prop: 'processDefinitionVersion', |
| | | slot: true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: '申请时间', |
| | | prop: 'createTime', |
| | | width: 165, |
| | | }, |
| | | ] |
| | | align: 'center', |
| | | column: [{ |
| | | label: '流程名称', |
| | | prop: 'processName', |
| | | search: true, |
| | | headerAlign:'center', |
| | | align:'left', |
| | | sortable:true, |
| | | formatter: (val) => { |
| | | return val.variables.processName |
| | | } |
| | | }, { |
| | | label: '发起人', |
| | | prop: 'createUser', |
| | | sortable:true, |
| | | formatter: (val) => { |
| | | return val.variables.createUser |
| | | } |
| | | }, { |
| | | label: '发起时间', |
| | | sortable:true, |
| | | prop: 'createTime', |
| | | }, { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | },{ |
| | | label: '所属流程模板', |
| | | sortable:true, |
| | | prop: 'categoryName' |
| | | }, { |
| | | label: '流程描述', |
| | | prop: 'processDesc', |
| | | formatter: (val) => { |
| | | return val.variables.processDesc |
| | | } |
| | | }] |
| | | }, |
| | | data: [] |
| | | }; |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 150, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "流程分类", |
| | | type: "select", |
| | | row: true, |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | prop: "category", |
| | | search: true, |
| | | hide: true, |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: '流程名称', |
| | | prop: 'processDefinitionName', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: '流程版本', |
| | | prop: 'processDefinitionVersion', |
| | | slot: true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: '申请时间', |
| | | prop: 'createTime', |
| | | width: 165, |
| | | }, |
| | | ] |
| | | align: 'center', |
| | | column: [{ |
| | | label: '流程名称', |
| | | prop: 'processName', |
| | | search: true, |
| | | headerAlign: 'center', |
| | | align: 'left', |
| | | sortable: true, |
| | | formatter: (val) => { |
| | | return val.variables.processName |
| | | } |
| | | }, { |
| | | label: '发起人', |
| | | prop: 'createUser', |
| | | sortable: true, |
| | | formatter: (val) => { |
| | | return val.variables.createUser |
| | | } |
| | | }, { |
| | | label: '发起时间', |
| | | sortable: true, |
| | | prop: 'createTime', |
| | | }, { |
| | | label: '完成时间', |
| | | sortable: true, |
| | | prop: 'endTime', |
| | | }, { |
| | | label: '所属流程模板', |
| | | sortable: true, |
| | | prop: 'categoryName' |
| | | }, { |
| | | label: '流程启动时描述', |
| | | prop: 'processDesc', |
| | | formatter: (val) => { |
| | | return val.variables.processDesc |
| | | } |
| | | }] |
| | | }, |
| | | data: [] |
| | | }; |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 150, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "流程分类", |
| | | type: "select", |
| | | row: true, |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | prop: "category", |
| | | search: true, |
| | | hide: true, |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: '流程名称', |
| | | prop: 'processDefinitionName', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: '流程版本', |
| | | prop: 'processDefinitionVersion', |
| | | slot: true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: '流程进度', |
| | | prop: 'processIsFinished', |
| | | slot: true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: '申请时间', |
| | | prop: 'createTime', |
| | | width: 165, |
| | | }, |
| | | ] |
| | | align: 'center', |
| | | column: [{ |
| | | label: '流程名称', |
| | | prop: 'processName', |
| | | search: true, |
| | | headerAlign:'center', |
| | | align:'left', |
| | | sortable:true, |
| | | formatter: (val) => { |
| | | return val.variables.processName |
| | | } |
| | | }, { |
| | | label: '流程进度', |
| | | prop: 'processIsFinished', |
| | | slot: true, |
| | | width: 80, |
| | | }, { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | }, { |
| | | label: '发起时间', |
| | | sortable:true, |
| | | prop: 'createTime', |
| | | },{ |
| | | label: '所属流程模板', |
| | | sortable:true, |
| | | prop: 'categoryName' |
| | | }, { |
| | | label: '流程描述', |
| | | prop: 'processDesc', |
| | | formatter: (val) => { |
| | | return val.variables.processDesc |
| | | } |
| | | }] |
| | | }, |
| | | data: [] |
| | | }; |
| | |
| | | dialogWidth: 900, |
| | | menuWidth: 200, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "流程分类", |
| | | type: "select", |
| | | row: true, |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | prop: "category", |
| | | search: true, |
| | | hide: true, |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: '流程名称', |
| | | prop: 'processDefinitionName', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '当前步骤', |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: '流程版本', |
| | | prop: 'processDefinitionVersion', |
| | | slot: true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: '申请时间', |
| | | prop: 'createTime', |
| | | width: 165, |
| | | }, |
| | | ] |
| | | align: 'center', |
| | | column: [{ |
| | | label: '流程名称', |
| | | prop: 'processName', |
| | | search: true, |
| | | headerAlign:'center', |
| | | align:'left', |
| | | sortable:true, |
| | | formatter: (val) => { |
| | | return val.variables.processName |
| | | } |
| | | }, { |
| | | label: '发起人', |
| | | prop: 'createUser', |
| | | sortable:true, |
| | | formatter: (val) => { |
| | | return val.variables.createUser |
| | | } |
| | | }, { |
| | | label: '发起时间', |
| | | sortable:true, |
| | | prop: 'createTime', |
| | | }, { |
| | | label: '所属流程模板', |
| | | sortable:true, |
| | | prop: 'categoryName' |
| | | }, { |
| | | label: '流程描述', |
| | | prop: 'processDesc', |
| | | formatter: (val) => { |
| | | return val.variables.processDesc |
| | | } |
| | | }] |
| | | }, |
| | | data: [] |
| | | }; |
| | |
| | | } |
| | | wrapperKeyAttrConditionMap(value, keyRuleVO, attrId, trim, ignoreCase, ignoreWidth, trimAll, conditionMap); |
| | | }); |
| | | conditionMap.put("CODETEMPLATEOID","'" + orderDTO.getTemplateOid() + "'"); |
| | | |
| | | //没有限制分类,但是一个模板只可能在一个业务类型里面,所以直接查询这个业务类型即可 |
| | | |
| | | if (!CollectionUtils.isEmpty(conditionMap)) { |
| | | conditionMap.put("CODETEMPLATEOID","'" + orderDTO.getTemplateOid() + "'"); |
| | | // final String[] sql = {"select count(*) from " + VciBaseUtil.getTableName(classifyFullInfo.getTopClassifyVO().getBtmtypeid()) + " t where 1 = 1 "}; |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(classifyFullInfo.getTopClassifyVO().getBtmTypeId())); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | |
| | | } else { |
| | | fullPath = classifyFullInfo.getCurrentClassifyVO().getOid(); |
| | | } |
| | | |
| | | // BeanUtils. |
| | | // BeanUtils.copyProperties(orderDTO.getData(),cbo); |
| | | // cbo.setMaterialtype(Short.valueOf("1001")); |
| | | orderDTO.getData().forEach((key, value) -> { |
| | | if (!edit || (!checkUnAttrUnEdit(key) && |
| | | !VciQueryWrapperForDO.LC_STATUS_FIELD.equalsIgnoreCase(key))) { |
| | |
| | | } |
| | | } |
| | | }); |
| | | // BeanMap beanMap = BeanMap.create(cbo); |
| | | // beanMap.putAll(orderDTO.getData()); |
| | | |
| | | try { |
| | | Map<String, String> data = new HashMap<>(); |
| | | data.put(cbo.getData().containsKey(CODE_CLASSIFY_OID_FIELD.toUpperCase())?CODE_CLASSIFY_OID_FIELD.toUpperCase():CODE_CLASSIFY_OID_FIELD, classifyFullInfo.getCurrentClassifyVO().getOid()); |