|
@@ -397,7 +397,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref, toRaw } from 'vue';
|
|
|
|
|
|
|
+import {defineComponent, PropType, ref, toRaw} from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { initData } from '@/common/methods';
|
|
import { initData } from '@/common/methods';
|
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice, handleDate, addContractReq } from './setup';
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice, handleDate, addContractReq } from './setup';
|
|
@@ -407,11 +407,18 @@ import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
|
import { FormState } from './interface';
|
|
import { FormState } from './interface';
|
|
|
import { formatTime } from '@/common/methods/format';
|
|
import { formatTime } from '@/common/methods/format';
|
|
|
|
|
+import {Ermcp3ContractRsp} from "@/services/go/ermcp/spot-contract/interface";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
name: 'add-spot-contract',
|
|
|
components: {},
|
|
components: {},
|
|
|
- setup() {
|
|
|
|
|
|
|
+ props: {
|
|
|
|
|
+ selectedRow: {
|
|
|
|
|
+ type: Object as PropType<Ermcp3ContractRsp>,
|
|
|
|
|
+ default: {},
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ setup(props,context) {
|
|
|
const { visible, cancel } = closeModal('spot_contract_btn_add');
|
|
const { visible, cancel } = closeModal('spot_contract_btn_add');
|
|
|
const { loading, sendReq } = addContractReq();
|
|
const { loading, sendReq } = addContractReq();
|
|
|
|
|
|
|
@@ -476,6 +483,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
sendReq(param, OperateType)
|
|
sendReq(param, OperateType)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
|
+ context.emit('refresh');
|
|
|
cancel();
|
|
cancel();
|
|
|
})
|
|
})
|
|
|
.catch((err) => {});
|
|
.catch((err) => {});
|