Browse Source

流程新增字段

dev
long 2 years ago
parent
commit
c90b5d856e
  1. 10
      src/components/jeecg/modal/ProcessDelivery.vue
  2. 12
      src/components/jeecg/modal/ProcessPlan.vue
  3. 8
      src/components/setting/SettingDrawer.vue
  4. 9
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue
  5. 9
      src/views/activiti/form/ProcessMaterialsAllotForm.vue
  6. 10
      src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
  7. 10
      src/views/activiti/form/ProcessSmaterialsScrapForm.vue
  8. 2
      src/views/activiti/form/ProcessUdgetPlan.vue
  9. 61
      src/views/activiti/form/ProcessUdgetPlanForm.vue

10
src/components/jeecg/modal/ProcessDelivery.vue

@ -158,6 +158,16 @@
description: '物资出库流程管理页面',
queryParam: {},
columns: [
{
title: '流程编号',
align: 'center',
dataIndex: 'warehousingBatch'
},
{
title: '流程提示',
align: 'center',
dataIndex: 'describes'
},
{
title: '流程发起公司',
align: 'center',

12
src/components/jeecg/modal/ProcessPlan.vue

@ -145,7 +145,7 @@
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue'
import '@/assets/less/TableExpand.less'
const MODAL_WIDTH = 1200
const MODAL_WIDTH = 1600
export default {
name: 'ProcessPlan',
props: ['multi', 'code', 'groupId', 'param'],
@ -164,6 +164,16 @@
queryParam: {},
//
columns: [
{
title: '流程编号',
align: 'center',
dataIndex: 'warehousingBatch'
},
{
title: '流程提示',
align: 'center',
dataIndex: 'describes'
},
{
title: '流程发起公司',
align: 'center',

8
src/components/setting/SettingDrawer.vue

@ -87,7 +87,7 @@
</div>
<div :style="{ marginTop: '24px' }">
<a-list :split="false">
<a-list-item>
<!-- <a-list-item>
<a-tooltip slot="actions">
<template slot="title">
该设定仅 [顶部栏导航] 时有效
@ -100,19 +100,19 @@
<a-list-item-meta>
<div slot="title">内容区域宽度</div>
</a-list-item-meta>
</a-list-item>
</a-list-item>-->
<a-list-item>
<a-switch slot="actions" size="small" :defaultChecked="true"/>
<a-list-item-meta>
<div slot="title">固定 Header</div>
</a-list-item-meta>
</a-list-item>
<a-list-item>
<!-- <a-list-item>
<a-switch slot="actions" size="small" :disabled="!fixedHeader" :defaultChecked="autoHideHeader" @change="handleFixedHeaderHidden" />
<a-list-item-meta>
<div slot="title" :style="{ textDecoration: !fixedHeader ? 'line-through' : 'unset' }">下滑时隐藏 Header</div>
</a-list-item-meta>
</a-list-item>
</a-list-item>-->
<a-list-item>
<a-switch slot="actions" size="small" :disabled="(layoutMode === 'topmenu')" :checked="true"/>
<a-list-item-meta>

9
src/views/activiti/form/ProcessMaterialWarehousingForm.vue

@ -290,6 +290,7 @@ import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
},
},
btndisabled: false,
describes:'',
validatorRules: {
// 'blur'
processUdgetPlanId: {rules: [{ required: true, message: '关联预算流程不能为空!' }]},
@ -426,6 +427,14 @@ import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
}
let formData = this.classifyIntoFormData(allValues)
formData.fileId = getStringArry(formData.fileId)
for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) {
if (i==0){
this.describes=formData.processMaterialWarehousingListList[i].materialName
}else {
this.describes=this.describes+"---"+formData.processMaterialWarehousingListList[i].materialName
}
}
formData.describes=this.describes;
console.log('格式化后的数据', formData)
this.form.validateFields((err, values) => {
if (!err) {

9
src/views/activiti/form/ProcessMaterialsAllotForm.vue

@ -290,6 +290,7 @@
}
},
btndisabled: false,
describes:'',
validatorRules: {
// 'blur'
materialType: { rules: [{ required: true, message: '请选择物资类型!' }] },
@ -635,6 +636,14 @@
// this.$message.error("")
// return;
// }
for (let i = 0; i < formData.processMaterialsAllotListList.length; i++) {
if (i==0){
this.describes=formData.processMaterialsAllotListList[i].materialName
}else {
this.describes=this.describes+"---"+formData.processMaterialsAllotListList[i].materialName
}
}
formData.describes=this.describes;
this.form.validateFields((err, values) => {
if (!err) {
formData.procDefId = this.processData.id

10
src/views/activiti/form/ProcessMaterialsDeliveryForm.vue

@ -304,6 +304,7 @@
}
},
btndisabled: false,
describes:'',
validatorRules: {
// 'blur'
materialType: { rules: [{ required: true, message: '请选择物资类型!' }] },
@ -1035,7 +1036,14 @@
// this.$message.error("")
// return;
// }
for (let i = 0; i < formData.processMaterialsDeliveryListList.length; i++) {
if (i==0){
this.describes=formData.processMaterialsDeliveryListList[i].materialName
}else {
this.describes=this.describes+"---"+formData.processMaterialsDeliveryListList[i].materialName
}
}
formData.describes=this.describes;
this.form.validateFields((err, values) => {
if (!err) {
formData.procDefId = this.processData.id;

10
src/views/activiti/form/ProcessSmaterialsScrapForm.vue

@ -140,6 +140,7 @@
//
addDefaultRowNum: 1,
processOutflowId: '',
describes:'',
refKeys: ['processSmaterialsScrapList'],
tableKeys: ['processSmaterialsScrapList'],
activeKey: 'processSmaterialsScrapList',
@ -390,7 +391,16 @@
throw this.throwNotFunction('classifyIntoFormData')
}
let formData = this.classifyIntoFormData(allValues)
for (let i = 0; i < formData.processSmaterialsScrapListList.length; i++) {
if (i==0){
this.describes=formData.processSmaterialsScrapListList[i].materialName
}else {
this.describes=this.describes+"---"+formData.processSmaterialsScrapListList[i].materialName
}
}
formData.describes=this.describes;
formData.fileId = getStringArry(formData.fileId)
this.form.validateFields((err, values) => {
if (!err) {
formData.procDefId = this.processData.id

2
src/views/activiti/form/ProcessUdgetPlan.vue

@ -1,5 +1,5 @@
<template>
<a-card :bordered="false" >
<a-card :bordered="true">
<a-tabs style="text-align: center">
<a-tab-pane tab="流程正文" key="1" forceRender>

61
src/views/activiti/form/ProcessUdgetPlanForm.vue

@ -120,7 +120,7 @@
<div class="div_process">
<a-form-item v-if="!disabled" :wrapperCol="{ span: 24 }" style="text-align: center">
<a-button type="primary" :disabled="disabled||btndisabled" @click="handleSubmit">保存</a-button>
<!-- <a-button style="margin-left: 8px" type="primary" :disabled="disabled||btndisabled" @click="applySubmit">提交申请</a-button>-->
<!--<a-button style="margin-left: 8px" type="primary" :disabled="disabled||btndisabled" @click="applySubmit">提交申请</a-button>-->
<a-button style="margin-left: 8px" :disabled="disabled" @click="close">取消</a-button>
</a-form-item>
<a-form-item v-if="task" :wrapperCol="{ span: 24 }" style="text-align: center">
@ -172,6 +172,7 @@
bigIdRakeList:[],
materialPrice:0,
materialAmount:0,
describes:'',
hieg:true,
historyBigId:[],
isHistoryBigId:false,
@ -398,7 +399,7 @@
url: {
add: '/hy/processUdgetPlan/add',
edit: '/hy/processUdgetPlan/edit',
applyBusiness:'/actBusiness/apply',
fromTableApply:'/actBusiness/fromTableApply',
queryById: '/hy/processUdgetPlan/queryById',
selectdeparment:'/sys/selectByUser',
descriptionRakeUrl: "/description/processDescription/list",
@ -857,29 +858,49 @@
},
/*提交申请*/
applySubmit(e) {
this.handleSubmit (e)
this.getAllTable().then(tables => {
return validateFormAndTables(this.form, tables)
}).then(allValues=> {
}).then(allValues=>{
if (typeof this.classifyIntoFormData !== 'function') {
throw this.throwNotFunction('classifyIntoFormData')
}
let formData = this.classifyIntoFormData(allValues)
if(!formData.processUdgetPlanMaterialList.length>0){
this.$message.error('填写数据不完整,禁止提交申请!')
//
for (let i = 0; i < formData.processUdgetPlanMaterialList.length; i++) {
this.materialAmount=this.materialAmount+ formData.processUdgetPlanMaterialList[i].materialAmount;
}
formData.fileId = getStringArry(formData.fileId)
formData.materialPrice=this.materialPrice;
formData.materialAmount=this.materialAmount;
if (new Date(formData.createTime).getTime()/100>new Date(formData.needTime).getTime()/100){
this.$message.error("需求时间不能小于当前流程发起时间")
return;
}
var params = {}
params.priority = 1;
this.postFormAction(this.url.applyBusiness,params).then(res => {
if (res.success) {
this.$message.success("操作成功");
this.loadData();
this.modalVisible = false;
}else {
this.$message.error(res.message)
console.log(this.materialAmount,'采购总价')
console.log(formData,'表单数据')
console.log(this.opinion,'流程说明')
this.form.validateFields((err, values) => {
if (!err) {
formData.procDefId = this.processData.id;
formData.procDeTitle = this.processData.name;
formData.title=this.processData.description;
if (!formData.tableName)formData.tableName = this.processData.businessTable;
this.btndisabled = true;
console.log(formData,'申请数据')
httpAction(this.url.fromTableApply,formData,'post').then((res)=>{
if (res.success){
this.$message.success("申请成功!")
//todo
this.$emit('close',formData)
}else {
this.$message.error(res.message)
}
}).finally(()=>{
this.btndisabled = false;
})
}
}).finally(()=>this.submitLoading = false);
})
})
},
@ -966,11 +987,17 @@
//
for (let i = 0; i < formData.processUdgetPlanMaterialList.length; i++) {
this.materialAmount=this.materialAmount+ formData.processUdgetPlanMaterialList[i].materialAmount;
if (i==0){
this.describes=formData.processUdgetPlanMaterialList[i].materialName
}else {
this.describes=this.describes+"---"+formData.processUdgetPlanMaterialList[i].materialName
}
}
formData.fileId = getStringArry(formData.fileId)
formData.materialPrice=this.materialPrice;
formData.materialAmount=this.materialAmount;
formData.describes=this.describes;
if (new Date(formData.createTime).getTime()/100>new Date(formData.needTime).getTime()/100){
this.$message.error("需求时间不能小于当前流程发起时间")
return;

Loading…
Cancel
Save