This commit is contained in:
aihe 2024-07-19 01:39:28 +08:00
parent ccf04c7a0c
commit 65b9d9b3c3
6 changed files with 69 additions and 154 deletions

View File

@ -101,6 +101,15 @@ export const cancelOrder = (data = {})=> {
return coreRequest(url.cancelOrder, data, {})
}
// 绑月结卡-发送邮件验证码
export const sendBindMonthPayCode = (data = {})=> {
return coreRequest(url.sendBindMonthPayCode, data, {}, "get")
}
// 确认绑定月结卡
export const verifyBindMonthPayCode = (data = {})=> {
return coreRequest(url.verifyBindMonthPayCode, data, {}, "get")
}
// 扫描
export const scanRecord = (data = {})=> {

View File

@ -39,6 +39,8 @@ export default {
getOrderList: `/oms2c/emisWaybill/listSimple`, // 订单列表 -- DONE
getOrderDetail: `/oms2c/emisWaybill/getWaybillDetail`, // 订单详情 -- DONE
cancelOrder: `/emis/emisWaybill/cancelOrder`, // 取消订单 -- DONE
sendBindMonthPayCode: `/oms2c/emisWaybill/bindMonthPayCode`, // 绑月结卡-发送邮件验证码 -- DONE
verifyBindMonthPayCode: `/oms2c/emisWaybill/verifyBindMonthPayCode`, // 确认绑定月结卡 -- DONE
scanRecord: `/oms2c/emisTmsScanRecord/scan`, // 扫描- 揽收
getRealGetWaybillPrintData: `/oms2c/emisWaybill/realGetPrintList`, // 运单 打印数据
queryPrintListSimple: `/oms2c/emisWaybill/queryPrintListSimple`, // 运单 打印数据-列表

View File

@ -153,12 +153,6 @@
"navigationBarTitleText": "月结卡列表"
}
},
{
"path": "pages/user/monthCardEdit",
"style": {
"navigationBarTitleText": "月结卡编辑"
}
},
{
"path": "pages/user/exclusiveCourier",
"style": {

View File

@ -9,7 +9,7 @@
<tpx-input v-model:value="baseFormData.name" placeholder="真实姓名"></tpx-input>
</uni-forms-item>
<uni-forms-item :required="false">
<tpx-select placeholder="证件类型" v-model:value="baseFormData.type" :list="typeList" custom-style="border:0;"
<tpx-select placeholder="证件类型" v-model:value="baseFormData.type" :list="typeList"
mode="drop"
></tpx-select>
</uni-forms-item>

View File

@ -1,141 +0,0 @@
<template>
<tpx-page>
<tpx-layout>
<template v-slot:body>
<view class="com-jianju pos-rlt pb-30" style="padding-top: 2rpx;">
<view class="blcok-white radius-20">
<u-textarea v-model="submitParam.otherDes" border="none" height="110" placeholder="粘贴或输入地址,点击“智能识别”自动拆分姓名、电话和地址" custom-style="border:0;padding: 0;"></u-textarea>
<u-row justify="end">
<view class="mt-10">
<u-button @click="handleAnsText()" type="primary" size="mini" shape="circle" custom-style="width: 130rpx;font-size: 24rpx;padding:0;">智能识别</u-button>
</view>
</u-row>
</view>
<view class="mt-40">
<tpx-select placeholder="国家" v-model:value="country" :list="[]" :isWhite="true"
></tpx-select>
</view>
<view class="blcok-white radius-20">
<view class="">
<view style="margin-top: 10rpx;">
<u-row>
<u-col span="4">
<tpx-input v-model:value="submitParam.name" placeholder="真实姓名"></tpx-input>
</u-col>
<u-col offset="1" span="7">
<tpx-input v-model:value="submitParam.tel" placeholder="电话"></tpx-input>
</u-col>
</u-row>
</view>
<view class="mt-40">
<tpx-select placeholder="省市区" v-model:value="country" :list="[]"
></tpx-select>
</view>
<view class="mt-30">
<tpx-textarea v-model:value="submitParam.detail" placeholder="详细地址(例如**街道**号**)"></tpx-textarea>
</view>
<view class="mt-30">
<tpx-input v-model:value="submitParam.tel" placeholder="电话"></tpx-input>
</view>
<view class="mt-30">
<tpx-input v-model:value="submitParam.tel" placeholder="邮编"></tpx-input>
</view>
<view class="mt-30">
<tpx-input v-model:value="submitParam.tel" placeholder="邮箱(选填"></tpx-input>
</view>
<view class="mt-30">
<tpx-input v-model:value="submitParam.tel" placeholder="公司名称(选填)"></tpx-input>
</view>
</view>
</view>
<view class="mt-30 pl-30 pr-30">
<u-row justify="between">
<view>
<u-checkbox-group v-model="radiovalue1" placement="column" @change="handleFormChange()">
<u-checkbox
shape="circle"
size="30" label="默认地址" active-color="#B12D29" la
label-size="28" hange="handleFormChange()"
>
</u-checkbox>
</u-checkbox-group>
</view>
<view>
<u-text text="清空" size="28" color="#0E0708"></u-text>
</view>
</u-row>
</view>
</view>
</template>
<template v-slot:footer>
<view class="blcok-white-noradius">
<u-button @click="handleSubmit()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;"
>确定</u-button>
</view>
</template>
</tpx-layout>
</tpx-page>
</template>
<script>
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
computed: {
},
data() {
return {
submitParam: {
}
}
},
onLoad() {
this.initData();
},
onUnload() {
},
methods: {
initData() {
},
handleAnsText(){
},
handleFormChange(){
},
handleSubmit() {
},
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
</style>

View File

@ -60,8 +60,44 @@
</u-button>
</view>
</template>
</tpx-layout>
<tpx-dialog title="申请月结卡绑定" v-model:show="bindModal.show" >
<tpx-layout>
<template v-slot:body>
<view class="pl-30 pr-30">
<u-row custom-style="margin-top: 20rpx;">
<tpx-input placeholder="输入月结卡号" v-model:value="bindModal.data.monthPayCode"></tpx-input>
<view class="ml-20">
<u-button @click="handleSendCode" type="primary"
custom-style="height:66rpx;font-size: 30rpx;">
申请绑定
</u-button>
</view>
</u-row>
<view v-if="bindModal.data._msg" class="mt-40">
<u-row justify="center">
<text class="font-28 clr-sub">{{ bindModal.data._msg }}</text>
</u-row>
</view>
<view v-if="bindModal.data._msg" class="mt-40">
<u-row justify="center">
<u-code-input v-model="bindModal.data.code" maxlength="4" space="20" fontSize="36" size="80"></u-code-input>
</u-row>
</view>
</view>
</template>
<template v-slot:footer>
<view class="blcok-white-noradius" style="margin-top: 0;margin-bottom: 0;">
<u-button @click="handleConfirmBind" :disabled="!bindModal.data._msg" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;">
确认
</u-button>
</view>
</template>
</tpx-layout>
</tpx-dialog>
</tpx-page>
</template>
@ -71,9 +107,6 @@
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
computed: {
@ -85,6 +118,10 @@
},
resData: { list: [] },
queryOption: {},
bindModal: {
show: false,
data: {}
}
}
},
onLoad(queryOption) {
@ -97,9 +134,23 @@
getListFun: apiService.getMonthpayAccountList,
initData(){
},
handleEditItem(item={}) {
this.goto(`user/monthCardEdit?id=${item.id}`)
triggerListReload(){
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
},
handleEditItem(item={}) {
this.bindModal.show = true
this.bindModal.data = {}
},
async handleSendCode(){
let res = await apiService.sendBindMonthPayCode({ ...this.bindModal.data, _loading: true })
this.bindModal.data._msg = res.msg
},
async handleConfirmBind(){
let res = await apiService.verifyBindMonthPayCode({ ...this.bindModal.data, _loading: true })
this.showToast('绑定成功')
this.triggerListReload()
}
}
}
</script>