|
@@ -140,7 +140,7 @@ import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo
|
|
|
import { HdWROrderReq, WRGoodsInfo } from '@/services/proto/warehousetrade/interface';
|
|
import { HdWROrderReq, WRGoodsInfo } from '@/services/proto/warehousetrade/interface';
|
|
|
import { getAccountTypeList, getInTaAccount, getUserId } from '@/services/bus/account';
|
|
import { getAccountTypeList, getInTaAccount, getUserId } from '@/services/bus/account';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
-import moment from 'moment';
|
|
|
|
|
|
|
+import moment, { Moment } from 'moment';
|
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
import { WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
import { WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
import { handleForm } from './setup';
|
|
import { handleForm } from './setup';
|
|
@@ -163,12 +163,17 @@ export default defineComponent({
|
|
|
default: '',
|
|
default: '',
|
|
|
type: String as PropType<EnumRouterName>,
|
|
type: String as PropType<EnumRouterName>,
|
|
|
},
|
|
},
|
|
|
|
|
+ time: {
|
|
|
|
|
+ type: Object as PropType<Moment>,
|
|
|
|
|
+ default: moment(),
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const accountList = getAccountTypeList([2]);
|
|
const accountList = getAccountTypeList([2]);
|
|
|
const { rules, formState, formRef } = handleForm();
|
|
const { rules, formState, formRef } = handleForm();
|
|
|
|
|
+ formState.DeliveryMonth = props.time;
|
|
|
function submit() {
|
|
function submit() {
|
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
|
if (marketInfo) {
|
|
if (marketInfo) {
|