|
@@ -83,6 +83,7 @@ import {
|
|
|
import AnalysisReportProductionSpecCard from '@/views/create-order/components/analysis-report/SpecCard.vue'
|
|
|
import useAccountInfoModel from './model/account'
|
|
|
import PopupLayout from '@/components/common/PopupLayout.vue'
|
|
|
+import { useStore } from '@/store'
|
|
|
|
|
|
export default {
|
|
|
name: 'AnalysisReportFooterProductionCard',
|
|
@@ -95,12 +96,18 @@ export default {
|
|
|
},
|
|
|
mixins: [orderActivityHelper],
|
|
|
setup() {
|
|
|
- const { zhimaReportAccountInfo } = useAccountInfoModel(() => {
|
|
|
+ const store = useStore()
|
|
|
+
|
|
|
+ // 直接调用 mutation
|
|
|
+ const updateProductSpecId = (payload) => store.commit('createOrder/updateProductSpecId', payload)
|
|
|
+
|
|
|
+ const { zhimaReportAccountInfo } = useAccountInfoModel((model) => {
|
|
|
+ debugger
|
|
|
// 非首购、非会员时选中年卡
|
|
|
- if (!this.isFirstBuy && !this.useNowState.inPack) {
|
|
|
- this.updateProductSpecId(1514)
|
|
|
+ if (!model?.isFirstBuy && !model?.inPack) {
|
|
|
+ updateProductSpecId(1514)
|
|
|
} else {
|
|
|
- this.updateProductSpecId(1511)
|
|
|
+ updateProductSpecId(1511)
|
|
|
}
|
|
|
})
|
|
|
return {
|
|
@@ -110,7 +117,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
conf: {
|
|
|
- productName: '芝麻信用共建分析报告',
|
|
|
+ productName: '招投标综合分析报告',
|
|
|
productId: 151,
|
|
|
linkKey: 'analysisReportLink'
|
|
|
},
|