This commit is contained in:
aihe 2024-09-13 10:36:03 +08:00
parent 50f29385f2
commit b958364ecc
3 changed files with 76 additions and 58 deletions

View File

@ -96,6 +96,11 @@ export const verifyBindMonthPayCode = (data = {})=> {
return coreRequest(url.verifyBindMonthPayCode, data, {}, "get") return coreRequest(url.verifyBindMonthPayCode, data, {}, "get")
} }
// 解绑定月结卡
export const unbindMonthPayCode = (data = {})=> {
return coreRequest(url.unbindMonthPayCode, data, {}, "get")
}
// 下载进仓单PDF // 下载进仓单PDF
export const exportWarehouseInTpl = (data = {})=> { export const exportWarehouseInTpl = (data = {})=> {
return coreDownloadRequest(url.exportWarehouseInTpl, data, {}) return coreDownloadRequest(url.exportWarehouseInTpl, data, {})

View File

@ -3,63 +3,64 @@ import { curEnvConf } from "../env"
export const host = curEnvConf.apiHost export const host = curEnvConf.apiHost
export default { export default {
uploadFile: '/common/ossUpload', // 上传 -- DONE uploadFile: '/common/ossUpload', // 上传
loginByApp: `/loginByApp`, // 登录 -- DONE loginByApp: `/loginByApp`, // 登录
loginByMP: `/loginByWeixin`, // 小程序登录 -- DONE loginByMP: `/loginByWeixin`, // 小程序登录
bindPhone: `/bindPhoneByWx`, // 绑定手机号 -- DONE bindPhone: `/bindPhoneByWx`, // 绑定手机号
getInfoByApp: `/getInfoByWxApp`,// 获取用户基本信息 -- DONE getInfoByApp: `/getInfoByWxApp`,// 获取用户基本信息
getEmisCountry: `/oms2c/emisCountry/listSimple`, // 获取国家列表 -- DONE getEmisCountry: `/oms2c/emisCountry/listSimple`, // 获取国家列表
getEmisRegion: `/oms2c/emisRegion/listSimple`,// 获取省市区列表 -- DONE getEmisRegion: `/oms2c/emisRegion/listSimple`,// 获取省市区列表
getDicDataJson: `/common/getDicDataJson`, // 获取枚举字段 -- DONE getDicDataJson: `/common/getDicDataJson`, // 获取枚举字段
getCustOrderStatData: `/oms2c/emisWaybill/getCustOrderStatData`,// 我的收寄件信息统计 -- DONE getCustOrderStatData: `/oms2c/emisWaybill/getCustOrderStatData`,// 我的收寄件信息统计
getCustomerUserAddressList: `/oms2c/emisCustomerAddress/listSimple`, // 获取客户地址列表 -- DONE getCustomerUserAddressList: `/oms2c/emisCustomerAddress/listSimple`, // 获取客户地址列表
setDefaultAddressById: `/oms2c/emisCustomerAddress/setDefaultAddressById`, // 设置默认地址 -- DONE setDefaultAddressById: `/oms2c/emisCustomerAddress/setDefaultAddressById`, // 设置默认地址
deleteAddressById: `/oms2c/emisCustomerAddress/deleteAddressById`, // 删除地址 -- DONE deleteAddressById: `/oms2c/emisCustomerAddress/deleteAddressById`, // 删除地址
addAddress: `/oms2c/emisCustomerAddress/addAddress`, // 新增地址 -- DONE addAddress: `/oms2c/emisCustomerAddress/addAddress`, // 新增地址
editAddress: `/oms2c/emisCustomerAddress/editAddress`, // 编辑地址 -- DONE editAddress: `/oms2c/emisCustomerAddress/editAddress`, // 编辑地址
getAddressById: `/oms2c/emisCustomerAddress/getAddressById`, // 查看地址 -- DONE getAddressById: `/oms2c/emisCustomerAddress/getAddressById`, // 查看地址
parseAddress: `/oms2c/common/parseAddress`, // 智能地址解析(仅中国) -- DONE parseAddress: `/oms2c/common/parseAddress`, // 智能地址解析(仅中国)
getTransLineList: `/oms2c/emisTransLine/listSimple`, // 获取路线列表 -- DONE getTransLineList: `/oms2c/emisTransLine/listSimple`, // 获取路线列表
submitOrder: `/oms2c/emisWaybill/realSubmitOrder`, // 提交订单 -- DONE submitOrder: `/oms2c/emisWaybill/realSubmitOrder`, // 提交订单
getGoodsList: `/oms2c/emisGoods/listSimple`, // 获取历史--货物列表 -- DONE getGoodsList: `/oms2c/emisGoods/listSimple`, // 获取历史--货物列表
getHotGoodsList: `/oms2c/emisGoods/listHotGoods`, // 获取热门--货物列表 -- DONE getHotGoodsList: `/oms2c/emisGoods/listHotGoods`, // 获取热门--货物列表
getMonthpayAccountList: `/oms2c/emisMonthpayAccount/listSimple`, // 月结账号列表 -- DONE getMonthpayAccountList: `/oms2c/emisMonthpayAccount/listSimple`, // 月结账号列表
getCaculteDestSite: `/oms2c/emisDestination/getDestSite`, // 自动计算目的地 -- DONE getCaculteDestSite: `/oms2c/emisDestination/getDestSite`, // 自动计算目的地
getCaculteSendSite: `/oms2c/emisDestination/getSendSite`, // 自动计算寄件网点 -- DONE getCaculteSendSite: `/oms2c/emisDestination/getSendSite`, // 自动计算寄件网点
getLisWarehouse: `/oms2c/emisWaybill/listWmsWarehouse`, // 仓库列表 -- DONE getLisWarehouse: `/oms2c/emisWaybill/listWmsWarehouse`, // 仓库列表
getListBindSalesmen: `/oms2c/emisWaybill/listBindSalesmen`, // 绑定业务员列表 -- DONE getListBindSalesmen: `/oms2c/emisWaybill/listBindSalesmen`, // 绑定业务员列表
queryNewSalesmen: `/oms2c/emisWaybill/queryNewSalesmen`, // 查询所有业务员-根据手机号等条件 -- DONE queryNewSalesmen: `/oms2c/emisWaybill/queryNewSalesmen`, // 查询所有业务员-根据手机号等条件
bindSalesmen: `/oms2c/emisWaybill/bindSalesmen`, // 绑定业务员 -- DONE bindSalesmen: `/oms2c/emisWaybill/bindSalesmen`, // 绑定业务员
getSendSiteList: `/oms2c/emisSite/listSimple`, // 出发地-网点列表-- DONE getSendSiteList: `/oms2c/emisSite/listSimple`, // 出发地-网点列表
calcWaybillFee: `/oms2c/emisWaybill/calcWaybillFee`, // 计算运费-- DONE calcWaybillFee: `/oms2c/emisWaybill/calcWaybillFee`, // 计算运费
getOrderList: `/oms2c/emisWaybill/listSimple`, // 订单列表 -- DONE getOrderList: `/oms2c/emisWaybill/listSimple`, // 订单列表
getOrderDetail: `/oms2c/emisWaybill/getWaybillDetail`, // 订单详情 -- DONE getOrderDetail: `/oms2c/emisWaybill/getWaybillDetail`, // 订单详情
cancelOrder: `/oms2c/emisWaybill/cancelOrder`, // 取消订单 -- DONE cancelOrder: `/oms2c/emisWaybill/cancelOrder`, // 取消订单
sendBindMonthPayCode: `/oms2c/emisWaybill/bindMonthPayCode`, // 绑月结卡-发送邮件验证码 -- DONE sendBindMonthPayCode: `/oms2c/emisWaybill/bindMonthPayCode`, // 绑月结卡-发送邮件验证码
verifyBindMonthPayCode: `/oms2c/emisWaybill/verifyBindMonthPayCode`, // 确认绑定月结卡 -- DONE verifyBindMonthPayCode: `/oms2c/emisWaybill/verifyBindMonthPayCode`, // 确认绑定月结卡
preCalcWaybillFee: `/oms2c/emisWaybill/preCalcWaybillFee`, // 报价试算 -- DONE unbindMonthPayCode: `/oms2c/emisWaybill/unbindMonthPayCode`, // 解绑定月结卡
calcProductFee: `/oms2c/emisWaybill/calcProductFee`, // 下单-报价试算 -- DONE preCalcWaybillFee: `/oms2c/emisWaybill/preCalcWaybillFee`, // 报价试算
getAgreementTxt: `/oms2c/commonTools/getAgreementTxt`, // 获取下单隐私协议 -- DONE calcProductFee: `/oms2c/emisWaybill/calcProductFee`, // 下单-报价试算
deleteBindSalemen: `/oms2c/emisWaybill/deleteBindSalemen`, // 删除绑定快递员 -- DONE getAgreementTxt: `/oms2c/commonTools/getAgreementTxt`, // 获取下单隐私协议
setDefaultBindSalesmen: `/oms2c/emisWaybill/setDefaultBindSalesmen`, // 设置默认快递员 -- DONE deleteBindSalemen: `/oms2c/emisWaybill/deleteBindSalemen`, // 删除绑定快递员
queryWaybillTraceInfo: `/oms2c/emisTmsScanRecord/queryWaybillTraceInfo`, // 物流轨迹 -- DONE setDefaultBindSalesmen: `/oms2c/emisWaybill/setDefaultBindSalesmen`, // 设置默认快递员
queryArticleList: `/oms2c/emisArticle/listSimple`, // 信息速递列表 -- DONE queryWaybillTraceInfo: `/oms2c/emisTmsScanRecord/queryWaybillTraceInfo`, // 物流轨迹
queryArticleDetail: `/oms2c/emisArticle/getDetail`, // 获取文档详情 -- DONE queryArticleList: `/oms2c/emisArticle/listSimple`, // 信息速递列表
articleGiveLike: `/oms2c/emisArticle/giveLike`, // 文章点赞 -- DONE queryArticleDetail: `/oms2c/emisArticle/getDetail`, // 获取文章详情
getIdVerification: `/oms2c/emisCustomerUser/getIdVerification`, // 获取实名认证信息 -- DONE articleGiveLike: `/oms2c/emisArticle/giveLike`, // 文章点赞
idVerification: `/oms2c/emisCustomerUser/idVerification`, // 提交实名认证 -- DONE getIdVerification: `/oms2c/emisCustomerUser/getIdVerification`, // 获取实名认证信息
getComplaintsList: `/oms2c/emisWaybillComplaints/listSimple`, // 投诉列表 -- DONE idVerification: `/oms2c/emisCustomerUser/idVerification`, // 提交实名认证
addComplaints: `/oms2c/emisWaybillComplaints/addComplaints`, // 新增投诉 -- DONE getComplaintsList: `/oms2c/emisWaybillComplaints/listSimple`, // 投诉列表
getComplainInfo: `/oms2c/emisWaybillComplaints/getInfoById`, // 投诉详情 -- DONE addComplaints: `/oms2c/emisWaybillComplaints/addComplaints`, // 新增投诉
scanCheckBillCode: `/oms2c/emisWaybill/scanCheckBillCode`, // 扫码下单寄件-checke -- DONE getComplainInfo: `/oms2c/emisWaybillComplaints/getInfoById`, // 投诉详情
queryBSettleillList: `/oms2c/emisSettleBill/listSimple`, // 账单列表 -- DONE scanCheckBillCode: `/oms2c/emisWaybill/scanCheckBillCode`, // 扫码下单寄件-checke
getInfoBySettleBillNo: `/oms2c/emisSettleBill/getInfoBySettleBillNo`, // 获取账单详情 -- DONE queryBSettleillList: `/oms2c/emisSettleBill/listSimple`, // 账单列表
getWxPayQrCode: `/oms2c/emisSettleBill/getWxPayQrCode`, // 获取微信支付二维码 -- DONE getInfoBySettleBillNo: `/oms2c/emisSettleBill/getInfoBySettleBillNo`, // 获取账单详情
sumbitWxPay: `/oms2c/emisSettleBill/sumbitWxPay`, // 账单-唤起微信立即支付 -- DONE getWxPayQrCode: `/oms2c/emisSettleBill/getWxPayQrCode`, // 获取微信支付二维码
sumbitWxPay: `/oms2c/emisSettleBill/sumbitWxPay`, // 账单-唤起微信立即支付
exportWarehouseInTpl: `/oms2c/common/exportWarehouseInTpl`, // 下载进仓单PDF-- DONE exportWarehouseInTpl: `/oms2c/common/exportWarehouseInTpl`, // 下载进仓单PDF
getWarehouseInList: `/oms2c/emisWarehouseIn/listSimple`, // 进仓单列表-- DONE getWarehouseInList: `/oms2c/emisWarehouseIn/listSimple`, // 进仓单列表
getWarehouseInInfo: `/oms2c/emisWarehouseIn/getWarehouseInDetail`, // 获取进仓单详情-- DONE getWarehouseInInfo: `/oms2c/emisWarehouseIn/getWarehouseInDetail`, // 获取进仓单详情
cusConfirmWsIn: `/oms2c/emisWarehouseIn/cusConfirmWsIn`, // 确认进仓单- DONE cusConfirmWsIn: `/oms2c/emisWarehouseIn/cusConfirmWsIn`, // 确认进仓单
} }

View File

@ -22,7 +22,7 @@
<!-- --> <!-- -->
<view> <view>
<view v-for="(item) in resData.list" class="blcok-white radius-20 mb-20" style="margin-top: 0;" <view v-for="(item) in resData.list" class="blcok-white radius-20 mb-20" style="margin-top: 0;"
@click="handleTODetail(item)"
> >
<view> <view>
<u-row justify="between"> <u-row justify="between">
@ -40,6 +40,13 @@
</u-row> </u-row>
</u-row> </u-row>
</view> </view>
<u-line color="#DEDEDE" margin="30rpx 0 0 0"></u-line>
<u-row justify="end" custom-style="margin-top:20rpx;">
<view style="display: inline-block;white-space: nowrap;">
<u-button @click="handleUnBindItem(item)" shape="circle"
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">解绑</u-button>
</view>
</u-row>
</view> </view>
</view> </view>
</view> </view>
@ -154,6 +161,11 @@
this.bindModal.show = false this.bindModal.show = false
this.showToast('绑定成功') this.showToast('绑定成功')
this.triggerListReload() this.triggerListReload()
},
async handleUnBindItem(item){
let res = await apiService.unbindMonthPayCode({ monthPayCode: item.custNo, _loading: true })
this.showToast('解绑成功')
this.triggerListReload()
} }
} }
} }