Browse Source

出入库报表数据显示

dev
kilo 2 years ago
parent
commit
6ba5520a89
  1. 4
      src/views/accessrecords/plan/ProcessMaterialWarehousingPlan.vue
  2. 42
      src/views/accessrecords/plan/ProcessMaterialsPlan.vue
  3. 19
      src/views/accessrecords/plan/ProcessMaterialsPlanList.vue
  4. 13
      src/views/accessrecords/statement/ProcessMaterialWarehousingStatement.vue
  5. 25
      src/views/accessrecords/statement/ProcessMaterialsPlanStatement.vue
  6. 13
      src/views/accessrecords/statement/ProcessMaterialsPlanStatement2.vue

4
src/views/accessrecords/plan/ProcessMaterialWarehousingPlan.vue

@ -18,8 +18,8 @@
<script>
import ProcessMaterialWarehousingDetail from '../modules/ProcessMaterialWarehousingDetail'
import ProcessMaterialWarehousingFlowChart from '@views/accessrecords/flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialWarehousingStatement from '@views/accessrecords/statement/ProcessMaterialWarehousingStatement'
import ProcessMaterialWarehousingFlowChart from '../flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialWarehousingStatement from '../statement/ProcessMaterialWarehousingStatement'
import { getAction } from '@api/manage'
export default {

42
src/views/accessrecords/plan/ProcessMaterialsPlan.vue

@ -1,7 +1,7 @@
<template>
<a-card :bordered="false" >
<a-tabs style="text-align: center" @change="callback">
<a-tabs style="text-align: center" :default-active-key="this.tabKey" @change="callback">
<a-tab-pane tab="采购明细" key="1" forceRender >
<process-materials-plan-detail :materPlanId="this.$route.query.item" />
</a-tab-pane>
@ -18,10 +18,10 @@
<script>
import ProcessMaterialsPlanDetail from '../modules/ProcessMaterialsPlanDetail'
import ProcessMaterialWarehousingFlowChart from '@views/accessrecords/flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialsPlanStatement from '@views/accessrecords/statement/ProcessMaterialsPlanStatement'
import ProcessMaterialWarehousingFlowChart from '../flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialsPlanStatement from '../statement/ProcessMaterialsPlanStatement'
import { getAction } from '@api/manage'
import ProcessMaterialsPlanList from '@views/accessrecords/plan/ProcessMaterialsPlanList'
import ProcessMaterialsPlanList from '../plan/ProcessMaterialsPlanList'
export default {
name: 'ProcessMaterialsPlan',
@ -33,6 +33,7 @@
},
data() {
return {
tabKey:"1",
isNew:'',
ifShow:false,
pictureId:'',
@ -87,30 +88,41 @@
// required: false
// }
// },
created(){
console.log(this.proMaterListId);
console.log("=================",this.proMaterListId,"===================")
// this.getPicture();
},
watch:{
proMaterListId:function (newData, oldData) {
//newData
//oldData
if(newData !== oldData){
console.log("=================","值发生了变化","===================")
}
}
},
methods: {
callback(key){
if (key==2){
getAction(this.url.getProcessPicture, { id:this.$route.query.item }).then((res) => {
callback(key) {
console.log("=================",key,"===================")
if (key == 2) {
getAction(this.url.getProcessPicture, { id: this.$route.query.item }).then((res) => {
if (res.success) {
// this.dataSource = res.result.records;
// this.ipagination.total = res.result.total;
this.pictureId=res.result.procDefId;
this.ifShow=true;
console.log(res,'获取数据')
this.pictureId = res.result.procDefId;
this.ifShow = true;
console.log(res, '获取数据')
}
if(res.code===510){
if (res.code === 510) {
this.$message.warning(res.message)
}
this.loading = false;
})
}
}
},
},
}
}
</script>

19
src/views/accessrecords/plan/ProcessMaterialsPlanList.vue

@ -53,11 +53,11 @@
<script>
import ProcessMaterialsPlanDetail from '../modules/ProcessMaterialsPlanDetail'
import ProcessMaterialWarehousingFlowChart from '@views/accessrecords/flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialsPlanStatement from '@views/accessrecords/statement/ProcessMaterialsPlanStatement'
import ProcessMaterialWarehousingFlowChart from '../flowchart/ProcessMaterialWarehousingFlowChart'
import ProcessMaterialsPlanStatement from '../statement/ProcessMaterialsPlanStatement'
import { getAction } from '@api/manage'
import ProcessMaterialWarehousingStatement from '@views/accessrecords/statement/ProcessMaterialWarehousingStatement'
import ProcessMaterialsPlanStatement2 from '@views/accessrecords/statement/ProcessMaterialsPlanStatement2'
import ProcessMaterialsPlanStatement2 from '../statement/ProcessMaterialsPlanStatement2'
export default {
@ -148,12 +148,25 @@
// default: false,
// required: false
// }
// materWared:{
// type:String,
// },
},
created(){
console.log("进来没有")
// console.log(this.proMaterListId);
// this.getPicture();
},
// watch:{
// materWared:function (newData, oldData) {
// //newData
// //oldData
// if(newData !== oldData){
// this.loadData();
// }
// }
//
// },
methods: {
callback(key){
if (key==2){

13
src/views/accessrecords/statement/ProcessMaterialWarehousingStatement.vue

@ -51,6 +51,9 @@
modalLsVisible: false,
pdfWord: '',
pdfSrc: '',
queryParam:{
id:''
},
url: {
list: '/hy/processUdgetPlan/getPlanTable',
queryPlandDownWord: '/word/queryWarehousingDownWord',
@ -62,6 +65,16 @@
mounted() {
this.showSessionId = window.location.search
},
watch:{
materWared:function (newData, oldData) {
// newData
// oldData
if(newData !== oldData){
this.loadData();
console.log("数据已经更新")
}
}
},
created() {
// downFile(this.url.queryPlanPrevie, { id: this.queryParam.id }).then((data) => {
// console.log(data)

25
src/views/accessrecords/statement/ProcessMaterialsPlanStatement.vue

@ -43,13 +43,24 @@
required: false
}
},
watch:{
materWared:function (newData, oldData) {
//newData
//oldData
if(newData !== oldData){
this.loadData();
}
}
},
data() {
return {
showSessionId: '',
srcHtml: '',
modalLsVisible: false,
pdfWord: '',
queryParam:{
id:''
},
pdfSrc: '',
url: {
list: '/hy/processUdgetPlan/getPlanTable',
@ -63,12 +74,12 @@
this.showSessionId = window.location.search
},
created() {
downFile(this.url.queryPlanPrevie, { id: this.queryParam.id }).then((data) => {
console.log(data)
const blob = new Blob([data], { type: 'application/pdf' })
this.pdfWord = window.URL.createObjectURL(blob)
})
// downFile(this.url.queryPlanPrevie, { id: this.queryParam.id }).then((data) => {
// console.log(data)
// const blob = new Blob([data], { type: 'application/pdf' })
// this.pdfWord = window.URL.createObjectURL(blob)
//
// })
// this.loadData();
},
activated() {

13
src/views/accessrecords/statement/ProcessMaterialsPlanStatement2.vue

@ -51,6 +51,9 @@
modalLsVisible: false,
pdfWord: '',
pdfSrc: '',
queryParam:{
id:''
},
url: {
list: '/hy/processUdgetPlan/getPlanTable',
queryPlandDownWord: '/word/queryPlandDownWord',
@ -62,6 +65,16 @@
mounted() {
this.showSessionId = window.location.search
},
watch:{
materWared:function (newData, oldData) {
//newData
//oldData
if(newData !== oldData){
this.loadData();
}
}
},
created() {
// downFile(this.url.queryPlanPrevie, { id: this.queryParam.id }).then((data) => {
// console.log(data)

Loading…
Cancel
Save