Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 3 years ago
parent
commit
ce11802e5d

+ 4 - 1
src/router/modules/supply.js View File

81
       component: () => import('@/xt_pages/supply/components/editGoodOrder'),
81
       component: () => import('@/xt_pages/supply/components/editGoodOrder'),
82
       name: 'editGoodOrder',
82
       name: 'editGoodOrder',
83
       meta: { title: 'editGoodOrder', noCache: true },
83
       meta: { title: 'editGoodOrder', noCache: true },
84
+      hidden: true,
85
+      is_menu: false,
86
+      isChild: true
84
     },
87
     },
85
     // 退货单模块
88
     // 退货单模块
86
     {
89
     {
87
       path: '/good/return/query',
90
       path: '/good/return/query',
88
       component: () => import('@/xt_pages/supply/goodreturn'),
91
       component: () => import('@/xt_pages/supply/goodreturn'),
89
       name: 'goodReturnQuery',
92
       name: 'goodReturnQuery',
90
-      meta: { title: 'goodReturnQuery', noCache: true },
93
+      meta: { title: 'goodReturnQuery', noCache: true }
91
     },
94
     },
92
     {
95
     {
93
       path: '/good/return/add',
96
       path: '/good/return/add',

+ 2 - 2
src/views/layout/Layout.vue View File

16
           <i class="iconfont icon-computer_fill navIcon"></i>
16
           <i class="iconfont icon-computer_fill navIcon"></i>
17
           <p>透析管理</p>
17
           <p>透析管理</p>
18
         </div>
18
         </div>
19
-        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
19
+        <!-- <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
20
           <i class="iconfont icon-kccx navIcon"></i>
20
           <i class="iconfont icon-kccx navIcon"></i>
21
           <p>采购管理</p>
21
           <p>采购管理</p>
22
-        </div>
22
+        </div> -->
23
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
23
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
24
           <i class="iconfont icon-kccx navIcon"></i>
24
           <i class="iconfont icon-kccx navIcon"></i>
25
           <p>库房管理</p>
25
           <p>库房管理</p>

+ 6 - 5
src/xt_pages/supply/components/editGoodOrder.vue View File

771
             //如果total的长度等于 采购单的长度,怎表示该采购订单已经全部生成,全部入库
771
             //如果total的长度等于 采购单的长度,怎表示该采购订单已经全部生成,全部入库
772
           
772
           
773
             if(arr.length == 0){
773
             if(arr.length == 0){
774
-              this.$message.error("该订单已全部生成采购单,请知悉!")
775
-              return
774
+              is_warehouse = 1
775
+              this.ModefySupplyWarehousing(is_warehouse,warehousing_id)
776
             }
776
             }
777
             
777
             
778
-
778
+            //部分入库
779
             if(total!=goodOrder.length){
779
             if(total!=goodOrder.length){
780
-              str = arr.join(",")
781
-              this.$router.push({path:"/good/order/add?id="+id+"&ids="+str})
780
+               //修改订购单
781
+               is_warehouse = 3
782
+               this.ModefySupplyWarehousing(is_warehouse,warehousing_id)
782
             }
783
             }
783
           }
784
           }
784
         }
785
         }

+ 1 - 3
src/xt_pages/supply/components/editPurchaseOrder.vue View File

204
 
204
 
205
         <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
205
         <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
206
 
206
 
207
-      
208
-
209
     </div>
207
     </div>
210
 </div>
208
 </div>
211
 
209
 
377
   this.currentIndex = val
375
   this.currentIndex = val
378
 },
376
 },
379
 changeName(val){
377
 changeName(val){
380
-    //var obj = {"id":0,"name":"合计","supply_name":"","supply_type":"","supply_specification_name":"","supply_total":"","supply_count":"","supply_price":"","supply_total_price":"","supply_manufacturer":"","supply_license_number":"","supply_remake":"","is_total":2}
378
+   
381
    for(let i=0;i<this.recordInfo.tableList.length;i++){
379
    for(let i=0;i<this.recordInfo.tableList.length;i++){
382
     if(this.currentIndex == i){
380
     if(this.currentIndex == i){
383
         this.recordInfo.tableList[i].project_id = val.id
381
         this.recordInfo.tableList[i].project_id = val.id

+ 11 - 5
src/xt_pages/supply/purchaseOrderQuery.vue View File

90
               <span>{{getName(scope.row.supplier_id)}}</span>
90
               <span>{{getName(scope.row.supplier_id)}}</span>
91
             </template>
91
             </template>
92
          </el-table-column>
92
          </el-table-column>
93
-        <el-table-column label="关联购货单" align="center">
93
+        <el-table-column label="关联购货单" align="center">
94
           <template slot-scope="scope">
94
           <template slot-scope="scope">
95
             <div style="width:100%;height:100%">
95
             <div style="width:100%;height:100%">
96
               <tr class="annotation-rs cluster-rs" v-for="(item,index) in scope.row.orderOut" :key="index">
96
               <tr class="annotation-rs cluster-rs" v-for="(item,index) in scope.row.orderOut" :key="index">
99
             </div>
99
             </div>
100
           </template>
100
           </template>
101
         </el-table-column>
101
         </el-table-column>
102
-        <el-table-column label="购金额" align="center">
102
+        <el-table-column label="购金额" align="center">
103
           <template slot-scope="scope">
103
           <template slot-scope="scope">
104
              <span v-if="getAllBuyPrice(scope.row.orderInfo)>0">{{getAllBuyPrice(scope.row.orderInfo)}}</span> 
104
              <span v-if="getAllBuyPrice(scope.row.orderInfo)>0">{{getAllBuyPrice(scope.row.orderInfo)}}</span> 
105
           </template>
105
           </template>
303
        return buy_price.toFixed(2)
303
        return buy_price.toFixed(2)
304
      },
304
      },
305
      getAllCount(arr){
305
      getAllCount(arr){
306
-       var count = ""
306
+       var count = 0
307
         if(arr!=undefined && arr.length > 0){
307
         if(arr!=undefined && arr.length > 0){
308
           for(let i=0;i<arr.length;i++){
308
           for(let i=0;i<arr.length;i++){
309
-            count += arr[i].count
309
+            count += parseInt(arr[i].count)
310
           }
310
           }
311
        }
311
        }
312
-       return count
312
+       if(count == 0){
313
+         return ""
314
+       }
315
+       if(count > 0){
316
+         return count
317
+       }
318
+      
313
      },
319
      },
314
      toClick(id){
320
      toClick(id){
315
        this.$router.push({path:"/purchase/order/edit?id="+id})
321
        this.$router.push({path:"/purchase/order/edit?id="+id})

+ 1 - 1
src/xt_pages/supply/supplyQuery.vue View File

163
 <script>
163
 <script>
164
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
164
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
165
 import addSupply from "./components/addSupply.vue"
165
 import addSupply from "./components/addSupply.vue"
166
-import {getSupplierId} from "@/api/supply"
166
+// import {getSupplierId} from "@/api/supply"
167
 export default {
167
 export default {
168
   name: "stockIn",
168
   name: "stockIn",
169
   created() {
169
   created() {