Commit 20b47d3f authored by knight's avatar knight

集运-客户详情Tag集运设置

parent 6b439eda
...@@ -72,8 +72,12 @@ export default { ...@@ -72,8 +72,12 @@ export default {
methods:{ methods:{
init(customer){ init(customer){
this.form = customer; this.form = {
this.form.preferenceTransportType = 1; id: customer.id,
isConsService: customer.isConsService,
preferenceTransportType : customer.preferenceTransportType === 0 ? 1 : customer.preferenceTransportType,
consPickupPoint: customer.consPickupPoint,
}
}, },
isChinese() { isChinese() {
...@@ -81,7 +85,7 @@ export default { ...@@ -81,7 +85,7 @@ export default {
}, },
handleClose() { handleClose() {
//this.resetForm("form") this.resetForm("form")
this.dialogVisible = false this.dialogVisible = false
}, },
......
...@@ -452,6 +452,31 @@ ...@@ -452,6 +452,31 @@
<el-switch v-model="customer.defaultBilling" disabled /> <el-switch v-model="customer.defaultBilling" disabled />
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="2" >
<el-descriptions-item :label="$t('集运')">
<el-switch v-model="customer.isConsService" disabled/>
</el-descriptions-item>
<el-descriptions-item v-if="customer.isConsService" :label="$t('集运偏好运输方式')">
<el-radio-group v-model="customer.preferenceTransportType" disabled>
<el-radio
v-for="dict in preferenceTransportData"
:label=parseInt(dict.value)
>
{{ $l(dict, "label") }}</el-radio
>
</el-radio-group>
</el-descriptions-item>
</el-descriptions>
<el-descriptions :column="2">
<el-descriptions-item v-if="customer.isConsService" :label="$t('常用提货网点')">
<el-select filterable clearable v-model="customer.consPickupPoint" :placeholder="$t('请选择提货网点')" disabled>
<el-option v-for="item in AddressTown" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn" :value="parseInt(item.id)"></el-option>
</el-select>
</el-descriptions-item>
</el-descriptions>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="operationLog" v-if="checkPermi(['customer:operate-log:query'])" :label="$t('操作日志')"> <el-tab-pane name="operationLog" v-if="checkPermi(['customer:operate-log:query'])" :label="$t('操作日志')">
<customer-log :customerId="id" v-if="'operationLog' === activeName"></customer-log> <customer-log :customerId="id" v-if="'operationLog' === activeName"></customer-log>
...@@ -721,7 +746,7 @@ ...@@ -721,7 +746,7 @@
<script> <script>
import { getCustomer, getBrankByCustomer, levelLogPage, customerCreditLogPage, infoListOrderPage, orderStatistics, creditLogCreate, creditScoreStatistic, infoListReceiptPage, memberUserList, deleteCustomer, infoListStatisticsOrder } from "@/api/ecw/customer" import { getCustomer, getBrankByCustomer, levelLogPage, customerCreditLogPage, infoListOrderPage, orderStatistics, creditLogCreate, creditScoreStatistic, infoListReceiptPage, memberUserList, deleteCustomer, infoListStatisticsOrder } from "@/api/ecw/customer"
import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer" import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer"
import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from "@/utils/dict" import { DICT_TYPE, getDictDataLabel, getDictDatas2,getDictDatas } from "@/utils/dict"
import { getProductTypeList } from "@/api/ecw/productType" import { getProductTypeList } from "@/api/ecw/productType"
import { getNodeList } from "@/api/ecw/node" import { getNodeList } from "@/api/ecw/node"
import CustomerFollow from "./components/customerFollow" import CustomerFollow from "./components/customerFollow"
...@@ -775,6 +800,8 @@ export default { ...@@ -775,6 +800,8 @@ export default {
// this.nodeList = r.data // this.nodeList = r.data
// }) // })
getCustomer(this.id).then((response) => { getCustomer(this.id).then((response) => {
// 设置集运运输方式偏好
this.customer.preferenceTransportType = response.data.preferenceTransportType === 0 ? 1 : response.data.preferenceTransportType;
this.customer = { ...this.customer, ...response.data } this.customer = { ...this.customer, ...response.data }
console.log(this.customer, "this.customer") console.log(this.customer, "this.customer")
...@@ -932,6 +959,8 @@ export default { ...@@ -932,6 +959,8 @@ export default {
relation: 1, relation: 1,
dateFilterType: "", //日期筛选类别 dateFilterType: "", //日期筛选类别
dateFilter: [], //筛选日期 dateFilter: [], //筛选日期
// 获取集运运输方式偏好数据
preferenceTransportData: getDictDatas(DICT_TYPE.ECW_PREFERENCE_TRANSPORT_TYPE),
customer: { customer: {
id: undefined, id: undefined,
number: undefined, number: undefined,
...@@ -968,7 +997,8 @@ export default { ...@@ -968,7 +997,8 @@ export default {
arrivalConfirm: undefined, arrivalConfirm: undefined,
weightUnit: undefined, weightUnit: undefined,
createTime: undefined, createTime: undefined,
productTypeList: [] productTypeList: [],
preferenceTransportType: 1,
}, },
brandAuthorizationFrom: { brandAuthorizationFrom: {
pageNo: 1, pageNo: 1,
...@@ -1104,6 +1134,7 @@ export default { ...@@ -1104,6 +1134,7 @@ export default {
} }
}, },
methods: { methods: {
handleAddOffer(row) { handleAddOffer(row) {
console.log(row) console.log(row)
this.curData = row this.curData = row
......
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