Quellcode durchsuchen

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

see999 vor 3 Jahren
Ursprung
Commit
ce11802e5d

+ 4 - 1
src/router/modules/supply.js Datei anzeigen

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

+ 2 - 2
src/views/layout/Layout.vue Datei anzeigen

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

+ 6 - 5
src/xt_pages/supply/components/editGoodOrder.vue Datei anzeigen

@@ -771,14 +771,15 @@ getTimes(time) {
771 771
             //如果total的长度等于 采购单的长度,怎表示该采购订单已经全部生成,全部入库
772 772
           
773 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 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 Datei anzeigen

@@ -204,8 +204,6 @@
204 204
 
205 205
         <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
206 206
 
207
-      
208
-
209 207
     </div>
210 208
 </div>
211 209
 
@@ -377,7 +375,7 @@ changeGoodName(val){
377 375
   this.currentIndex = val
378 376
 },
379 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 379
    for(let i=0;i<this.recordInfo.tableList.length;i++){
382 380
     if(this.currentIndex == i){
383 381
         this.recordInfo.tableList[i].project_id = val.id

+ 11 - 5
src/xt_pages/supply/purchaseOrderQuery.vue Datei anzeigen

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

+ 1 - 1
src/xt_pages/supply/supplyQuery.vue Datei anzeigen

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