Commit 263428c2 authored by dragondean@qq.com's avatar dragondean@qq.com

订单优化

parent 19f46489
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
<el-table-column :label="$t('序号')" width="90px"> <el-table-column :label="$t('序号')" width="90px">
<template slot-scope="scope">{{scope.$index + 1}}</template> <template slot-scope="scope">{{scope.$index + 1}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="prodTitleZh" :label="$t('品名')"> <el-table-column prop="prodTitleZh" :label="$t('品名')" width="220px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<div>{{ getProdTypeName(row.prodType) }}</div> <div>{{ getProdTypeName(row.prodType) }}</div>
<div>{{row.prodTitleZh}}/{{row.prodTitleEn}}</div> <div>{{row.prodTitleZh}}/{{row.prodTitleEn}}</div>
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
{{showAttrText(row.warehouseInInfoVO ? row.warehouseInProdAttrIds : row.prodAttrIds)}} {{showAttrText(row.warehouseInInfoVO ? row.warehouseInProdAttrIds : row.prodAttrIds)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sumNum" :label="$t('入仓信息')" width="90px"> <el-table-column prop="sumNum" :label="$t('入仓信息')" width="220px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<!--<el-link type="primary" @click.native="showWarehouseLogs(row,1)">{{row.warehouseInInfoVO ? row.warehouseInInfoVO.cartonsNum : 0}}</el-link> <!--<el-link type="primary" @click.native="showWarehouseLogs(row,1)">{{row.warehouseInInfoVO ? row.warehouseInInfoVO.cartonsNum : 0}}</el-link>
<div v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.isMultiSpecification">({{$t('多规格')}})</div>--> <div v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.isMultiSpecification">({{$t('多规格')}})</div>-->
...@@ -284,7 +284,7 @@ export default { ...@@ -284,7 +284,7 @@ export default {
<el-table-column prop="worth" :label="$t('货值')" width="120px"/> <el-table-column prop="worth" :label="$t('货值')" width="120px"/>
<el-table-column prop="warehouseRecordRemark" :label="$t('入仓备注')" width="120px"/> <el-table-column prop="warehouseRecordRemark" :label="$t('入仓备注')" width="120px"/>
<el-table-column prop="warehouseInInfoVO.expressNo" :label="$t('快递单号')" /> <el-table-column prop="warehouseInInfoVO.expressNo" :label="$t('快递单号')" />
<el-table-column prop="sumNum" :label="$t('收费数据')" width="90px"> <el-table-column prop="sumNum" :label="$t('收费数据')" width="220px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<div v-if="row.warehouseInInfoVO"> <div v-if="row.warehouseInInfoVO">
{{row.chargeWeight}}Kg {{row.chargeWeight}}Kg
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" :label="`${$t('费用类型')}/${$t('模式')}`"> <el-table-column prop="" :label="`${$t('费用类型')}/${$t('模式')}`" width="200px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<dict-tag :type="DICT_TYPE.ECW_PAY_ADVANCE" :value="row.isPayAdvance" /> <dict-tag :type="DICT_TYPE.ECW_PAY_ADVANCE" :value="row.isPayAdvance" />
<div v-if="row.charging ==0">{{ $t('运费/清关费') }}</div> <div v-if="row.charging ==0">{{ $t('运费/清关费') }}</div>
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sumNum" :label="$t('填单信息')" width="90px"> <el-table-column prop="sumNum" :label="$t('填单信息')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{row.num}}{{$t('')}} {{row.num}}{{$t('')}}
{{row.weight}}Kg {{row.weight}}Kg
......
...@@ -67,8 +67,10 @@ ...@@ -67,8 +67,10 @@
<el-descriptions border :title="$t('运输')" :column="5" :labelStyle="{ width: '110px' }" :contentStyle="{ width: '150px' }"> <el-descriptions border :title="$t('运输')" :column="5" :labelStyle="{ width: '110px' }" :contentStyle="{ width: '150px' }">
<el-descriptions-item :label="$t('始发仓')">{{ $l(order.initialLogisticsInfoDto, "startTitle") }}</el-descriptions-item> <el-descriptions-item :label="$t('始发仓')">{{ $l(order.initialLogisticsInfoDto, "startTitle") }}</el-descriptions-item>
<el-descriptions-item :label="$t('目的仓')"> <el-descriptions-item :label="$t('目的仓')">
{{ $l(order.initialLogisticsInfoDto, "destCountryTitle") }} - {{ $l(order.initialLogisticsInfoDto, "destCityTitle") }} - <div class="w-300">
{{ $l(order.initialLogisticsInfoDto, "destTitle") }} {{ $l(order.initialLogisticsInfoDto, "destCountryTitle") }} - {{ $l(order.initialLogisticsInfoDto, "destCityTitle") }} -
{{ $l(order.initialLogisticsInfoDto, "destTitle") }}
</div>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('运输方式')"> <el-descriptions-item :label="$t('运输方式')">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.transportId" /> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.transportId" />
......
...@@ -208,12 +208,6 @@ ...@@ -208,12 +208,6 @@
<div slot="header" class="card-title"> <div slot="header" class="card-title">
<!--lanbm 根据需求文档改 商品信息 为 商品 --> <!--lanbm 根据需求文档改 商品信息 为 商品 -->
<div class="card-name">{{ $t('商品') }}</div> <div class="card-name">{{ $t('商品') }}</div>
<el-button type="primary" size="mini" @click="addProduct(null)"
:disabled="!canAddProduct || !productEditable || updateChannel">{{ $t('添加') }}
</el-button>
<el-button type="primary" size="mini" @click="showBatchImportDialog=true"
:disabled="!canAddProduct || !productEditable || updateChannel">{{ $t('批量添加') }}
</el-button>
</div> </div>
<el-table :data="form.orderItemVOList" border class="product-list" v-if="!initing"> <el-table :data="form.orderItemVOList" border class="product-list" v-if="!initing">
<el-table-column :label="$t('序号')" width="60px" fixed> <el-table-column :label="$t('序号')" width="60px" fixed>
...@@ -383,6 +377,14 @@ ...@@ -383,6 +377,14 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="flex justify-end mt-10">
<el-button type="primary" size="mini" @click="addProduct(null)"
:disabled="!canAddProduct || !productEditable || updateChannel">{{ $t('添加') }}
</el-button>
<el-button type="primary" size="mini" @click="showBatchImportDialog=true"
:disabled="!canAddProduct || !productEditable || updateChannel">{{ $t('批量添加') }}
</el-button>
</div>
<!-- <!--
</el-card> </el-card>
<el-card class="mt-10"> --> <el-card class="mt-10"> -->
...@@ -890,7 +892,9 @@ export default { ...@@ -890,7 +892,9 @@ export default {
showFullConsignee: false, showFullConsignee: false,
destCountryList: [], destCountryList: [],
destCityList: [], destCityList: [],
selectedRouter: null selectedRouter: null,
// 发货人默认付款
defaultPay: false
}; };
}, },
computed: { computed: {
...@@ -1080,9 +1084,10 @@ export default { ...@@ -1080,9 +1084,10 @@ export default {
if (!val) { if (!val) {
this.$set(this.form, 'isCargoControl', true) this.$set(this.form, 'isCargoControl', true)
// 无收货人且控货则默认发货人付款 // 无收货人且控货则默认发货人付款
this.$set(this.form, 'drawee', 1) // this.$set(this.form, 'drawee', 1)
// 清除收货人必填校验 // 清除收货人必填校验
this.$refs.form?.clearValidate("consigneeContactsId") this.$refs.form?.clearValidate("consigneeContactsId")
this.setDefaultDrawee()
} }
}, },
ccIdArr(arr) { ccIdArr(arr) {
...@@ -1212,7 +1217,8 @@ export default { ...@@ -1212,7 +1217,8 @@ export default {
'form.isCargoControl'(isCargoControl) { 'form.isCargoControl'(isCargoControl) {
console.log('form.isCargoControl', this.form.isCargoControl, this.initing) console.log('form.isCargoControl', this.form.isCargoControl, this.initing)
if (!this.initing) { if (!this.initing) {
this.$set(this.form, 'drawee', isCargoControl && !this.hasConsignee ? 1 : 2) // this.$set(this.form, 'drawee', isCargoControl && !this.hasConsignee ? 2 : 2)
this.setDefaultDrawee()
} }
this.setBllLandingPrice('form.isCargoControl') this.setBllLandingPrice('form.isCargoControl')
...@@ -1534,6 +1540,7 @@ export default { ...@@ -1534,6 +1540,7 @@ export default {
// this.$set(this, 'hasConsignee', true) // this.$set(this, 'hasConsignee', true)
// } // }
// 如果默认付款则设置为发货人付款 // 如果默认付款则设置为发货人付款
this.defaultPay = contact.defaultPay
if (contact.defaultPay) { if (contact.defaultPay) {
this.$set(this.form, 'drawee', 1) this.$set(this.form, 'drawee', 1)
} }
...@@ -1626,7 +1633,7 @@ export default { ...@@ -1626,7 +1633,7 @@ export default {
this.form.orderItemVOList.push(data || { this.form.orderItemVOList.push(data || {
prodAttrArr: [], prodAttrArr: [],
prodId: null, prodId: null,
worth: '', worth: undefined,
volume: '', volume: '',
weight: '', weight: '',
num: undefined num: undefined
...@@ -2037,6 +2044,21 @@ export default { ...@@ -2037,6 +2044,21 @@ export default {
// 去掉唛头首尾空格 // 去掉唛头首尾空格
trimMarks(){ trimMarks(){
this.form.marks = this.form.marks.trim() this.form.marks = this.form.marks.trim()
},
// 更新默认付款人
// 1发货人,2收货人,3自定义
setDefaultDrawee(){
if(this.defaultPay){
this.form.drawee = 1
return
}
if(!this.hasConsignee){
this.form.drawee = 2
return
}
if(this.form.isCargoControl){
this.form.drawee = 1
}
} }
} }
}; };
...@@ -2045,7 +2067,9 @@ export default { ...@@ -2045,7 +2067,9 @@ export default {
.w-380 { .w-380 {
width: 380px; width: 380px;
} }
.justify-end{
justify-content: flex-end;
}
.card-title { .card-title {
font-size: 18px; font-size: 18px;
display: flex; display: flex;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
class="w-200" class="w-200"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('运输方式') + ':'" v-show="showSearch"> <el-form-item :label="$t('运输方式') + ':'">
<dict-selector <dict-selector
:type="DICT_TYPE.ECW_TRANSPORT_TYPE" :type="DICT_TYPE.ECW_TRANSPORT_TYPE"
:clearable="true" :clearable="true"
......
...@@ -215,21 +215,9 @@ ...@@ -215,21 +215,9 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('发货人编号')" align="center"> <el-table-column :label="$t('唛头')" align="center" prop="marks" />
<template slot-scope="{ row }">
<router-link :to="`/customer/query/${row.consignorCustomerId}`" class="link-type"> <el-table-column :label="$t('总箱数/入仓箱数')" align="center" prop="sumNum" width="200px">
{{ row.consignorCustomerNumber }}
</router-link>
</template>
</el-table-column>
<el-table-column :label="$t('收货人编号')" align="center" prop="consigneeCustomerNumber">
<template slot-scope="{ row }">
<router-link :to="`/customer/query/${row.consigneeCustomerId}`" class="link-type">
{{ row.consigneeCustomerNumber }}
</router-link>
</template>
</el-table-column>
<el-table-column :label="$t('总箱数/入仓箱数')" align="center" prop="sumNum">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div :style="{ color: row.customsType != 1 ? 'red' : null }">{{ row.totalNum }}{{ $t("") }}/{{ row.sumNum }}{{ $t("") }}</div> <div :style="{ color: row.customsType != 1 ? 'red' : null }">{{ row.totalNum }}{{ $t("") }}/{{ row.sumNum }}{{ $t("") }}</div>
<dict-tag v-if="row.customsType != 1" style="color: red" :type="DICT_TYPE.ECW_CUSTOMS_TYPE" :value="row.customsType"></dict-tag> <dict-tag v-if="row.customsType != 1" style="color: red" :type="DICT_TYPE.ECW_CUSTOMS_TYPE" :value="row.customsType"></dict-tag>
...@@ -261,13 +249,14 @@ ...@@ -261,13 +249,14 @@
<span style="color: red" v-if="row.isExternalWarehouse">({{ $t("外部仓") }})</span> <span style="color: red" v-if="row.isExternalWarehouse">({{ $t("外部仓") }})</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('运输方式-渠道/目的地')" align="center" prop="transportId"> <el-table-column :label="$t('运输方式-渠道/目的地')" align="center" prop="transportId" width="200px">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportId" /> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportId" />
<template v-if="row.channelName"> - {{ row.channelName }} </template> <template v-if="row.channelName"> - {{ row.channelName }} </template>
/ {{ row.dstWarehouseName }} / {{ row.dstWarehouseName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('动态')" align="center" prop="statusMsg" />
<el-table-column :label="$t('控货')" align="center" prop="transportId"> <el-table-column :label="$t('控货')" align="center" prop="transportId">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="row.isCargoControl" /> <dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="row.isCargoControl" />
...@@ -279,13 +268,22 @@ ...@@ -279,13 +268,22 @@
{{ getTypeText(row.type) }} {{ getTypeText(row.type) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('状态')" align="center" prop="status"> <el-table-column :label="$t('发货人编号')" align="center">
<template slot-scope="scope"> <template slot-scope="{ row }">
<!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> --> <router-link :to="`/customer/query/${row.consignorCustomerId}`" class="link-type">
{{ scope.row.statusText }} {{ row.consignorCustomerNumber }}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('唛头')" align="center" prop="marks" /> <el-table-column :label="$t('收货人编号')" align="center" prop="consigneeCustomerNumber">
<template slot-scope="{ row }">
<router-link :to="`/customer/query/${row.consigneeCustomerId}`" class="link-type">
{{ row.consigneeCustomerNumber }}
</router-link>
</template>
</el-table-column>
<el-table-column v-if="dept" :label="$t('客户经理')" align="center" prop="salesmanName" /> <el-table-column v-if="dept" :label="$t('客户经理')" align="center" prop="salesmanName" />
<el-table-column :label="$t('发货人客服')" align="center" prop="consignorFollowCustomerService" /> <el-table-column :label="$t('发货人客服')" align="center" prop="consignorFollowCustomerService" />
<el-table-column :label="$t('收货人客服')" align="center" prop="consigneeFollowCustomerService" /> <el-table-column :label="$t('收货人客服')" align="center" prop="consigneeFollowCustomerService" />
...@@ -295,8 +293,13 @@ ...@@ -295,8 +293,13 @@
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column :label="$t('提货率')" align="center" prop="pickRatio" /> <el-table-column :label="$t('提货率')" align="center" prop="pickRatio" />
<el-table-column :label="$t('动态')" align="center" prop="statusMsg" /> <el-table-column :label="$t('状态')" align="center" prop="status">
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width actions" width="180px"> <template slot-scope="scope">
<!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> -->
{{ scope.row.statusText }}
</template>
</el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width actions" width="180px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html --> <!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html -->
<template v-if="scope.row.status == 88"> <template v-if="scope.row.status == 88">
......
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