|
@@ -78,7 +78,8 @@
|
|
|
<div>{{getDeliveryGoodsPrice()}}</div>
|
|
<div>{{getDeliveryGoodsPrice()}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="line3">预估贷款:{{getEstimatedPayment()}}</div>
|
|
|
|
|
|
|
+ <div v-if="isBaseSpread()"
|
|
|
|
|
+ class="line3">预估贷款:{{getEstimatedPayment()}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<a-form-item class="btnCenter mt10">
|
|
<a-form-item class="btnCenter mt10">
|
|
@@ -96,30 +97,18 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { QueryWrDeliveryAvalidHoldLBReq, WrDeliveryAvalidHoldLB, WrPerformancePlan, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-// import { handleForm } from './setup';
|
|
|
|
|
-import { validateAction } from '@/common/setup/form';
|
|
|
|
|
-import { DBType, FormState } from './interface';
|
|
|
|
|
|
|
|
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
|
-import { getUploadImg } from '@/common/setup/upload';
|
|
|
|
|
-import { PerformanceContractedApplyReq, PerformanceDelayApplyReq } from '@/services/proto/performance/interface';
|
|
|
|
|
-import { getSelectedAccount, getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
|
|
-import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
-import { performanceContractedApply, performanceDelayApply } from '@/services/proto/performance';
|
|
|
|
|
|
|
+import { getSelectedAccountId } from '@/services/bus/account';
|
|
|
|
|
+
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import Long from 'long';
|
|
import Long from 'long';
|
|
|
-import { queryTableList } from '@/common/setup/table';
|
|
|
|
|
-import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
-import { useQueryData } from '@/common/setup/request';
|
|
|
|
|
-import { queryWrDeliveryAvalidHoldLB } from '@/services/go/wrtrade';
|
|
|
|
|
import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
import { handleCheck, getTableList, handleCalculation } from './setup';
|
|
import { handleCheck, getTableList, handleCalculation } from './setup';
|
|
|
import { DeliveryOrder } from '@/services/proto/warehousetrade';
|
|
import { DeliveryOrder } from '@/services/proto/warehousetrade';
|
|
|
-import { handleDeliveryRelation } from '@/common/setup/deliveryRelation';
|
|
|
|
|
import { v4 } from 'uuid';
|
|
import { v4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
import { DeliveryOrderReq } from '@/services/proto/warehousetrade/interface';
|
|
import { DeliveryOrderReq } from '@/services/proto/warehousetrade/interface';
|
|
@@ -172,7 +161,6 @@ export default defineComponent({
|
|
|
// marketid,
|
|
// marketid,
|
|
|
AccountID: getSelectedAccountId(),
|
|
AccountID: getSelectedAccountId(),
|
|
|
XGoodsID: goodsid,
|
|
XGoodsID: goodsid,
|
|
|
- PGoodsID: deliveryGoods.value.pgoodsid,
|
|
|
|
|
DeliveryGoodsID: deliveryGoods.value.deliverygoodsid,
|
|
DeliveryGoodsID: deliveryGoods.value.deliverygoodsid,
|
|
|
XQty: Long.fromNumber(XQty()),
|
|
XQty: Long.fromNumber(XQty()),
|
|
|
PQty: Long.fromNumber(PQty()),
|
|
PQty: Long.fromNumber(PQty()),
|
|
@@ -188,6 +176,9 @@ export default defineComponent({
|
|
|
SubNum: selected.value.subnum,
|
|
SubNum: selected.value.subnum,
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
|
|
+ if (isBaseSpread()) {
|
|
|
|
|
+ param.PGoodsID = deliveryGoods.value.pgoodsid;
|
|
|
|
|
+ }
|
|
|
console.log('param', param);
|
|
console.log('param', param);
|
|
|
DeliveryOrder(param)
|
|
DeliveryOrder(param)
|
|
|
.then((res) => {
|
|
.then((res) => {
|