|
|
@@ -1,26 +1,30 @@
|
|
|
<template>
|
|
|
- <!-- 商品合约 -->
|
|
|
- <section class="spot_warran">
|
|
|
- <component :is="componentId" v-if="componentId"></component>
|
|
|
- <thirdMenu :list="tabList" @selectMenu="changeTab" :value="'title'">
|
|
|
- <!-- 议价单 -->
|
|
|
- <div class="goods-apply" v-if="componentId === BARGIN">
|
|
|
- <!-- <span @click="changeBargain(ApplyType.my)">我的议价</span>
|
|
|
+ <!-- 商品合约 -->
|
|
|
+ <section class="spot_warran">
|
|
|
+ <component :is="componentId"
|
|
|
+ v-if="componentId"></component>
|
|
|
+ <thirdMenu :list="tabList"
|
|
|
+ @selectMenu="changeTab"
|
|
|
+ :value="'title'">
|
|
|
+ <!-- 议价单 -->
|
|
|
+ <div class="goods-apply"
|
|
|
+ v-if="componentId === BARGIN">
|
|
|
+ <!-- <span @click="changeBargain(ApplyType.my)">我的议价</span>
|
|
|
<span @click="changeBargain(ApplyType.counterpart)">对方议价</span>-->
|
|
|
- <a-radio-group class="conditionCommonRadioGroup">
|
|
|
- <a-radio @focus="changeBargain(ApplyType.my)" :value="ApplyType.my">我的议价</a-radio>
|
|
|
- <a-radio
|
|
|
- @focus="changeBargain(ApplyType.counterpart)"
|
|
|
- :value="ApplyType.counterpart"
|
|
|
- >对方议价</a-radio>
|
|
|
- </a-radio-group>
|
|
|
- </div>
|
|
|
- </thirdMenu>
|
|
|
- </section>
|
|
|
+ <a-radio-group class="conditionCommonRadioGroup"
|
|
|
+ v-model:value="bargainValue">
|
|
|
+ <a-radio @focus="changeBargain(ApplyType.my)"
|
|
|
+ :value="ApplyType.my">我的议价</a-radio>
|
|
|
+ <a-radio @focus="changeBargain(ApplyType.counterpart)"
|
|
|
+ :value="ApplyType.counterpart">对方议价</a-radio>
|
|
|
+ </a-radio-group>
|
|
|
+ </div>
|
|
|
+ </thirdMenu>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineAsyncComponent, defineComponent } from 'vue';
|
|
|
+import { defineAsyncComponent, defineComponent, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import thirdMenu from '@/common/components/thirdMenu/index.vue';
|
|
|
import { handleOrderDetailList } from '@/common/setup/order/orderData';
|
|
|
@@ -44,7 +48,8 @@ export default defineComponent({
|
|
|
function changeBargain(value: ApplyType) {
|
|
|
Bus.$emit('bargain', value);
|
|
|
}
|
|
|
- return { ...handleOrderDetailList(enumOrderComponents.commodity_contract), changeBargain, BARGIN, ApplyType };
|
|
|
+ const bargainValue = ref<ApplyType>(ApplyType.my);
|
|
|
+ return { ...handleOrderDetailList(enumOrderComponents.commodity_contract), changeBargain, BARGIN, ApplyType, bargainValue };
|
|
|
},
|
|
|
});
|
|
|
</script>
|