|
@@ -115,13 +115,13 @@ const { router, getQueryStringToNumber } = useNavigation()
|
|
|
const wrstandardid = getQueryStringToNumber('wrstandardid')
|
|
const wrstandardid = getQueryStringToNumber('wrstandardid')
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
|
|
|
|
|
-const { loading, details, customDeposits, chartData, getWrstandardDetails } = useWrstandardDetails(wrstandardid)
|
|
|
|
|
|
|
+const { loading, details, customDeposits, chartData, getWrstandardDetails, getTHJinvesotrdeposit } = useWrstandardDetails(wrstandardid)
|
|
|
const { formData, formSubmit } = usePurchaseOrderDesting()
|
|
const { formData, formSubmit } = usePurchaseOrderDesting()
|
|
|
|
|
|
|
|
// 当前选中的交割日期
|
|
// 当前选中的交割日期
|
|
|
const selectedDate = shallowRef<Model.THJWrstandardDetailRsp['deliverymonth'][number]>()
|
|
const selectedDate = shallowRef<Model.THJWrstandardDetailRsp['deliverymonth'][number]>()
|
|
|
// 商品信息
|
|
// 商品信息
|
|
|
-const goodsinfo = computed<Partial<Model.THJWrstandardDetailRsp['goodsinfo']>>(() => details.value.goodsinfo ?? {})
|
|
|
|
|
|
|
+const goodsinfo = computed<Partial<Model.THJWrstandardDetailRsp['goodsinfo']>>(() => details.value.goodsinfo)
|
|
|
|
|
|
|
|
// 商品图片列表
|
|
// 商品图片列表
|
|
|
const goodsImages = computed(() => {
|
|
const goodsImages = computed(() => {
|
|
@@ -131,7 +131,7 @@ const goodsImages = computed(() => {
|
|
|
|
|
|
|
|
// 定金比例列表,商品定金比例和个性化定金比例进行合并
|
|
// 定金比例列表,商品定金比例和个性化定金比例进行合并
|
|
|
const presaleApplyDeposits = computed(() => {
|
|
const presaleApplyDeposits = computed(() => {
|
|
|
- const deposits = details.value.presaleapplydeposits ?? []
|
|
|
|
|
|
|
+ const deposits = details.value.presaleapplydeposits
|
|
|
const { presaleapplyid, remainqty = 0 } = selectedDate.value ?? {}
|
|
const { presaleapplyid, remainqty = 0 } = selectedDate.value ?? {}
|
|
|
|
|
|
|
|
const result = deposits.filter((e) => e.presaleapplyid === presaleapplyid).map((e) => ({
|
|
const result = deposits.filter((e) => e.presaleapplyid === presaleapplyid).map((e) => ({
|
|
@@ -236,11 +236,12 @@ const formRules: { [key in keyof Proto.SpotPresaleDestingOrderReq | 'addressInfo
|
|
|
|
|
|
|
|
// 切换交割月份
|
|
// 切换交割月份
|
|
|
const onMonthChange = (value: string) => {
|
|
const onMonthChange = (value: string) => {
|
|
|
- const months = details.value.deliverymonth ?? []
|
|
|
|
|
|
|
+ const months = details.value.deliverymonth
|
|
|
selectedDate.value = months.find((e) => e.presaleapplyid === value)
|
|
selectedDate.value = months.find((e) => e.presaleapplyid === value)
|
|
|
formData.value.PresaleApplyID = Long.fromString(value)
|
|
formData.value.PresaleApplyID = Long.fromString(value)
|
|
|
formData.value.DepositID = undefined
|
|
formData.value.DepositID = undefined
|
|
|
formRef.value?.validate('PresaleApplyID')
|
|
formRef.value?.validate('PresaleApplyID')
|
|
|
|
|
+ getTHJinvesotrdeposit(value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 切换支付方式
|
|
// 切换支付方式
|