@@ -333,6 +339,7 @@ import jsPreviewDocx from '@js-preview/docx'
import '@js-preview/docx/lib/index.css'
import { debounce } from 'lodash'
import { mainStore } from '@/store/main'
+import { getPriceShowConfigApi } from 'http/api/common'
const store = mainStore()
const userStore = useStore()
const router = useRouter()
@@ -386,7 +393,7 @@ const getOrderListData = async () => {
const addParams = {
maId: Number(pageParams.maId),
}
- const res: any = await getCodeNumDetailApi({ id: route.query.id, devType: route.query.devType})
+ const res: any = await getCodeNumDetailApi({ id: route.query.id, devType: route.query.devType })
console.log(res, '装备详情')
orderList.value = []
// orderList.value = res.data
@@ -402,7 +409,6 @@ const getOrderListData = async () => {
}
orderList.value.push(orderInfo)
-
}
onMounted(() => {
@@ -549,7 +555,7 @@ const onCartSubmit = debounce(async () => {
// console.log('submitParams', submitParams)
const res: any = await submitBookCarApi({
...queryForm,
- orderInfoDto: [submitParams]
+ orderInfoDto: [submitParams],
})
if (res.code === 200) {
ElMessage({
@@ -682,6 +688,14 @@ const handleViewWord = async (index: any) => {
const submitBtn = () => {
window.location.href = wordUrl.value
}
+
+const isShowPrice = ref(false)
+const isShowPriceFun = async () => {
+ const res: any = await getPriceShowConfigApi()
+ isShowPrice.value = res?.rows[0].status == 0 ? true : false
+}
+
+isShowPriceFun()