Merge remote-tracking branch 'origin/master'
| | |
| | | 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; |
| | |
| | | <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() |
| | |
| | | </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()); |