Browse Source

修改电商非电商回显判断逻辑

dev
long 2 years ago
parent
commit
cf441526ee
  1. 1
      package.json
  2. 26
      src/views/activiti/form/ProcessUdgetPlan.vue
  3. 1
      src/views/activiti/form/ProcessUdgetPlanForm.vue

1
package.json

@ -22,6 +22,7 @@
"codemirror": "^5.46.0",
"core-js": "^3.25.5",
"dayjs": "^1.8.0",
"docx-preview": "^0.1.14",
"dom-align": "1.12.0",
"echarts": "^4.8.0",
"element-resize-detector": "^1.2.1",

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

@ -1,11 +1,11 @@
<template>
<a-card :bordered="true">
<a-tabs style="text-align: center" @change="changeTables">
<a-tab-pane tab="电商采购" key="1" forceRender>
<a-tabs style="text-align: center" @change="changeTables">
<a-tab-pane tab="电商采购" key="1" v-if="onlineDisabled" forceRender>
<a-tabs style="text-align: center">
<a-tab-pane tab="流程正文" key="1" forceRender>
<process-udget-plan-form :dianshang="planType" :isNew="isNew" :processData="processData" :disabled="disabled" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask" :hieg="hieg" @loadData="loadData"/>
<process-udget-plan-form :dianshang="planType" :isNew="isNew" :processData="processData" :disabled="disabled" @planType="showType" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask" :hieg="hieg" @loadData="loadData"/>
</a-tab-pane>
<a-tab-pane tab="流程节点图" key="2" forceRender>
@ -17,10 +17,10 @@
</a-tabs>
</a-tab-pane>
<a-tab-pane tab="非电商采购" key="2" forceRender>
<a-tab-pane tab="非电商采购" key="2" v-if="noDisabled" forceRender>
<a-tabs style="text-align: center">
<a-tab-pane tab="流程正文" key="1" forceRender>
<process-udget-plan-form :dianshang="planType" :isNew="isNew" :processData="processData" :disabled="disabled" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask" :hieg="hieg" @loadData="loadData"/>
<process-udget-plan-form :dianshang="planType" :isNew="isNew" :processData="processData" :disabled="disabled" @planType="showType" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask" :hieg="hieg" @loadData="loadData"/>
</a-tab-pane>
<a-tab-pane tab="流程节点图" key="2" forceRender>
@ -50,15 +50,20 @@
</template>
<script>
import ProcessUdgetPlanForm from './ProcessUdgetPlanForm'
import historicPictrue from '../historicPictrue'
import historicDetail from '../historicDetail'
var docxx = require("docx-preview");
export default {
name: 'ProcessUdgetPlan',
components: {ProcessUdgetPlanForm,historicPictrue, historicDetail},
data() {
return {
planType:1
planType:1,
tabKey:2,
noDisabled:true,
onlineDisabled:true
}
},
props: {
@ -142,8 +147,15 @@
this.$emit('loadData')
},
changeTables(val){
this.planType=Number(val);
},
showType(val){
if (val==2){
this.onlineDisabled=false
}
if (val==1){
this.noDisabled=false
}
}
},
}

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

@ -1090,6 +1090,7 @@
id: r.tableId
}).then((res) => {
if (res.success) {
this.$emit('planType',res.result.planType)
let formData = res.result
formData.tableName = r.tableName
this.data = formData

Loading…
Cancel
Save