This commit is contained in:
aihe 2024-12-21 00:41:15 +08:00
parent 97a833b2d1
commit 45cbee931b
3 changed files with 49 additions and 10 deletions

View File

@ -23,6 +23,10 @@ export const calcProductFee = (data = {})=> {
return coreRequest(url.calcProductFee, { ...data }, {})
}
// 销售人联系列表
export const getSalemanList = (data = {})=> {
return coreRequest(url.getSalemanList, { ...data }, {}, "GET")
}
// 物流轨迹
export const queryWaybillTraceInfo = (data = {})=> {

View File

@ -38,6 +38,7 @@ export default {
sendBindMonthPayCode: `/oms2c/emisWaybill/bindMonthPayCode`, // 绑月结卡-发送邮件验证码
verifyBindMonthPayCode: `/oms2c/emisWaybill/verifyBindMonthPayCode`, // 确认绑定月结卡
unbindMonthPayCode: `/oms2c/emisWaybill/unbindMonthPayCode`, // 解绑定月结卡
getSalemanList: `/oms2c/emisStaff/getSalemanList`, // 销售人联系列表
preCalcWaybillFee: `/oms2c/emisWaybill/preCalcWaybillFee`, // 报价试算
calcProductFee: `/oms2c/emisWaybill/calcProductFee`, // 下单-报价试算
getAgreementTxt: `/oms2c/commonTools/getAgreementTxt`, // 获取下单隐私协议

View File

@ -43,6 +43,19 @@
<view>
<view v-if="submitParam.pickupMethod == 1">
<view class="yunf-input-item">
<tpx-select v-model:value="submitParam.salesmen" v-model:text="submitParam.salesmen" v-model:resObject="salemanRes" :getListFun="getSalemanList" :transKeyVal="{valKey: 'empName',titleKey: 'empName'}"
placeholder="请选择销售联系人"
>
<tpx-text-item :required="true" label="销售联系人">
<template v-slot:right>
{{submitParam.salesmen || '请选择'}}
<u-icon size="26" name="arrow-right" color="#333"></u-icon>
</template>
</tpx-text-item>
</tpx-select>
</view>
<view class="yunf-input-item">
<tpx-select v-model:value="submitParam.intoWarehouseCode" v-model:text="submitParam.intoWarehouseName" v-model:resObject="wareRes"
:getListFun="getLisWarehouse" :transKeyVal="{valKey: 'code',titleKey: 'name'}"
@ -67,6 +80,7 @@
</u-row>
</view>
</view>
</view>
<view v-if="submitParam.pickupMethod == 1" class="yunf-input-item pos-rlt">
@ -153,19 +167,30 @@
</view>
</view>
<view class="com-section mt-30" @click="handleDialogClick(goodChooseModal)">
<view class="com-section mt-30 pos-rlt">
<u-row justify="space-between">
<span class="pl-20">
<text class="lbRequiredDot">货物信息</text>
</span>
<u-icon name="edit-pen" size="42"></u-icon>
</u-row>
</view>
<view class="blcok-white">
<view class="blcok-white" @click="handleDialogClick(goodChooseModal)">
<u-row custom-style="padding-bottom: 10rpx;" >
<u-row>
<u-icon name="edit-pen" size="42"></u-icon>
<span class="font-28 pl-10 clr-prm">编辑</span>
</u-row>
</u-row>
<bpe-goodstatic-tmp v-model:value="submitParam"></bpe-goodstatic-tmp>
</view>
<view class="com-section mt-30">产品类型</view>
<view class="com-section mt-30">
<span class="pl-20">
<text class="lbRequiredDot">产品类型</text>
</span>
</view>
<view class="blcok-white yunf-list" style="padding-bottom: 2rpx;">
<bpe-choosetypelist-tmp ref="caleRef" v-model:value="submitParam" :calType="2"></bpe-choosetypelist-tmp>
</view>
@ -272,6 +297,7 @@
getTransLineList: apiService.getTransLineList,
getLisWarehouse: apiService.getLisWarehouse,
getMonthpayAccountList: apiService.getMonthpayAccountList,
getSalemanList: apiService.getSalemanList,
getDefaultData() { // data的默认数据
return {
rucangMinDate: dayjs().add(0, 'day').format(`YYYY-MM-DD`),
@ -294,6 +320,7 @@
wayRes: { list: [] },
yuejieRes: { list: [] },
wareRes: { list: [] },
salemanRes: { list: [] },
revtimeModal: {
show: false,
},
@ -360,6 +387,13 @@
const item = this.wayRes.list.filter(t=> t.val == val)[0]
this.updateDltDestSite({ lineCode: val })
this.updateDltSendSite({ lineCode: val })
if(item?.transType == 1) {
this.submitParam.customsEclaration = 1
this.submitParam.customsClear = 1
} else {
this.submitParam.customsEclaration = 2
this.submitParam.customsClear = 3
}
},
async updateDltDestSite({ lineCode }) {
const { country, province, city, county, address } = this.submitParam.reciever