Browse Source

修改getStockNumPrice遍历字段

lichao 3 years ago
parent
commit
f181f5b71d
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/views/warehouse/outStock/index.vue

+ 11 - 2
src/views/warehouse/outStock/index.vue

@@ -168,7 +168,7 @@ import moment from 'moment'
 import { company } from '@/api/purchaseRequest/index'
 import { company } from '@/api/purchaseRequest/index'
 import { getStockNumPrice } from '@/api/allocation/index'
 import { getStockNumPrice } from '@/api/allocation/index'
 export default {
 export default {
-  name: 'inStock',
+  name: 'outStock',
   data(){
   data(){
     return{
     return{
       lander:'',
       lander:'',
@@ -1943,6 +1943,15 @@ export default {
         case '刷新':
         case '刷新':
           if(this.detailForm.fId){
           if(this.detailForm.fId){
             getSave(this.detailForm.fId).then(res=>{
             getSave(this.detailForm.fId).then(res=>{
+              // let data = {
+              //   tableName: this.detailList.tableName,
+              //   userId: Cookies.get('userName')
+              // }
+              // let list ={
+              //   warehouseBills:res.data.warehouseBills,
+              //   tWarehousebillsfees:res.data.tWarehousebillsfees
+              // }
+              // this.getRow(data,list,1)
               if(res.data.warehouseBills){
               if(res.data.warehouseBills){
                 this.detailForm = res.data.warehouseBills
                 this.detailForm = res.data.warehouseBills
                 this.$set(this.detailForm,'fStorekeeper',JSON.parse(this.detailForm.fStorekeeper))
                 this.$set(this.detailForm,'fStorekeeper',JSON.parse(this.detailForm.fStorekeeper))
@@ -2052,7 +2061,7 @@ export default {
     },
     },
     // 品名、计量单位、调出库区和供应商变化获得库存数量和库存单价
     // 品名、计量单位、调出库区和供应商变化获得库存数量和库存单价
     getStockNumPrice() {
     getStockNumPrice() {
-      this.contentList.forEach((item, index) => {
+      this.detailData.forEach((item, index) => {
         if (item.fFeeid === null || item.fFeeunitid === null || item.fWarehouseid === null || item.fCorpid === null) {
         if (item.fFeeid === null || item.fFeeunitid === null || item.fWarehouseid === null || item.fCorpid === null) {
           return;
           return;
         } else {
         } else {