Commit de30c9e0 authored by Administrator's avatar Administrator

Merge branch 'release' into 'jd_dev'

Release最新代码合并入捷道研发分支20241123

See merge request !39
parents 3a8b0a9a 0a21e094
...@@ -265,3 +265,11 @@ export function getOfferCheck(params) { ...@@ -265,3 +265,11 @@ export function getOfferCheck(params) {
params params
}) })
} }
// 复制订单/my/order/copy/{copyOrderId}
export function copyOrder(copyOrderId) {
return request({
url: '/app-api/my/order/copy/' + copyOrderId,
method: 'post'
})
}
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
route: { route: {
dashboard: "home page", dashboard: "home page",
profile: "profile", profile: "profile",
personalCenter: "Personal Center",
setting: "setting", setting: "setting",
advice: "advice", advice: "advice",
help: "help", help: "help",
...@@ -148,7 +149,7 @@ export default { ...@@ -148,7 +149,7 @@ export default {
Id1: "Please upload frontal photo of ID", Id1: "Please upload frontal photo of ID",
Id2: "Please upload back side photo of ID", Id2: "Please upload back side photo of ID",
success: "Submitted successfully", success: "Submitted successfully",
loading: "Uploading..", uploading: "Uploading..",
newPhone: "new phone", newPhone: "new phone",
edited: "Edited Success", edited: "Edited Success",
company: "company name", company: "company name",
...@@ -603,7 +604,7 @@ export default { ...@@ -603,7 +604,7 @@ export default {
no: "no", no: "no",
warehouseNum: "warehouseNum", warehouseNum: "warehouseNum",
entry: "receipt data ", entry: "receipt data ",
warehouseType: "warehouseType", warehouseType: "Type of warehouse entry",
customsType: "Customs declaration", customsType: "Customs declaration",
isCollection: "collection", isCollection: "collection",
activeFirst: "Details of the goods", activeFirst: "Details of the goods",
...@@ -626,6 +627,8 @@ export default { ...@@ -626,6 +627,8 @@ export default {
hiddenText: "Show", hiddenText: "Show",
showText: "Hide", showText: "Hide",
transInfo: "Transportation information", transInfo: "Transportation information",
packageType: 'special requirements',
packageRemarks: 'Special Requirements Remarks',
own: "selp pickup", own: "selp pickup",
toRoom: "to door", toRoom: "to door",
typeName: "value-added services", typeName: "value-added services",
...@@ -639,15 +642,21 @@ export default { ...@@ -639,15 +642,21 @@ export default {
tiedanPrice: "Does the bill of lading display the price", tiedanPrice: "Does the bill of lading display the price",
warehouseName: "Warehouse", warehouseName: "Warehouse",
externalWarehouse: "External warehouse", externalWarehouse: "External warehouse",
ownWarehouse: "Own warehouse",
estLoading: "Loading time", estLoading: "Loading time",
loadingAddress: "Loading address", loadingAddress: "Loading address",
creator: "creator", creator: "Creator",
customerManage: "Customer Manager", customerManage: "Customer Manager",
prodTitle: "item name", prodTitle: "item name",
inWarehouseInfo: "Warehouse entry information", inWarehouseInfo: "Warehouse entry information",
packing: "packing", packing: "packing",
expressNO: "express no",
tiandanExpressNO: "prefill express tracking number", tiandanExpressNO: "prefill express tracking number",
feeData: "Fee data", feeData: "Fee data",
member: "Member",
admin: "Admin",
createTime: "Create Time",
customerService: "Customer service",
}, },
customer: { customer: {
none: "none", none: "none",
...@@ -692,9 +701,9 @@ export default { ...@@ -692,9 +701,9 @@ export default {
addGroup: "add the group", addGroup: "add the group",
updateGroup: "update the group", updateGroup: "update the group",
deleteGroup: "Delete the group?", deleteGroup: "Delete the group?",
default: "默认", default: "default",
yes: "", yes: "Yes",
no: "", no: "No",
}, },
ecash: { ecash: {
time: "time", time: "time",
...@@ -736,6 +745,8 @@ export default { ...@@ -736,6 +745,8 @@ export default {
refundWarehouse: "Return warehouse", refundWarehouse: "Return warehouse",
abnormal: "abnormal", abnormal: "abnormal",
edit: "edit", edit: "edit",
copy: "copy",
delete: "delete",
cancel: "cancel", cancel: "cancel",
refundOrderNo: "Return OrderNo", refundOrderNo: "Return OrderNo",
refundReason: "Return Reason", refundReason: "Return Reason",
...@@ -1068,6 +1079,9 @@ export default { ...@@ -1068,6 +1079,9 @@ export default {
orderType1: 'Cargo service', orderType1: 'Cargo service',
orderType2: 'Overseas warehouse', orderType2: 'Overseas warehouse',
consigneeName: 'consigneeName', consigneeName: 'consigneeName',
yes: 'Yes',
no: 'No',
name: 'Name',
consigneeNameNotice: 'Please enter the name of the consignee', consigneeNameNotice: 'Please enter the name of the consignee',
consigneeNameNoticeEn: 'Please enter the name of the consignee in English', consigneeNameNoticeEn: 'Please enter the name of the consignee in English',
openConsignee: 'Select the consignee', openConsignee: 'Select the consignee',
...@@ -1078,12 +1092,15 @@ export default { ...@@ -1078,12 +1092,15 @@ export default {
consigneeCompanyNoticeEn: 'Please enter the company name in English', consigneeCompanyNoticeEn: 'Please enter the company name in English',
consignorConfirm: 'Please confirm the freight be paid by sender?', consignorConfirm: 'Please confirm the freight be paid by sender?',
emailNotice: 'Please enter email address', emailNotice: 'Please enter email address',
transportTitle: 'transport info',
transport: '*transport', transport: '*transport',
transportNotice: 'Please select the mode of transportation', transportNotice: 'Please select the mode of transportation',
channel: 'channel', channel: 'channel',
channelNotice: 'Please select the shipping channel', channelNotice: 'Please select the shipping channel',
departure: '*departure', departure: '*departure',
destCountry: 'Destination country',
destCountryRules: 'destination country must be chosen', destCountryRules: 'destination country must be chosen',
destCountryNotice: 'Please select the destination country',
departureRules: 'The place of origin is mandatory', departureRules: 'The place of origin is mandatory',
departureNotice: 'Please select the place of departure', departureNotice: 'Please select the place of departure',
objective: '*objective', objective: '*objective',
...@@ -1091,6 +1108,7 @@ export default { ...@@ -1091,6 +1108,7 @@ export default {
objectiveNotice: 'Please select a destination', objectiveNotice: 'Please select a destination',
router: '*Please select a line', router: '*Please select a line',
routerNotice: 'Select a line on the right', routerNotice: 'Select a line on the right',
addServices:'value-added services',
goods: 'goods info', goods: 'goods info',
addPro: 'addPro', addPro: 'addPro',
addPros: 'addPros', addPros: 'addPros',
...@@ -1128,14 +1146,21 @@ export default { ...@@ -1128,14 +1146,21 @@ export default {
issuingMethod: '*issuingMethod', issuingMethod: '*issuingMethod',
deliveryDate: '*deliveryDate', deliveryDate: '*deliveryDate',
deliveryDateRules: 'The delivery date cannot be empty', deliveryDateRules: 'The delivery date cannot be empty',
displayBillLading: 'Does the bill of lading display the price',
display: 'display',
notDisplay: 'Do not display',
warehouseType: '*warehouseType', warehouseType: '*warehouseType',
externalWarehouse: 'External warehouse',
harvestMethod: '*harvestMethod', harvestMethod: '*harvestMethod',
loadingTime: 'loading time',
loadingAddress: 'Loading address',
deliveryaddress: 'deliveryaddress', deliveryaddress: 'deliveryaddress',
deliveryaddressRules: 'The receiving area cannot be empty', deliveryaddressRules: 'The receiving area cannot be empty',
addressdetail: 'addressdetail', addressdetail: 'addressdetail',
addressdetailRules: 'The shipping address cannot be blank', addressdetailRules: 'The shipping address cannot be blank',
drawee: '*drawee', drawee: '*drawee',
customDraweeList: 'customDraweeList', customDraweeList: 'customDraweeList',
other:"Other",
number: 'number', number: 'number',
numberNotice: 'Please enter the tracking number of your purchase', numberNotice: 'Please enter the tracking number of your purchase',
getNumber: 'getNumber', getNumber: 'getNumber',
......
...@@ -25,6 +25,7 @@ export default { ...@@ -25,6 +25,7 @@ export default {
route: { route: {
dashboard: "首页", dashboard: "首页",
profile: "个人中心", profile: "个人中心",
personalCenter: "个人中心",
setting: "个人设置", setting: "个人设置",
advice: "咨询建议", advice: "咨询建议",
help: "帮助", help: "帮助",
...@@ -115,7 +116,7 @@ export default { ...@@ -115,7 +116,7 @@ export default {
Id1: "请上传证件正面照", Id1: "请上传证件正面照",
Id2: "请上传证件反面照", Id2: "请上传证件反面照",
success: "提交成功", success: "提交成功",
loading: "上传中..", uploading: "上传中..",
newPhone: "请输入您的新手机号", newPhone: "请输入您的新手机号",
edited: "修改成功", edited: "修改成功",
company: "请输入公司名称", company: "请输入公司名称",
...@@ -606,6 +607,8 @@ export default { ...@@ -606,6 +607,8 @@ export default {
hiddenText: "隐藏", hiddenText: "隐藏",
showText: "展示", showText: "展示",
transInfo: "运输信息", transInfo: "运输信息",
packageType: '特殊要求',
packageRemarks: '特殊要求备注',
own: "自提", own: "自提",
toRoom: "送货上门", toRoom: "送货上门",
typeName: "增值服务", typeName: "增值服务",
...@@ -618,7 +621,8 @@ export default { ...@@ -618,7 +621,8 @@ export default {
customerUndertakes: "客户承接", customerUndertakes: "客户承接",
tiedanPrice: "提单是否显示价格", tiedanPrice: "提单是否显示价格",
warehouseName: "仓库", warehouseName: "仓库",
externalWarehouse: "外部仓", externalWarehouse: "外部仓库",
ownWarehouse: "自有仓",
estLoading: "装柜时间", estLoading: "装柜时间",
loadingAddress: "装柜地址", loadingAddress: "装柜地址",
creator: "创建人", creator: "创建人",
...@@ -626,8 +630,13 @@ export default { ...@@ -626,8 +630,13 @@ export default {
prodTitle: "品名", prodTitle: "品名",
inWarehouseInfo: "入仓信息", inWarehouseInfo: "入仓信息",
packing: "包装", packing: "包装",
expressNO: "快递单号",
tiandanExpressNO: "填单快递单号", tiandanExpressNO: "填单快递单号",
feeData: "收费数据", feeData: "收费数据",
member: "会员",
admin: "后台用户",
createTime: "创建时间",
customerService: "客户经理",
}, },
customer: { customer: {
none: "", none: "",
...@@ -716,6 +725,8 @@ export default { ...@@ -716,6 +725,8 @@ export default {
refundWarehouse: "申请退仓", refundWarehouse: "申请退仓",
abnormal: "处理", abnormal: "处理",
edit: "编辑", edit: "编辑",
copy: "复制",
delete: "删除",
cancel: "取消订单", cancel: "取消订单",
refundOrderNo: "退仓订单号", refundOrderNo: "退仓订单号",
refundReason: "退仓原因", refundReason: "退仓原因",
...@@ -992,6 +1003,9 @@ export default { ...@@ -992,6 +1003,9 @@ export default {
orderType1: '集运服务', orderType1: '集运服务',
orderType2: '海外仓', orderType2: '海外仓',
consigneeName: '收货人', consigneeName: '收货人',
yes: "",
no: "",
name: '名称',
consigneeNameNotice: '请输入收货人姓名', consigneeNameNotice: '请输入收货人姓名',
consigneeNameNoticeEn: '请输入收货人英文名称', consigneeNameNoticeEn: '请输入收货人英文名称',
openConsignee: '选择收货人', openConsignee: '选择收货人',
...@@ -1001,12 +1015,15 @@ export default { ...@@ -1001,12 +1015,15 @@ export default {
consigneeCompanyNotice: '请输入公司名称', consigneeCompanyNotice: '请输入公司名称',
consigneeCompanyNoticeEn: '请输入公司英文名称', consigneeCompanyNoticeEn: '请输入公司英文名称',
emailNotice: '请输入邮箱', emailNotice: '请输入邮箱',
transportTitle: '运输',
transport: '运输方式', transport: '运输方式',
transportNotice: '请选择运输方式', transportNotice: '请选择运输方式',
channel: '出货渠道', channel: '出货渠道',
channelNotice: '请选择出货渠道', channelNotice: '请选择出货渠道',
departure: '始发城市', departure: '始发城市',
destCountry: '目的国',
destCountryRules: '目的国必选', destCountryRules: '目的国必选',
destCountryNotice: '请选择目的国',
departureRules: '始发城市必选', departureRules: '始发城市必选',
departureNotice: '请选择始发地', departureNotice: '请选择始发地',
objective: '目的城市', objective: '目的城市',
...@@ -1014,6 +1031,7 @@ export default { ...@@ -1014,6 +1031,7 @@ export default {
objectiveNotice: '请选择目的地', objectiveNotice: '请选择目的地',
router: '请选择线路', router: '请选择线路',
routerNotice: '请在右侧选择线路', routerNotice: '请在右侧选择线路',
addServices:'增值服务',
goods: '商品', goods: '商品',
addPro: '添加货物', addPro: '添加货物',
addPros: '批量添加货物', addPros: '批量添加货物',
...@@ -1051,14 +1069,21 @@ export default { ...@@ -1051,14 +1069,21 @@ export default {
issuingMethod: '出单方式', issuingMethod: '出单方式',
deliveryDate: '预计送货日期', deliveryDate: '预计送货日期',
deliveryDateRules: '预计送货日期不能为空', deliveryDateRules: '预计送货日期不能为空',
displayBillLading: '提单是否显示价格',
display: '显示',
notDisplay: '不显示',
warehouseType: '入仓类型', warehouseType: '入仓类型',
externalWarehouse: '外部仓库',
harvestMethod: '收货方式', harvestMethod: '收货方式',
loadingTime: '装货时间',
loadingAddress: '装货地址',
deliveryaddress: '收货地区', deliveryaddress: '收货地区',
deliveryaddressRules: '收货地区不能为空', deliveryaddressRules: '收货地区不能为空',
addressdetail: '收货详细地址', addressdetail: '收货详细地址',
addressdetailRules: '收货详细地址不能为空', addressdetailRules: '收货详细地址不能为空',
drawee: '付款人', drawee: '付款人',
customDraweeList: '费用类型', customDraweeList: '费用类型',
other:"其他",
number: '快递单号', number: '快递单号',
numberNotice: '请输入购买商品的快递单号', numberNotice: '请输入购买商品的快递单号',
getNumber: '生成单号', getNumber: '生成单号',
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
line-height: 42px; line-height: 42px;
margin-left: 5px; margin-left: 5px;
" "
>{{ $t("个人中心") }}</span >{{ $t("route.personalCenter") }}</span
> >
</div> </div>
</div> </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
:label="item.label" :label=" isChinese ? item.labelZh : item.labelEn "
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
...@@ -77,6 +77,12 @@ export default { ...@@ -77,6 +77,12 @@ export default {
] ]
} }
}, },
computed: {
isChinese() {
this.getCode = this.$t("login.getCode");
return this.$i18n.locale === "zh_CN";
},
},
created() { created() {
this.getList() this.getList()
}, },
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<section-title lang-key="delivery.header"> <section-title lang-key="delivery.header">
{{$t('delivery.consigneeName')}} {{$t('delivery.consigneeName')}}
<el-radio-group v-if="noConsignee" v-model="hasConsignee"> <el-radio-group v-if="noConsignee" v-model="hasConsignee">
<el-radio :label="true">{{$t('')}}</el-radio> <el-radio :label="true">{{$t('delivery.yes')}}</el-radio>
<el-radio :label="false">{{$t('')}}</el-radio> <el-radio :label="false">{{$t('delivery.no')}}</el-radio>
</el-radio-group> </el-radio-group>
</section-title> </section-title>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-row :gutter="20" style="margin-top: 30px" v-if="hasConsignee"> <el-row :gutter="20" style="margin-top: 30px" v-if="hasConsignee">
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
:label="$t('名称')" :label="$t('delivery.name')"
prop="consigneeName" prop="consigneeName"
> >
<el-input <el-input
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<el-card style="margin-top:20px;"> <el-card style="margin-top:20px;">
<template #header> <template #header>
<section-title :title="$t('运输')"></section-title> <section-title :title="$t('delivery.transportTitle')"></section-title>
</template> </template>
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<el-descriptions-item <el-descriptions-item
...@@ -207,18 +207,18 @@ ...@@ -207,18 +207,18 @@
> >
<span <span
slot="label" slot="label"
><span style="color: red">*</span>{{ $t("目的国") }}</span> ><span style="color: red">*</span>{{ $t("delivery.destCountry") }}</span>
<el-form-item <el-form-item
label="" label=""
label-width="0" label-width="0"
style="margin-bottom: 0" style="margin-bottom: 0"
prop="destCountryId" prop="destCountryId"
required required
:error="$t('请选择目的国')" :error="$t('delivery.destCountryNotice')"
> >
<el-select <el-select
v-model="form.destCountryId" v-model="form.destCountryId"
:placeholder="$t('请选择目的国')" :placeholder="$t('delivery.destCountryNotice')"
clearable clearable
@change="handleChangeDestCountry" @change="handleChangeDestCountry"
> >
...@@ -239,13 +239,12 @@ ...@@ -239,13 +239,12 @@
> >
<span <span
slot="label" slot="label"
><span style="color: red">*</span>{{ $t("delivery.objective") }}</span> >{{ $t("delivery.objective") }}</span>
<el-form-item <el-form-item
label="" label=""
label-width="0" label-width="0"
style="margin-bottom: 0" style="margin-bottom: 0"
prop="objectiveId" prop="objectiveId"
required
:error="$t('delivery.objectiveRules')" :error="$t('delivery.objectiveRules')"
> >
<el-select <el-select
...@@ -328,7 +327,7 @@ ...@@ -328,7 +327,7 @@
</el-descriptions-item> </el-descriptions-item>
<!--服务--> <!--服务-->
<el-descriptions-item :label="$t('增值服务')" <el-descriptions-item :label="$t('delivery.addServices')"
v-if="selectedRouter && (routeOtherServices.indexOf('1') > -1 || routeOtherServices.indexOf('4') > -1)"> v-if="selectedRouter && (routeOtherServices.indexOf('1') > -1 || routeOtherServices.indexOf('4') > -1)">
<el-checkbox-group v-model="form.type"> <el-checkbox-group v-model="form.type">
<el-checkbox label="1" <el-checkbox label="1"
...@@ -476,7 +475,7 @@ ...@@ -476,7 +475,7 @@
<el-input-number <el-input-number
v-model="scope.row.num" v-model="scope.row.num"
:controls="false" :controls="false"
:min="0" :min="1"
:precision="0" :precision="0"
:disabled="!canAddProduct" :disabled="!canAddProduct"
/> />
...@@ -581,7 +580,7 @@ ...@@ -581,7 +580,7 @@
> >
<!-- eslint-disable-next-line vue/no-unused-vars --> <!-- eslint-disable-next-line vue/no-unused-vars -->
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<span class="red">*</span>{{ $t("delivery.worth") }} <span class="red">*</span>{{ $t("delivery.worth") }}(RMB)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item <el-form-item
...@@ -723,10 +722,11 @@ ...@@ -723,10 +722,11 @@
</el-descriptions-item> </el-descriptions-item>
<!--报价费币种 lanbm 2024-05-14 修改BUG--> <!--报价费币种 lanbm 2024-05-14 修改BUG-->
<el-descriptions-item :label="$t('delivery.insuranceFee')"> <el-descriptions-item :label="$t('delivery.insuranceFee')">
{{ fee.insuranceFee || 0 }}<div v-if="fee.insuranceCurrencyId == 1"> {{ fee.insuranceFee || 0 }}
<template v-if="fee.insuranceCurrencyId == 1">
{{ $t("delivery.dollar") }} {{ $t("delivery.dollar") }}
</div> </template>
<div v-else>(RMB)</div> <template v-else>(RMB)</template>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-card> </el-card>
...@@ -846,11 +846,11 @@ ...@@ -846,11 +846,11 @@
</template> </template>
</div> </div>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('提单是否显示价格')" > <el-descriptions-item :label="$t('delivery.displayBillLading')" >
<el-form-item prop="displayBillLadingPrice"> <el-form-item prop="displayBillLadingPrice" class="mb-0">
<el-radio-group v-model="form.displayBillLadingPrice"> <el-radio-group v-model="form.displayBillLadingPrice">
<el-radio :label="true">{{$t('显示')}}</el-radio> <el-radio :label="true">{{$t('delivery.display')}}</el-radio>
<el-radio :label="false">{{$t('不显示')}}</el-radio> <el-radio :label="false">{{$t('delivery.notDisplay')}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
...@@ -876,15 +876,15 @@ ...@@ -876,15 +876,15 @@
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('外部仓库')" :span="2"> <el-descriptions-item :label="$t('delivery.externalWarehouse')" :span="2">
<el-form-item prop="isExternalWarehouse"> <el-form-item prop="isExternalWarehouse" class="mb-0">
<el-checkbox label="" v-model="form.isExternalWarehouse" @change="form.isExternalWarehouse=$event" :disabled="false"></el-checkbox> <el-checkbox label="" v-model="form.isExternalWarehouse" @change="form.isExternalWarehouse=$event" :disabled="false"></el-checkbox>
</el-form-item> </el-form-item>
<div v-if="form.isExternalWarehouse"> <div v-if="form.isExternalWarehouse">
<div v-for="(item, index) in form.externalWarehouseDtoList" :key="index" <div v-for="(item, index) in form.externalWarehouseDtoList" :key="index"
style="border-bottom: 1px solid #ccc; margin-bottom: 10px"> style="border-bottom: 1px solid #ccc; margin-bottom: 10px">
<div class="flex-1"> <div class="flex-1">
<el-form-item :label="$t('装货时间')" <el-form-item :label="$t('delivery.loadingTime')"
:prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'" :prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'"
:rules="{ :rules="{
required: true, message: '装货时间不能为空', trigger: 'blur' required: true, message: '装货时间不能为空', trigger: 'blur'
...@@ -894,7 +894,7 @@ ...@@ -894,7 +894,7 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="flex-1"> <div class="flex-1">
<el-form-item :label="$t('装货地址')" <el-form-item :label="$t('delivery.loadingAddress')"
:prop="'externalWarehouseDtoList.' + index + '.loadingAddress'" :prop="'externalWarehouseDtoList.' + index + '.loadingAddress'"
:rules="{ :rules="{
required: true, message: '装货地址不能为空', trigger: 'blur' required: true, message: '装货地址不能为空', trigger: 'blur'
...@@ -1045,7 +1045,7 @@ ...@@ -1045,7 +1045,7 @@
</el-card> </el-card>
<el-card class="mt-10"> <el-card class="mt-10">
<template #header> <template #header>
<section-title :title="$t('其他')"></section-title> <section-title :title="$t('delivery.other')"></section-title>
</template> </template>
<el-descriptions :column="2" :label-style="{width: '100px'}" border> <el-descriptions :column="2" :label-style="{width: '100px'}" border>
<el-descriptions-item> <el-descriptions-item>
...@@ -1061,7 +1061,7 @@ ...@@ -1061,7 +1061,7 @@
</el-tooltip> </el-tooltip>
</span> </span>
<!--特殊要求 / 包装类型--> <!--特殊要求 / 包装类型-->
<el-form-item prop="packageType"> <el-form-item prop="packageType" class="mb-0">
<dict-selector <dict-selector
v-model="form.packageType" v-model="form.packageType"
form-type="checkbox" form-type="checkbox"
...@@ -1072,13 +1072,13 @@ ...@@ -1072,13 +1072,13 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('特殊要求备注')"> <el-descriptions-item :label="$t('特殊要求备注')">
<!--包装备注--> <!--包装备注-->
<el-form-item prop="packageRemarks"> <el-form-item prop="packageRemarks" class="mb-0">
<el-input v-model="form.packageRemarks" type="textarea" class="w-150" /> <el-input v-model="form.packageRemarks" type="textarea" class="w-150" />
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :span="2" :label="$t('delivery.number')"> <el-descriptions-item :span="2" :label="$t('delivery.number')">
<!--快递单号--> <!--快递单号-->
<el-form-item prop="number"> <el-form-item prop="number" class="mb-0">
<el-input <el-input
v-model="form.number" v-model="form.number"
:placeholder="$t('delivery.numberNotice')" :placeholder="$t('delivery.numberNotice')"
...@@ -1094,7 +1094,7 @@ ...@@ -1094,7 +1094,7 @@
<template v-if="isAir"> <template v-if="isAir">
<el-descriptions-item :label="$t('delivery.customsClearCert')"> <el-descriptions-item :label="$t('delivery.customsClearCert')">
<!--清关证书--> <!--清关证书-->
<el-form-item prop="customsClearCert"> <el-form-item prop="customsClearCert" class="mb-0">
<dict-selector <dict-selector
v-model="form.customsClearCert" v-model="form.customsClearCert"
form-type="radio" form-type="radio"
...@@ -1106,13 +1106,13 @@ ...@@ -1106,13 +1106,13 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('delivery.clearCertRemark')"> <el-descriptions-item :label="$t('delivery.clearCertRemark')">
<!--清关证书备注--> <!--清关证书备注-->
<el-form-item prop="remarks"> <el-form-item prop="remarks" class="mb-0">
<el-input v-model="form.remarks" /> <el-input v-model="form.remarks" />
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('delivery.isUnpack')"> <el-descriptions-item :label="$t('delivery.isUnpack')">
<!--是否拆包--> <!--是否拆包-->
<el-form-item prop="isUnpack"> <el-form-item prop="isUnpack" class="mb-0">
<dict-selector <dict-selector
v-model="form.isUnpack" v-model="form.isUnpack"
form-type="radio" form-type="radio"
...@@ -1123,7 +1123,7 @@ ...@@ -1123,7 +1123,7 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('delivery.isSingleTicketTransport')"> <el-descriptions-item :label="$t('delivery.isSingleTicketTransport')">
<!--单票立刻转运--> <!--单票立刻转运-->
<el-form-item prop="isSingleTicketTransport"> <el-form-item prop="isSingleTicketTransport" class="mb-0">
<dict-selector <dict-selector
v-model="form.isSingleTicketTransport" v-model="form.isSingleTicketTransport"
form-type="radio" form-type="radio"
...@@ -2055,13 +2055,23 @@ export default { ...@@ -2055,13 +2055,23 @@ export default {
if (this.$route.query.id) { if (this.$route.query.id) {
await getOrderDetail(this.$route.query.id).then(async (res) => { await getOrderDetail(this.$route.query.id).then(async (res) => {
this.form = Object.assign({}, res.data, { orderItemVOList: [], destCountryId: null }) this.form = Object.assign({}, res.data, {
orderItemVOList: [],
destCountryId: null,
consigneeName: '',
consigneePhone: ''
})
this.form.deliveryDate = res.data.deliveryDate this.form.deliveryDate = res.data.deliveryDate
this.form.hasConsignee = res.data.hasConsignee
if (!this.noConsignee){
// 不允许无收货人
this.form.hasConsignee = true
}
if(res.data.consigneeVO){ if(res.data.consigneeVO){
this.$set(this.form, 'consigneePhone', res.data.consigneeVO.phone) this.$set(this.form, 'consigneePhone', res.data.consigneeVO.phone)
this.$set(this.form, 'countryCode', res.data.consigneeVO.countryCode) this.$set(this.form, 'countryCode', res.data.consigneeVO.countryCode)
this.$set(this.form, 'consigneeCompany', res.data.consigneeVO.company) this.$set(this.form, 'consigneeCompany', res.data.consigneeVO.company)
this.$set(this.form,'consigneeCompanyEn', res.data.consigneeVO.companyEn) this.$set(this.form, 'consigneeCompanyEn', res.data.consigneeVO.companyEn)
this.$set(this.form, 'consigneeEmail', res.data.consigneeVO.email) this.$set(this.form, 'consigneeEmail', res.data.consigneeVO.email)
this.$set(this.form, 'consigneeName', res.data.consigneeVO.name) this.$set(this.form, 'consigneeName', res.data.consigneeVO.name)
this.$set(this.form, 'consigneeNameEn', res.data.consigneeVO.nameEn) this.$set(this.form, 'consigneeNameEn', res.data.consigneeVO.nameEn)
...@@ -2361,7 +2371,14 @@ export default { ...@@ -2361,7 +2371,14 @@ export default {
}) })
}, },
addProduct(data) { addProduct(data) {
this.form.orderItemVOList.push(data || { prodAttrArr: [] }) this.form.orderItemVOList.push(data || {
prodAttrArr: [],
prodId: null,
worth: '',
volume: '',
weight: '',
num: 1
})
}, },
// 计算商品运费(根据货值计算保费) // 计算商品运费(根据货值计算保费)
calculationPrice() { calculationPrice() {
......
...@@ -120,19 +120,19 @@ ...@@ -120,19 +120,19 @@
<el-descriptions-item v-else label=""> <el-descriptions-item v-else label="">
<!--占位--> <!--占位-->
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('特殊要求')"> <el-descriptions-item :label="$t('orderdetail.packageType')">
<template v-if="order.packageType"> <template v-if="order.packageType">
<dict-tag v-for="packageType in order.packageType.split(',').filter(item => !!item)" :key="packageType" class="mr-10" :type="DICT_TYPE.ORDER_SPECIAL_NEEDS" :value="packageType" /> <dict-tag v-for="packageType in order.packageType.split(',').filter(item => !!item)" :key="packageType" class="mr-10" :type="DICT_TYPE.ORDER_SPECIAL_NEEDS" :value="packageType" />
</template> </template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('特殊要求备注')"> <el-descriptions-item :label="$t('orderdetail.packageRemarks')">
{{ order.packageRemarks }} {{ order.packageRemarks }}
</el-descriptions-item> </el-descriptions-item>
<template v-if="showMore">
<el-descriptions-item :label="$t('送货时间')"> <el-descriptions-item :label="$t('orderdetail.deliveryDate')">
{{ order.deliveryDate }} {{ order.deliveryDate }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('入仓类型')"> <el-descriptions-item :label="$t('orderdetail.warehouseType')">
<dict-tag :type="DICT_TYPE.ECW_WAREHOUSING_TYPE" :value="order.warehouseType" /> <dict-tag :type="DICT_TYPE.ECW_WAREHOUSING_TYPE" :value="order.warehouseType" />
</el-descriptions-item> </el-descriptions-item>
...@@ -152,34 +152,35 @@ ...@@ -152,34 +152,35 @@
{{ order.isSingleTicketTransport?$t('orderdetail.is'):$t('orderdetail.no') }} {{ order.isSingleTicketTransport?$t('orderdetail.is'):$t('orderdetail.no') }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('代收货款')"> <el-descriptions-item :label="$t('orderdetail.isCollection')">
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="order.isCollection" /> <dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="order.isCollection" />
<template v-if="order.isCollection == 1">({{order.collectionProxy}}{{currencyMap[order.collectionProxyCurrency]}})</template> <template v-if="order.isCollection == 1">({{order.collectionProxy}}{{currencyMap[order.collectionProxyCurrency]}})</template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('提单是否显示价格')"> <el-descriptions-item :label="$t('delivery.displayBillLading')">
{{order.displayBillLadingPrice ? $t('是') : $t('否')}} {{order.displayBillLadingPrice ? $t('orderdetail.is'):$t('orderdetail.no')}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('仓库')"> <el-descriptions-item :label="$t('orderdetail.warehouseName')">
{{order.isExternalWarehouse ? $t('外部仓库') : $t('自有仓') }} {{order.isExternalWarehouse ? $t('orderdetail.externalWarehouse') : $t('orderdetail.ownWarehouse') }}
<template v-if="order.isExternalWarehouse" v-for="(item, index) in order.externalWarehouseDtoList" > <template v-if="order.isExternalWarehouse" v-for="(item, index) in order.externalWarehouseDtoList" >
<div v-if="item.estLoadingTime || item.loadingAddress" :key="index"> <div v-if="item.estLoadingTime || item.loadingAddress" :key="index">
{{$t('装柜时间')}}{{item.estLoadingTime}} {{$t('orderdetail.estLoading')}}{{item.estLoadingTime}}
{{$t('装柜地址')}}{{item.loadingAddress}} {{$t('orderdetail.loadingAddress')}}{{item.loadingAddress}}
</div> </div>
</template> </template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('快递单号')"> <el-descriptions-item :label="$t('orderdetail.expressNO')">
{{order.number}} {{order.number}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('创建人')"> <el-descriptions-item :label="$t('orderdetail.creator')">
{{order.creatorName}} ({{order.userType == 1 ? $t('会员') : $t('后台用户')}}) {{order.creatorName}} ({{order.userType == 1 ? $t('orderdetail.member') : $t('orderdetail.admin')}})
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('创建时间')"> <el-descriptions-item :label="$t('orderdetail.createTime')">
{{order.createTime|parseTime}} {{order.createTime|parseTime}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('客户经理')"> <el-descriptions-item :label="$t('orderdetail.customerService')">
{{order.salesmanName}} {{order.salesmanName}}
</el-descriptions-item> </el-descriptions-item>
</template>
</el-descriptions> </el-descriptions>
<!--<div v-if="[3, 4].indexOf(+order.transportId) > -1" style="display: flex;margin-top: 20px;"> <!--<div v-if="[3, 4].indexOf(+order.transportId) > -1" style="display: flex;margin-top: 20px;">
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<el-button v-if="scope.row.status == 2" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId)">{{ $t('postorder.cancel') }}</el-button> <el-button v-if="scope.row.status == 2" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId)">{{ $t('postorder.cancel') }}</el-button>
<el-button v-if="scope.row.status == 5" size="mini" type="text" icon="el-icon-edit" @click="refundWarehouse(scope.row)">{{ $t('postorder.refundWarehouse') }}</el-button> <el-button v-if="scope.row.status == 5" size="mini" type="text" icon="el-icon-edit" @click="refundWarehouse(scope.row)">{{ $t('postorder.refundWarehouse') }}</el-button>
<el-button v-if="scope.row.abnormalState>1&&scope.row.status!=88" size="mini" type="text" icon="el-icon-edit" @click="handleAbnormal(scope.row.orderId)">{{ $t('postorder.abnormal') }}</el-button> <el-button v-if="scope.row.abnormalState>1&&scope.row.status!=88" size="mini" type="text" icon="el-icon-edit" @click="handleAbnormal(scope.row.orderId)">{{ $t('postorder.abnormal') }}</el-button>
<el-button v-if="scope.row.status == 0" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row.orderId)">{{ $t('删除') }}</el-button> <el-button v-if="scope.row.status == 0" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row.orderId)">{{ $t('postorder.delete') }}</el-button>
<el-button v-if="scope.row.customsType == 2" size="mini" type="text" icon="el-icon-edit" @click.native="declarationOrderId=scope.row.orderId;declarationOrderNo=scope.row.orderNo">{{ $t('common.uploadDeclaration') }}</el-button> <el-button v-if="scope.row.customsType == 2" size="mini" type="text" icon="el-icon-edit" @click.native="declarationOrderId=scope.row.orderId;declarationOrderNo=scope.row.orderNo">{{ $t('common.uploadDeclaration') }}</el-button>
<el-button <el-button
v-if=" v-if="
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
@click.native="printTagOrderId=scope.row.orderId" @click.native="printTagOrderId=scope.row.orderId"
>{{ $t('打印标签') }} >{{ $t('打印标签') }}
</el-button> </el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleCopy(scope.row)">{{ $t('postorder.copy') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -207,7 +208,7 @@ ...@@ -207,7 +208,7 @@
</template> </template>
<script> <script>
import { getIssued, cancelOrder, deleteOrder, refundWarehouseApply } from '@/api/order' import { getIssued, cancelOrder, deleteOrder, refundWarehouseApply, copyOrder } from '@/api/order'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
import RightToolbar from '@/components/RightToolbar' import RightToolbar from '@/components/RightToolbar'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
...@@ -317,6 +318,11 @@ export default { ...@@ -317,6 +318,11 @@ export default {
}) })
}).catch(() => {}) }).catch(() => {})
}, },
handleCopy(row){
copyOrder(row.orderId).then((res) => {
this.handleUpdate({ orderId: res.data})
})
},
oprateOrder(orderId) { oprateOrder(orderId) {
this.$confirm(this.$t('postorder.confirm')) this.$confirm(this.$t('postorder.confirm'))
.then(() => { .then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment