uu
This commit is contained in:
parent
644a3f6d53
commit
863513f1d7
@ -53,9 +53,6 @@
|
||||
}
|
||||
},
|
||||
checkedList: {
|
||||
default () {
|
||||
return []
|
||||
}
|
||||
},
|
||||
list: {
|
||||
default () {
|
||||
|
||||
@ -54,9 +54,6 @@
|
||||
}
|
||||
},
|
||||
checkedList: {
|
||||
default () {
|
||||
return []
|
||||
}
|
||||
},
|
||||
value: {
|
||||
default () {
|
||||
|
||||
@ -61,8 +61,8 @@
|
||||
return list
|
||||
},
|
||||
filDatacheckedList() {
|
||||
let list = (this.getListFun ? this.resObject.checkedList : this.checkedList) || []
|
||||
if(this.transKeyVal) {
|
||||
let list = (this.getListFun ? this.resObject.checkedList : this.checkedList)
|
||||
if(Array.isArray(list) && this.transKeyVal) {
|
||||
list = transListKeyTitle({ ...this.transKeyVal, list: list })
|
||||
}
|
||||
return list
|
||||
@ -123,9 +123,6 @@
|
||||
}
|
||||
},
|
||||
checkedList: {
|
||||
default () {
|
||||
return []
|
||||
}
|
||||
},
|
||||
searchParam: {
|
||||
default () {
|
||||
|
||||
@ -1,117 +0,0 @@
|
||||
<template>
|
||||
<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.yundanhao" placeholder="请输入运单号或扫码"
|
||||
iconPos="left"></tpx-scan-input>
|
||||
</view>
|
||||
</u-row>
|
||||
<u-row custom-style="margin-top:20rpx;">
|
||||
<view style="flex: 1;">
|
||||
<tpx-select placeholder="选择签收人" :isWhite="true"></tpx-select>
|
||||
</view>
|
||||
</u-row>
|
||||
|
||||
<view class="mt-20">
|
||||
<bpe-goodphoto-tmp title="签收拍照" :value="submitParam" filedName="phName"></bpe-goodphoto-tmp>
|
||||
</view>
|
||||
<view class="mt-10">
|
||||
<u-textarea v-model="submitParam.otherDes" border="surround" height="120" placeholder="备注"
|
||||
maxlength="50" count></u-textarea>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<template v-slot:footer>
|
||||
<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>
|
||||
|
||||
<script>
|
||||
import getCdnUrl from "@/common/getCdnUrl"
|
||||
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 {
|
||||
goto
|
||||
} from "@/common/untool"
|
||||
export default {
|
||||
components:{ BoOperatorTmp, BpeGoodphotoTmp },
|
||||
props: {
|
||||
// hasLeftWin: {
|
||||
// type: Boolean
|
||||
// }
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
submitParam: {
|
||||
date: [],
|
||||
type: 1,
|
||||
},
|
||||
|
||||
yundanList: [
|
||||
{ val: 'T7080304037' },{ val: 'T708012124037' },{ val: 'T7080304092' }
|
||||
]
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
// title: '',
|
||||
// path: 'TODO'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.initData();
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getCdnUrl,
|
||||
|
||||
initData() {
|
||||
// uni.showLoading({
|
||||
// title: '加载中'
|
||||
// });
|
||||
},
|
||||
handleSubmit() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</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>
|
||||
@ -7,10 +7,9 @@
|
||||
<u-row justify="between">
|
||||
<view style="flex:1;">
|
||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入运单号或扫码"
|
||||
iconPos="left"></tpx-scan-input>
|
||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||
</view>
|
||||
</u-row>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="blcok-white-noradius">
|
||||
@ -23,7 +22,7 @@
|
||||
</u-row>
|
||||
<u-row custom-style="margin-top:20rpx;">
|
||||
<view style="flex: 1;">
|
||||
<tpx-select placeholder="请选择网点" :isWhite="true"></tpx-select>
|
||||
<tpx-select placeholder="请选择网点" v-model:value="submitParam.sendSiteCode" :list="siteList" :isWhite="true"></tpx-select>
|
||||
</view>
|
||||
</u-row>
|
||||
<view class="mt-20">
|
||||
@ -50,15 +49,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { debounce } from "@/common/util"
|
||||
import * as apiService from "@/common/api"
|
||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||
|
||||
export default {
|
||||
components:{ BpeGoodphotoTmp },
|
||||
props: {
|
||||
// hasLeftWin: {
|
||||
// type: Boolean
|
||||
// }
|
||||
},
|
||||
computed: {
|
||||
|
||||
@ -66,6 +63,7 @@
|
||||
data() {
|
||||
return {
|
||||
ptypeRes: { list: [] },
|
||||
siteList: [],
|
||||
submitParam: {
|
||||
billCode: "", // 运单号
|
||||
problemType: '', // 问题类型
|
||||
@ -77,8 +75,6 @@
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
// title: '',
|
||||
// path: 'TODO'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@ -91,12 +87,22 @@
|
||||
queryProblemTypeList: apiService.queryProblemTypeList,
|
||||
initData() {
|
||||
|
||||
},
|
||||
handleScanValChange: debounce(function(val){
|
||||
val && (this.handleSearch(val))
|
||||
}),
|
||||
async handleSearch(val) {
|
||||
let res = await apiService.getOrderDetail({billCode: val, _loading: true})
|
||||
let { sendSiteName, sendSiteCode, dispatchUnderlingSiteName, dispatchUnderlingSiteCode } = res.data
|
||||
this.siteList = [
|
||||
{ title: sendSiteName, val: sendSiteCode },
|
||||
{ title: dispatchUnderlingSiteName, val: dispatchUnderlingSiteCode },
|
||||
]
|
||||
},
|
||||
async handleSubmit() {
|
||||
let serverHand = apiService.registerProblemInfo
|
||||
let params = JSON.parse(JSON.stringify(this.submitParam));
|
||||
params.filePath = params.filePath.join(",")
|
||||
await serverHand(params)
|
||||
await apiService.registerProblemInfo({ ...params, _loading: true })
|
||||
this.showToast('操作成功')
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user