Commit 61f0c4bb authored by yujinyao's avatar yujinyao

客户设置

parent 0b716b8c
...@@ -530,7 +530,7 @@ export function changeCustomerDefaultBilling(data){ ...@@ -530,7 +530,7 @@ export function changeCustomerDefaultBilling(data){
export function customerSettingButton(data){ export function customerSettingButton(data){
return request({ return request({
url:'ecw/customer/change-customer-arrival-confirm', url:'ecw/customer/update-customer-setup',
method:'put', method:'put',
data data
}) })
......
...@@ -106,6 +106,7 @@ export default { ...@@ -106,6 +106,7 @@ export default {
return { return {
dialogVisible: false, dialogVisible: false,
form: { form: {
id: 0,
isShowTidanPrice: false, isShowTidanPrice: false,
arrivalConfirm: 0, arrivalConfirm: 0,
weightUnit: null, weightUnit: null,
...@@ -151,7 +152,7 @@ export default { ...@@ -151,7 +152,7 @@ export default {
getCustomer(this.customerId).then((response) => { getCustomer(this.customerId).then((response) => {
const row = response.data const row = response.data
this.form = { this.form = {
customerId: row.id, id: row.id,
isShowTidanPrice: row.isShowTidanPrice, isShowTidanPrice: row.isShowTidanPrice,
arrivalConfirm: row.arrivalConfirm, arrivalConfirm: row.arrivalConfirm,
weightUnit: row.weightUnit, weightUnit: row.weightUnit,
......
...@@ -591,42 +591,6 @@ ...@@ -591,42 +591,6 @@
>{{ $t("合并客户") }}</el-button >{{ $t("合并客户") }}</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultPay"
v-hasPermi="['ecw:customer:change-customer-default-pay']"
>{{ $t("设置默认付款") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setNoConsignee"
v-hasPermi="['ecw:customer:change-customer-no-consignee']"
>{{ $t("设置默认控货无收货人") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultBilling"
v-hasPermi="['ecw:customer:change-customer-default-billing']"
>{{ $t("设置默认开票") }}</el-button
>
</el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
...@@ -889,7 +853,7 @@ ...@@ -889,7 +853,7 @@
>{{ $t("报价") }}</el-button >{{ $t("报价") }}</el-button
> >
<el-button <el-button
v-has-permi="[selectAuthorityFn('ecw:customer:treat-quoted-price')]" v-has-permi="['ecw:customer:setting']"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-user" icon="el-icon-user"
...@@ -1401,7 +1365,7 @@ ...@@ -1401,7 +1365,7 @@
<customer-setting <customer-setting
ref="customerSetting" ref="customerSetting"
@refresh="getList" @refresh="getList"
/> ></customer-setting>
<!--业绩类型 --> <!--业绩类型 -->
<el-dialog title="业绩类型" :visible.sync="dialogVisible" width="30%"> <el-dialog title="业绩类型" :visible.sync="dialogVisible" width="30%">
<div> <div>
...@@ -2119,6 +2083,12 @@ export default { ...@@ -2119,6 +2083,12 @@ export default {
this.getList() this.getList()
}) })
}, },
handleSetting(row) {
this.$refs['customerSetting'].dialogVisible = true
this.$nextTick(_ => {
this.$refs['customerSetting'].init(row.id)
})
},
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
if (ids) { if (ids) {
const idsArr = ids.split(',') const idsArr = ids.split(',')
...@@ -2133,12 +2103,6 @@ export default { ...@@ -2133,12 +2103,6 @@ export default {
return null return null
} }
}, },
handleSetting(row) {
this.$refs['customerSetting'].dialogVisible = true
this.$nextTick(_ => {
this.$refs['customerSetting'].init(row.id)
})
},
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
if (ids) { if (ids) {
const idsArr = ids.split(',') const idsArr = ids.split(',')
......
...@@ -387,42 +387,6 @@ ...@@ -387,42 +387,6 @@
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading" <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
v-hasPermi="['ecw:customer:treat-export']">{{$t('导出')}}</el-button> v-hasPermi="['ecw:customer:treat-export']">{{$t('导出')}}</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultPay"
v-hasPermi="['ecw:customer:change-customer-default-pay']"
>{{ $t("设置默认付款") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setNoConsignee"
v-hasPermi="['ecw:customer:change-customer-no-consignee']"
>{{ $t("设置默认控货无收货人") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultBilling"
v-hasPermi="['ecw:customer:change-customer-default-billing']"
>{{ $t("设置默认开票") }}</el-button
>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -598,7 +562,15 @@ ...@@ -598,7 +562,15 @@
</router-link> </router-link>
<el-button size="mini" type="text" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:customer:treat-perfect']">{{$t('完善')}}</el-button> v-hasPermi="['ecw:customer:treat-perfect']">{{$t('完善')}}</el-button>
<!-- <el-button v-has-permi="['ecw:customer:treat-recovery']" size="mini" type="text" @click="recovery(scope.row)" > {{$t('回收客户')}} </el-button>--> <!-- <el-button v-has-permi="['ecw:customer:treat-recovery']" size="mini" type="text" @click="recovery(scope.row)" > {{$t('回收客户')}} </el-button>-->
<el-button
v-has-permi="['ecw:customer:setting']"
size="mini"
type="text"
icon="el-icon-user"
@click="handleSetting(scope.row)"
>{{ $t("设置") }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
...@@ -835,6 +807,7 @@ import {getCountryListAll} from "@/api/ecw/country"; ...@@ -835,6 +807,7 @@ import {getCountryListAll} from "@/api/ecw/country";
import {getCreditPage} from "@/api/customer/credit"; import {getCreditPage} from "@/api/customer/credit";
import transferCustomer from "@/views/ecw/customer/transferCustomer.vue"; import transferCustomer from "@/views/ecw/customer/transferCustomer.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import CustomerSetting from "../customer/components/customerSetting.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getNodeList } from "@/api/ecw/node"; import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer"; import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer";
...@@ -919,7 +892,8 @@ export default { ...@@ -919,7 +892,8 @@ export default {
components: { components: {
Contacts, Contacts,
transferCustomer, transferCustomer,
AreaCodeSelector AreaCodeSelector,
CustomerSetting
}, },
data() { data() {
return { return {
...@@ -1252,19 +1226,11 @@ export default { ...@@ -1252,19 +1226,11 @@ export default {
customerIdList : undefined customerIdList : undefined
}; };
}, },
getBusiCountryNames(ids) { handleSetting(row) {
if (ids) { this.$refs['customerSetting'].dialogVisible = true
const idsArr = ids.split(',') this.$nextTick(_ => {
const strArr = [] this.$refs['customerSetting'].init(row.id)
this.countryList.forEach(item => {
if (idsArr.includes(item.id.toString())) {
strArr.push(this.isChinese ? item.nameZh : item.nameEn)
}
}) })
return strArr.length > 0 ? strArr.join(',') : null
} else {
return null
}
}, },
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
if (ids) { if (ids) {
...@@ -1321,34 +1287,7 @@ export default { ...@@ -1321,34 +1287,7 @@ export default {
} else { } else {
return null return null
} }
}, }
setDefaultPay() {
changeCustomerDefaultPay({
customerIdList: this.selectCustomerList,
defaultPay: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setNoConsignee() {
changeCustomerNoConsignee({
customerIdList: this.selectCustomerList,
noConsigee: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setDefaultBilling() {
changeCustomerDefaultBilling({
customerIdList: this.selectCustomerList,
defaultBilling: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
} }
}; };
</script> </script>
...@@ -394,42 +394,6 @@ ...@@ -394,42 +394,6 @@
v-hasPermi="['ecw:customer:distribution-transfer']">{{$t('批量移交')}}</el-button> v-hasPermi="['ecw:customer:distribution-transfer']">{{$t('批量移交')}}</el-button>
</el-col> </el-col>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultPay"
v-hasPermi="['ecw:customer:change-customer-default-pay']"
>{{ $t("设置默认付款") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setNoConsignee"
v-hasPermi="['ecw:customer:change-customer-no-consignee']"
>{{ $t("设置默认控货无收货人") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultBilling"
v-hasPermi="['ecw:customer:change-customer-default-billing']"
>{{ $t("设置默认开票") }}</el-button
>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -585,6 +549,14 @@ ...@@ -585,6 +549,14 @@
v-hasPermi="['ecw:customer:distribution-delete']">{{$t('删除')}}</el-button> v-hasPermi="['ecw:customer:distribution-delete']">{{$t('删除')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="distribution(scope.row)" <el-button size="mini" type="text" icon="el-icon-delete" @click="distribution(scope.row)"
v-hasPermi="['ecw:customer:distribution-customer-service']">{{$t('分配客服')}}</el-button> v-hasPermi="['ecw:customer:distribution-customer-service']">{{$t('分配客服')}}</el-button>
<el-button
v-has-permi="['ecw:customer:setting']"
size="mini"
type="text"
icon="el-icon-user"
@click="handleSetting(scope.row)"
>{{ $t("设置") }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -628,6 +600,7 @@ import {getCreditPage} from "@/api/customer/credit"; ...@@ -628,6 +600,7 @@ import {getCreditPage} from "@/api/customer/credit";
import transferCustomer from "@/views/ecw/customer/transferCustomer"; import transferCustomer from "@/views/ecw/customer/transferCustomer";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import CustomerSetting from "../customer/components/customerSetting.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getNodeList } from "@/api/ecw/node"; import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer"; import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer";
...@@ -645,7 +618,8 @@ export default { ...@@ -645,7 +618,8 @@ export default {
Template, Template,
upload, upload,
transferCustomer, transferCustomer,
AreaCodeSelector AreaCodeSelector,
CustomerSetting
}, },
data() { data() {
return { return {
...@@ -963,19 +937,11 @@ export default { ...@@ -963,19 +937,11 @@ export default {
}) })
}).catch(() => {}); }).catch(() => {});
}, },
getBusiCountryNames(ids) { handleSetting(row) {
if (ids) { this.$refs['customerSetting'].dialogVisible = true
const idsArr = ids.split(',') this.$nextTick(_ => {
const strArr = [] this.$refs['customerSetting'].init(row.id)
this.countryList.forEach(item => {
if (idsArr.includes(item.id.toString())) {
strArr.push(this.isChinese ? item.nameZh : item.nameEn)
}
}) })
return strArr.length > 0 ? strArr.join(',') : null
} else {
return null
}
}, },
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
if (ids) { if (ids) {
......
...@@ -428,42 +428,6 @@ ...@@ -428,42 +428,6 @@
>{{ $t("导出") }}</el-button >{{ $t("导出") }}</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultPay"
v-hasPermi="['ecw:customer:change-customer-default-pay']"
>{{ $t("设置默认付款") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setNoConsignee"
v-hasPermi="['ecw:customer:change-customer-no-consignee']"
>{{ $t("设置默认控货无收货人") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultBilling"
v-hasPermi="['ecw:customer:change-customer-default-billing']"
>{{ $t("设置默认开票") }}</el-button
>
</el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
...@@ -714,6 +678,14 @@ ...@@ -714,6 +678,14 @@
@click="quote(scope.row)" @click="quote(scope.row)"
>{{ $t("报价") }}</el-button >{{ $t("报价") }}</el-button
> >
<el-button
v-has-permi="['ecw:customer:setting']"
size="mini"
type="text"
icon="el-icon-user"
@click="handleSetting(scope.row)"
>{{ $t("设置") }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -740,6 +712,10 @@ ...@@ -740,6 +712,10 @@
:show.sync="show" :show.sync="show"
:customer-ids.sync="selectCustomerList" :customer-ids.sync="selectCustomerList"
></transfer-customer> ></transfer-customer>
<customer-setting
ref="customerSetting"
@refresh="getList"
></customer-setting>
</div> </div>
</template> </template>
...@@ -763,7 +739,7 @@ import { getCreditPage } from "@/api/customer/credit"; ...@@ -763,7 +739,7 @@ import { getCreditPage } from "@/api/customer/credit";
import transferCustomer from "@/views/ecw/customer/transferCustomer"; import transferCustomer from "@/views/ecw/customer/transferCustomer";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import CustomerSetting from "../customer/components/customerSetting.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getNodeList } from "@/api/ecw/node"; import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee, changeCustomerDefaultBilling } from "@/api/ecw/customer"; import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee, changeCustomerDefaultBilling } from "@/api/ecw/customer";
...@@ -778,7 +754,8 @@ export default { ...@@ -778,7 +754,8 @@ export default {
customerFollowList, customerFollowList,
customerComplaints, customerComplaints,
transferCustomer, transferCustomer,
AreaCodeSelector AreaCodeSelector,
CustomerSetting
}, },
computed: { computed: {
isChinese() { isChinese() {
...@@ -1251,31 +1228,10 @@ export default { ...@@ -1251,31 +1228,10 @@ export default {
this.$refs["customerComplaint"].handleAdd(); this.$refs["customerComplaint"].handleAdd();
}); });
}, },
setDefaultPay() { handleSetting(row) {
changeCustomerDefaultPay({ this.$refs['customerSetting'].dialogVisible = true
customerIdList: this.selectCustomerList, this.$nextTick(_ => {
defaultPay: true this.$refs['customerSetting'].init(row.id)
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setNoConsignee() {
changeCustomerNoConsignee({
customerIdList: this.selectCustomerList,
noConsigee: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setDefaultBilling() {
changeCustomerDefaultBilling({
customerIdList: this.selectCustomerList,
defaultBilling: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
}) })
}, },
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
......
...@@ -512,42 +512,6 @@ ...@@ -512,42 +512,6 @@
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
></right-toolbar> ></right-toolbar>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultPay"
v-hasPermi="['ecw:customer:change-customer-default-pay']"
>{{ $t("设置默认付款") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setNoConsignee"
v-hasPermi="['ecw:customer:change-customer-no-consignee']"
>{{ $t("设置默认控货无收货人") }}</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-plus"
size="mini"
:disabled="!selectCustomerList.length"
@click="setDefaultBilling"
v-hasPermi="['ecw:customer:change-customer-default-billing']"
>{{ $t("设置默认开票") }}</el-button
>
</el-col>
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
...@@ -721,7 +685,7 @@ ...@@ -721,7 +685,7 @@
<span >{{ parseTime(scope.row.updateTime) }}</span> <span >{{ parseTime(scope.row.updateTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="100px" :label="$t('操作')" align="center" fixed="right"> <el-table-column width="200px" :label="$t('操作')" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/customer/query/' + scope.row.id"> <router-link :to="'/customer/query/' + scope.row.id">
<el-button <el-button
...@@ -729,6 +693,7 @@ ...@@ -729,6 +693,7 @@
size="mini" size="mini"
style="margin-right: 10px" style="margin-right: 10px"
type="text" type="text"
icon="el-icon-view"
>查看</el-button >查看</el-button
> >
</router-link> </router-link>
...@@ -737,9 +702,18 @@ ...@@ -737,9 +702,18 @@
v-has-permi="['ecw:customer:sea-gain']" v-has-permi="['ecw:customer:sea-gain']"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit"
@click="fishingFn(scope.row)" @click="fishingFn(scope.row)"
>{{ $t("捞取") }}</el-button >{{ $t("捞取") }}</el-button
> >
<el-button
v-has-permi="['ecw:customer:setting']"
size="mini"
type="text"
icon="el-icon-user"
@click="handleSetting(scope.row)"
>{{ $t("设置") }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -787,6 +761,10 @@ ...@@ -787,6 +761,10 @@
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
<customer-setting
ref="customerSetting"
@refresh="getList"
></customer-setting>
</div> </div>
</template> </template>
...@@ -808,6 +786,7 @@ import { getCountryListAll } from "@/api/ecw/country"; ...@@ -808,6 +786,7 @@ import { getCountryListAll } from "@/api/ecw/country";
import { getCreditPage } from "@/api/customer/credit"; import { getCreditPage } from "@/api/customer/credit";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import CustomerSetting from "../customer/components/customerSetting.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getNodeList } from "@/api/ecw/node"; import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer"; import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer";
...@@ -823,7 +802,8 @@ export default { ...@@ -823,7 +802,8 @@ export default {
Contacts, Contacts,
Template, Template,
upload, upload,
AreaCodeSelector AreaCodeSelector,
CustomerSetting
}, },
data() { data() {
return { return {
...@@ -1297,19 +1277,11 @@ export default { ...@@ -1297,19 +1277,11 @@ export default {
this.multipleSelection = val; this.multipleSelection = val;
this.selectCustomerList = val.map((i) => i.id); this.selectCustomerList = val.map((i) => i.id);
}, },
getBusiCountryNames(ids) { handleSetting(row) {
if (ids) { this.$refs['customerSetting'].dialogVisible = true
const idsArr = ids.split(',') this.$nextTick(_ => {
const strArr = [] this.$refs['customerSetting'].init(row.id)
this.countryList.forEach(item => {
if (idsArr.includes(item.id.toString())) {
strArr.push(this.isChinese ? item.nameZh : item.nameEn)
}
}) })
return strArr.length > 0 ? strArr.join(',') : null
} else {
return null
}
}, },
getBusiCountryNames(ids) { getBusiCountryNames(ids) {
if (ids) { if (ids) {
...@@ -1367,33 +1339,6 @@ export default { ...@@ -1367,33 +1339,6 @@ export default {
return null return null
} }
}, },
setDefaultPay() {
changeCustomerDefaultPay({
customerIdList: this.selectCustomerList,
defaultPay: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setNoConsignee() {
changeCustomerNoConsignee({
customerIdList: this.selectCustomerList,
noConsigee: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
setDefaultBilling() {
changeCustomerDefaultBilling({
customerIdList: this.selectCustomerList,
defaultBilling: true
}).then(_ => {
this.$message.success(this.$t("操作成功"))
this.getList()
})
},
}, },
}; };
</script> </script>
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