Commit c72ed342 authored by zs嵩's avatar zs嵩

客户新增/编辑,新增潜在客户,主营类别选择模式优化 报价单详情优化

parent 4d9b8a1e
......@@ -221,8 +221,8 @@
</el-select>
</el-col>
<el-col :span="11">
<el-select multiple filterable clearable v-model="form.productIds" :placeholder="$t('请选择')">
<el-option :label="item.titleZh" :value="parseInt(item.id)" v-for="item in productList" :key="item.id" />
<el-select @change="productIdsChange" multiple filterable clearable v-model="form.productIds" :placeholder="$t('请选择')">
<el-option :label="`${isChinese ? item.typeTitieZh : item.typeTitieEn},${item.titleZh}`" :value="parseInt(item.id)" v-for="item in productList" :key="item.id" />
</el-select>
</el-col>
</el-row>
......@@ -647,25 +647,25 @@ export default {
this.isCustomerServiceConfirmed = this.$route.query.isCustomerServiceConfirmed ? true : false
this.getCustomerSelect()
this.reset()
if (this.potential){
if (this.potential) {
console.log("潜在客户编辑")
this.rules = {
name: [
{
required: true,
message: this.$t("客户名称不能为空"),
trigger: "blur"
}
],
source: [
{
required: true,
message: this.$t("客户来源不能为空"),
trigger: "blur"
}
]
}
}
this.rules = {
name: [
{
required: true,
message: this.$t("客户名称不能为空"),
trigger: "blur"
}
],
source: [
{
required: true,
message: this.$t("客户来源不能为空"),
trigger: "blur"
}
]
}
}
// this.getUserMemberUserFn()
if (this.customerId !== "0") {
let customerId = this.customerId
......@@ -715,6 +715,7 @@ export default {
if (this.isCustomerServiceConfirmed) {
this.form.customerService = this.userId
}
this.getProductListFn([])
}
getNodeList().then((r) => {
......@@ -896,6 +897,13 @@ export default {
this.productList = r.data
})
},
productIdsChange(val) {
console.log(val)
let typeIds = this.productList.filter((item) => val.indexOf(item.id) > -1).map((item) => item.typeId)
typeIds = [...new Set(typeIds)]
console.log(typeIds)
this.form.productTypes = typeIds
},
deleteBankData(index) {
this.form.customerBanks.splice(index, 1)
},
......
......@@ -65,10 +65,10 @@
<el-card class="card">
<div slot="header" class="card-title">{{ $t("运输") }}</div>
<div style="overflow: auto">
<el-descriptions :column="5" border class="card" :labelStyle="{ width: '120px' }">
<el-descriptions-item :label="$t('始发仓')">{{ $l(list.logisticsInfoDto, "startTitle") }}</el-descriptions-item>
<el-descriptions-item :label="$t('目的仓')"> {{ $l(list.logisticsInfoDto, "destCountryTitle") }} - {{ $l(list.logisticsInfoDto, "destCityTitle") }} - {{ $l(list.logisticsInfoDto, "destTitle") }} </el-descriptions-item>
<el-descriptions-item :label="$t('运输方式')">
<el-descriptions :column="4" border class="card" :labelStyle="{ width: '120px' }">
<el-descriptions-item :label="$t('始发仓')" :contentStyle="{ width: '16%' }">{{ $l(list.logisticsInfoDto, "startTitle") }}</el-descriptions-item>
<el-descriptions-item :label="$t('目的仓')" :contentStyle="{ width: '25%' }"> {{ $l(list.logisticsInfoDto, "destCountryTitle") }} - {{ $l(list.logisticsInfoDto, "destCityTitle") }} - {{ $l(list.logisticsInfoDto, "destTitle") }} </el-descriptions-item>
<el-descriptions-item :label="$t('运输方式')" :contentStyle="{ width: '16%' }">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="list.transportId" />
</el-descriptions-item>
<el-descriptions-item v-if="getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, list.transportId).cssClass == 'channel'" :label="$t('出货渠道')">{{ list.channelName }}</el-descriptions-item>
......@@ -782,12 +782,12 @@ export default {
margin-top: 20px;
}
/deep/.el-table__fixed-footer-wrapper tbody td.el-table__cell {
font-size: 16px;
/deep/.el-table__fixed-footer-wrapper tbody td.el-table__cell .cell {
font-size: 18px;
font-weight: bold;
}
/deep/.el-table__footer-wrapper tbody td.el-table__cell {
font-size: 20px;
/deep/.el-table__footer-wrapper tbody td.el-table__cell .cell {
font-size: 18px;
font-weight: bold;
}
</style>
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