Browse Source

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

dev
caoyizhong 2 years ago
parent
commit
60d2836b26
  1. 4
      src/views/activiti/mixins/activitiMixin.js
  2. 16
      src/views/activiti/processInsManage.vue
  3. 20
      src/views/operationlog/ProcessOperationLogList.vue
  4. 4
      src/views/wastematerials/ProcessWasteMaterialsLists.vue

4
src/views/activiti/mixins/activitiMixin.js

@ -82,6 +82,10 @@ export const activitiMixin = {
}, },
historicDetail:function () { historicDetail:function () {
return () => import(`@/views/activiti/historicDetail`) return () => import(`@/views/activiti/historicDetail`)
},
//流程操作记录显示地址
operatingRecordDetail:function (){
return () => import('@/views/operationlog/ProcessOperationLogList')
} }
}, },
methods:{ methods:{

16
src/views/activiti/processInsManage.vue

@ -142,6 +142,11 @@
:processData="lcModa.processData" :isNew = "lcModa.isNew" :processData="lcModa.processData" :isNew = "lcModa.isNew"
@close="lcModa.visible=false,lcModa.disabled = false"></component> @close="lcModa.visible=false,lcModa.disabled = false"></component>
</a-modal> </a-modal>
<a-modal title="流程操作记录" v-model="operatingRecord" :mask-closable="false" :width="'80%'" :footer="null">
<div v-if="operatingRecord">
<component :is="operatingRecordDetail" :tableId="tableId"></component>
</div>
</a-modal>
</div> </div>
</template> </template>
@ -187,6 +192,9 @@ export default {
}, },
modalLsVisible: false, modalLsVisible: false,
procInstId: '', procInstId: '',
//
operatingRecord: false,
tableId: '',
lcModa: { lcModa: {
title:'', title:'',
disabled:false, disabled:false,
@ -274,12 +282,8 @@ export default {
this.$message.error("流程主表id不存在"); this.$message.error("流程主表id不存在");
return; return;
} }
this.lcModa.disabled = true; this.tableId = v.tableId;
this.lcModa.title = '查看流程业务信息:'+v.name; this.operatingRecord = true;
this.lcModa.formComponent = this.getFormComponent(v.routeName).component;
this.lcModa.processData = v;
this.lcModa.isNew = false;
this.lcModa.visible = true;
}, },
detail(r) { detail(r) {
if (!r.routeName) { if (!r.routeName) {

20
src/views/operationlog/ProcessOperationLogList.vue

@ -48,6 +48,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ProcessOperationLogModal from './modules/ProcessOperationLogModal' import ProcessOperationLogModal from './modules/ProcessOperationLogModal'
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue' import JSuperQuery from '@/components/jeecg/JSuperQuery.vue'
import { getAction } from '@api/manage'
export default { export default {
name: 'ProcessOperationLogList', name: 'ProcessOperationLogList',
@ -56,8 +57,18 @@
ProcessOperationLogModal, ProcessOperationLogModal,
JSuperQuery, JSuperQuery,
}, },
props: {
tableId: {
type: String,
default: '',
required: true
},
},
data () { data () {
return { return {
queryParam: {
processRelevanceId: this.tableId
},
description: '流程操作记录', description: '流程操作记录',
// //
columns: [ columns: [
@ -88,14 +99,6 @@
customRender:function (text) { customRender:function (text) {
return !text?"":(text.length>10?text.substr(0,10):text) return !text?"":(text.length>10?text.substr(0,10):text)
} }
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
} }
], ],
url: { url: {
@ -119,6 +122,7 @@
}, },
}, },
methods: { methods: {
initDictConfig(){ initDictConfig(){
}, },
getSuperFieldList(){ getSuperFieldList(){

4
src/views/wastematerials/ProcessWasteMaterialsLists.vue

@ -232,7 +232,7 @@
{ {
title:'单价(元)', title:'单价(元)',
align:"center", align:"center",
dataIndex: 'price' dataIndex: 'materialPrice'
}, },
{ {
title:'金额(元)', title:'金额(元)',
@ -369,7 +369,7 @@
fieldList.push({type:'string',value:'freightSpace',text:'库存仓位',dictCode:''}) fieldList.push({type:'string',value:'freightSpace',text:'库存仓位',dictCode:''})
fieldList.push({type:'string',value:'materialsUnit',text:'计量单位',dictCode:''}) fieldList.push({type:'string',value:'materialsUnit',text:'计量单位',dictCode:''})
fieldList.push({type:'int',value:'materialQuantity',text:'数量',dictCode:''}) fieldList.push({type:'int',value:'materialQuantity',text:'数量',dictCode:''})
fieldList.push({type:'BigDecimal',value:'price',text:'单价',dictCode:''}) fieldList.push({type:'BigDecimal',value:'materialPrice',text:'单价',dictCode:''})
fieldList.push({type:'BigDecimal',value:'materialAmount',text:'金额',dictCode:''}) fieldList.push({type:'BigDecimal',value:'materialAmount',text:'金额',dictCode:''})
fieldList.push({type:'date',value:'productionDate',text:'生产日期'}) fieldList.push({type:'date',value:'productionDate',text:'生产日期'})
fieldList.push({type:'String',value:'expirationDate',text:'保质期'}) fieldList.push({type:'String',value:'expirationDate',text:'保质期'})

Loading…
Cancel
Save