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 = {})=> {
return coreRequest(url.registerProblemInfo, data, {}, "GET")
return coreRequest(url.registerProblemInfo, data, {})
}
// 1-发件清单 2-到件清单 3-派件清单

View File

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

View File

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

View File

@ -1,68 +1,60 @@
<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>
<tpx-page>
<tpx-layout>
<template v-slot:body>
</view>
<view class="blcok-white-noradius">
<u-row custom-style="">
<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-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 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="请输入运单号或扫码"
iconPos="left"></tpx-scan-input>
</view>
</u-row>
</view>
</view>
<view class="blcok-white-noradius">
<bpe-goodphoto-tmp title="拍照上传" :value="submitParam" filedName="phName"></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 size="large" shape="circle"
custom-style="width: 500rpx;height:80rpx;font-size: 30rpx;" type="primary">提交</u-button>
</u-row>
</view>
</template>
</tpx-layout>
<view class="blcok-white-noradius">
<u-row custom-style="">
<view style="flex: 1;">
<tpx-select v-model:resObject="ptypeRes" :getListFun="queryProblemTypeList" :transKeyVal="{valKey: 'id',titleKey: 'typeName'}"
v-model:value="submitParam.problemType" :isWhite="true" placeholder="请选择问题类型"
></tpx-select>
</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">
<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>
<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 * as apiService from "@/common/api"
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
import {
goto
} from "@/common/untool"
export default {
components:{ BoOperatorTmp, BpeGoodphotoTmp },
components:{ BpeGoodphotoTmp },
props: {
// hasLeftWin: {
// type: Boolean
@ -73,14 +65,14 @@
},
data() {
return {
ptypeRes: { list: [] },
submitParam: {
date: [],
type: 1,
billCode: "", // 运单号
problemType: '', // 问题类型
problemCause: "", // 问题件原因
sendSiteCode: "", // 通知网点代码
filePath: "", // 图片路径
},
yundanList: [
{ val: 'T7080304037' },{ val: 'T708012124037' },{ val: 'T7080304092' }
]
}
},
onShareAppMessage() {
@ -96,15 +88,16 @@
},
methods: {
getCdnUrl,
queryProblemTypeList: apiService.queryProblemTypeList,
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>
</u-col>
<u-col span="4">
<text class="clr-sub">{{item.sendDate}}</text>
<text class="clr-sub">{{item.scanDate}}</text>
</u-col>
</u-row>
</view>