Commit be7d42e1 authored by 我在何方's avatar 我在何方
parents b8895e59 3bf855be
...@@ -80,13 +80,14 @@ ...@@ -80,13 +80,14 @@
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" label="赔付金额"> <el-form-item v-show="form.status == '3'" label="赔付金额">
<el-input v-model="form.indemnity" placeholder="请输入赔付金额"> <el-input v-model="form.indemnity" placeholder="请输入赔付金额">
<dict-selector <!-- <dict-selector
defaultable defaultable
style="width: 110px" style="width: 110px"
placeholder="请选择货币单位" placeholder="请选择货币单位"
slot="append" slot="append"
v-model="form.currencyUnit" v-model="form.currencyUnit"
:type="DICT_TYPE.COMMISSION_CURRENCY_TYPE"></dict-selector> :type="DICT_TYPE.COMMISSION_ CURRENCY_TYPE"></dict-selector> -->
// TODO 货币需要改成接口数据,但是没找到此文件入口没法测试
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="form.status == '3'" label="处理时间" required> <el-form-item v-show="form.status == '3'" label="处理时间" required>
......
...@@ -252,10 +252,11 @@ export const constantRoutes = [ ...@@ -252,10 +252,11 @@ export const constantRoutes = [
redirect: 'noredirect', redirect: 'noredirect',
children: [ children: [
{ {
path: '/customerCommissionInfo/:dictId(\\d+)', path: '/customerCommissionInfo/:dictId(\\d+)/:id(\\d+)?',
component: (resolve) => require(['@/views/ecw/customerCommissionInfo/index'], resolve), component: (resolve) => require(['@/views/ecw/customerCommissionInfo/index'], resolve),
name: 'customerCommissionInfo', name: 'customerCommissionInfo',
meta: {title: '佣金设置', icon: '', activeMenu: '/customer/customerCommissionInfo'} meta: {title: '佣金设置', icon: '', activeMenu: '/customer/customerCommissionInfo'},
props: true,
}, },
{ {
path: 'edit/:customerId(\\d+)', path: 'edit/:customerId(\\d+)',
......
...@@ -142,7 +142,6 @@ export const DICT_TYPE = { ...@@ -142,7 +142,6 @@ export const DICT_TYPE = {
SHIPPING_DECLARATION_TYPE: 'shipping_declaration_type',//出货报关方式(与订单报关方式相同) SHIPPING_DECLARATION_TYPE: 'shipping_declaration_type',//出货报关方式(与订单报关方式相同)
COMMISSION_TYPE: 'commission_type',//佣金类型 COMMISSION_TYPE: 'commission_type',//佣金类型
COMMISSION_DARK_TYPE: 'commission_dark_type',//暗涌类型 COMMISSION_DARK_TYPE: 'commission_dark_type',//暗涌类型
COMMISSION_CURRENCY_TYPE: 'commission_currency_type',//佣金货币类型
// COMMISSION_UNIT: 'commission_unit',//佣金货物单位 // COMMISSION_UNIT: 'commission_unit',//佣金货物单位
ECW_PORT_TYPE: 'port_type', //港口类型 ECW_PORT_TYPE: 'port_type', //港口类型
CERTIFICATE_TYPE: 'certificate_type',//证件类型 CERTIFICATE_TYPE: 'certificate_type',//证件类型
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
{{ scope.row.loadWeight }}kg {{ scope.row.loadWeight }}kg
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('跟进客服')" align="center" prop="" /> <el-table-column :label="$t(' 跟进客服')" align="center" prop="" />
<el-table-column :label="$t('制作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('制作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 0 (未制作提货单) 1(审核中) 2(审核通过) 3(审核拒绝) --> <!-- 0 (未制作提货单) 1(审核中) 2(审核通过) 3(审核拒绝) -->
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-row style="text-align:left;"> <el-row style="text-align:left;">
<el-row> <el-row>
<span>{{$t('规格')}}{{scope.row.boxGauge}}</span> <span>{{$t('规格')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.boxGauge : ''}}</span>
</el-row> </el-row>
<el-row> <el-row>
<span>{{$t('品牌')}} <span>{{$t('品牌')}}
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<span style="margin-left: 10px;">{{$t('重量')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.weight : 0 }}kg</span> <span style="margin-left: 10px;">{{$t('重量')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.weight : 0 }}kg</span>
</el-row> </el-row>
<el-row> <el-row>
<span>{{$t('计划装柜:无返回')}}</span> <span>{{$t('计划装柜')}}{{planCabinet}}</span>
</el-row> </el-row>
</el-row> </el-row>
</template> </template>
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
{{shopForm.num||0}} {{shopForm.num||0}}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" v-show="isQuantity">
<el-form-item label="剩余数量(个):"> <el-form-item label="剩余数量(个):">
{{shopForm.quantity||0}} {{shopForm.quantity||0}}
</el-form-item> </el-form-item>
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<el-form-item label="放入箱数:"> <el-form-item label="放入箱数:">
{{shopForm.num||0}} {{shopForm.num||0}}
</el-form-item> </el-form-item>
<el-form-item label="放入数量(个):" prop="putQuantity"> <el-form-item label="放入数量(个):" prop="putQuantity" v-show="isQuantity">
<el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number> <el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="备注信息:"> <el-form-item label="备注信息:">
...@@ -281,11 +281,12 @@ export default { ...@@ -281,11 +281,12 @@ export default {
orderId: 0, orderId: 0,
lang: 0, lang: 0,
}, },
isQuantity: false,
}; };
}, },
created() { created() {
const { shipmentObj } = this.$attrs; const { shipmentObj } = this.$attrs;
this.planCabinet =`${shipmentObj.selfNo}-${this.currRow.sectionName}` this.planCabinet = `${shipmentObj.selfNo}-${this.currRow.sectionName}`;
getTradeCityList().then((res) => (this.tradeCityList = res.data)); getTradeCityList().then((res) => (this.tradeCityList = res.data));
this.queryParams.orderId = this.currRow.orderId; this.queryParams.orderId = this.currRow.orderId;
this.getOrderDetail(); this.getOrderDetail();
...@@ -408,7 +409,7 @@ export default { ...@@ -408,7 +409,7 @@ export default {
).toFixed(2); ).toFixed(2);
}); });
sums[1] = this.$t( sums[1] = this.$t(
"下单统计:{orderSum} 箱 {orderV)m³ {orderW}kg 入仓统计:{leviteSum} 箱 {leviteV)m³ {leviteW}kg", "下单统计:{orderSum} 箱 {orderV} m³ {orderW} kg 入仓统计:{leviteSum} 箱 {leviteV} m³ {leviteW} kg",
{ {
orderSum, orderSum,
orderV, orderV,
...@@ -418,7 +419,6 @@ export default { ...@@ -418,7 +419,6 @@ export default {
leviteW, leviteW,
} }
); );
return sums; return sums;
}, },
importCityName(id) { importCityName(id) {
...@@ -445,6 +445,7 @@ export default { ...@@ -445,6 +445,7 @@ export default {
addShop() { addShop() {
this.shopForm = {}; this.shopForm = {};
this.shopOpen = true; this.shopOpen = true;
this.isQuantity = false;
}, },
async changeProdTitleZh() { async changeProdTitleZh() {
const data = await this.getSelectData("zhId"); const data = await this.getSelectData("zhId");
...@@ -474,6 +475,7 @@ export default { ...@@ -474,6 +475,7 @@ export default {
clearanceFreightVolume: data.clearanceFreightVolume, clearanceFreightVolume: data.clearanceFreightVolume,
}).then((res) => { }).then((res) => {
if (res.data) { if (res.data) {
this.isQuantity = true;
this.shopRules.putQuantity = [ this.shopRules.putQuantity = [
{ {
required: true, required: true,
...@@ -482,6 +484,7 @@ export default { ...@@ -482,6 +484,7 @@ export default {
}, },
]; ];
} else { } else {
this.isQuantity = false;
delete this.shopRules.putQuantity; delete this.shopRules.putQuantity;
} }
}); });
......
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('箱数')" align="center" prop="num"> <el-table-column :label="$t('箱数')" align="center" prop="num">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <el-link type="primary" @click.native="showWarehouseLogs(scope.row)">
{{scope.row.num}} {{scope.row.num}}
</div> </el-link>
<div style="color:blue;fontWeight:bold;"> <div style="color:blue;fontWeight:bold;">
{{ scope.row.multiSpecification === true ? '(多规格)' : ''}} {{ scope.row.multiSpecification === true ? '(多规格)' : ''}}
</div> </div>
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
<el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body> <el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body>
<batchTally v-if="dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" /> <batchTally v-if="dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" />
</el-dialog> </el-dialog>
<warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" />
</div> </div>
</template> </template>
...@@ -100,18 +101,23 @@ ...@@ -100,18 +101,23 @@
import batchTally from "./batchTally.vue"; import batchTally from "./batchTally.vue";
import { getTallyList, tallyRemove, tallyCommit } from "@/api/ecw/boxSea"; import { getTallyList, tallyRemove, tallyCommit } from "@/api/ecw/boxSea";
import { formatDate, serviceMsg } from "../../utils"; import { formatDate, serviceMsg } from "../../utils";
import WarehouseDetail from "./warehouseDetail";
import { getOrder } from "@/api/ecw/order";
export default { export default {
name: "tally", name: "tally",
inheritAttrs: false, inheritAttrs: false,
components: { components: {
batchTally, batchTally,
WarehouseDetail,
}, },
props: { props: {
shipmentObj: Object, shipmentObj: Object,
}, },
data() { data() {
return { return {
showWarehouseInItemId: null,
order: null,
tallyList: [], tallyList: [],
// 理货数据 // 理货数据
tallyRows: [], tallyRows: [],
...@@ -245,6 +251,13 @@ export default { ...@@ -245,6 +251,13 @@ export default {
}); });
}); });
}, },
// 显示入仓记录
showWarehouseLogs(row) {
getOrder(row.orderId).then((response) => {
this.order = response.data;
this.showWarehouseInItemId = row.orderItemId;
});
},
}, },
computed: { computed: {
/* 获取仓库 */ /* 获取仓库 */
......
<template>
<!-- 订单获取入仓记录 -->
<el-dialog :title="title" visible :before-close="closeDialog" :close-on-click-modal="false" width="1000px" append-to-body>
<el-table v-if="warehouseItem && warehouseItem.orderWarehouseInBackItemDoList" :data="warehouseItem.orderWarehouseInBackItemDoList">
<el-table-column type="index" :label="$t('序号')" />
<el-table-column :label="$t('箱数')" prop="cartonsNum" />
<el-table-column :label="$t('入仓类型')" prop="cartonsNum">
<template slot-scope="{row}">
<dict-tag :type="DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE" :value="row.specificationType" />
</template>
</el-table-column>
<el-table-column :label="$t('包装类型')" prop="unit">
<template slot-scope="{row}">
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="row.unit" />
</template>
</el-table-column>
<el-table-column :label="$t('长')" prop="boxGauge">
<template slot-scope="{row}">
{{row.boxGauge.split('*')[0]}}
</template>
</el-table-column>
<el-table-column :label="$t('宽')" prop="boxGauge">
<template slot-scope="{row}">
{{row.boxGauge.split('*')[1]}}
</template>
</el-table-column>
<el-table-column :label="$t('高')" prop="boxGauge">
<template slot-scope="{row}">
{{row.boxGauge.split('*')[2]}}
</template>
</el-table-column>
<el-table-column :label="$t('体积') + '(m³)'" prop="volume" />
<el-table-column :label="$t('重量') + '(kg)'" prop="weight" />
<el-table-column :label="$t('数量(个)')" prop="quantityAll" />
<el-table-column :label="$t('快递单号')" prop="expressNo" />
<el-table-column :label="$t('入仓时间')" prop="inTime">
<template slot-scope="{row}">{{row.inTime|parseTime}}</template>
</el-table-column>
</el-table>
</el-dialog>
</template>
<script>
import { getOrder, getOrderWarehouseIn } from "@/api/ecw/order";
import { DICT_TYPE } from "@/utils/dict";
import { parseTime } from "@/utils/ruoyi";
export default {
filters: { parseTime },
props: {
order: Object, // order 和 orderId 二选一
orderId: Number,
orderItemId: Number,
},
data() {
return {
orderDetail: null,
warehouseList: null,
};
},
computed: {
info() {
return this.orderDetail || this.order;
},
orderItem() {
if (!this.info) return null;
return this.info.orderItemVOList.find(
(item) => item.orderItemId == this.orderItemId
);
},
warehouseItem() {
if (!this.warehouseList) return [];
return (
this.warehouseList.find(
(item) => item.orderItemId == this.orderItemId
) || []
);
},
title() {
if (!this.orderItem) return "-";
return this.$l(this.orderItem, "prodTitle") + " - " + this.$t("入仓记录");
},
},
created() {
this.show = true;
if (!this.order && this.orderId) {
getOrder(this.orderId).then((res) => {
this.orderDetail = res.data;
});
}
this.getOrderWarehouseIn();
},
methods: {
closeDialog() {
this.show = false;
this.$emit("close");
},
getOrderWarehouseIn() {
getOrderWarehouseIn(this.info.orderId).then((res) => {
this.warehouseList = res.data;
});
},
},
};
</script>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<el-table-column :label="$t('金额')" align="center" prop="fromFee"> <el-table-column :label="$t('金额')" align="center" prop="fromFee">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.fromFee}} <span>{{scope.row.fromFee}}
<dict-tag :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" :value="scope.row.fromCurrency" />
<!-- {{ scope.row.fromCurrency | currencyDataFilter(currencyDictDatas) }} --> <!-- {{ scope.row.fromCurrency | currencyDataFilter(currencyDictDatas) }} -->
{{currencyName(scope.row.fromCurrency)}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('兑换货币类型')" align="center" prop="toCurrency"> <el-table-column :label="$t('兑换货币类型')" align="center" prop="toCurrency">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" :value="scope.row.toCurrency" />
<!-- <span>{{ scope.row.toCurrency | currencyDataFilter(currencyDictDatas) }}</span> --> <!-- <span>{{ scope.row.toCurrency | currencyDataFilter(currencyDictDatas) }}</span> -->
{{currencyName(scope.row.toCurrency)}}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -83,11 +83,10 @@ ...@@ -83,11 +83,10 @@
<el-input v-model="form.fromFee" :placeholder="$t('请输入金额')"/> <el-input v-model="form.fromFee" :placeholder="$t('请输入金额')"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('货币类型')" prop="fromCurrency"> <el-form-item :label="$t('货币类型')" prop="fromCurrency">
<dict-selector :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="form.fromCurrency" /> <el-select v-model="form.fromCurrency" clearable>
<!-- <el-select v-model="form.fromCurrency" clearable> <el-option v-for="item in currencyList" :key="item.id"
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)" :key="parseInt(dict.value)" :label="$l(item, 'title')" :value="item.id"/>
:label="$l(dict, 'label')" :value="parseInt(dict.value)"/> </el-select>
</el-select> -->
</el-form-item> </el-form-item>
<el-form-item :label="$t('兑换金额')" prop="toFee"> <el-form-item :label="$t('兑换金额')" prop="toFee">
<el-input v-model="form.toFee" :placeholder="$t('请输入兑换金额')"/> <el-input v-model="form.toFee" :placeholder="$t('请输入兑换金额')"/>
...@@ -97,8 +96,8 @@ ...@@ -97,8 +96,8 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item :label="$t('兑换货币类型')" prop="toCurrency"> <el-form-item :label="$t('兑换货币类型')" prop="toCurrency">
<el-select v-model="form.toCurrency" clearable> <el-select v-model="form.toCurrency" clearable>
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)" :key="parseInt(dict.value)" <el-option v-for="item in currencyList" :key="item.id"
:label="dict.label" :value="parseInt(dict.value)"/> :label="$l(item, 'title')" :value="item.id"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="开始时间(尼日利亚)" prop="nrlyStartTime"> <el-form-item label="开始时间(尼日利亚)" prop="nrlyStartTime">
...@@ -148,7 +147,8 @@ ...@@ -148,7 +147,8 @@
import {CommonStatusEnum} from "@/utils/constants"; import {CommonStatusEnum} from "@/utils/constants";
import {changeUserStatus} from "@/api/system/user"; import {changeUserStatus} from "@/api/system/user";
import {DICT_TYPE, getDictDatas, getDictData} from "@/utils/dict"; import {DICT_TYPE, getDictDatas, getDictData} from "@/utils/dict";
import { getCurrencyList } from "@/api/ecw/currency";
import {arrryToKeyedObjectBy} from '@/utils/index'
export default { export default {
name: "CurrencyEcash", name: "CurrencyEcash",
components: {}, components: {},
...@@ -202,12 +202,27 @@ ...@@ -202,12 +202,27 @@
// 表单校验 // 表单校验
rules: {}, rules: {},
/* statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS), */ /* statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS), */
/* currencyDictDatas: getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE), */
/* ecashDatas: getDictDatas(DICT_TYPE.ECASH_INIT), */ /* ecashDatas: getDictDatas(DICT_TYPE.ECASH_INIT), */
currencyList: []
}; };
}, },
computed:{
currencyMap(){
return arrryToKeyedObjectBy(this.currencyList, 'id')
},
currencyName(){
return id => {
let obj = this.currencyMap[id]
if(obj) return this.$l(obj, 'title')
return this.$t('未知')
}
}
},
created() { created() {
this.getList(); this.getList();
getCurrencyList().then(res => {
this.currencyList = res.data
})
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
......
...@@ -152,6 +152,7 @@ ...@@ -152,6 +152,7 @@
v-model="form.createTime" v-model="form.createTime"
type="datetime" type="datetime"
value-format="timestamp" value-format="timestamp"
disabled
:placeholder="$t('选择创建时间')"> :placeholder="$t('选择创建时间')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
......
...@@ -85,11 +85,12 @@ ...@@ -85,11 +85,12 @@
type="selection" type="selection"
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column :label="$t('佣金编码')" align="center" prop="customerId" /> <el-table-column :label="$t('佣金编码')" align="center" prop="id" />
<el-table-column :label="$t('客户名称')" align="center" prop="customerName" show-overflow-tooltip > <el-table-column :label="$t('客户名称')" align="center" prop="customerName" show-overflow-tooltip >
</el-table-column> </el-table-column>
<el-table-column :label="$t('联系电话')" align="center" prop="transportId" show-overflow-tooltip > <el-table-column :label="$t('联系电话')" align="center" prop="transportId" show-overflow-tooltip >
<template slot-scope="scope"> <template slot-scope="scope">
<div>+{{scope.row.defaultContactPhoneAreaCode}}</div>
<div>{{scope.row.defaultContactPhone}}</div> <div>{{scope.row.defaultContactPhone}}</div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -100,12 +101,12 @@ ...@@ -100,12 +101,12 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('暗佣返佣类型')" align="center" prop="darkReturnType"> <el-table-column :label="$t('暗佣返佣类型')" align="center" prop="darkReturnType">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMISSION_DARK_TYPE" :value="scope.row.type" /> <dict-tag :type="DICT_TYPE.COMMISSION_DARK_TYPE" :value="scope.row.darkReturnType" />
</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">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="scope.row.transportId" :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="scope.row.transportId" /> <dict-tag v-if="scope.row.transportId !== -1" :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="scope.row.transportId" />
<div v-else>{{$t('全部')}}</div> <div v-else>{{$t('全部')}}</div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -113,19 +114,19 @@ ...@@ -113,19 +114,19 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('报关方式')" align="center" prop="customsType" show-overflow-tooltip> <el-table-column :label="$t('报关方式')" align="center" prop="customsType" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="scope.row.customsType" :type="DICT_TYPE.SHIPPING_DECLARATION_TYPE" :value="scope.row.customsType" /> <dict-tag v-if="scope.row.customsType !== -1" :type="DICT_TYPE.SHIPPING_DECLARATION_TYPE" :value="scope.row.customsType" />
<div v-else>{{$t('全部')}}</div> <div v-else>{{$t('全部')}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('备案')" align="center" prop="approval"> <el-table-column :label="$t('备案')" align="center" prop="approval">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag v-if="scope.row.approval" :type="DICT_TYPE.COMMISSION_PRODUCT_APPROVAL" :value="scope.row.approval" /> <dict-tag v-if="scope.row.approval !== -1" :type="DICT_TYPE.COMMISSION_PRODUCT_APPROVAL" :value="scope.row.approval" />
<div v-else>{{$t('全部')}}</div> <div v-else>{{$t('全部')}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width" width="200px"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">编辑</el-button>--> <el-button size="mini" type="text" icon="el-icon-view" @click="handleUpdate(scope.row)">查看</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">{{$t('删除')}}</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">{{$t('删除')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -256,10 +257,11 @@ export default { ...@@ -256,10 +257,11 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
/** 修改按钮操作 */ /** 查看按钮操作 */
handleUpdate(row) { handleUpdate(row) {
const id = row.customerId; const customerId = row.customerId;
this.$router.push(`/customerCommissionInfo/${id}`) const id = row.id;
this.$router.push(`/customerCommissionInfo/${customerId}/${id}`)
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
......
<template> <template>
<el-select v-if="options" v-model="selectVal" :placeholder="$t('请选择')"> <el-select v-if="options" v-model="selectVal" :placeholder="$t('请选择')">
<el-option v-if="allShow" :label="$t('全部')" :value='0'></el-option> <el-option v-if="allShow" :label="$t('全部')" :value='-1'></el-option>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item[valueKey]" :key="item[valueKey]"
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form class="demo-ruleForm" label-position="left" label-width="110px" :rules="rules" :model="form" ref="form" > <el-form :disabled="$route.params.dictId != 0" class="demo-ruleForm" label-position="left" label-width="110px" :rules="rules" :model="form" ref="form" >
<el-card class="box-card" style="padding: 10px"> <el-card class="box-card" style="padding: 10px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item :label="$t('客户名称')" prop="customerId"> <el-form-item :label="$t('客户名称')" prop="customerId">
<div style="display: flex"> <div style="display: flex">
<el-input readonly="readonly" :placeholder="$t('请输入选择客户')" v-model="customerName"></el-input> <el-input :disabled="true" :placeholder="$t('请输入选择客户')" v-model="customerName"></el-input>
<img style="width: 40px;height: 40px;margin-left: 40px;" src="@/assets/images/phonebook.png" class="phonebook" @click="customerNameShow= true" /> <img v-if="$route.params.dictId == 0" style="width: 40px;height: 40px;margin-left: 40px;" src="@/assets/images/phonebook.png" class="phonebook" @click="customerNameShow= true" />
</div> </div>
<!-- <el-select--> <!-- <el-select-->
<!-- v-model="customerForm.name"--> <!-- v-model="customerForm.name"-->
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-form v-if="form.type == 2 && form.darkReturnType == 1"> <el-form v-if="form.type == 2 && form.darkReturnType == 1" :disabled="$route.params.dictId != 0">
<el-form-item :label="$t('商品类型')" v-for="(item,index) in darkServantAndProductForm" :key="index"> <el-form-item :label="$t('商品类型')" v-for="(item,index) in darkServantAndProductForm" :key="index">
<div class="shanping-type"> <div class="shanping-type">
<div class="tool"> <div class="tool">
...@@ -245,13 +245,18 @@ ...@@ -245,13 +245,18 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12" style="margin-top: 20px"> <el-col :span="12" style="margin-top: 20px" v-if="$route.params.dictId == 0">
<el-button style="width:200px;margin: 0 40px" type="primary" @click="submitForm">{{$t('确定')}}</el-button> <el-button style="width:200px;margin: 0 40px" type="primary" @click="submitForm">{{$t('确定')}}</el-button>
<el-button style="width:200px" @click="cancel">{{$t('取消')}}</el-button> <el-button style="width:200px" @click="cancel">{{$t('取消')}}</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
</el-form> </el-form>
<el-row>
<el-col :span="12" style="margin-top: 20px" v-if="$route.params.dictId != 0">
<el-button style="width:200px" type="primary" @click="cancel">{{$t('取消')}}</el-button>
</el-col>
</el-row>
<choose-contact-dialog v-if="customerNameShow" @choose="onContactChoose" @close="customerNameShow = false" /> <choose-contact-dialog v-if="customerNameShow" @choose="onContactChoose" @close="customerNameShow = false" />
</div> </div>
</template> </template>
...@@ -280,6 +285,9 @@ export default { ...@@ -280,6 +285,9 @@ export default {
CustomersSelector, CustomersSelector,
ChooseContactDialog ChooseContactDialog
}, },
props:{
id:[Number,String]//佣金编号id
},
data() { data() {
return { return {
customerName:undefined, customerName:undefined,
...@@ -292,15 +300,15 @@ export default { ...@@ -292,15 +300,15 @@ export default {
tradeCityList: [], tradeCityList: [],
// 表单参数 // 表单参数
form: { form: {
approval: 0,// 产品备案 approval: -1,// 产品备案
customerCommissionInfoBaseVOList: [],// 佣金详情 customerCommissionInfoBaseVOList: [],// 佣金详情
customerId: undefined,//客户id customerId: undefined,//客户id
customsType: 0,//报关类别:我司全代:1,自单代报:2,混合报关:3 customsType: -1,//报关类别:我司全代:1,自单代报:2,混合报关:3
darkReturnType: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_DARK_TYPE)[0].value),// 暗佣类型 1产品2达标 darkReturnType:undefined,// 暗佣类型 1产品2达标
departureId: 0,// 始发地id departureId: -1,// 始发地id
objectiveId: 0 ,//目的地id objectiveId: -1 ,//目的地id
transportId:0,//运输方式 transportId:-1,//运输方式
type: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_TYPE)[1].value),// 佣金类型 type: undefined,// 佣金类型
}, },
//明佣 //明佣
mingServantFrom: [ mingServantFrom: [
...@@ -313,8 +321,8 @@ export default { ...@@ -313,8 +321,8 @@ export default {
//暗佣金+产品 //暗佣金+产品
darkServantAndProductForm: [ darkServantAndProductForm: [
{ {
productType:0,//商品类型 productType:-1,//商品类型
productAttr: 0,//暗佣 产品属性 productAttr:-1,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: null,// 暗佣 货币 darkCurrency: null,// 暗佣 货币
darkUnit:undefined,// 暗佣 单位 darkUnit:undefined,// 暗佣 单位
...@@ -355,7 +363,6 @@ export default { ...@@ -355,7 +363,6 @@ export default {
customerId: [{required: true, message: this.$t('客户名称不能为空'), trigger: "blur"}], customerId: [{required: true, message: this.$t('客户名称不能为空'), trigger: "blur"}],
}, },
customerShow: true, customerShow: true,
id:undefined,//佣金id
weightList:[], weightList:[],
productAttrList:[], productAttrList:[],
params: { params: {
...@@ -374,8 +381,10 @@ export default { ...@@ -374,8 +381,10 @@ export default {
}, },
}, },
created() { created() {
this.form.darkReturnType = parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_DARK_TYPE)[0].value);
this.form.type = parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_TYPE)[1].value);
getProductTypeList().then(response => { getProductTypeList().then(response => {
console.log(response.data,'response.data') // console.log(response.data,'response.data')
this.productAttrList = response.data this.productAttrList = response.data
}) })
getCurrencyPage(this.params).then(res => { getCurrencyPage(this.params).then(res => {
...@@ -388,20 +397,18 @@ export default { ...@@ -388,20 +397,18 @@ export default {
this.mingServantAnddarkServant[0].refundCurrency = id this.mingServantAnddarkServant[0].refundCurrency = id
this.mingServantAnddarkServant[0].darkAdjustCurrency = id this.mingServantAnddarkServant[0].darkAdjustCurrency = id
})
//重量单位 //重量单位
getUnitList().then(r =>{ getUnitList().then(r =>{
if(r.code === 0){ if(r.code === 0){
this.weightList = r.data this.weightList = r.data
this.$set(this.mingServantFrom,0, { this.$set(this.mingServantFrom, 0, {
refund: '', refund: '',
refundCurrency:parseInt(this.currencyList[0].id), refundCurrency:parseInt(this.currencyList[0].id),
refundUnit: parseInt(this.weightList[0].id),}) refundUnit: parseInt(r.data[0].id)})
this.$set(this.darkServantAndProductForm, 0, this.$set(this.darkServantAndProductForm, 0,
{ {
productType: 0,//商品类型 productType: -1,//商品类型
productAttr: 0,//暗佣 产品属性 productAttr: -1,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币 darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币
darkUnit: parseInt(this.weightList[0].id),// 暗佣 单位 darkUnit: parseInt(this.weightList[0].id),// 暗佣 单位
...@@ -424,10 +431,6 @@ export default { ...@@ -424,10 +431,6 @@ export default {
darkAdjustCurrency: parseInt(this.currencyList[0].id),//暗佣+明佣 上调对应的货币 darkAdjustCurrency: parseInt(this.currencyList[0].id),//暗佣+明佣 上调对应的货币
darkAdjustUnit:parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位 darkAdjustUnit:parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位
}) })
}
})
this.getCustomeList();
if(this.$route.params.dictId != 0){ if(this.$route.params.dictId != 0){
commissionGetByCustomerId(this.$route.params.dictId).then(r => { commissionGetByCustomerId(this.$route.params.dictId).then(r => {
if(r.code === 0){ if(r.code === 0){
...@@ -443,10 +446,10 @@ export default { ...@@ -443,10 +446,10 @@ export default {
f.transportId = p.transportId; f.transportId = p.transportId;
this.form = f; this.form = f;
this.customerForm.name = p.customerName; this.customerForm.name = p.customerName;
this.id = r.data.id; this.customerName = p.customerName
} }
getCustomerCommission(r.data.id).then(r =>{ getCustomerCommission(this.id).then(r =>{
console.log(r,'客户佣金详情'); // console.log(r,'客户佣金详情',);
if(r.code != 0 || r.data.length == 0) return if(r.code != 0 || r.data.length == 0) return
if(this.form.type == 1){ if(this.form.type == 1){
//明佣 //明佣
...@@ -467,9 +470,12 @@ export default { ...@@ -467,9 +470,12 @@ export default {
} }
}) })
}) })
}else {
} }
}
})
})
this.getCustomeList();
this.getItemType(); this.getItemType();
this.productAttrFn(); this.productAttrFn();
...@@ -481,7 +487,6 @@ export default { ...@@ -481,7 +487,6 @@ export default {
// /** 查询列表客户*/ // /** 查询列表客户*/
getCustomeList() { getCustomeList() {
customerDropDownList(this.customerForm).then(res => { customerDropDownList(this.customerForm).then(res => {
console.log(res);
if (res.code === 0) { if (res.code === 0) {
this.customeList = res.data this.customeList = res.data
} }
...@@ -490,13 +495,12 @@ export default { ...@@ -490,13 +495,12 @@ export default {
remoteMethod(val) { remoteMethod(val) {
this.customerForm.name = val; this.customerForm.name = val;
}, },
changefn(val){ // changefn(val){
console.log(val,'val') // this.form.customerId = val;
this.form.customerId = val; // },
},
/** 取消按钮 */ /** 取消按钮 */
cancel() { cancel() {
this.$router.go(-1); this.$tab.closeOpenPage({path:'/customer/customerCommission'});
}, },
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
...@@ -516,8 +520,8 @@ export default { ...@@ -516,8 +520,8 @@ export default {
addToFn(val){ addToFn(val){
if(val === 1){ if(val === 1){
this.darkServantAndProductForm.push({ this.darkServantAndProductForm.push({
productType:0,//商品类型 productType:-1,//商品类型
productAttr:0,//暗佣 产品属性 productAttr:-1,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币 darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币
darkUnit:this.darkServantAndProductForm[0].darkUnit,// 暗佣 单位 darkUnit:this.darkServantAndProductForm[0].darkUnit,// 暗佣 单位
...@@ -555,7 +559,7 @@ export default { ...@@ -555,7 +559,7 @@ export default {
} }
if(this.$route.params.dictId == 0){ if(this.$route.params.dictId == 0){
createCommission(this.form).then(r =>{ createCommission(this.form).then(r =>{
console.log('添加',r) // console.log('添加',r)
if(r.code == 0){ if(r.code == 0){
this.$message.success(this.$t('添加成功!')); this.$message.success(this.$t('添加成功!'));
this.$tab.closeOpenPage({path:'/customer/customerCommission'}); this.$tab.closeOpenPage({path:'/customer/customerCommission'});
...@@ -569,7 +573,7 @@ export default { ...@@ -569,7 +573,7 @@ export default {
p.customerCommissionInfoBaseVOList.forEach(item => {item.commissionId = this.$route.params.dictId}) p.customerCommissionInfoBaseVOList.forEach(item => {item.commissionId = this.$route.params.dictId})
updateCustomerCommissionInfo(p).then(r=>{ updateCustomerCommissionInfo(p).then(r=>{
if(r.code == 0){ if(r.code == 0){
this.$router.go(-1) this.$tab.closeOpenPage({path:'/customer/customerCommission'});
this.$message.success(this.$t('修改成功!')); this.$message.success(this.$t('修改成功!'));
} }
}) })
...@@ -593,7 +597,7 @@ export default { ...@@ -593,7 +597,7 @@ export default {
commodityList().then(res => { commodityList().then(res => {
this.commodity = res.data this.commodity = res.data
if(this.$route.params.dictId == 0 || (this.form.type == 2 && this.form.darkReturnType != 1)){ if(this.$route.params.dictId == 0 || (this.form.type == 2 && this.form.darkReturnType != 1)){
this.darkServantAndProductForm.forEach(item=>{item.productType = 0}) this.darkServantAndProductForm.forEach(item=>{item.productType = -1})
} }
}) })
}, },
...@@ -614,11 +618,12 @@ export default { ...@@ -614,11 +618,12 @@ export default {
deep:true, deep:true,
}, },
'form.transportId':function (val){ 'form.transportId':function (val){
// console.log('1234567',val,'val');
if(this.weightList.length === 0 || !val) return if(this.weightList.length === 0 || !val) return
if((val == 1 || val == 2)){ if((val == 1 || val == 2)){
let index = this.weightList.findIndex(item => item.id == 7); let index = this.weightList.findIndex(item => item.id == 7);
this.mingServantFrom.forEach(item =>{ this.mingServantFrom.forEach(item =>{
item.refundUnit = parseInt(this.weightList[index].id); item.refundUnit = parseInt(this.weightList[index]. id);
}) })
this.mingServantAnddarkServant.forEach(item =>{ this.mingServantAnddarkServant.forEach(item =>{
item.refundUnit =parseInt(this.weightList[index].id); item.refundUnit =parseInt(this.weightList[index].id);
......
...@@ -136,7 +136,6 @@ ...@@ -136,7 +136,6 @@
</el-table-column> </el-table-column>
<!-- <el-table-column label="币种" align="center"> <!-- <el-table-column label="币种" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" :value="scope.row.currencyId" />
</template> </template>
</el-table-column> --> </el-table-column> -->
<!-- <el-table-column label="汇率" align="center" prop="totalAmount" /> --> <!-- <el-table-column label="汇率" align="center" prop="totalAmount" /> -->
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<el-form-item label="" <el-form-item label=""
:prop="`prodCreateReqVOList.${scope.$index}.worth`" :prop="`prodCreateReqVOList.${scope.$index}.worth`"
:rules="{ :rules="{
required: true, message: $t('货值不能为空'), trigger: 'blur' // required: true, message: $t('货值不能为空'), trigger: 'blur'
}" }"
class="mb-0 mr-0" class="mb-0 mr-0"
> >
...@@ -1095,6 +1095,7 @@ export default { ...@@ -1095,6 +1095,7 @@ export default {
if(!tmp.weight)tmp.weight = 1 if(!tmp.weight)tmp.weight = 1
if(!tmp.quantity)tmp.quantity = 1 if(!tmp.quantity)tmp.quantity = 1
if(!tmp.num)tmp.num = 1 if(!tmp.num)tmp.num = 1
if(!tmp.worth)tmp.worth = 1
arr.push(tmp) arr.push(tmp)
}) })
return arr return arr
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-table-column :label="$t('唛头')" prop="marks"></el-table-column> <el-table-column :label="$t('唛头')" prop="marks"></el-table-column>
<el-table-column :label="$t('已到箱数/总箱数')"> <el-table-column :label="$t('已到箱数/总箱数')">
<template v-slot={row}> <template v-slot={row}>
{{ row.sumQuantity || 0 }}/{{ row.totalNum }} {{ row.sumNum }}箱/{{ row.totalNum }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('下单统计')"> <el-table-column :label="$t('下单统计')">
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
</div> </div>
<div style="text-align: center" v-else> <div style="text-align: center" v-else>
<el-button @click="()=>{ <el-button @click="()=>{
$emit('update:dialogVisible',false)
$router.push({path:'/bpm/process-instance/detail',query:{id:this.applyStatus.orderWarehouseApprovalBackVO.formId}}) $router.push({path:'/bpm/process-instance/detail',query:{id:this.applyStatus.orderWarehouseApprovalBackVO.formId}})
}">{{$t('审核中')}}</el-button> }">{{$t('审核中')}}</el-button>
<el-button @click="cancellationOfOrder" >{{$t('取消审核')}}</el-button> <el-button @click="cancellationOfOrder" >{{$t('取消审核')}}</el-button>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'"> <el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'">
<el-input style="width: 300px;" v-model="specialNeedsList[index].transFee"> <el-input style="width: 300px;" v-model="specialNeedsList[index].transFee">
<div style="width: 100px;" slot="append" > <div style="width: 100px;" slot="append" >
<!-- <dict-selector v-model="specialNeedsList[index].transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector> -->
<el-select v-model="specialNeedsList[index].transCurrency"> <el-select v-model="specialNeedsList[index].transCurrency">
<el-option v-for="item in JSON.parse(currency)" :key="item.id" :label="item.titleZh" :value="item.id" /> <el-option v-for="item in JSON.parse(currency)" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select> </el-select>
......
...@@ -123,7 +123,8 @@ ...@@ -123,7 +123,8 @@
<div> <div>
<dict-tag :type="DICT_TYPE.FEE_TYPE" :value="FeeDetails.feeType" /> <dict-tag :type="DICT_TYPE.FEE_TYPE" :value="FeeDetails.feeType" />
{{FeeDetails.applicationFee}} {{FeeDetails.applicationFee}}
<dict-tag :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" :value="FeeDetails.applicationFeeCurrency" /> <!-- <dict-tag :type="DICT_TYPE.COMMISSION_ CURRENCY_TYPE" :value="FeeDetails.applicationFeeCurrency" />, -->
{{currencyName(FeeDetails.applicationFeeCurrency)}}
<dict-tag :value="FeeDetails.payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-tag> <dict-tag :value="FeeDetails.payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-tag>
【{{FeeDetails.remarks}}】 【{{FeeDetails.remarks}}】
</div> </div>
...@@ -163,10 +164,14 @@ import { ...@@ -163,10 +164,14 @@ import {
getOrderPage, getOrderPage,
getWarehouseUpdateApprovalInfo getWarehouseUpdateApprovalInfo
} from '@/api/ecw/order' } from '@/api/ecw/order'
import { getChannelList } from '@/api/ecw/channel'; import { getChannelList } from '@/api/ecw/channel';
import Template from "@/views/cms/template"; import Template from "@/views/cms/template";
import {getSupplierPage} from "@/api/ecw/supplier"; import {getSupplierPage} from "@/api/ecw/supplier";
import { DICT_TYPE } from "@/utils/dict"; import { DICT_TYPE } from "@/utils/dict";
import { getCurrencyList } from "@/api/ecw/currency";
import {arrryToKeyedObjectBy} from '@/utils/index'
export default { export default {
components: {Template}, components: {Template},
props:{ props:{
...@@ -195,7 +200,22 @@ export default { ...@@ -195,7 +200,22 @@ export default {
prodName: '' prodName: ''
} }
}, },
computed:{
currencyMap(){
return arrryToKeyedObjectBy(this.currencyList, 'id')
},
currencyName(){
return id => {
let obj = this.currencyMap[id]
if(obj) return this.$l(obj, 'title')
return this.$t('未知')
}
}
},
created() { created() {
getCurrencyList().then(res => {
this.currencyList = res.data
})
getChannelList().then(r => this.channelList = r.data); getChannelList().then(r => this.channelList = r.data);
warehouseAreaPositionList().then(r => this.warehouseList = r.data) warehouseAreaPositionList().then(r => this.warehouseList = r.data)
if(this.type === 2){ if(this.type === 2){
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-descriptions class="margin-top" border :title="$t('发货人')" :column="1" :labelStyle="{width:'150px'}"> <el-descriptions class="margin-top" border :title="$t('发货人')" :column="1" :labelStyle="{width:'150px'}">
<el-descriptions-item :label="$t('发货人')">{{order.consignorVO.name}}</el-descriptions-item> <el-descriptions-item :label="$t('发货人')">{{order.consignorVO.name}}</el-descriptions-item>
<el-descriptions-item :label="$t('发货人电话')"> <el-descriptions-item :label="$t('发货人电话')">
{{order.consignorVO.countryCode}} {{order.consignorVO.phone}} +{{order.consignorVO.countryCode}} {{order.consignorVO.phone}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('发货人邮箱')">{{order.consignorVO.email}}</el-descriptions-item> <el-descriptions-item :label="$t('发货人邮箱')">{{order.consignorVO.email}}</el-descriptions-item>
<el-descriptions-item :label="$t('发货人公司名称')"> <el-descriptions-item :label="$t('发货人公司名称')">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-descriptions class="margin-top" border :title="$t('收货人')" :column="2" :labelStyle="{width:'150px'}"> <el-descriptions class="margin-top" border :title="$t('收货人')" :column="2" :labelStyle="{width:'150px'}">
<el-descriptions-item :label="$t('收货人')">{{order.consigneeVO.name}}</el-descriptions-item> <el-descriptions-item :label="$t('收货人')">{{order.consigneeVO.name}}</el-descriptions-item>
<el-descriptions-item :label="$t('收货人电话')"> <el-descriptions-item :label="$t('收货人电话')">
{{order.consigneeVO.countryCode}} {{order.consigneeVO.phone}} +{{order.consigneeVO.countryCode}} {{order.consigneeVO.phone}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('收货人邮箱')">{{order.consigneeVO.email}}</el-descriptions-item> <el-descriptions-item :label="$t('收货人邮箱')">{{order.consigneeVO.email}}</el-descriptions-item>
<el-descriptions-item :label="$t('收货人公司名称')"> <el-descriptions-item :label="$t('收货人公司名称')">
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<el-table-column prop="sumNum" :label="$t('入仓件数')" width="90px"> <el-table-column prop="sumNum" :label="$t('入仓件数')" width="90px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-link type="primary" @click.native="showWarehouseLogs(row)">{{row.warehouseInInfoVO ? row.warehouseInInfoVO.cartonsNum : 0}}</el-link> <el-link type="primary" @click.native="showWarehouseLogs(row)">{{row.warehouseInInfoVO ? row.warehouseInInfoVO.cartonsNum : 0}}</el-link>
<div v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.isMultiSpecification">(多规格)</div> <div v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.isMultiSpecification">({{$t('多规格')}})</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="unit" :label="$t('单位')" width="90px"> <el-table-column prop="unit" :label="$t('单位')" width="90px">
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
<el-select :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.applicationFeeCurrency"> <el-select :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.applicationFeeCurrency">
<el-option v-for="item in JSON.parse(currencys)" :key="item.id" :label="item.titleZh" :value="item.id" /> <el-option v-for="item in JSON.parse(currencys)" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select> </el-select>
<!-- <dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="scope.row.applicationFeeCurrency" /> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款类型')"> <el-table-column :label="$t('付款类型')">
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</template> </template>
<!-- 合单,拆单 --> <!-- 合单,拆单 -->
<template v-if=" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status"> <template v-if=" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status > 3">
<el-dropdown-item @click.native="$router.push(`/order/singleApply?orderNo=${scope.row.orderNo}`)" >{{$t('合单申请')}}</el-dropdown-item> <el-dropdown-item @click.native="$router.push(`/order/singleApply?orderNo=${scope.row.orderNo}`)" >{{$t('合单申请')}}</el-dropdown-item>
<el-dropdown-item @click.native="$router.push(`/order/splitApply?orderId=${scope.row.orderId}`)" >{{$t('拆单申请')}}</el-dropdown-item> <el-dropdown-item @click.native="$router.push(`/order/splitApply?orderId=${scope.row.orderId}`)" >{{$t('拆单申请')}}</el-dropdown-item>
</template> </template>
......
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
<el-row v-if="!orderItem.charging"> <el-row v-if="!orderItem.charging">
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('运费')"> <el-form-item :label="$t('运费')">
{{orderItem.oneSeaFreight}} {{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }} <!-- {{orderItem.oneSeaFreight}} -->
{{originPrice}}
{{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -42,13 +44,13 @@ ...@@ -42,13 +44,13 @@
<!-- 明佣或者明佣+暗佣才显示 --> <!-- 明佣或者明佣+暗佣才显示 -->
<el-form-item label="明佣佣金" v-if="form.commissionType == 1 || form.commissionType == 3"> <el-form-item label="明佣佣金" v-if="form.commissionType == 1 || form.commissionType == 3">
<el-input v-model.number="form.lightCommissionAmount" placeholder="" class="w-100"></el-input> <el-input v-model="form.lightCommissionAmount" type="number" placeholder="" class="w-100"></el-input>
{{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }} {{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }}
</el-form-item> </el-form-item>
<!-- 明佣+暗佣才显示 --> <!-- 明佣+暗佣才显示 -->
<el-form-item label="暗佣佣金" v-if="form.commissionType == 3"> <el-form-item label="暗佣佣金" v-if="form.commissionType == 3" prop="shadeCommissionAmount" :rules="{validator: shadeCommissionValidator, message: '暗佣设置错误', trigger: 'blur'}">
<el-input v-model.number="form.shadeCommissionAmount" placeholder="" class="w-100"></el-input> <el-input v-model="form.shadeCommissionAmount" placeholder="" type="number" class="w-100"></el-input>
{{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }} {{ currencyMap[orderItem.seaFreightCurrency] }} / {{ unitMap[orderItem.seaFreightVolume] }}
</el-form-item> </el-form-item>
...@@ -58,7 +60,10 @@ ...@@ -58,7 +60,10 @@
<!-- 明佣+暗佣显示 --> <!-- 明佣+暗佣显示 -->
<div v-if="form.commissionType == 3"> <div v-if="form.commissionType == 3">
{{$t('成本价')}}{{Decimal(form.freight || orderItem.oneSeaFreight).minus(form.shadeCommissionAmount)}} {{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }} {{$t('成本价')}}
<!-- {{Decimal(form.freight || orderItem.oneSeaFreight).minus(form.shadeCommissionAmount)}} -->
{{ costPrice }}
{{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }}
</div> </div>
<!-- 暗佣显示 --> <!-- 暗佣显示 -->
...@@ -70,8 +75,16 @@ ...@@ -70,8 +75,16 @@
<el-link type="primary" @click.native="$router.push('/customer/customerCommission?customerId=' + order.customerId)">{{$t('去设置')}}</el-link> <el-link type="primary" @click.native="$router.push('/customer/customerCommission?customerId=' + order.customerId)">{{$t('去设置')}}</el-link>
</div> </div>
<div v-if="form.commissionType == 1 || form.commissionType == 3">{{$t('销售价')}}{{Decimal(form.freight || orderItem.oneSeaFreight).plus(form.lightCommissionAmount) }} {{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }}</div> <div v-if="form.commissionType == 1 || form.commissionType == 3">
<div v-if="form.commissionType == 3">{{$t('实际佣金返点')}}{{form.shadeCommissionAmount + form.lightCommissionAmount }} {{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }}</div> {{$t('销售价')}}
<!-- {{Decimal(form.freight || orderItem.oneSeaFreight).plus(form.lightCommissionAmount) }} -->
{{salePrice}}
{{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }}</div>
<div v-if="form.commissionType == 3">
{{$t('实际佣金返点')}}
{{form.shadeCommissionAmount + form.lightCommissionAmount }}
{{ currencyMap[form.freightCurrency] }} / {{ unitMap[form.freightVolume] }}
</div>
</div> </div>
</el-form> </el-form>
...@@ -100,6 +113,7 @@ import WorkFlow from '@/components/WorkFlow' ...@@ -100,6 +113,7 @@ import WorkFlow from '@/components/WorkFlow'
import {getDarkReturnCommission} from '@/api/ecw/customerCommission' import {getDarkReturnCommission} from '@/api/ecw/customerCommission'
import Decimal from 'decimal.js' import Decimal from 'decimal.js'
import {cancelProcessInstance} from '@/api/bpm/processInstance' import {cancelProcessInstance} from '@/api/bpm/processInstance'
import { number } from "echarts/lib/export"
export default { export default {
name: "OrderSpecialCommission", name: "OrderSpecialCommission",
props: { props: {
...@@ -109,24 +123,16 @@ export default { ...@@ -109,24 +123,16 @@ export default {
components: { components: {
WorkFlow WorkFlow
}, },
created() {
// 查看详情,列表进来的
this.getOrderSpecial()
getUnitList().then(res => this.unitList = res.data)
getCurrencyList().then(res => this.currencyList = res.data)
getProductType(this.orderItem.prodType).then(res => {
this.productType = res.data
})
if(this.order.channelId){
getChannel(this.order.channelId).then(res => {
this.channel = res.data
})
}
},
data() { data() {
let shadeCommissionValidator = (rule, value, callback) => {
if (!Number(value)) return callback(new Error('请输入有效数字'))
let reg = /((^[1-9]\d*)|^0)(\.\d*){0,1}$/;
if (!reg.test(value)) return callback(new Error('请输入有效数字'));
if(Number(value) > this.originPrice) return callback(new Error('暗佣不能超过运费'))
callback();
}
return { return {
shadeCommissionValidator,
applyType: 3, // 1是优惠申请2是管理折扣3是佣金设置4是重货优惠5是泡货优惠 applyType: 3, // 1是优惠申请2是管理折扣3是佣金设置4是重货优惠5是泡货优惠
unitList:[], unitList:[],
currencyList:[], currencyList:[],
...@@ -143,6 +149,61 @@ export default { ...@@ -143,6 +149,61 @@ export default {
darkCommission: null darkCommission: null
} }
}, },
computed: {
// 是否可以提交
submitable(){
let submitable = false;
[
['orgLightCommissionAmount', 'lightCommissionAmount'],
['orgShadeCommissionAmount', 'shadeCommissionAmount'],
['commissionType', 'orgCommissionType']
].forEach(item => {
if(this.form[item[0]] != this.form[item[1]]){
submitable = true
}
})
return submitable
},
// 根据渠道id显示渠道名
getChannelNameById(){
return channelId => {
const s = this.channelList.find(item => item.channelId == channelId) ?. nameZh
return s ? '' + s + '' : ''
}
},
currencyMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
unitMap(){
let map = {}
this.unitList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
// 原价
originPrice(){
if(!this.form.orgFreight) return 0
return Decimal(this.form.orgFreight).minus(parseFloat(this.form.orgLightCommissionAmount) || 0)
},
// 成本价
costPrice(){
if(!this.originPrice) return 0
return Decimal(this.originPrice).minus(parseFloat(this.form.shadeCommissionAmount) || 0)
},
// 销售价
salePrice(){
if(!this.originPrice) return 0
return Decimal(this.originPrice).plus(parseFloat(this.form.lightCommissionAmount) || 0)
}
},
watch:{ watch:{
ccIdArr(){ ccIdArr(){
this.$set(this.form, 'ccIds', this.ccIdArr.join(',')) this.$set(this.form, 'ccIds', this.ccIdArr.join(','))
...@@ -160,6 +221,22 @@ export default { ...@@ -160,6 +221,22 @@ export default {
} }
} }
}, },
created() {
// 查看详情,列表进来的
this.getOrderSpecial()
getUnitList().then(res => this.unitList = res.data)
getCurrencyList().then(res => this.currencyList = res.data)
getProductType(this.orderItem.prodType).then(res => {
this.productType = res.data
})
if(this.order.channelId){
getChannel(this.order.channelId).then(res => {
this.channel = res.data
})
}
},
methods: { methods: {
Decimal(n){ Decimal(n){
if(!n) return Decimal if(!n) return Decimal
...@@ -214,43 +291,6 @@ export default { ...@@ -214,43 +291,6 @@ export default {
this.closeDialog() this.closeDialog()
}) })
}, },
},
computed: {
// 是否可以提交
submitable(){
let submitable = false;
[
['orgLightCommissionAmount', 'lightCommissionAmount'],
['orgShadeCommissionAmount', 'shadeCommissionAmount'],
['commissionType', 'orgCommissionType']
].forEach(item => {
if(this.form[item[0]] != this.form[item[1]]){
submitable = true
}
})
return submitable
},
// 根据渠道id显示渠道名
getChannelNameById(){
return channelId => {
const s = this.channelList.find(item => item.channelId == channelId) ?. nameZh
return s ? '' + s + '' : ''
}
},
currencyMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
unitMap(){
let map = {}
this.unitList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
}
} }
} }
</script> </script>
...@@ -30,9 +30,8 @@ ...@@ -30,9 +30,8 @@
prop="address" prop="address"
:label="$t('入库货物属性')"> :label="$t('入库货物属性')">
<template v-slot="{row}"> <template v-slot="{row}">
<!-- // TODO 缺少入库品牌信息 -->
<template v-if="row.warehouseInInfoVO"> <template v-if="row.warehouseInInfoVO">
{{$t('品牌')}}<dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType" /><br> {{$t('品牌')}}<dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="row.feeType" /><br>
{{$t('箱数')}}{{ row.warehouseInInfoVO.cartonsNum }}<br> {{$t('箱数')}}{{ row.warehouseInInfoVO.cartonsNum }}<br>
{{$t('体积')}}{{ row.warehouseInInfoVO.volume }}<br> {{$t('体积')}}{{ row.warehouseInInfoVO.volume }}<br>
{{$t('重量')}}{{ row.warehouseInInfoVO.weight }}Kg {{$t('重量')}}{{ row.warehouseInInfoVO.weight }}Kg
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
<template v-slot="{row}"> <template v-slot="{row}">
<div v-for="(item,index) in row.orderWarehouseInBackItemDoList" :key="index"> <div v-for="(item,index) in row.orderWarehouseInBackItemDoList" :key="index">
<div>{{$t('规格')}}{{item.boxGauge.split('*').map(item =>`${item}cm`).join('*')}}</div> <div>{{$t('规格')}}{{item.boxGauge.split('*').map(item =>`${item}cm`).join('*')}}</div>
<div style="display: flex;justify-content: space-between;white-space: nowrap"> <div>
<div>{{$t('品牌')}}{{brandList.find(item => item.id == row.brand).titleZh}}</div> <div>{{$t('品牌')}}{{(brandList.find(item => item.id == row.brand) || {}).titleZh}}</div>
<div>{{$t('箱数')}}{{item.cartonsNum}}</div> <div>{{$t('箱数')}}{{item.cartonsNum}}</div>
<div>{{$t('体积')}}{{item.volume}} CMB</div> <div>{{$t('体积')}}{{item.volume}} CMB</div>
<div>{{$t('重量')}}{{item.weight}}KG</div> <div>{{$t('重量')}}{{item.weight}}KG</div>
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
<script> <script>
import ordeDetailsForm from "@/views/ecw/order/components/ordeDetailsForm"; import ordeDetailsForm from "@/views/ecw/order/components/ordeDetailsForm";
import { import {
cancelAdjust, cancelAdjust,
getAdjustInfo, getAdjustInfo,
...@@ -162,6 +163,7 @@ import {adjustLastWithStatus, warehouseApprovalCancel} from "@/api/ecw/batchSing ...@@ -162,6 +163,7 @@ import {adjustLastWithStatus, warehouseApprovalCancel} from "@/api/ecw/batchSing
import warehouseLocation from "@/views/ecw/order/components/warehouseLocation"; import warehouseLocation from "@/views/ecw/order/components/warehouseLocation";
import imageUpload from "@/components/ImageUpload"; import imageUpload from "@/components/ImageUpload";
import {getProductBrankPage} from "@/api/ecw/productBrank"; import {getProductBrankPage} from "@/api/ecw/productBrank";
import {parseTime} from "@/utils/ruoyi";
export default { export default {
name: "transferWarehousing", name: "transferWarehousing",
components: { components: {
...@@ -315,6 +317,9 @@ export default { ...@@ -315,6 +317,9 @@ export default {
this.params.logisticsNo = this.warehouseDetails.logisticsNo; this.params.logisticsNo = this.warehouseDetails.logisticsNo;
this.params.id = this.warehouseDetails.id; this.params.id = this.warehouseDetails.id;
this.params.logisticsCompany = this.warehouseDetails.logisticsCompany ? parseInt(this.warehouseDetails.logisticsCompany) :undefined; this.params.logisticsCompany = this.warehouseDetails.logisticsCompany ? parseInt(this.warehouseDetails.logisticsCompany) :undefined;
if(this.type == 2){
this.params.deliveryDate = parseTime(this.warehouseDetails.deliveryDate)
}
orderWarehousePicturePage({rows:100,bizId:this.params.id,type:this.type == 1 ? 2 : 3 }).then(r => { orderWarehousePicturePage({rows:100,bizId:this.params.id,type:this.type == 1 ? 2 : 3 }).then(r => {
if(r.code === 0){ if(r.code === 0){
this.params.urls = r.data.list.map(e => e.url); this.params.urls = r.data.list.map(e => e.url);
......
...@@ -151,9 +151,6 @@ ...@@ -151,9 +151,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" width="130px"> <el-table-column label="数量" width="130px">
<template v-slot:header>
<span style="color: red">*</span> 数量
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item :rules="tableFormRules.quantityAll" :prop="$index + '.quantityAll'"> <el-form-item :rules="tableFormRules.quantityAll" :prop="$index + '.quantityAll'">
<span v-if="tableData[$index].id && !edit">{{ tableData[$index].quantityAll }}</span> <span v-if="tableData[$index].id && !edit">{{ tableData[$index].quantityAll }}</span>
...@@ -454,7 +451,7 @@ export default { ...@@ -454,7 +451,7 @@ export default {
boxGauge3: [{required: true, message: this.$t("货物高不能为空"), trigger: "change"}], boxGauge3: [{required: true, message: this.$t("货物高不能为空"), trigger: "change"}],
volume: [{required: true, message: this.$t("体积不能为空"), trigger: "change"}], volume: [{required: true, message: this.$t("体积不能为空"), trigger: "change"}],
weight: [{required: true, message: this.$t("重量不能为空"), trigger: "change"}], weight: [{required: true, message: this.$t("重量不能为空"), trigger: "change"}],
quantityAll: [{required: true, message: "数量不能为空", trigger: "change"}] // quantityAll: [{required: true, message: "数量不能为空", trigger: "change"}]
}, },
form1: { form1: {
"brand": undefined, "brand": undefined,
...@@ -694,7 +691,7 @@ export default { ...@@ -694,7 +691,7 @@ export default {
"boxGauge3": "", "boxGauge3": "",
"cartonsNum": cartonsNum > 0 ? cartonsNum : '', "cartonsNum": cartonsNum > 0 ? cartonsNum : '',
"expressNo": "", "expressNo": "",
"quantityAll": "", "quantityAll": undefined,
"unit": "1", "unit": "1",
"volume": '', "volume": '',
"weight": '', "weight": '',
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form ref="form" :model="form" :rules="rules" label-width="150px"> <el-form ref="form" :model="form" :rules="rules" label-width="150px">
<products-selector v-model="form.productIdList" class="mb-20" /> <products-selector v-model="form.productIdList" show-all @setall="isAllProduct=$event" class="mb-20" />
<routers-selector v-model="selectedRoutes" /> <routers-selector v-model="selectedRoutes" />
...@@ -222,6 +222,7 @@ export default { ...@@ -222,6 +222,7 @@ export default {
// needBook: 0, // needBook: 0,
// dayLimit: 10000 // dayLimit: 10000
}, },
isAllProduct: false, // 是否全部商品
specialProducts: [], specialProducts: [],
priceStepList: [{},{}], // 阶梯价格 priceStepList: [{},{}], // 阶梯价格
// specialList:[], // 特殊需求,默认四个 // specialList:[], // 特殊需求,默认四个
...@@ -371,10 +372,13 @@ export default { ...@@ -371,10 +372,13 @@ export default {
this.$message.error(this.$t('请选择线路')); this.$message.error(this.$t('请选择线路'));
return; return;
} }
if(!this.isAllProduct && (!this.form.productIdList || !this.form.productIdList.length)){
return this.$message.error('请选择商品')
}
let data = Object.assign({}, this.form, { let data = Object.assign({}, this.form, {
// lineChannelList: this.selectedRoutes, // lineChannelList: this.selectedRoutes,
specialList: this.specialProducts, specialList: this.specialProducts,
isAllProduct: this.form.productIdList.length == 0 ? 1 : 0 isAllProduct: this.isAllProduct ? 1:0
}) })
if(this.form.stepPrice == 1){ if(this.form.stepPrice == 1){
data.priceStepList = this.priceStepList data.priceStepList = this.priceStepList
......
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