Browse Source

出库流程显示数据

dev
caoyizhong 2 years ago
parent
commit
fe8e3c47fb
  1. 64
      src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
  2. 1
      src/views/activiti/processInsManage.vue

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

@ -281,8 +281,10 @@
edit: '/hy/processMaterialsDelivery/edit', edit: '/hy/processMaterialsDelivery/edit',
queryById: '/hy/processMaterialsDelivery/queryById', queryById: '/hy/processMaterialsDelivery/queryById',
descriptionRake: '/suppliesstronger/processSuppliesStronger/descriptionName', // descriptionRake: '/suppliesstronger/processSuppliesStronger/descriptionName', //
wasteMaterialsUrl: '/suppliesstronger/processSuppliesStronger/descriptionName', //
merchandiseNewsList: '/suppliesstronger/processSuppliesStronger/merchandiseNews', merchandiseNewsList: '/suppliesstronger/processSuppliesStronger/merchandiseNews',
puwwlist: "/unitwaste/processUnitWasteWarehouseCode/queryById", puwwlist: "/unitwaste/processUnitWasteWarehouseCode/queryById",
unitWasteWarehouseList: "/unitwaste/processUnitWasteWarehouseCode/queryById", //
processMaterialsDeliveryList: { processMaterialsDeliveryList: {
list: '/hy/processMaterialsDelivery/queryProcessMaterialsDeliveryListByMainId' list: '/hy/processMaterialsDelivery/queryProcessMaterialsDeliveryListByMainId'
} }
@ -812,24 +814,58 @@
// //
// }, // },
fetchData(value){ // fetchData(value){ //
// console.log("this.data==============>",this.data)
let par = { let params={}
delFlag: 0, params.id= sessionStorage.getItem('PUWWC_Id')
accountingAttributes: value, getAction(this.url.unitWasteWarehouseList,params).then((res)=>{
} console.log(res)
getAction(this.url.descriptionRake,par).then((res)=>{
if(res.success){ if(res.success){
if(this.processMaterialsDeliveryListTable.columns[0].options.length > 0){ //
this.processMaterialsDeliveryListTable.columns[0].options = [];
let par = {
delFlag: 0,
accountingAttributes: value,
sysOrgCode: this.data.sysOrgCode
} }
res.result.forEach( item => { getAction(this.url.wasteMaterialsUrl,par).then((res)=>{
this.processMaterialsDeliveryListTable.columns[0].options.push({ if(res.success){
title : item.descriptionName, if(this.processMaterialsDeliveryListTable.columns[0].options.length > 0){
value : item.descriptionId, this.processMaterialsDeliveryListTable.columns[0].options = [];
}) }
}) res.result.forEach( item => {
this.processMaterialsDeliveryListTable.columns[0].options.push({
title : item.descriptionName,
value : item.descriptionId,
})
})
}
});
}else{
//
let par = {
delFlag: 0,
accountingAttributes: value,
}
getAction(this.url.descriptionRake,par).then((res)=>{
if(res.success){
if(this.processMaterialsDeliveryListTable.columns[0].options.length > 0){
this.processMaterialsDeliveryListTable.columns[0].options = [];
}
res.result.forEach( item => {
this.processMaterialsDeliveryListTable.columns[0].options.push({
title : item.descriptionName,
value : item.descriptionId,
})
})
}
});
} }
}); });
}, },
/*回显数据*/ /*回显数据*/

1
src/views/activiti/processInsManage.vue

@ -148,7 +148,6 @@
<script> <script>
import {activitiMixin} from "./mixins/activitiMixin"; import {activitiMixin} from "./mixins/activitiMixin";
import {JeecgListMixin} from "../../mixins/JeecgListMixin"; import {JeecgListMixin} from "../../mixins/JeecgListMixin";
import ProcessOperationLogList from "../operationlog/ProcessOperationLogList"
export default { export default {
mixins:[activitiMixin,JeecgListMixin], mixins:[activitiMixin,JeecgListMixin],

Loading…
Cancel
Save