d4a4afaf by zrj

9.1 sjs 合并上传功能

1 parent 64152076
...@@ -159,6 +159,15 @@ export function renewalProof(data) { ...@@ -159,6 +159,15 @@ export function renewalProof(data) {
159 }) 159 })
160 } 160 }
161 161
162 export function mergeBind(orderIds,data) {
163 return request({
164 url: `/ota/norder/mergeBind/${orderIds}`,
165 method: 'post',
166 params: data
167 })
168 }
169
170
162 export function getInvoiceByActiveId(query) { 171 export function getInvoiceByActiveId(query) {
163 return request({ 172 return request({
164 url: `/ota/invoice/list`, 173 url: `/ota/invoice/list`,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class="pd20"> 2 <div class="pd20">
3 <div style="margin-bottom: 20px"> 3 <div style="margin-bottom: 20px">
4 <el-button type="primary" @click="downloadAll">{{ language == 0 ? '合并生成缴费单' : 'Download Consolidated Invoice' }}</el-button> 4 <el-button type="primary" @click="downloadAll">{{ language == 0 ? '合并生成缴费单' : 'Download Consolidated Invoice' }}</el-button>
5 <!-- <el-button type="primary" @click="showDialog">合并上传缴费单</el-button>--> 5 <el-button type="primary" @click="showDialog">合并上传缴费单</el-button>
6 </div> 6 </div>
7 <div v-for="b in list" class="item"> 7 <div v-for="b in list" class="item">
8 <div class="title"> 8 <div class="title">
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
170 <script setup> 170 <script setup>
171 import dayjs from "dayjs"; 171 import dayjs from "dayjs";
172 import {useStorage} from "@vueuse/core"; 172 import {useStorage} from "@vueuse/core";
173 import {cancelOrder, cancelOrder2,renewalProof} from "/@/apiPc/booking"; 173 import {cancelOrder, cancelOrder2,renewalProof,mergeBind} from "/@/apiPc/booking";
174 import {ElMessage} from "element-plus"; 174 import {ElMessage} from "element-plus";
175 import {getCurrentInstance} from "@vue/runtime-core"; 175 import {getCurrentInstance} from "@vue/runtime-core";
176 import {ref} from "vue"; 176 import {ref} from "vue";
...@@ -305,22 +305,24 @@ const show = ref(false) ...@@ -305,22 +305,24 @@ const show = ref(false)
305 const pf = ref([]) 305 const pf = ref([])
306 306
307 const submitProofAll = () => { 307 const submitProofAll = () => {
308 console.log(pf.value) 308 let selectList = props.list.filter(item => item.ischeck==true)
309 // //提交凭证 309 let ids = selectList.map(item => item.id)
310 // if (!pf.value) { 310 if (!pf.value) {
311 // ElMessage.warning(language.value == 0 ? '请上传凭证' : 'Please upload a voucher') 311 ElMessage.warning(language.value == 0 ? '请上传凭证' : 'Please upload a voucher')
312 // return 312 return
313 // } 313 }
314 // booking.renewalProof({ 314 let urlList = pf.value.map(item => item.url)
315 // id: orderId.value, 315 let idStr = ids.join(',')
316 // pic: form.value.pic[0]?.url 316 let urlStr = urlList.join(',')
317 // }).then(res => { 317 //提交凭证
318 // ElMessage.success({ 318 mergeBind(idStr, {fileUrl: urlStr})
319 // message: language.value == 0 ? '凭证提交成功' : 'Voucher submission successful', 319 .then(res => {
320 // type: 'success' 320 ElMessage.success({
321 // }) 321 message: language.value == 0 ? '凭证提交成功' : 'Voucher submission successful',
322 // getData() 322 type: 'success'
323 // }) 323 })
324 getData()
325 })
324 } 326 }
325 327
326 const showDialog = () => { 328 const showDialog = () => {
......
1 <template> 1 <template>
2 <el-dialog v-model="show" :title="title" @close="close"> 2 <el-dialog v-model="show" :title="title" @close="close" >
3 <div> 3 <div>
4 <h2 v-if="cptName && type!=10" class="text-warning text-center">{{ cptName }}</h2> 4 <h2 v-if="cptName && type!=10" class="text-warning text-center">{{ cptName }}</h2>
5 5
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
19 <!-- </span>--> 19 <!-- </span>-->
20 20
21 <!-- </el-link>--> 21 <!-- </el-link>-->
22 <div v-if="content" v-html="content"/> 22 <div class="or-html" v-if="content" v-html="content"/>
23 </div> 23 </div>
24 24
25 25
...@@ -87,7 +87,7 @@ function getData() { ...@@ -87,7 +87,7 @@ function getData() {
87 content.value = res.data.contextEn 87 content.value = res.data.contextEn
88 fileList.value = JSON.parse(res.data.fileEn) 88 fileList.value = JSON.parse(res.data.fileEn)
89 } 89 }
90 content.value = `<style>img { display: inline-block; }</style>` + content.value 90 content.value = `<style>img { display: inline-block; } @media (max-width: 1750px){video{ width: auto;height: auto;}}</style>` + content.value
91 } else { 91 } else {
92 content.value = '' 92 content.value = ''
93 fileList.value = [] 93 fileList.value = []
...@@ -121,5 +121,4 @@ function ok() { ...@@ -121,5 +121,4 @@ function ok() {
121 </script> 121 </script>
122 122
123 <style lang="scss" scoped> 123 <style lang="scss" scoped>
124
125 </style> 124 </style>
......
...@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { ...@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => {
84 }, 84 },
85 '/dev-api': { 85 '/dev-api': {
86 // target: 'http://192.168.1.118:8082/', 86 // target: 'http://192.168.1.118:8082/',
87 // target: 'http://192.168.1.22:8082', 87 target: 'http://192.168.1.52:8082',
88 target: 'https://tk005.wxjylt.com/stage-api', 88 // target: 'https://tk005.wxjylt.com/stage-api',
89 // target: 'http://124.70.181.90:1880/stage-api', 89 // target: 'http://124.70.181.90:1880/stage-api',
90 // target: 'https://sys.2025wtcwuxi.com/stage-api/', 90 // target: 'https://sys.2025wtcwuxi.com/stage-api/',
91 changeOrigin: true, 91 changeOrigin: true,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!