|
@@ -164,7 +164,7 @@ import { fullloading, dialog } from '@/utils/vant'
|
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
|
import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
|
|
import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
|
|
|
|
|
|
|
|
-const { router, getQueryString, getQueryStringToNumber } = useNavigation()
|
|
|
|
|
|
|
+const { getQueryString, getQueryStringToNumber } = useNavigation()
|
|
|
const { global: { t } } = i18n
|
|
const { global: { t } } = i18n
|
|
|
|
|
|
|
|
const goodsCode = getQueryString('goodscode') ?? ''
|
|
const goodsCode = getQueryString('goodscode') ?? ''
|
|
@@ -190,12 +190,14 @@ const position = shallowRef<Model.TradePositionRsp[]>([])
|
|
|
|
|
|
|
|
// 点击返回
|
|
// 点击返回
|
|
|
const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
|
|
const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
|
|
|
- formData.BuyOrSell = buyorsell
|
|
|
|
|
|
|
+ formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
if (isPosition === 2) { formData.RelatedID = handleRequestBigNumber(tradeId)}
|
|
if (isPosition === 2) { formData.RelatedID = handleRequestBigNumber(tradeId)}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
-const active = shallowRef('cancel')
|
|
|
|
|
|
|
+
|
|
|
|
|
+const active = shallowRef('position')
|
|
|
|
|
+
|
|
|
const components = [
|
|
const components = [
|
|
|
{
|
|
{
|
|
|
name: 'cancel',
|
|
name: 'cancel',
|
|
@@ -331,6 +333,8 @@ const onBeforeSubmit = (buildType: BuildType) => {
|
|
|
if (datas.length > 0) {
|
|
if (datas.length > 0) {
|
|
|
formData.OrderQty = datas[0].enableqty
|
|
formData.OrderQty = datas[0].enableqty
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ formData.RelatedID = undefined
|
|
|
}
|
|
}
|
|
|
formRef.value?.submit()
|
|
formRef.value?.submit()
|
|
|
}
|
|
}
|