This commit is contained in:
aihe 2024-05-30 18:19:13 +08:00
parent 2807ec14b3
commit 4f60fd22f4
10 changed files with 137 additions and 140 deletions

View File

@ -104,11 +104,14 @@
params.filePath = params.filePath?.join?.(",") || '' params.filePath = params.filePath?.join?.(",") || ''
await apiService.registerProblemInfo({ ...params, _loading: true }) await apiService.registerProblemInfo({ ...params, _loading: true })
this.showToast('操作成功') this.showToast('操作成功')
this.resetForm()
// this.goBack()
},
resetForm() {
this.submitParam.billCode = '' this.submitParam.billCode = ''
this.submitParam.sendSiteCode = '' this.submitParam.sendSiteCode = ''
this.submitParam.filePath = '' this.submitParam.filePath = ''
// this.goBack() },
}
} }
} }
</script> </script>

View File

@ -7,6 +7,9 @@ export const scanTypeEnum = {
daoJian: 30, // 到件 daoJian: 30, // 到件
paiJian: 40, // 派件 paiJian: 40, // 派件
qianShou: 50, // 签收 qianShou: 50, // 签收
liuCang: 70, // 签收
zhuanJian: 80, // 转件
} }
export const getScanParams = (type, model = {})=> { export const getScanParams = (type, model = {})=> {

View File

@ -46,7 +46,6 @@
</template> </template>
<script> <script>
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { debounce } from "@/common/util" import { debounce } from "@/common/util"
import dayjs from "dayjs" import dayjs from "dayjs"
@ -54,7 +53,7 @@
import { scanTypeEnum, getScanParams, ansScanResponse } from "./scanUtil" import { scanTypeEnum, getScanParams, ansScanResponse } from "./scanUtil"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
}, },
computed: { computed: {
@ -71,7 +70,7 @@
submitParam: { submitParam: {
billCode: "", billCode: "",
signMan: "", signMan: "",
picUrl: [], picUrl: '',
remark: "", remark: "",
scanDate: "" scanDate: ""
}, },
@ -97,7 +96,7 @@
}), }),
async handleSubmit() { async handleSubmit() {
this.submitParam.picUrl = this.submitParam.picUrl.join(",") this.submitParam.picUrl = this.submitParam.picUrl?.join?.(",") || ''
let scnParam = getScanParams(scanTypeEnum.qianShou, { ...this.submitParam }) let scnParam = getScanParams(scanTypeEnum.qianShou, { ...this.submitParam })
let res = await apiService.scanRecord({...scnParam, _loading: true}) let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "签收" }) let { bl, resItem } = ansScanResponse({ res, title: "签收" })
@ -107,7 +106,7 @@
}, },
resetForm() { resetForm() {
this.submitParam = { this.submitParam = {
picUrl: [] picUrl: ''
} }
} }
} }

View File

@ -1,57 +1,48 @@
<template> <template>
<tpx-layout> <tpx-page>
<template v-slot:body> <tpx-layout>
<template v-slot:body>
<view class="blcok-white-noradius" style="margin-top: 0;">
<u-row justify="between"> <view class="blcok-white-noradius" style="margin-top: 0;">
<view style="flex:1;"> <u-row justify="between">
<tpx-scan-input v-model:value="submitParam.yundanhao" placeholder="请输入运单号或扫码" <view style="flex:1;">
iconPos="left"></tpx-scan-input> <tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入运单号或扫码"
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 class="mt-10">
<u-textarea v-model="submitParam.remark" border="surround" height="120" placeholder="留仓原因"
maxlength="50" count></u-textarea>
</view> </view>
</u-row>
<view class="mt-20">
<bpe-goodphoto-tmp title="留仓拍照" :value="submitParam" filedName="phName"></bpe-goodphoto-tmp>
</view> </view>
<view class="mt-10"> </template>
<u-textarea v-model="submitParam.otherDes" border="surround" height="120" placeholder="留仓原因" <template v-slot:footer>
maxlength="50" count></u-textarea> <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> </view>
</view> </template>
</template> </tpx-layout>
<template v-slot:footer> </tpx-page>
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
<u-row>
<u-button size="large" shape="circle"
custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">确认留仓</u-button>
</u-row>
</view>
</template>
</tpx-layout>
</template> </template>
<script> <script>
import getCdnUrl from "@/common/getCdnUrl" import * as apiService from "@/common/api"
import {
ordStaEnum,
ordStatusList,
payTypeEnum,
payTypeList,
dlvTypeEnum,
dlvTypeList,
dateTypeEnum,
dateTypeList
} from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { scanTypeEnum, getScanParams, ansScanResponse } from "./scanUtil"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: {
// type: Boolean
// }
}, },
computed: { computed: {
@ -59,19 +50,16 @@
data() { data() {
return { return {
submitParam: { submitParam: {
date: [], billCode: '',
type: 1, picUrl: '',
remark: ''
}, },
yundanList: [
{ val: 'T7080304037' },{ val: 'T708012124037' },{ val: 'T7080304092' }
]
} }
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
// title: '',
// path: 'TODO'
} }
}, },
onLoad() { onLoad() {
@ -81,15 +69,22 @@
}, },
methods: { methods: {
getCdnUrl,
initData() { initData() {
// uni.showLoading({
// title: '加载中'
// });
}, },
handleSubmit() { async handleSubmit() {
this.submitParam.picUrl = this.submitParam.picUrl?.join?.(",") || ''
let scnParam = getScanParams(scanTypeEnum.liuCang, { ...this.submitParam })
let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "留仓" })
if(bl) {
this.resetForm()
}
},
resetForm() {
this.submitParam = {
picUrl: []
}
} }
} }
} }

View File

@ -1,84 +1,76 @@
<template> <template>
<tpx-layout> <tpx-page>
<template v-slot:body> <tpx-layout>
<template v-slot:body>
<view class="blcok-white-noradius" style="margin-top: 0;">
<u-row justify="between"> <view class="blcok-white-noradius" style="margin-top: 0;">
<view style="flex:1;"> <u-row justify="between">
<tpx-scan-input v-model:value="submitParam.yundanhao" placeholder="请输入运单号或扫码" <view style="flex:1;">
iconPos="left"></tpx-scan-input> <tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入运单号或扫码"
iconPos="left"></tpx-scan-input>
</view>
</u-row>
<u-row custom-style="margin-top:40rpx;">
<view style="flex: 1;">
<tpx-select v-model:value="submitParam.transferCode" :list="dicData.emis_express_code"
mode="drop" isWhite="true" placeholder="请选择同行快递"
>
</tpx-select>
</view>
</u-row>
<u-row custom-style="margin-top:20rpx;">
<view style="flex:1;">
<tpx-scan-input v-model:value="submitParam.transferBillcode" placeholder="请输入同行单号或扫码"
iconPos="left"></tpx-scan-input>
</view>
</u-row>
<view class="mt-20">
<tpx-input v-model:value="submitParam.destCity" placeholder="目的城市" :isWhite="true"></tpx-input>
</view> </view>
</u-row>
<u-row custom-style="margin-top:40rpx;">
<view style="flex: 1;">
<tpx-select placeholder="选择同行快递" :isWhite="true"></tpx-select>
</view>
</u-row>
<u-row custom-style="margin-top:20rpx;">
<view style="flex:1;">
<tpx-scan-input v-model:value="submitParam.yundanhao" placeholder="请输入同行单号或扫码"
iconPos="left"></tpx-scan-input>
</view>
</u-row>
<view class="mt-20">
<tpx-input placeholder="目的城市" :isWhite="true"></tpx-input>
</view> </view>
</view> </template>
</template> <template v-slot:footer>
<template v-slot:footer> <view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;"> <u-row>
<u-row> <u-button @click="handleSubmit" size="large" shape="circle"
<u-button size="large" shape="circle" custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">确认转单</u-button>
custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">确认转单</u-button> </u-row>
</u-row> </view>
</view> </template>
</template> </tpx-layout>
</tpx-layout> </tpx-page>
</template> </template>
<script> <script>
import getCdnUrl from "@/common/getCdnUrl"
import { import * as apiService from "@/common/api"
ordStaEnum, import { scanTypeEnum, getScanParams, ansScanResponse } from "./scanUtil"
ordStatusList,
payTypeEnum,
payTypeList,
dlvTypeEnum,
dlvTypeList,
dateTypeEnum,
dateTypeList
} from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import {
goto
} from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ },
props: { props: {
// hasLeftWin: {
// type: Boolean
// }
}, },
computed: { computed: {
dicData() {
return this.$store.getters.dicData
},
}, },
data() { data() {
return { return {
submitParam: { submitParam: {
date: [], billCode: '',
type: 1, transferCode: '', // 转单同行快递代码
transferBillcode: '', // 转单同行单号
destCity: '', // 目的城市
}, },
yundanList: [
{ val: 'T7080304037' },{ val: 'T708012124037' },{ val: 'T7080304092' }
]
} }
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
// title: '',
// path: 'TODO'
} }
}, },
onLoad() { onLoad() {
@ -88,15 +80,20 @@
}, },
methods: { methods: {
getCdnUrl,
initData() { initData() {
// uni.showLoading({
// title: '加载中'
// });
}, },
handleSubmit() { async handleSubmit() {
let scnParam = getScanParams(scanTypeEnum.zhuanJian, { ...this.submitParam })
let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "转件" })
if(bl) {
this.resetForm()
}
},
resetForm() {
this.submitParam.billCode = ''
this.submitParam.transferBillcode = ''
} }
} }
} }

View File

@ -70,13 +70,13 @@
dateTypeEnum, dateTypeEnum,
dateTypeList dateTypeList
} from "@/common/enum" } from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean

View File

@ -103,13 +103,13 @@
dateTypeEnum, dateTypeEnum,
dateTypeList dateTypeList
} from "@/common/enum" } from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean

View File

@ -103,13 +103,13 @@
dateTypeEnum, dateTypeEnum,
dateTypeList dateTypeList
} from "@/common/enum" } from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean

View File

@ -63,13 +63,13 @@
dateTypeEnum, dateTypeEnum,
dateTypeList dateTypeList
} from "@/common/enum" } from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean

View File

@ -75,13 +75,13 @@
dateTypeEnum, dateTypeEnum,
dateTypeList dateTypeList
} from "@/common/enum" } from "@/common/enum"
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp" import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import { import {
goto goto
} from "@/common/untool" } from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean