gjy 3 سال پیش
والد
کامیت
1b0ce510f6

+ 2 - 1
src/api/V2/tradeServicesManagement/index.js

@@ -14,4 +14,5 @@ export const API_POST_WAREHOUSE_EDIT = '/warehouseBaseInfo/getWarehouse'
 export const API_GET_BILLNO = '/tradeWarehouseReceiptAppl/getBillNo'
 // 出入库记录
 export const API_GET_RECORD = 'warehouseInOutInfo/selectInfo'
-
+// 查看当天出/入数量
+export const API_GET_WAREHOUSE_COUNT = '/warehouseInOutInfo/count'

+ 4 - 1
src/model/tradeServicesManagement/index.js

@@ -7,7 +7,8 @@ import {
     API_GET_BILLNO,
     API_GET_TRADESERVICES_LIST,
     API_POST_RECEIPTAPPL_ADD,
-    API_GET_RECORD
+    API_GET_RECORD,
+    API_GET_WAREHOUSE_COUNT
 } from '@/api/V2/tradeServicesManagement'
 
 // 列表
@@ -23,3 +24,5 @@ export const editList = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorH
 export const getbillno = appRx.get(API_GET_BILLNO, errorCatcher, errorHandle, filter)
 // 出入库记录
 export const getrecord = appRx.get(API_GET_RECORD, errorCatcher, errorHandle, filter)
+// 查看当天出/入数量
+export const getwarehousecount = appRx.get(API_GET_WAREHOUSE_COUNT, errorCatcher, errorHandle, filter)

+ 66 - 3
src/views/tradeServicesManagement/inOutRecord.vue

@@ -137,12 +137,65 @@
         </div>
       </div>
     </el-dialog>
+    <el-dialog :visible.sync="isCountShow1" title="结算单">
+      <div class="content" v-if="true">
+        <div class="title">磅码单</div>
+        <div class="title">{{tableData.code}}</div>
+        <table class="table">
+          <tr class="row">
+            <td class="col col-bgc">单位</td>
+            <td class="col" colspan="4">{{tableData.companyName}}</td>
+            <td class="col col-bgc">类型</td>
+            <td class="col"colspan="1">{{tableData.inOutType}}</td>
+            <td class="col col-bgc">车牌号</td>
+            <td class="col" colspan="1">{{tableData.carNo}}</td>
+            
+          </tr>
+          <tr class="row">
+            <td class="col col-bgc">仓库</td>
+            <td class="col" colspan="4">{{tableData.warehouseName}}</td>
+            <td class="col col-bgc">仓位</td>
+            <td class="col" colspan="1">{{tableData.binNumber}}</td>
+            <td class="col col-bgc">货名</td>
+            <td class="col" colspan="1">{{tableData.goodsName}}</td>
+          </tr>
+          <tr class="row">
+            <td class="col col-bgc">毛重(公斤)</td>
+            <td class="col" colspan="1">{{tableData.grossWeight}}</td>
+            <td class="col col-bgc">皮重(公斤)</td>
+            <td class="col" colspan="2">{{tableData.tare}}</td>
+            <td class="col col-bgc">扣重(公斤)</td>
+            <td class="col" colspan="1">{{tableData.weight}}</td>
+            <td class="col col-bgc">净重(公斤)</td>
+            <td class="col" colspan="1">{{tableData.netWeight}}</td>
+          </tr>
+        </table> 
+        <div class="bottom">
+          <div style='justify-content: space-between;' class="bottom-row1">
+            <div class="config">毛检:{{tableData.secretaryWeigher}}皮检:{{tableData.skinInspector}}</div>
+            <div class="autograph">日期:{{tableData.inOutDate}}</div>
+          </div>
+        </div>
+      </div>
+    </el-dialog>
+    <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint"
+        :title="printData.compName + '结算凭证'">
+        <!-- selectCustomerList:[],
+        selectPrintList: [], -->
+        <paymentPrint :printData="printData" :customerInfo="customerList" :showType="ruleForm.type"></paymentPrint>
+        <div style="text-align: center">
+          <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
+          <!-- <el-button type="primary" @click="printSmall">打印小票</el-button> -->
+          <el-button type="primary" @click="printBig">打印单据</el-button>
+        </div>
+      </el-dialog>
 	</div>
 </template>
 <script>
 	import {
 		getList,
-    getrecord
+    getrecord,
+    getwarehousecount
 	} from '@/model/tradeServicesManagement/index'
 	export default {
 		components: {},
@@ -161,6 +214,7 @@
         pageSize:10,
         searchType:'',
         isCountShow:false,
+        isShowPrint:false,
 				isShowPrintType:false,
 				deptBudgetList:{},
 				pickerOptions:[],
@@ -226,10 +280,19 @@ warehouseName: "erp测试库",
         if(status==1){
           this.isCountShow=true
           this.tableData=item
-          this.tableData.code=
+          getwarehousecount({
+            // positionId:this.deptBudgetList.positionId,
+            positionId: "6a46921d2f7a468d9c73663d6c28e294",
+            inOutFlag:item.inOutFlag
+            }).toPromise()
+          .then((res) => {
+            console.log(res)
+          })
+          this.tableData.code=this.getdate()+item.commonWarehouseNo
           console.log(this.tableData)
         }else{
-
+          this.isShowPrint=true
+          this.tableData=item
         }
       },
       getdate() {