Browse Source

修改bug

695593266@qq.com 10 months ago
parent
commit
108078f1f0

+ 45 - 45
src/store/modules/theme.js

@@ -87,7 +87,7 @@ let disableTransitionTimer, updateContentSizeTimer;
 /**
 /**
  * 读取缓存配置
  * 读取缓存配置
  */
  */
-function getCacheSetting () {
+function getCacheSetting() {
   try {
   try {
     const value = localStorage.getItem(THEME_STORE_NAME);
     const value = localStorage.getItem(THEME_STORE_NAME);
     if (value) {
     if (value) {
@@ -105,7 +105,7 @@ function getCacheSetting () {
 /**
 /**
  * 缓存配置
  * 缓存配置
  */
  */
-function cacheSetting (key, value) {
+function cacheSetting(key, value) {
   const cache = getCacheSetting();
   const cache = getCacheSetting();
   if (cache[key] !== value) {
   if (cache[key] !== value) {
     cache[key] = value;
     cache[key] = value;
@@ -116,7 +116,7 @@ function cacheSetting (key, value) {
 /**
 /**
  * 开关响应式布局
  * 开关响应式布局
  */
  */
-function changeStyleResponsive (styleResponsive) {
+function changeStyleResponsive(styleResponsive) {
   if (styleResponsive) {
   if (styleResponsive) {
     document.body.classList.remove(BODY_LIMIT_CLASS);
     document.body.classList.remove(BODY_LIMIT_CLASS);
   } else {
   } else {
@@ -127,7 +127,7 @@ function changeStyleResponsive (styleResponsive) {
 /**
 /**
  * 切换色弱模式
  * 切换色弱模式
  */
  */
-function changeWeakMode (weakMode) {
+function changeWeakMode(weakMode) {
   if (weakMode) {
   if (weakMode) {
     document.body.classList.add(WEAK_CLASS);
     document.body.classList.add(WEAK_CLASS);
   } else {
   } else {
@@ -138,7 +138,7 @@ function changeWeakMode (weakMode) {
 /**
 /**
  * 切换主题
  * 切换主题
  */
  */
-function changeTheme (value, dark) {
+function changeTheme(value, dark) {
   return new Promise((resolve, reject) => {
   return new Promise((resolve, reject) => {
     try {
     try {
       changeColor(value, dark);
       changeColor(value, dark);
@@ -152,7 +152,7 @@ function changeTheme (value, dark) {
 /**
 /**
  * 切换布局时禁用过渡动画
  * 切换布局时禁用过渡动画
  */
  */
-function disableTransition () {
+function disableTransition() {
   disableTransitionTimer && clearTimeout(disableTransitionTimer);
   disableTransitionTimer && clearTimeout(disableTransitionTimer);
   document.body.classList.add(DISABLES_CLASS);
   document.body.classList.add(DISABLES_CLASS);
   disableTransitionTimer = setTimeout(() => {
   disableTransitionTimer = setTimeout(() => {
@@ -174,7 +174,7 @@ export default {
   })(),
   })(),
   getters: {
   getters: {
     // 需要 keep-alive 的组件
     // 需要 keep-alive 的组件
-    keepAliveInclude (state) {
+    keepAliveInclude(state) {
       if (!TAB_KEEP_ALIVE || !state.showTabs) {
       if (!TAB_KEEP_ALIVE || !state.showTabs) {
         return [];
         return [];
       }
       }
@@ -203,100 +203,100 @@ export default {
     }
     }
   },
   },
   mutations: {
   mutations: {
-    SET (state, { key, value }) {
+    SET(state, { key, value }) {
       state[key] = value;
       state[key] = value;
     }
     }
   },
   },
   actions: {
   actions: {
-    setTabs ({ commit }, value) {
+    setTabs({ commit }, value) {
       commit('SET', { key: 'tabs', value });
       commit('SET', { key: 'tabs', value });
       //cacheSetting('tabs', value);
       //cacheSetting('tabs', value);
     },
     },
-    setCollapse ({ commit, dispatch }, value) {
+    setCollapse({ commit, dispatch }, value) {
       commit('SET', { key: 'collapse', value });
       commit('SET', { key: 'collapse', value });
       dispatch('delayUpdateContentSize', 800);
       dispatch('delayUpdateContentSize', 800);
     },
     },
-    setSideNavCollapse ({ commit, dispatch }, value) {
+    setSideNavCollapse({ commit, dispatch }, value) {
       commit('SET', { key: 'sideNavCollapse', value });
       commit('SET', { key: 'sideNavCollapse', value });
       dispatch('delayUpdateContentSize', 800);
       dispatch('delayUpdateContentSize', 800);
     },
     },
-    setBodyFullscreen ({ commit, dispatch }, value) {
+    setBodyFullscreen({ commit, dispatch }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'bodyFullscreen', value });
       commit('SET', { key: 'bodyFullscreen', value });
       dispatch('delayUpdateContentSize', 800);
       dispatch('delayUpdateContentSize', 800);
     },
     },
-    setShowTabs ({ commit, dispatch }, value) {
+    setShowTabs({ commit, dispatch }, value) {
       commit('SET', { key: 'showTabs', value });
       commit('SET', { key: 'showTabs', value });
       cacheSetting('showTabs', value);
       cacheSetting('showTabs', value);
       dispatch('delayUpdateContentSize');
       dispatch('delayUpdateContentSize');
     },
     },
-    setShowFooter ({ commit, dispatch }, value) {
+    setShowFooter({ commit, dispatch }, value) {
       commit('SET', { key: 'showFooter', value });
       commit('SET', { key: 'showFooter', value });
       cacheSetting('showFooter', value);
       cacheSetting('showFooter', value);
       dispatch('delayUpdateContentSize');
       dispatch('delayUpdateContentSize');
     },
     },
-    setHeadStyle ({ commit }, value) {
+    setHeadStyle({ commit }, value) {
       commit('SET', { key: 'headStyle', value });
       commit('SET', { key: 'headStyle', value });
       cacheSetting('headStyle', value);
       cacheSetting('headStyle', value);
     },
     },
-    setSideStyle ({ commit }, value) {
+    setSideStyle({ commit }, value) {
       commit('SET', { key: 'sideStyle', value });
       commit('SET', { key: 'sideStyle', value });
       cacheSetting('sideStyle', value);
       cacheSetting('sideStyle', value);
     },
     },
-    setLayoutStyle ({ commit, dispatch }, value) {
+    setLayoutStyle({ commit, dispatch }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'layoutStyle', value });
       commit('SET', { key: 'layoutStyle', value });
       cacheSetting('layoutStyle', value);
       cacheSetting('layoutStyle', value);
       dispatch('delayUpdateContentSize');
       dispatch('delayUpdateContentSize');
     },
     },
-    setSideMenuStyle ({ commit, dispatch }, value) {
+    setSideMenuStyle({ commit, dispatch }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'sideMenuStyle', value });
       commit('SET', { key: 'sideMenuStyle', value });
       cacheSetting('sideMenuStyle', value);
       cacheSetting('sideMenuStyle', value);
       dispatch('delayUpdateContentSize');
       dispatch('delayUpdateContentSize');
     },
     },
-    setTabStyle ({ commit }, value) {
+    setTabStyle({ commit }, value) {
       commit('SET', { key: 'tabStyle', value });
       commit('SET', { key: 'tabStyle', value });
       cacheSetting('tabStyle', value);
       cacheSetting('tabStyle', value);
     },
     },
-    setTransitionName ({ commit }, value) {
+    setTransitionName({ commit }, value) {
       commit('SET', { key: 'transitionName', value });
       commit('SET', { key: 'transitionName', value });
       cacheSetting('transitionName', value);
       cacheSetting('transitionName', value);
     },
     },
-    setFixedHeader ({ commit }, value) {
+    setFixedHeader({ commit }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'fixedHeader', value });
       commit('SET', { key: 'fixedHeader', value });
       cacheSetting('fixedHeader', value);
       cacheSetting('fixedHeader', value);
     },
     },
-    setFixedSidebar ({ commit }, value) {
+    setFixedSidebar({ commit }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'fixedSidebar', value });
       commit('SET', { key: 'fixedSidebar', value });
       cacheSetting('fixedSidebar', value);
       cacheSetting('fixedSidebar', value);
     },
     },
-    setFixedBody ({ commit }, value) {
+    setFixedBody({ commit }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'fixedBody', value });
       commit('SET', { key: 'fixedBody', value });
       cacheSetting('fixedBody', value);
       cacheSetting('fixedBody', value);
     },
     },
-    setBodyFull ({ commit, dispatch }, value) {
+    setBodyFull({ commit, dispatch }, value) {
       commit('SET', { key: 'bodyFull', value });
       commit('SET', { key: 'bodyFull', value });
       cacheSetting('bodyFull', value);
       cacheSetting('bodyFull', value);
       dispatch('delayUpdateContentSize');
       dispatch('delayUpdateContentSize');
     },
     },
-    setLogoAutoSize ({ commit }, value) {
+    setLogoAutoSize({ commit }, value) {
       disableTransition();
       disableTransition();
       commit('SET', { key: 'logoAutoSize', value });
       commit('SET', { key: 'logoAutoSize', value });
       cacheSetting('logoAutoSize', value);
       cacheSetting('logoAutoSize', value);
     },
     },
-    setColorfulIcon ({ commit }, value) {
+    setColorfulIcon({ commit }, value) {
       commit('SET', { key: 'colorfulIcon', value });
       commit('SET', { key: 'colorfulIcon', value });
       cacheSetting('colorfulIcon', value);
       cacheSetting('colorfulIcon', value);
     },
     },
-    setSideUniqueOpen ({ commit }, value) {
+    setSideUniqueOpen({ commit }, value) {
       commit('SET', { key: 'sideUniqueOpen', value });
       commit('SET', { key: 'sideUniqueOpen', value });
       cacheSetting('sideUniqueOpen', value);
       cacheSetting('sideUniqueOpen', value);
     },
     },
-    setStyleResponsive ({ commit }, value) {
+    setStyleResponsive({ commit }, value) {
       changeStyleResponsive(value);
       changeStyleResponsive(value);
       commit('SET', { key: 'styleResponsive', value });
       commit('SET', { key: 'styleResponsive', value });
       cacheSetting('styleResponsive', value);
       cacheSetting('styleResponsive', value);
@@ -305,7 +305,7 @@ export default {
      * 切换色弱模式
      * 切换色弱模式
      * @param value 是否是色弱模式
      * @param value 是否是色弱模式
      */
      */
-    setWeakMode ({ commit }, value) {
+    setWeakMode({ commit }, value) {
       return new Promise((resolve) => {
       return new Promise((resolve) => {
         changeWeakMode(value);
         changeWeakMode(value);
         commit('SET', { key: 'weakMode', value });
         commit('SET', { key: 'weakMode', value });
@@ -317,7 +317,7 @@ export default {
      * 切换暗黑模式
      * 切换暗黑模式
      * @param value 是否是暗黑模式
      * @param value 是否是暗黑模式
      */
      */
-    setDarkMode ({ commit, state }, value) {
+    setDarkMode({ commit, state }, value) {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
         changeTheme(state.color, value)
         changeTheme(state.color, value)
           .then(() => {
           .then(() => {
@@ -334,7 +334,7 @@ export default {
      * 切换主题色
      * 切换主题色
      * @param value 主题色
      * @param value 主题色
      */
      */
-    setColor ({ commit, state }, value) {
+    setColor({ commit, state }, value) {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
         changeTheme(value, state.darkMode)
         changeTheme(value, state.darkMode)
           .then(() => {
           .then(() => {
@@ -351,20 +351,20 @@ export default {
      * 设置主页路由对应的组件名称
      * 设置主页路由对应的组件名称
      * @param components 组件名称
      * @param components 组件名称
      */
      */
-    setHomeComponents ({ commit }, value) {
+    setHomeComponents({ commit }, value) {
       commit('SET', { key: 'homeComponents', value });
       commit('SET', { key: 'homeComponents', value });
     },
     },
     /**
     /**
      * 设置刷新路由信息
      * 设置刷新路由信息
      * @param option 路由刷新参数
      * @param option 路由刷新参数
      */
      */
-    setRouteReload ({ commit }, value) {
+    setRouteReload({ commit }, value) {
       commit('SET', { key: 'routeReload', value });
       commit('SET', { key: 'routeReload', value });
     },
     },
     /**
     /**
      * 更新屏幕尺寸
      * 更新屏幕尺寸
      */
      */
-    updateScreenSize ({ commit, dispatch }) {
+    updateScreenSize({ commit, dispatch }) {
       commit('SET', { key: 'screenWidth', value: screenWidth() });
       commit('SET', { key: 'screenWidth', value: screenWidth() });
       commit('SET', { key: 'screenHeight', value: screenHeight() });
       commit('SET', { key: 'screenHeight', value: screenHeight() });
       dispatch('updateContentSize');
       dispatch('updateContentSize');
@@ -372,7 +372,7 @@ export default {
     /**
     /**
      * 更新内容区域尺寸
      * 更新内容区域尺寸
      */
      */
-    updateContentSize ({ commit }) {
+    updateContentSize({ commit }) {
       commit('SET', { key: 'contentWidth', value: contentWidth() });
       commit('SET', { key: 'contentWidth', value: contentWidth() });
       commit('SET', { key: 'contentHeight', value: contentHeight() });
       commit('SET', { key: 'contentHeight', value: contentHeight() });
     },
     },
@@ -380,7 +380,7 @@ export default {
      * 延时更新内容区域尺寸
      * 延时更新内容区域尺寸
      * @param delay 延迟时间
      * @param delay 延迟时间
      */
      */
-    delayUpdateContentSize ({ dispatch }, delay) {
+    delayUpdateContentSize({ dispatch }, delay) {
       updateContentSizeTimer && clearTimeout(updateContentSizeTimer);
       updateContentSizeTimer && clearTimeout(updateContentSizeTimer);
       updateContentSizeTimer = setTimeout(() => {
       updateContentSizeTimer = setTimeout(() => {
         dispatch('updateContentSize');
         dispatch('updateContentSize');
@@ -389,7 +389,7 @@ export default {
     /**
     /**
      * 重置设置
      * 重置设置
      */
      */
-    resetSetting ({ commit, state }) {
+    resetSetting({ commit, state }) {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
         disableTransition();
         disableTransition();
         [
         [
@@ -432,7 +432,7 @@ export default {
     /**
     /**
      * 恢复主题
      * 恢复主题
      */
      */
-    recoverTheme ({ state }) {
+    recoverTheme({ state }) {
       // 关闭响应式布局
       // 关闭响应式布局
       if (!state.styleResponsive) {
       if (!state.styleResponsive) {
         changeStyleResponsive(false);
         changeStyleResponsive(false);
@@ -452,7 +452,7 @@ export default {
      * 添加页签或更新相同 key 的页签数据
      * 添加页签或更新相同 key 的页签数据
      * @param data 页签数据
      * @param data 页签数据
      */
      */
-    tabAdd ({ dispatch, state }, data) {
+    tabAdd({ dispatch, state }, data) {
       if (Array.isArray(data)) {
       if (Array.isArray(data)) {
         data.forEach((d) => {
         data.forEach((d) => {
           dispatch('tabAdd', d);
           dispatch('tabAdd', d);
@@ -476,7 +476,7 @@ export default {
      * 关闭页签
      * 关闭页签
      * @param key 页签 key
      * @param key 页签 key
      */
      */
-    async tabRemove ({ dispatch, state }, { key, active }) {
+    async tabRemove({ dispatch, state }, { key, active }) {
       if (window.__POWERED_BY_QIANKUN__) {
       if (window.__POWERED_BY_QIANKUN__) {
         return Vue.prototype.$portalStore?.dispatch('theme/tabRemove', {
         return Vue.prototype.$portalStore?.dispatch('theme/tabRemove', {
           key,
           key,
@@ -504,7 +504,7 @@ export default {
     /**
     /**
      * 关闭左侧页签
      * 关闭左侧页签
      */
      */
-    async tabRemoveLeft ({ dispatch, state }, { key, active }) {
+    async tabRemoveLeft({ dispatch, state }, { key, active }) {
       let index = -1; // 选中页签的 index
       let index = -1; // 选中页签的 index
       for (let i = 0; i < state.tabs.length; i++) {
       for (let i = 0; i < state.tabs.length; i++) {
         if (state.tabs[i].key === active) {
         if (state.tabs[i].key === active) {
@@ -528,7 +528,7 @@ export default {
     /**
     /**
      * 关闭右侧页签
      * 关闭右侧页签
      */
      */
-    async tabRemoveRight ({ dispatch, state }, { key, active }) {
+    async tabRemoveRight({ dispatch, state }, { key, active }) {
       if (state.tabs.length) {
       if (state.tabs.length) {
         let index = -1; // 选中页签的 index
         let index = -1; // 选中页签的 index
         for (let i = 0; i < state.tabs.length; i++) {
         for (let i = 0; i < state.tabs.length; i++) {
@@ -565,7 +565,7 @@ export default {
     /**
     /**
      * 关闭其它页签
      * 关闭其它页签
      */
      */
-    async tabRemoveOther ({ dispatch, state }, { key, active }) {
+    async tabRemoveOther({ dispatch, state }, { key, active }) {
       let index = -1; // 选中页签的 index
       let index = -1; // 选中页签的 index
       let path; // 关闭后跳转的 path
       let path; // 关闭后跳转的 path
       const temp = state.tabs.filter((d, i) => {
       const temp = state.tabs.filter((d, i) => {
@@ -590,7 +590,7 @@ export default {
      * 关闭全部页签
      * 关闭全部页签
      * @param active 选中页签的 key
      * @param active 选中页签的 key
      */
      */
-    async tabRemoveAll ({ dispatch, state }, active) {
+    async tabRemoveAll({ dispatch, state }, active) {
       const t = state.tabs.find((d) => d.key === active);
       const t = state.tabs.find((d) => d.key === active);
       const home = typeof t !== 'undefined' && t.closable === true; // 是否跳转主页
       const home = typeof t !== 'undefined' && t.closable === true; // 是否跳转主页
       const temp = state.tabs.filter((d) => !d.closable);
       const temp = state.tabs.filter((d) => !d.closable);
@@ -604,7 +604,7 @@ export default {
      * 修改页签
      * 修改页签
      * @param data 页签数据
      * @param data 页签数据
      */
      */
-    tabSetItem ({ dispatch, state }, data) {
+    tabSetItem({ dispatch, state }, data) {
       let i = -1;
       let i = -1;
       if (data.key) {
       if (data.key) {
         i = state.tabs.findIndex((d) => d.key === data.key);
         i = state.tabs.findIndex((d) => d.key === data.key);

+ 31 - 52
src/views/produce/components/warehousing/components/newJobDdBom.vue

@@ -228,20 +228,6 @@
             let formedWeight = 0;
             let formedWeight = 0;
             let notFormedWeight = 0;
             let notFormedWeight = 0;
 
 
-            // newVal.semiProductList.forEach((v) => {
-            //   // 合格品数量
-            //   if (v.extInfo.isQualified == 1) {
-            //     formedNum += 1;
-            //     formedWeight += Number(v.extInfo.reportWeight) || 0;
-            //   } else {
-            //     noFormingNum += 1;
-            //     notFormedWeight += Number(v.extInfo.reportWeight) || 0;
-            //   }
-            // });
-
-            // newVal.workReportInfo.formedNum = formedNum;
-            // newVal.workReportInfo.notFormedNum = noFormingNum;
-
             newVal.semiProductList.forEach((item) => {
             newVal.semiProductList.forEach((item) => {
               if (
               if (
                 !item.extInfo.isQualified ||
                 !item.extInfo.isQualified ||
@@ -249,18 +235,21 @@
                 item.extInfo.isQualified == 3
                 item.extInfo.isQualified == 3
               ) {
               ) {
                 formedNum = formedNum + Number(item.feedQuantity);
                 formedNum = formedNum + Number(item.feedQuantity);
+                formedWeight = formedWeight + Number(item.extInfo.reportWeight);
               } else {
               } else {
                 noFormingNum = noFormingNum + Number(item.feedQuantity);
                 noFormingNum = noFormingNum + Number(item.feedQuantity);
+                notFormedWeight =
+                  notFormedWeight + Number(item.extInfo.reportWeight);
               }
               }
             });
             });
 
 
             this.$set(this.item.workReportInfo, 'formedNum', formedNum);
             this.$set(this.item.workReportInfo, 'formedNum', formedNum);
             this.$set(this.item.workReportInfo, 'notFormedNum', noFormingNum);
             this.$set(this.item.workReportInfo, 'notFormedNum', noFormingNum);
-            newVal.workReportInfo.formedWeight = parseFloat(
-              formedWeight.toFixed(3)
-            );
-            newVal.workReportInfo.notFormedWeight = parseFloat(
-              notFormedWeight.toFixed(3)
+            this.$set(this.item.workReportInfo, 'formedWeight', formedWeight);
+            this.$set(
+              this.item.workReportInfo,
+              'notFormedWeight',
+              notFormedWeight
             );
             );
             this.$forceUpdate();
             this.$forceUpdate();
           }
           }
@@ -271,20 +260,6 @@
             let formedWeight = 0;
             let formedWeight = 0;
             let notFormedWeight = 0;
             let notFormedWeight = 0;
 
 
-            // newVal.product.forEach((v) => {
-            //   // 合格品数量
-            //   if (v.extInfo.isQualified == 1) {
-            //     formedNum += 1;
-            //     formedWeight += Number(v.extInfo.reportWeight) || 0;
-            //   } else {
-            //     noFormingNum += 1;
-            //     notFormedWeight += Number(v.extInfo.reportWeight) || 0;
-            //   }
-            // });
-
-            // newVal.workReportInfo.formedNum = formedNum;
-            // newVal.workReportInfo.notFormedNum = noFormingNum;
-
             newVal.product.forEach((item) => {
             newVal.product.forEach((item) => {
               if (
               if (
                 !item.extInfo.isQualified ||
                 !item.extInfo.isQualified ||
@@ -292,37 +267,41 @@
                 item.extInfo.isQualified == 3
                 item.extInfo.isQualified == 3
               ) {
               ) {
                 formedNum = formedNum + Number(item.feedQuantity);
                 formedNum = formedNum + Number(item.feedQuantity);
+                formedWeight = formedWeight + Number(item.extInfo.reportWeight);
               } else {
               } else {
                 noFormingNum = noFormingNum + Number(item.feedQuantity);
                 noFormingNum = noFormingNum + Number(item.feedQuantity);
+                notFormedWeight =
+                  notFormedWeight + Number(item.extInfo.reportWeight);
               }
               }
             });
             });
 
 
             this.$set(this.item.workReportInfo, 'formedNum', formedNum);
             this.$set(this.item.workReportInfo, 'formedNum', formedNum);
             this.$set(this.item.workReportInfo, 'notFormedNum', noFormingNum);
             this.$set(this.item.workReportInfo, 'notFormedNum', noFormingNum);
-            newVal.workReportInfo.formedWeight = parseFloat(
-              formedWeight.toFixed(3)
-            );
-            newVal.workReportInfo.notFormedWeight = parseFloat(
-              notFormedWeight.toFixed(3)
+            this.$set(this.item.workReportInfo, 'formedWeight', formedWeight);
+            this.$set(
+              this.item.workReportInfo,
+              'notFormedWeight',
+              notFormedWeight
             );
             );
+
             this.$forceUpdate();
             this.$forceUpdate();
           }
           }
 
 
           //打包信息重量相加赋值给总重量
           //打包信息重量相加赋值给总重量
-          let formedWeight = 0;
-          if (newVal.toWarehouseList && newVal.toWarehouseList.length > 0) {
-            newVal.toWarehouseList.map((titem) => {
-              titem.extInfo.pickOutInList.map((pitem) => {
-                formedWeight = formedWeight + pitem.extInfo.newWeight;
-              });
-            });
-          }
-
-          if (formedWeight) {
-            newVal.workReportInfo.formedWeight = parseFloat(
-              formedWeight.toFixed(3)
-            );
-          }
+          // let formedWeight = 0;
+          // if (newVal.toWarehouseList && newVal.toWarehouseList.length > 0) {
+          //   newVal.toWarehouseList.map((titem) => {
+          //     titem.extInfo.pickOutInList.map((pitem) => {
+          //       formedWeight = formedWeight + pitem.extInfo.newWeight;
+          //     });
+          //   });
+          // }
+
+          // if (formedWeight) {
+          //   newVal.workReportInfo.formedWeight = parseFloat(
+          //     formedWeight.toFixed(3)
+          //   );
+          // }
 
 
           // newVal.workReportInfo.formedWeight = parseFloat(
           // newVal.workReportInfo.formedWeight = parseFloat(
           //   formedWeight.toFixed(3)
           //   formedWeight.toFixed(3)