XMLWAN 3 年前
父节点
当前提交
f5fee6e95d

+ 11 - 10
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

268
       stockTotal:[],
268
       stockTotal:[],
269
       goodInfoData:[],
269
       goodInfoData:[],
270
       orgId:"",
270
       orgId:"",
271
-      tableData:[]
271
+      tableData:[],
272
+      tableOut:[],
272
     };
273
     };
273
   },
274
   },
274
   methods: {
275
   methods: {
755
       },
756
       },
756
 
757
 
757
     exportList(){
758
     exportList(){
758
-       for(let i=0;i<this.tableData.length;i++){
759
-        this.tableData[i].index = i+1
760
-        this.tableData[i].good_name = this.tableData[i].good_name
761
-        this.tableData[i].specification_name = this.tableData[i].specification_name
762
-        this.tableData[i].packing_unit = this.tableData[i].packing_unit
763
-        this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].packing_price).toFixed(2)
764
-        this.tableData[i].out_count = this.getStockCount(this.tableData[i].good_id)
759
+       for(let i=0;i<this.tableOut.length;i++){
760
+        this.tableOut[i].index = i+1
761
+        this.tableOut[i].good_name = this.tableOut[i].good_name
762
+        this.tableOut[i].specification_name = this.tableOut[i].specification_name
763
+        this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
764
+        this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].packing_price).toFixed(2)
765
+        this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
765
        }
766
        }
766
        import('@/vendor/Export2Excel').then(excel => {
767
        import('@/vendor/Export2Excel').then(excel => {
767
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
768
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
768
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
769
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
769
 
770
 
770
-       const data = this.formatJson(filterVal, this.tableData)
771
+       const data = this.formatJson(filterVal, this.tableOut)
771
        console.log("data",data)
772
        console.log("data",data)
772
        
773
        
773
         excel.export_json_to_excel({
774
         excel.export_json_to_excel({
808
         if(response.data.state == 1){
809
         if(response.data.state == 1){
809
           var list = response.data.data.list
810
           var list = response.data.data.list
810
           console.log("出库单详单",list)
811
           console.log("出库单详单",list)
811
-          this.tableData = list
812
+          this.tableOut = list
812
           var stockTotal = response.data.data.stockTotal
813
           var stockTotal = response.data.data.stockTotal
813
           this.stockTotal = stockTotal
814
           this.stockTotal = stockTotal
814
         }
815
         }

+ 0 - 1
src/xt_pages/stock/stockModifyPrice.vue 查看文件

727
     
727
     
728
      },
728
      },
729
      SaveCheckedPrice(){
729
      SaveCheckedPrice(){
730
-       
731
          var params = {
730
          var params = {
732
             ids:this.ids,
731
             ids:this.ids,
733
             check_time:this.getTime(this.check_time),
732
             check_time:this.getTime(this.check_time),

+ 1 - 6
src/xt_pages/stock/stockQuery.vue 查看文件

181
     nowYear = nowDate.getFullYear();
181
     nowYear = nowDate.getFullYear();
182
     nowMonth = nowDate.getMonth() + 1;
182
     nowMonth = nowDate.getMonth() + 1;
183
     nowDay = nowDate.getDate();
183
     nowDay = nowDate.getDate();
184
-    this.start_time =
185
-      nowYear +
186
-      "-" +
187
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
188
-      "-" +
189
-      (nowDay < 10 ? "0" + nowDay : nowDay);
184
+    this.start_time = nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
190
     this.GetAllGoodInfo();
185
     this.GetAllGoodInfo();
191
     this.GetAllGoodType();
186
     this.GetAllGoodType();
192
     this.getlist()
187
     this.getlist()