|
|
@@ -242,6 +242,7 @@
|
|
|
v-if="formState.PriceType === 3">
|
|
|
<a-form-item label="暂定价">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
+ style="width: 200px"
|
|
|
:suffix="payCurrencyUnit"
|
|
|
placeholder="请输入暂定价" />
|
|
|
</a-form-item>
|
|
|
@@ -278,6 +279,7 @@
|
|
|
<a-range-picker v-model:value="priceDate"
|
|
|
class="commonPicker"
|
|
|
:disabled-date="disabledDate"
|
|
|
+ style="width: 200px"
|
|
|
:show-time="{hideDisabledOptions: true}"
|
|
|
format="YYYY-MM-DD" />
|
|
|
</a-form-item>
|
|
|
@@ -286,6 +288,7 @@
|
|
|
<a-form-item label="交收期">
|
|
|
<a-range-picker v-model:value="deliveryDate"
|
|
|
class="commonPicker"
|
|
|
+ style="width: 200px"
|
|
|
:disabled-date="disabledDate"
|
|
|
:show-time="{hideDisabledOptions: true}"
|
|
|
format="YYYY-MM-DD" />
|
|
|
@@ -401,7 +404,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref, toRaw } from 'vue';
|
|
|
+import {defineComponent, PropType, ref, toRaw} from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { initData } from '@/common/methods';
|
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handleAmout, handlePrice, handleDate, addContractReq } from './setup';
|
|
|
@@ -411,11 +414,18 @@ import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
|
import { FormState } from './interface';
|
|
|
import { formatTime } from '@/common/methods/format';
|
|
|
+import {Ermcp3ContractRsp} from "@/services/go/ermcp/spot-contract/interface";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
|
components: {},
|
|
|
- setup() {
|
|
|
+ props: {
|
|
|
+ selectedRow: {
|
|
|
+ type: Object as PropType<Ermcp3ContractRsp>,
|
|
|
+ default: {},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ setup(props,context) {
|
|
|
const { visible, cancel } = closeModal('spot_contract_btn_add');
|
|
|
const { loading, sendReq } = addContractReq();
|
|
|
|
|
|
@@ -482,6 +492,7 @@ export default defineComponent({
|
|
|
|
|
|
sendReq(param, OperateType)
|
|
|
.then((res) => {
|
|
|
+ context.emit('refresh');
|
|
|
cancel();
|
|
|
})
|
|
|
.catch((err) => {});
|