This commit is contained in:
aihe 2024-05-23 18:57:43 +08:00
parent 15e9d76b08
commit 1e23cb01bf
5 changed files with 67 additions and 74 deletions

View File

@ -133,7 +133,7 @@ export const queryProblemTypeList = (data = {})=> {
// 登记问题件 // 登记问题件
export const registerProblemInfo = (data = {})=> { export const registerProblemInfo = (data = {})=> {
return coreRequest(url.registerProblemInfo, data, {}, "GET") return coreRequest(url.registerProblemInfo, data, {})
} }
// 1-发件清单 2-到件清单 3-派件清单 // 1-发件清单 2-到件清单 3-派件清单

View File

@ -46,7 +46,7 @@
<text class="">{{item.billCode}}</text> <text class="">{{item.billCode}}</text>
</u-col> </u-col>
<u-col span="4"> <u-col span="4">
<text class="clr-sub">{{item.sendDate}}</text> <text class="clr-sub">{{item.scanDate}}</text>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>

View File

@ -46,7 +46,7 @@
<text class="">{{item.billCode}}</text> <text class="">{{item.billCode}}</text>
</u-col> </u-col>
<u-col span="4"> <u-col span="4">
<text class="clr-sub">{{item.sendDate}}</text> <text class="clr-sub">{{item.scanDate}}</text>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>

View File

@ -1,68 +1,60 @@
<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 style="flex:1;">
<tpx-scan-input v-model:value="submitParam.yundanhao" placeholder="请输入运单号或扫码"
iconPos="left"></tpx-scan-input>
</view>
</u-row>
</view> <view class="blcok-white-noradius" style="margin-top: 0;">
<u-row justify="between">
<view class="blcok-white-noradius"> <view style="flex:1;">
<u-row custom-style=""> <tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入运单号或扫码"
<view style="flex: 1;"> iconPos="left"></tpx-scan-input>
<tpx-select placeholder="选择问题类型" :isWhite="true"></tpx-select> </view>
</view> </u-row>
</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">
<u-textarea v-model="submitParam.otherDes" border="surround" height="120" placeholder="问题描述"
maxlength="50" count></u-textarea>
</view> </view>
</view>
<view class="blcok-white-noradius">
<view class="blcok-white-noradius"> <u-row custom-style="">
<bpe-goodphoto-tmp title="拍照上传" :value="submitParam" filedName="phName"></bpe-goodphoto-tmp> <view style="flex: 1;">
</view> <tpx-select v-model:resObject="ptypeRes" :getListFun="queryProblemTypeList" :transKeyVal="{valKey: 'id',titleKey: 'typeName'}"
</template> v-model:value="submitParam.problemType" :isWhite="true" placeholder="请选择问题类型"
<template v-slot:footer> ></tpx-select>
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;"> </view>
<u-row> </u-row>
<u-button size="large" shape="circle" <u-row custom-style="margin-top:20rpx;">
custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">提交</u-button> <view style="flex: 1;">
</u-row> <tpx-select placeholder="请选择网点" :isWhite="true"></tpx-select>
</view> </view>
</template> </u-row>
</tpx-layout> <view class="mt-20">
<u-textarea v-model="submitParam.problemCause" border="surround" height="120" placeholder="问题描述"
maxlength="50" count></u-textarea>
</view>
</view>
<view class="blcok-white-noradius">
<bpe-goodphoto-tmp title="拍照上传" :value="submitParam" filedName="filePath"></bpe-goodphoto-tmp>
</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> </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 {
goto
} from "@/common/untool"
export default { export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp }, components:{ BpeGoodphotoTmp },
props: { props: {
// hasLeftWin: { // hasLeftWin: {
// type: Boolean // type: Boolean
@ -73,14 +65,14 @@
}, },
data() { data() {
return { return {
ptypeRes: { list: [] },
submitParam: { submitParam: {
date: [], billCode: "", // 运单号
type: 1, problemType: '', // 问题类型
problemCause: "", // 问题件原因
sendSiteCode: "", // 通知网点代码
filePath: "", // 图片路径
}, },
yundanList: [
{ val: 'T7080304037' },{ val: 'T708012124037' },{ val: 'T7080304092' }
]
} }
}, },
onShareAppMessage() { onShareAppMessage() {
@ -96,15 +88,16 @@
}, },
methods: { methods: {
getCdnUrl, queryProblemTypeList: apiService.queryProblemTypeList,
initData() { initData() {
// uni.showLoading({
// title: '加载中'
// });
}, },
handleSubmit() { async handleSubmit() {
let serverHand = apiService.registerProblemInfo
let params = JSON.parse(JSON.stringify(this.submitParam));
params.filePath = params.filePath.join(",")
await serverHand(params)
this.showToast('操作成功')
} }
} }
} }

View File

@ -46,7 +46,7 @@
<text class="">{{item.billCode}}</text> <text class="">{{item.billCode}}</text>
</u-col> </u-col>
<u-col span="4"> <u-col span="4">
<text class="clr-sub">{{item.sendDate}}</text> <text class="clr-sub">{{item.scanDate}}</text>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>