373e86b0 by zhangmeng

票务

1 parent d8c13c81
...@@ -32,7 +32,8 @@ const useUserStore = defineStore( ...@@ -32,7 +32,8 @@ const useUserStore = defineStore(
32 badge: {}, 32 badge: {},
33 reLogin: {show:false,query:{}}, 33 reLogin: {show:false,query:{}},
34 visitor: false, 34 visitor: false,
35 language: 0 35 language: 0,
36 activeName:"5"
36 }), 37 }),
37 actions: { 38 actions: {
38 // 登录 39 // 登录
...@@ -163,6 +164,9 @@ const useUserStore = defineStore( ...@@ -163,6 +164,9 @@ const useUserStore = defineStore(
163 } else { 164 } else {
164 return true 165 return true
165 } 166 }
167 },
168 updataActiveName(v){
169 this.activeName=v
166 } 170 }
167 } 171 }
168 }) 172 })
......
...@@ -166,7 +166,6 @@ const rules = ref({ ...@@ -166,7 +166,6 @@ const rules = ref({
166 {required: true, message: language.value==0?'请输入账户':'Please enter account', trigger: 'blur'} 166 {required: true, message: language.value==0?'请输入账户':'Please enter account', trigger: 'blur'}
167 ], 167 ],
168 }) 168 })
169 const isEdit = ref(false)
170 let invoiceId 169 let invoiceId
171 onMounted(() => { 170 onMounted(() => {
172 if(route.query.activeId){ 171 if(route.query.activeId){
...@@ -197,18 +196,13 @@ function getList() { ...@@ -197,18 +196,13 @@ function getList() {
197 getInvoiceDetailMatch(invoiceId).then(res => { 196 getInvoiceDetailMatch(invoiceId).then(res => {
198 form.value = res.data; 197 form.value = res.data;
199 totalMoney.value = form.value.total 198 totalMoney.value = form.value.total
200 if (form.value.invoiceForm == '1') { 199
201 email.value = form.value.address
202 }
203 getAddrList() 200 getAddrList()
204 }); 201 });
205 }else{ 202 }else{
206 getInvoiceDetail(invoiceId).then(res => { 203 getInvoiceDetail(invoiceId).then(res => {
207 form.value = res.data; 204 form.value = res.data;
208 totalMoney.value = form.value.total 205 totalMoney.value = form.value.total
209 if (form.value.invoiceForm == '1') {
210 email.value = form.value.address
211 }
212 getAddrList() 206 getAddrList()
213 }); 207 });
214 } 208 }
......
...@@ -225,12 +225,13 @@ import {setToken} from "@/viewsPc/seat/utils/local-store"; ...@@ -225,12 +225,13 @@ import {setToken} from "@/viewsPc/seat/utils/local-store";
225 const router = useRouter() 225 const router = useRouter()
226 const route = useRoute() 226 const route = useRoute()
227 const language= useStorage('language',0) 227 const language= useStorage('language',0)
228 const activeName = ref('5')
229 const lpName = ref('') 228 const lpName = ref('')
230 const remark = ref('') 229 const remark = ref('')
231 const showSJDialog = ref(false) 230 const showSJDialog = ref(false)
232 const user = useUserStore().user || {}
233 const userStore = useUserStore(); 231 const userStore = useUserStore();
232 const user = useUserStore().user || {}
233 const activeName = ref(userStore.activeName||'5')
234
234 const query = ref({ 235 const query = ref({
235 createById: user.userId, 236 createById: user.userId,
236 orderType:'5', 237 orderType:'5',
...@@ -248,6 +249,7 @@ onMounted(() => { ...@@ -248,6 +249,7 @@ onMounted(() => {
248 router.push({name: 'myInfo'}) 249 router.push({name: 'myInfo'})
249 return 250 return
250 } 251 }
252 query.value.orderType= activeName.value=userStore.activeName||'5'
251 getList() 253 getList()
252 }) 254 })
253 const getList = () => { 255 const getList = () => {
...@@ -291,7 +293,9 @@ const handleClick = (e) => { ...@@ -291,7 +293,9 @@ const handleClick = (e) => {
291 query.value.orderType = e.paneName 293 query.value.orderType = e.paneName
292 list.value = [] 294 list.value = []
293 query.value.invoiced='0' 295 query.value.invoiced='0'
296 userStore.updataActiveName(e.paneName)
294 getList() 297 getList()
298
295 } 299 }
296 const gokp = (item) => { 300 const gokp = (item) => {
297 router.push({ 301 router.push({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!