gjy 2 年之前
父節點
當前提交
2ce283b599

+ 2 - 0
src/api/V2/houseSelfCollect/index.js

@@ -116,4 +116,6 @@ export const API_POST_RETURN= '/weighingManagement/weightReturn'
 export const API_POST_SUBMIT= '/warehouseInOutInfo/api/newInOutWarehouse'
 // 换仓
 export const API_POST_CHANE_NO = `/weighingManagement/api/changeWarehouse`
+// 查询合同
+export const API_GET_CONTRACT ='/contractManagementInfo/getInContract'
 

+ 6 - 2
src/model/houseSelfCollect/index.js

@@ -60,7 +60,9 @@ import {
   API_POST_RETURN,
   API_POST_SUBMIT,
   API_POST_CHANE_NO,
-  API_POST_DELETE
+  API_POST_DELETE,
+API_GET_CONTRACT
+  
 } from '@/api/V2/houseSelfCollect'
 //客户管理列表
 export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
@@ -181,4 +183,6 @@ export const deleteInfo = appRx.post(API_POST_DELETE, errorCatcher, errorHandle,
 // 新检斤保存
 export const newSubmit = appRx.post(API_POST_SUBMIT, errorCatcher, errorHandle, filter)
 // 换仓
-export const changeNo = appRx.post(API_POST_CHANE_NO, errorCatcher, errorHandle, filter)
+export const changeNo = appRx.post(API_POST_CHANE_NO, errorCatcher, errorHandle, filter)
+// 获取合同
+export const getcontract = appRx.get(API_GET_CONTRACT, errorCatcher, errorHandle, filter)

+ 5 - 3
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -551,6 +551,7 @@ import {
   getinspectLookGoods,
   getshippinginfo,
   postCheck,
+  getcontract
 } from '@/model/houseSelfCollect/index'
 import {
   pullDown,
@@ -560,8 +561,7 @@ import {
   getReceiptTaskNo,
 } from '@/model/warehouse/index'
 import {
-    gettask,
-    getcontract
+    gettask
   } from '@/model/outboundManagement/index'
 import inspectInfoPrint from './component/inspectInfoPrint.vue'
 import html2canvas from 'html2canvas'
@@ -3554,7 +3554,8 @@ export default {
       }
       if (!data) return
       getcontract({contractNo:this.deptBudgetList.contractNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
-          if(this.outContractNo.priceType == "定价收购"){
+        this.outContractNo=response  
+        if(this.outContractNo.priceType == "定价收购"){
             if( this.deptBudgetList.type == "潮粮"){
            this.deptBudgetList.tidalGrainPrice = Number(this.outContractNo.unitContractPrice/1000).toFixed(2)
             }else{
@@ -3681,6 +3682,7 @@ export default {
           }else{
             this.fleetNameList = []
           }
+          console.log(this.deptBudgetList.inOutType,this.outContractNo.inOutType)
       })
     },
     selectstorageType() {