diff --git a/src/server/productionPlanning/customerForecastDemandReview.js b/src/server/productionPlanning/customerForecastDemandReview.js index 2d2f281..2000b26 100644 --- a/src/server/productionPlanning/customerForecastDemandReview.js +++ b/src/server/productionPlanning/customerForecastDemandReview.js @@ -42,6 +42,10 @@ export const getCustomerDemand = (params) => get('/admin/ap/custdemandverhead/se // 数据重载 export const reloadData = () => get('/admin/ap/balance/refreshdata') + +// 刷新数据 +export const refreshData = (data) => post('/admin/ap/balance/refreshcustomerarticledemand',data) + // 客户主要资源查询 export const searchResource = (artId) => get(`/admin/ap/articleresource/search/${artId}`); diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue index b32634a..8429d82 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue @@ -33,7 +33,7 @@
- +
@@ -69,7 +69,7 @@ import netProductionImageUrl from '@/assets/icon/net_production.png' import reloadImageUrl from '@/assets/icon/reload.png' import refreshImageUrl from '@/assets/icon/refresh.png' import saveImageUrl from '@/assets/icon/save.png' -import { reloadData } from "@/server/productionPlanning/customerForecastDemandReview"; +import { reloadData} from "@/server/productionPlanning/customerForecastDemandReview"; export default { @@ -121,6 +121,15 @@ export default { }) }, methods: { + refreshData(){ + let data = [] + this.TableData.forEach(item => { + if(item['-'] == this.editField){ + data = item + } + }) + this.$emit("refreshData",data) + }, reloadData(){ reloadData().then( ({msg}) => { this.$message({ @@ -151,6 +160,16 @@ export default { }, calcHandle() { + let data = [] + this.TableData.forEach(item => { + if(item['-'] == this.editField){ + data = item + } + }) + this.$emit("calcHandle",{ + data:data, + mode:this.mode + }) }, }, } diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/index.vue index c145dde..9a826b2 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/index.vue @@ -13,6 +13,8 @@ :Height="tableHeight+'px'" :TableData="tableData" @saveDemandData="saveDemandData" + @refreshData="refreshData" + @calcHandle="calcHandle" @calculateTableHeight="calculateTableHeight" />