uu
This commit is contained in:
parent
bd14d16837
commit
759e714ff1
@ -1,5 +1,5 @@
|
|||||||
import { coreRequest } from '@/common/request'
|
import { coreRequest } from '@/common/request'
|
||||||
import url from "./url"
|
import url, { host } from "./url"
|
||||||
|
|
||||||
export const getEmisCountry = (data = {})=> {
|
export const getEmisCountry = (data = {})=> {
|
||||||
return coreRequest(url.getEmisCountry, data, {}, 'GET')
|
return coreRequest(url.getEmisCountry, data, {}, 'GET')
|
||||||
@ -54,5 +54,8 @@ export const getLatestNotices = (data = {})=> {
|
|||||||
return coreRequest(url.getLatestNotices, data, {}, "GET")
|
return coreRequest(url.getLatestNotices, data, {}, "GET")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getStaffQRCodePng = (data = {})=> {
|
||||||
|
return coreRequest(url.getStaffQRCodePng, data, {}, "GET")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@ export default {
|
|||||||
uploadFile: '/common/ossUpload',
|
uploadFile: '/common/ossUpload',
|
||||||
loginByApp: `/loginByApp`, // 登录
|
loginByApp: `/loginByApp`, // 登录
|
||||||
getInfoByApp: `/getInfoByApp`,// 获取用户基本信息
|
getInfoByApp: `/getInfoByApp`,// 获取用户基本信息
|
||||||
|
getStaffQRCodePng: `/emis/emisStaff/getStaffQRCodePng`,// 获取用户基本信息
|
||||||
|
|
||||||
getEmisCountry: `/emis/emisCountry/list`, // 获取国家列表
|
getEmisCountry: `/emis/emisCountry/list`, // 获取国家列表
|
||||||
getEmisRegion: `/emis/emisRegion/list`,// 获取省市区列表
|
getEmisRegion: `/emis/emisRegion/list`,// 获取省市区列表
|
||||||
@ -40,7 +41,7 @@ export default {
|
|||||||
getOrderDetail: `/emis/emisWaybill/getWaybillDetail`, // 订单详情
|
getOrderDetail: `/emis/emisWaybill/getWaybillDetail`, // 订单详情
|
||||||
|
|
||||||
scanRecord: `/emis/emisTmsScanRecord/scan`, // 扫描- 揽收
|
scanRecord: `/emis/emisTmsScanRecord/scan`, // 扫描- 揽收
|
||||||
getRealGetWaybillPrintData: `/emis/emisWaybill/realGetWaybillPrintData`, // 运单 打印数据
|
getRealGetWaybillPrintData: `/emis/emisWaybill/realGetWaybillPng`, // 运单 打印数据
|
||||||
|
|
||||||
getNextStationList: `/emis/emisTmsScanRecord/getNextStationList`, // 获取-扫描下一网点
|
getNextStationList: `/emis/emisTmsScanRecord/getNextStationList`, // 获取-扫描下一网点
|
||||||
|
|
||||||
|
|||||||
@ -7,4 +7,4 @@ export const loginByApp = (data = {})=> {
|
|||||||
|
|
||||||
export const getInfoByApp = (data = {})=> {
|
export const getInfoByApp = (data = {})=> {
|
||||||
return coreRequest(url.getInfoByApp, data, {}, 'GET')
|
return coreRequest(url.getInfoByApp, data, {}, 'GET')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;" justify="end">
|
<u-row custom-style="margin-top:20rpx;" justify="end">
|
||||||
<u-row>
|
<u-row>
|
||||||
<text class="pr-30">是否已打印F</text>
|
<text class="pr-30">是否已打印</text>
|
||||||
<u-switch v-model="submitParam.hasPrinted"
|
<u-switch v-model="submitParam.hasPrinted"
|
||||||
active-color="#B12D29" size="34"></u-switch>
|
active-color="#B12D29" size="34"></u-switch>
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -158,7 +158,7 @@
|
|||||||
// val && ()
|
// val && ()
|
||||||
}),
|
}),
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// this.getRealGetWaybillPrintData()
|
this.getRealGetWaybillPrintData()
|
||||||
this.goto("print/bluetoothPrinter")
|
this.goto("print/bluetoothPrinter")
|
||||||
// this.goto("print/bluetooth-mini-printer")
|
// this.goto("print/bluetooth-mini-printer")
|
||||||
},
|
},
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
<view class="pl-30">
|
<view class="pl-30">
|
||||||
<u-row>
|
<u-row>
|
||||||
<u-text :text="userInfo.empName" color="#fff" size="32" bold="true"></u-text>
|
<u-text :text="userInfo.empName" color="#fff" size="32" bold="true"></u-text>
|
||||||
<view class="ml-20 clr-wht font-24 pos-rlt" style="padding: 8rpx 12rpx;">南京网点
|
<view class="ml-20 clr-wht font-24 pos-rlt" style="padding: 8rpx 12rpx;">{{userInfo.ownerSiteName}}
|
||||||
<view class="pos-abt-all" style="z-index: 0;background: #FFFFFF;opacity: 0.2;border-radius: 20rpx;"></view>
|
<view class="pos-abt-all" style="z-index: 0;background: #FFFFFF;opacity: 0.2;border-radius: 20rpx;"></view>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
|||||||
@ -1,56 +1,73 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="padding: 2rpx 30rpx;">
|
<tpx-page>
|
||||||
|
<view style="padding: 2rpx 30rpx;">
|
||||||
<view class="blcok-white" style="padding: 40rpx 0;">
|
|
||||||
<u-row justify="center">
|
<view class="blcok-white" style="padding: 40rpx 0;">
|
||||||
<view>
|
<u-row justify="center">
|
||||||
<u-row>
|
<view>
|
||||||
<u-avatar size="120"></u-avatar>
|
<u-row>
|
||||||
<view class="pl-30">
|
<u-avatar size="120"></u-avatar>
|
||||||
<u-row>
|
<view class="pl-30">
|
||||||
<u-text text="张三" size="32" bold="true"></u-text>
|
<u-row>
|
||||||
<view class="ml-20 font-24 pos-rlt" style="padding: 8rpx 12rpx;">南京网点
|
<u-text :text="userInfo.empName" size="32" bold="true"></u-text>
|
||||||
<view class="pos-abt-all" style="z-index: 0;background: #999;opacity: 0.2;border-radius: 20rpx;"></view>
|
<view class="ml-20 font-24 pos-rlt" style="padding: 8rpx 12rpx;">{{userInfo.ownerSiteName}}
|
||||||
</view>
|
<view class="pos-abt-all" style="z-index: 0;background: #999;opacity: 0.2;border-radius: 20rpx;"></view>
|
||||||
</u-row>
|
</view>
|
||||||
<view class="mt-20 font-24">13712345678</view>
|
</u-row>
|
||||||
</view>
|
<view class="mt-20 font-24">{{userInfo.phonenumber}}</view>
|
||||||
</u-row>
|
|
||||||
<view class="mt-30">
|
|
||||||
<u-image height="600" width="600" radius="10"></u-image>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="mt-40">
|
|
||||||
<u-row justify="between">
|
|
||||||
<view style="width: 200rpx;">
|
|
||||||
<u-button type="primary" custom-style="border-radius: 10rpx;">保存到本地</u-button>
|
|
||||||
</view>
|
|
||||||
<view style="width: 200rpx;">
|
|
||||||
<u-button type="primary" plain="true" custom-style="border-radius: 10rpx;">打印</u-button>
|
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
<view class="mt-30">
|
||||||
|
<u-image height="600" width="600" radius="10" :src="qrCodeImgUrl"></u-image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="mt-40">
|
||||||
|
<u-row justify="between">
|
||||||
|
<view style="width: 200rpx;" @click="handleSave">
|
||||||
|
<u-button type="primary" custom-style="border-radius: 10rpx;">保存到本地</u-button>
|
||||||
|
</view>
|
||||||
|
<view style="width: 200rpx;">
|
||||||
|
<u-button type="primary" plain="true" custom-style="border-radius: 10rpx;">打印</u-button>
|
||||||
|
</view>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</u-row>
|
||||||
</u-row>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</tpx-page>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import * as apiService from "@/common/api"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
computed: {
|
||||||
|
userInfo() {
|
||||||
|
return this.$store.getters.userInfo
|
||||||
|
}
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
qrCodeImgUrl: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCdnUrl,
|
async initData(){
|
||||||
|
let res = await apiService.getStaffQRCodePng({ _loading: true })
|
||||||
|
this.qrCodeImgUrl = res.data
|
||||||
|
},
|
||||||
|
handleSave(){
|
||||||
|
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user