|
@@ -45,7 +45,7 @@
|
|
|
<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 { WrPerformancePlan, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
|
+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 { handleForm } from './setup';
|
|
@@ -60,6 +60,11 @@ import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo
|
|
|
import { performanceContractedApply, performanceDelayApply } from '@/services/proto/performance';
|
|
import { performanceContractedApply, performanceDelayApply } from '@/services/proto/performance';
|
|
|
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';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.commodity_contract_summary_settlement,
|
|
name: ModalEnum.commodity_contract_summary_settlement,
|
|
@@ -67,7 +72,7 @@ export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrPerformancePlan>,
|
|
|
|
|
|
|
+ type: Object as PropType<QueryTradePositionRsp>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
buyOrSell: {
|
|
buyOrSell: {
|
|
@@ -77,7 +82,12 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
- const loading = ref<boolean>(false);
|
|
|
|
|
|
|
+ const param: QueryWrDeliveryAvalidHoldLBReq = {
|
|
|
|
|
+ goodsid: props.selectedRow.goodsid,
|
|
|
|
|
+ accountid: getSelectedAccountId(),
|
|
|
|
|
+ };
|
|
|
|
|
+ const { loading, list } = useQueryData<WrDeliveryAvalidHoldLB>(queryWrDeliveryAvalidHoldLB, param);
|
|
|
|
|
+ console.log('listddd', list);
|
|
|
// const { rules, formState, formRef } = handleForm();
|
|
// const { rules, formState, formRef } = handleForm();
|
|
|
function submit() {
|
|
function submit() {
|
|
|
// validateAction<FormState>(formRef, formState).then((param) => {
|
|
// validateAction<FormState>(formRef, formState).then((param) => {
|