Browse Source

2024.1.8

master
yuejiayang 2 years ago
parent
commit
20a7f2bde4
  1. 26
      src/api/customer/customerGroupInformation.js
  2. 560
      src/views/modules/customer/customerGroupInformation.vue
  3. 173
      src/views/modules/customer/customerInformationManagement.vue

26
src/api/customer/customerGroupInformation.js

@ -0,0 +1,26 @@
import { createAPI } from "@/utils/httpRequest.js";
/**
* 分组信息列表查询
* @param data
* @returns {*}
*/
export const customerGroupInformationSearch = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationSearch`,'post',data)
/**
* 分组信息新增
* @param data
* @returns {*}
*/
export const customerGroupInformationSave = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationSave`,'post',data)
/**
* 分组信息编辑
* @param data
* @returns {*}
*/
export const customerGroupInformationEdit = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationEdit`,'post',data)
/**
* 分组信息删除
* @param data
* @returns {*}
*/
export const customerGroupInformationDelete = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationDelete`,'post',data)

560
src/views/modules/customer/customerGroupInformation.vue

@ -0,0 +1,560 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
<el-form-item :label="'客户组编码'">
<el-input v-model="searchData.customerGroupId" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'客户组名称'">
<el-input v-model="searchData.customerGroupName" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'是否在用'">
<el-select clearable v-model="searchData.active" style="width: 120px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="'客户组'">
<el-select clearable v-model="searchData.type" style="width: 120px">
<el-option label="客户组1" value="1"></el-option>
<el-option label="客户组2" value="2"></el-option>
<el-option label="客户组3" value="3"></el-option>
<el-option label="客户组4" value="4"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="getDataList()">查询</el-button>
<el-button type="primary" @click="addModal()">新增</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ "导出" }}
</download-excel>
</el-form-item>
</el-form>
<el-table
:height="height"
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="160"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="updateModal(scope.row)">修改</a>
<a type="text" size="small" @click="delModal(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
<!-- 分页栏 -->
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="客户组编码" prop="customerGroupId" :rules="rules.customerGroupId">
<el-input v-model="modalData.customerGroupId" :disabled="modalDisableFlag" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="客户组名称" prop="customerGroupName" :rules="rules.customerGroupName">
<el-input v-model="modalData.customerGroupName" style="width: 221px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="是否在用" prop="active" :rules="rules.active">
<el-select v-model="modalData.active" style="width: 221px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="客户组" prop="type" :rules="rules.type">
<el-select v-model="modalData.type" style="width: 221px">
<el-option label="客户组1" value="1"></el-option>
<el-option label="客户组2" value="2"></el-option>
<el-option label="客户组3" value="3"></el-option>
<el-option label="客户组4" value="4"></el-option>
</el-select>
</el-form-item>
</el-form>
<el-footer style="height:30px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<!-- chooseList模态框 -->
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
customerGroupInformationSearch, //
customerGroupInformationSave, //
customerGroupInformationEdit, //
customerGroupInformationDelete //
} from '@/api/customer/customerGroupInformation.js'
import Chooselist from '@/views/modules/common/Chooselist'
import customerGroupInformation from './customerGroupInformation'
export default {
components: {
Chooselist
},
watch: {
searchData: {
deep: true,
handler: function (newV, oldV) {
this.searchData.customerGroupId = this.searchData.customerGroupId.toUpperCase()
}
},
modalData: {
deep: true,
handler: function (newV, oldV) {
this.modalData.customerGroupId = this.modalData.customerGroupId.toUpperCase()
}
}
},
data () {
return {
//
exportData: [],
exportName: '客户组' + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ['商品'],
exportFooter: [],
resultList: [],
// ======== ========
height: 200,
// ======== ========
pageIndex: 1,
pageSize: 50,
totalPage: 0,
//
searchData: {
site: this.$store.state.user.site,
customerGroupId: '',
customerGroupName: '',
active: '',
type: '',
page: 1,
limit: 10
},
//
dataListLoading: false,
modalData: {
flag: '',
title: '',
site: this.$store.state.user.site,
customerGroupId: '',
customerGroupName: '',
active: '',
type: ''
},
// ======== ========
dataList: [],
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1ProductGroupId',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: 'customerGroupId',
headerAlign: "center",
align: "left",
columnLabel: '客户组编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1ProductGroupName',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: 'customerGroupName',
headerAlign: "center",
align: "left",
columnLabel: '客户组名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
functionId: 100007,
serialNumber: '100007Table1Active',
tableId: '100007Table1',
tableName: '客户组信息表',
columnProp: 'active',
headerAlign: 'center',
align: 'center',
columnLabel: '是否在用',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
functionId: 100007,
serialNumber: '100007Table1Type',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: "type",
headerAlign: "center",
align: "center",
columnLabel: '客户组',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1CreateDate',
tableId: '100007Table1',
tableName: '客户组信息表',
columnProp: 'createDate',
headerAlign: 'center',
align: 'center',
columnLabel: '创建时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1CreateBy',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: 'createBy',
headerAlign: "center",
align: "center",
columnLabel: '创建人',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1UpdateDate',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: 'updateDate',
headerAlign: "center",
align: "center",
columnLabel: '更新时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 100007,
serialNumber: '100007Table1UpdateBy',
tableId: "100007Table1",
tableName: "客户组信息表",
columnProp: 'updateBy',
headerAlign: "center",
align: "center",
columnLabel: '更新人',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
],
rules:{
customerGroupId:[
{
required: true,
message: ' ',
trigger: 'change'
}
],
customerGroupName:[
{
required: true,
message: ' ',
trigger: 'change'
}
],
active:[
{
required: true,
message: ' ',
trigger: 'change'
}
],
type:[
{
required: true,
message: ' ',
trigger: 'change'
}
],
},
// ======== ========
modalFlag: false,
modalDisableFlag: false,
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 180
})
},
created () {
this.getDataList()
},
methods: {
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
//excel
async createExportData() {
this.searchData.limit = -1
this.searchData.page = 1
await customerGroupInformationSearch(this.searchData).then(({data}) => {
this.exportList= data.page.list;
})
return this.exportList;
},
startDownload() {
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
// end
//
getDataList () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
customerGroupInformationSearch(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
this.dataListLoading = false
})
},
addModal(){
this.modalData = {
flag: '1',
title: '客户组新增',
site: this.$store.state.user.site,
createBy: this.$store.state.user.name,
customerGroupId: '',
customerGroupName: '',
active: 'Y',
type: ''
}
this.modalDisableFlag = false
this.modalFlag = true
},
/**
* 商品信息编辑模态框
* @param row
*/
updateModal (row) {
this.modalData = {
flag: '2',
title: '客户组编辑',
site: row.site,
customerGroupId: row.customerGroupId,
customerGroupName: row.customerGroupName,
active: row.active,
type: row.type,
updateBy: this.$store.state.user.name,
}
this.modalDisableFlag = true
this.modalFlag = true
},
// ======== // ========
/**
* 商品信息新增/编辑
*/
saveData () {
if (this.modalData.customerGroupId === '' || this.modalData.customerGroupId == null) {
this.$message.warning('请填写客户组编码!')
return
}
if (this.modalData.customerGroupName === '' || this.modalData.customerGroupName == null) {
this.$message.warning('请填写客户组名称!')
return
}
if (this.modalData.active === '' || this.modalData.active == null) {
this.$message.warning('请选择是否可用!')
return
}
if (this.modalData.type === '' || this.modalData.type == null) {
this.$message.warning('请选择客户组!')
return
}
if (this.modalData.flag === '1') {
customerGroupInformationSave(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
} else {
customerGroupInformationEdit(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}
},
/**
* 商品信息删除
*/
delModal (row) {
this.$confirm(`是否删除这条客户组信息?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
customerGroupInformationDelete(row).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.customerSelections = []
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
}
}
</script>
<style scoped lang="scss">
/deep/ .customer-tab .el-tabs__content {
padding: 0px !important;
height: 459px;
}
</style>

173
src/views/modules/customer/customerInformationManagement.vue

@ -112,13 +112,10 @@
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="行业" prop="customerIndustry" :rules="rules.customerIndustry"> <el-form-item label="行业" prop="customerIndustry" :rules="rules.customerIndustry">
<el-input v-model="modalData.customerIndustry" :readonly="detailModalFlag" style="width: 222px"></el-input>
<dict-data-select v-if="modalFlag" v-model="modalData.customerIndustry" :disabled="detailModalFlag" style="width: 222px" dict-type="plm_customer_information_customer_industry"></dict-data-select>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="customerCurrency" :rules="rules.customerCurrency"> <el-form-item label="币种" prop="customerCurrency" :rules="rules.customerCurrency">
<el-select v-model="modalData.customerCurrency" :disabled="detailModalFlag" style="width: 222px">
<el-option label="RMB" value="RMB"></el-option>
<el-option label="USD" value="USD"></el-option>
</el-select>
<dict-data-select v-if="modalFlag" v-model="modalData.customerCurrency" :disabled="detailModalFlag" style="width: 222px" dict-type="plm_customer_information_customer_customer_currency"></dict-data-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">--> <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">-->
@ -149,18 +146,33 @@
<!-- <el-input v-model="modalData.remark" :readonly="detailModalFlag" style="width: 457px"></el-input>--> <!-- <el-input v-model="modalData.remark" :readonly="detailModalFlag" style="width: 457px"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-form>--> <!-- </el-form>-->
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item>
<span slot="label" @click="getBaseList(1021)"><a herf="#">客户组1</a></span>
<el-input v-model="modalData.customerGroupId1" style="width: 124px"></el-input>
<el-input v-model="modalData.customerGroupName1" disabled style="width: 330px"></el-input>
</el-form-item>
<el-form-item>
<span slot="label" @click="getBaseList(1022)"><a herf="#">客户组2</a></span>
<el-input v-model="modalData.customerGroupId2" style="width: 124px"></el-input>
<el-input v-model="modalData.customerGroupName2" disabled style="width: 330px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="关键客户" prop="importantCustomer" :rules="rules.importantCustomer">
<el-select v-model="modalData.importantCustomer" :disabled="detailModalFlag" style="width: 222px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
<el-form-item label="重要程度" prop="importantCustomer" :rules="rules.importantCustomer">
<dict-data-select v-if="modalFlag" v-model="modalData.importantCustomer" :disabled="detailModalFlag" style="width: 145px" dict-type="plm_customer_information_important_customer">
</dict-data-select>
</el-form-item> </el-form-item>
<el-form-item label="客户状态" prop="customerStatus" :rules="rules.customerStatus"> <el-form-item label="客户状态" prop="customerStatus" :rules="rules.customerStatus">
<el-select v-model="modalData.customerStatus" :disabled="detailModalFlag" style="width: 222px">
<el-option label="非客户" value="非客户"></el-option>
<el-select v-model="modalData.customerStatus" :disabled="detailModalFlag" style="width: 140px">
<el-option label="启用" value="Y"></el-option>
<el-option label="停用" value="N"></el-option>
</el-select>
</el-form-item>
<el-form-item label="客户类型" prop="customerStatus" :rules="rules.customerType">
<el-select v-model="modalData.customerType" :disabled="detailModalFlag" style="width: 145px">
<el-option label="潜在客户" value="潜在客户"></el-option> <el-option label="潜在客户" value="潜在客户"></el-option>
<el-option label="目标客户" value="目标客户"></el-option>
<el-option label="正式客户" value="正式客户"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -722,6 +734,7 @@
} from "@/api/project/project.js" } from "@/api/project/project.js"
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
import DictDataSelect from '../sys/dict-data-select.vue' import DictDataSelect from '../sys/dict-data-select.vue'
import partUploadFile from '../part/part_upload_file.vue'
export default { export default {
components: { components: {
DictDataSelect, DictDataSelect,
@ -743,6 +756,10 @@
}, },
data () { data () {
return { return {
components: {
DictDataSelect,
Chooselist
},
// //
exportData: [], exportData: [],
exportName: '设备分类' + this.dayjs().format('YYYYMMDDHHmmss'), exportName: '设备分类' + this.dayjs().format('YYYYMMDDHHmmss'),
@ -783,6 +800,7 @@
turnoverOfYear: '', turnoverOfYear: '',
potentialRevenueOfYear: '', potentialRevenueOfYear: '',
importantCustomer: '', importantCustomer: '',
customerType: '',
customerStatus: '', customerStatus: '',
companyName: '', companyName: '',
jobDescription: '', jobDescription: '',
@ -796,7 +814,11 @@
primaryContact: '', primaryContact: '',
contactStatus: '', contactStatus: '',
addressName: '', addressName: '',
customerAddress:''
customerAddress:'',
customerGroupId1: '',
customerGroupId2: '',
customerGroupName1: '',
customerGroupName2: '',
}, },
contactModalData: { contactModalData: {
flag: '', flag: '',
@ -901,6 +923,42 @@
fixed: '', fixed: '',
columnWidth: 160 columnWidth: 160
}, },
{
userId: this.$store.state.user.name,
functionId: 101001,
serialNumber: '101001Table1CustomerGroupName1',
tableId: '101001Table1',
tableName: '客户信息表',
columnProp: 'customerGroupName1',
headerAlign: 'center',
align: 'center',
columnLabel: '客户组1',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160
},
{
userId: this.$store.state.user.name,
functionId: 101001,
serialNumber: '101001Table1CustomerGroupName2',
tableId: '101001Table1',
tableName: '客户信息表',
columnProp: 'customerGroupName2',
headerAlign: 'center',
align: 'center',
columnLabel: '客户组1',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 101001, functionId: 101001,
@ -964,7 +1022,7 @@
columnProp: 'importantCustomer', columnProp: 'importantCustomer',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '关键客户',
columnLabel: '重要程度',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -991,6 +1049,24 @@
fixed: '', fixed: '',
columnWidth: 80 columnWidth: 80
}, },
{
userId: this.$store.state.user.name,
functionId: 101001,
serialNumber: '101001Table1CustomerType',
tableId: '101001Table1',
tableName: '客户信息表',
columnProp: 'customerType',
headerAlign: 'center',
align: 'center',
columnLabel: '客户类型',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 101001, functionId: 101001,
@ -1668,6 +1744,13 @@
trigger: 'change' trigger: 'change'
} }
], ],
customerType: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
}, },
contactRules: { contactRules: {
contactName: [ contactName: [
@ -1985,16 +2068,14 @@
turnoverOfYear: '', turnoverOfYear: '',
potentialRevenueOfYear: '', potentialRevenueOfYear: '',
importantCustomer: '', importantCustomer: '',
customerStatus: '',
companyName: '',
jobDescription: '',
remark: '',
contactName: '',
contactPhoneNumber1: '',
primaryContact: '',
contactStatus: '',
customerGroupId1: '',
customerGroupId2: '',
customerGroupName1: '',
customerGroupName2: '',
customerStatus: 'Y',
customerType: '潜在客户',
addressName: '', addressName: '',
defaultAddress: 'Y',
defaultAddress: '',
addressStatus: '启用', addressStatus: '启用',
addressType: '类型一', addressType: '类型一',
createBy: this.$store.state.user.name createBy: this.$store.state.user.name
@ -2107,14 +2188,15 @@
customerCurrency: row.customerCurrency, customerCurrency: row.customerCurrency,
turnoverOfYear: row.turnoverOfYear, turnoverOfYear: row.turnoverOfYear,
potentialRevenueOfYear: row.potentialRevenueOfYear, potentialRevenueOfYear: row.potentialRevenueOfYear,
customerGroupId1: row.customerGroupId1,
customerGroupId2: row.customerGroupId2,
customerGroupName1: row.customerGroupName1,
customerGroupName2: row.customerGroupName2,
importantCustomer: row.importantCustomer, importantCustomer: row.importantCustomer,
customerStatus: row.customerStatus, customerStatus: row.customerStatus,
customerType: row.customerType,
companyName: row.companyName, companyName: row.companyName,
jobDescription: row.jobDescription, jobDescription: row.jobDescription,
remark: row.remark,
contactName: row.contactName,
contactPhoneNumber1: row.contactPhoneNumber1,
primaryContact: 'Y',
contactStatus: row.contactStatus, contactStatus: row.contactStatus,
addressName: row.addressName, addressName: row.addressName,
defaultAddress: 'Y', defaultAddress: 'Y',
@ -2255,14 +2337,15 @@
customerCurrency: row.customerCurrency, customerCurrency: row.customerCurrency,
turnoverOfYear: row.turnoverOfYear, turnoverOfYear: row.turnoverOfYear,
potentialRevenueOfYear: row.potentialRevenueOfYear, potentialRevenueOfYear: row.potentialRevenueOfYear,
customerGroupId1: row.customerGroupId1,
customerGroupId2: row.customerGroupId2,
customerGroupName1: row.customerGroupName1,
customerGroupName2: row.customerGroupName2,
importantCustomer: row.importantCustomer, importantCustomer: row.importantCustomer,
customerStatus: row.customerStatus, customerStatus: row.customerStatus,
customerType: row.customerType,
companyName: row.companyName, companyName: row.companyName,
jobDescription: row.jobDescription, jobDescription: row.jobDescription,
remark: row.remark,
contactName: row.contactName,
contactPhoneNumber1: row.contactPhoneNumber1,
primaryContact: 'Y',
contactStatus: row.contactStatus, contactStatus: row.contactStatus,
addressName: row.addressName addressName: row.addressName
} }
@ -2555,22 +2638,18 @@
this.$message.warning('请输入币种!') this.$message.warning('请输入币种!')
return return
} }
if (this.modalData.contactName === '' || this.modalData.contactName == null) {
this.$message.warning('请输入联系人!')
return
}
if (this.modalData.contactPhoneNumber1 === '' || this.modalData.contactPhoneNumber1 == null) {
this.$message.warning('请输入联系电话!')
return
}
if (this.modalData.importantCustomer === '' || this.modalData.importantCustomer == null) { if (this.modalData.importantCustomer === '' || this.modalData.importantCustomer == null) {
this.$message.warning('请选择是否为关键客户!')
this.$message.warning('请选择重要程度!')
return return
} }
if (this.modalData.customerStatus === '' || this.modalData.customerStatus == null) { if (this.modalData.customerStatus === '' || this.modalData.customerStatus == null) {
this.$message.warning('请选择客户状态!') this.$message.warning('请选择客户状态!')
return return
} }
if (this.modalData.customerType === '' || this.modalData.customerType == null) {
this.$message.warning('请选择客户类型!')
return
}
if(this.modalData.flag === '1'){ if(this.modalData.flag === '1'){
this.modalData.primaryContact = 'Y' this.modalData.primaryContact = 'Y'
this.modalData.contactStatus = '启用' this.modalData.contactStatus = '启用'
@ -2887,6 +2966,11 @@
strVal = this.projectInformationModalData.priority strVal = this.projectInformationModalData.priority
} }
} }
else if (val === 1021) {
strVal = this.modalData.customerGroupId1
} else if (val === 1022) {
strVal = this.modalData.customerGroupId2
}
this.$refs.baseList.init(val, strVal) this.$refs.baseList.init(val, strVal)
}) })
}, },
@ -2919,6 +3003,13 @@
this.projectInformationModalData.priorityDesc = val.Base_desc this.projectInformationModalData.priorityDesc = val.Base_desc
} }
} }
if (this.tagNo === 1021) {
this.modalData.customerGroupId1 = val.customer_group_id
this.modalData.customerGroupName1 = val.customer_group_name
} else if (this.tagNo === 1022) {
this.modalData.customerGroupId2 = val.customer_group_id
this.modalData.customerGroupName2 = val.customer_group_name
}
}, },
/** /**
* 项目经理选择模态框 * 项目经理选择模态框

Loading…
Cancel
Save