Handy_Cao 1 vuosi sitten
vanhempi
commit
429f763bec
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      src/packages/sbyj/views/order/detail/index.vue

+ 4 - 3
src/packages/sbyj/views/order/detail/index.vue

@@ -77,9 +77,6 @@ const props = defineProps({
     }
 })
 
-const IsAutoAddDeposit = shallowRef(false)
-const IsAutoRefundDeposit = shallowRef(false)
-
 const { formData, formSubmit } = useModifyOrder()
 
 const globalStore = useGlobalStore()
@@ -91,6 +88,9 @@ const refresh = shallowRef(false) // 是否刷新父组件数据
 const goods = futuresStore.getGoods(props.selectedRow.goodsCode)
 const detail = computed(() => props.selectedRow.tHDetailEx)
 
+const IsAutoAddDeposit = shallowRef(detail.value.canautoadddeposit === 1)
+const IsAutoRefundDeposit = shallowRef(detail.value.canautorefunddeposit === 1)
+
 const canautorefunddeposit = detail.value.canautorefunddeposit === 1 || goods?.canautorefunddeposit === 1
 const canautoadddeposit = detail.value.canautoadddeposit === 1 || goods?.canautoadddeposit === 1
 
@@ -114,6 +114,7 @@ const onSubmit = () => {
     }).then(() => {
         const { tradeID, marketID, buyOrSell } = detail.value
 
+        formData.Header = { MarketID: marketID }
         formData.BuyOrSell = buyOrSell
         formData.TradeID = handleRequestBigNumber(tradeID)
         formData.MarketID = marketID