uu
This commit is contained in:
parent
6772c6e71b
commit
6a608adb00
@ -71,7 +71,8 @@ const dealBtnMap = {
|
|||||||
zhuanJianScan: { title: '转件扫描', subTitle: "", icon: getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning', code: authCodeEnum.zhuanJianScan },
|
zhuanJianScan: { title: '转件扫描', subTitle: "", icon: getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning', code: authCodeEnum.zhuanJianScan },
|
||||||
jinCangChaXun: { title: '进仓查询', subTitle: "", icon: getCdnUrl(`home/jincchx.png`), url: '', code: authCodeEnum.jinCangChaXun },
|
jinCangChaXun: { title: '进仓查询', subTitle: "", icon: getCdnUrl(`home/jincchx.png`), url: '', code: authCodeEnum.jinCangChaXun },
|
||||||
shuiFeiYuGu: { title: '税费预估', subTitle: "", icon: getCdnUrl(`home/shfgs.png`), url: '' },
|
shuiFeiYuGu: { title: '税费预估', subTitle: "", icon: getCdnUrl(`home/shfgs.png`), url: '' },
|
||||||
huoWuTuPian: { title: '货物图片', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'deliveryDeal/goodsPicScanning', },
|
huoWuTuPian: { title: '货物图片', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/updateBillPicture?type=1', },
|
||||||
|
qianShowTuPian: { title: '签收图片', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/updateBillPicture?type=2', },
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -112,6 +112,12 @@
|
|||||||
"navigationBarTitleText": "报价试算"
|
"navigationBarTitleText": "报价试算"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/post/updateBillPicture",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/goods/edit",
|
"path": "pages/goods/edit",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
131
pages/post/updateBillPicture.vue
Normal file
131
pages/post/updateBillPicture.vue
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
<template>
|
||||||
|
<tpx-page>
|
||||||
|
<tpx-layout>
|
||||||
|
<template v-slot:body>
|
||||||
|
|
||||||
|
<view class="blcok-white-noradius" style="margin-top: 0;">
|
||||||
|
<u-row justify="between">
|
||||||
|
<view style="flex:1;">
|
||||||
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
|
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
|
</view>
|
||||||
|
</u-row>
|
||||||
|
|
||||||
|
<view class="mt-20">
|
||||||
|
<bpe-goodphoto-tmp title="照片" :value="submitParam" filedName="picUrl"></bpe-goodphoto-tmp>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:footer>
|
||||||
|
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
|
||||||
|
<u-row>
|
||||||
|
<u-button @click="handleSubmit" size="large" shape="circle"
|
||||||
|
custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">确认</u-button>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</tpx-layout>
|
||||||
|
</tpx-page>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
|
import { debounce } from "@/common/util"
|
||||||
|
import dayjs from "dayjs"
|
||||||
|
import * as apiService from "@/common/api"
|
||||||
|
import { scanTypeEnum, getScanParams, ansScanResponse } from "@/common/scanUtil"
|
||||||
|
import { checkParams } from "@/common/validate"
|
||||||
|
|
||||||
|
const pageTypeMap = {
|
||||||
|
'1': {
|
||||||
|
title: '货物图片',
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
title: '签收图片',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components:{ BpeGoodphotoTmp },
|
||||||
|
props: {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
dicData() {
|
||||||
|
return this.$store.getters.dicData
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
queryOption: {
|
||||||
|
type: '', // 1 货物; 2 签收
|
||||||
|
billCode: '', // 运单id
|
||||||
|
},
|
||||||
|
curPageType: {},
|
||||||
|
submitParam: {
|
||||||
|
billCode: "",
|
||||||
|
picUrl: '',
|
||||||
|
},
|
||||||
|
submitValidConfig: {
|
||||||
|
picUrl: { required: true, requiredMsg: '图片不能为空' },
|
||||||
|
// dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' },
|
||||||
|
billCode: { required: true, requiredMsg: '运单号不能为空' },
|
||||||
|
},
|
||||||
|
paiRes: { list: [] },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(option) {
|
||||||
|
this.queryOption = option
|
||||||
|
this.initData();
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getRSDStaffList: apiService.getRSDStaffList,
|
||||||
|
initData() {
|
||||||
|
this.submitParam.billCode = this.queryOption.billCode || this.queryOption.orderSn
|
||||||
|
this.curPageType = pageTypeMap[this.queryOption.type]
|
||||||
|
this.setNavigationBarTitle(this.curPageType.title)
|
||||||
|
},
|
||||||
|
handleScanValChange: debounce(function(val){
|
||||||
|
|
||||||
|
}),
|
||||||
|
async handleSubmit() {
|
||||||
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
|
this.submitParam.picUrl = this.submitParam.picUrl?.join?.(",") || ''
|
||||||
|
let scnParam = getScanParams(scanTypeEnum.qianShou, { ...this.submitParam })
|
||||||
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
|
let { bl, resItem } = ansScanResponse({ res, title: "操作" })
|
||||||
|
if(bl) {
|
||||||
|
this.resetForm()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
resetForm() {
|
||||||
|
this.submitParam = {
|
||||||
|
picUrl: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import '@/common/uni-nvue.scss';
|
||||||
|
|
||||||
|
page {
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.yditem{
|
||||||
|
padding: 20rpx 0;
|
||||||
|
border-top: 2px solid #F6F6F6;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -95,7 +95,8 @@
|
|||||||
{ ...dealBtnMap.paiJianQingDan },
|
{ ...dealBtnMap.paiJianQingDan },
|
||||||
{ ...dealBtnMap.liuCangScan },
|
{ ...dealBtnMap.liuCangScan },
|
||||||
{ ...dealBtnMap.zhuanJianScan },
|
{ ...dealBtnMap.zhuanJianScan },
|
||||||
{ ...dealBtnMap.jinCangChaXun }
|
{ ...dealBtnMap.jinCangChaXun },
|
||||||
|
{ ...dealBtnMap.qianShowTuPian },
|
||||||
]
|
]
|
||||||
list = getAuthList({ list, _thisPage: this })
|
list = getAuthList({ list, _thisPage: this })
|
||||||
return list
|
return list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user