| | |
| | | import { getClientList } from "@/api/client/client" // 导入接口 |
| | | import { getContactList } from "@/api/client/contacts" |
| | | import { getSaleChanceList } from "@/api/sales/salesOpportunity" |
| | | import { Message } from "element-ui" |
| | | |
| | | export default { |
| | | state: { |
| | | clientList: [] // 客户列表 |
| | | clientList: [], // 客户列表 |
| | | contactNamelist: [] // 联系人 |
| | | }, |
| | | mutations: { |
| | | clientNameList(state, payload) { |
| | | state.clientList = payload |
| | | }, |
| | | contactNameList(state, payload) { |
| | | state.contactNamelist = payload |
| | | }, |
| | | saleChancelist(state, payload) { |
| | | state.saleChancelist = payload |
| | | } |
| | | }, |
| | | actions: { |
| | |
| | | Message.error(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | geContact(context) { |
| | | getContactList().then((res) => { |
| | | if (res.code == 200) { |
| | | context.commit("contactNameList", res.data.list) |
| | | } else { |
| | | Message.error(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | geChance(context) { |
| | | getSaleChanceList().then((res) => { |
| | | if (res.code == 200) { |
| | | context.commit("saleChancelist", res.data.list) |
| | | } else { |
| | | Message.error(res.msg) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | v-model="editConfig.infomation.client_name" |
| | | :fetch-suggestions="querySearchAsync" |
| | | value-key="name" |
| | | @select="handleSelectClient" |
| | | @select="handleSelectClient('client', $event)" |
| | | ></el-autocomplete> |
| | | <div class="common-select-btn" @click="selClientClick"> |
| | | <div class="common-select-btn" @click="selClientClick('client')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div class="common-select-btn" @click="clearupClient"> |
| | | <div class="common-select-btn" @click="clearupClient('client')"> |
| | | <i class="el-icon-edit-outline" title="清除"></i> |
| | | </div> |
| | | </div> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="联系人姓名" prop="contact_id"> |
| | | <div class="custom-name"> |
| | | <el-input v-model="editConfig.infomation.contact_id"></el-input> |
| | | <div class="common-select-btn"><i class="el-icon-circle-plus-outline"></i></div> |
| | | <div class="common-select-btn"><i class="el-icon-edit-outline"></i></div> |
| | | <el-autocomplete |
| | | v-model="editConfig.infomation.contact_name" |
| | | :fetch-suggestions="queryContactAsync" |
| | | value-key="name" |
| | | @select="handleSelectClient('contact', $event)" |
| | | ></el-autocomplete> |
| | | <div class="common-select-btn" @click="selClientClick('contact')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div class="common-select-btn" @click="clearupClient('contact')"> |
| | | <i class="el-icon-edit-outline" title="清除"></i> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-form-item label="销售机会" prop="sale_chance_id"> |
| | | <div class="custom-name"> |
| | | <el-input v-model="editConfig.infomation.sale_chance_id"></el-input> |
| | | <!-- <el-autocomplete |
| | | v-model="editConfig.infomation.sale_chance_id" |
| | | :fetch-suggestions="queryChanceAsync" |
| | | value-key="name" |
| | | @select="handleSelectClient('chance', $event)" |
| | | ></el-autocomplete> --> |
| | | <div class="common-select-btn"><i class="el-icon-circle-plus-outline"></i></div> |
| | | <div class="common-select-btn"><i class="el-icon-edit-outline"></i></div> |
| | | </div> |
| | |
| | | :edit-common-config="editSelectClientConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | <!-- 选择联系人 --> |
| | | <SelectContactDialog |
| | | v-if="editSelectContactConfig.editVisible" |
| | | :edit-common-config="editSelectContactConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import { getAllData } from "@/api/client/client" |
| | | import { getAddFollowRecord, getUpdateFollowRecord } from "@/api/client/followupRecords" |
| | | import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" |
| | | import SelectContactDialog from "@/views/other/commonDialog/SelectContactDialog" |
| | | export default { |
| | | name: "AddFollowupRecordsDialog", |
| | | props: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | components: { SelectClientDialog }, |
| | | components: { SelectClientDialog, SelectContactDialog }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | | return this.$refs.searchCommonView.offsetHeight |
| | | }, |
| | | clientList() { |
| | | return this.$store.state.getClientName.clientList |
| | | }, |
| | | contactNamelist() { |
| | | return this.$store.state.getClientName.contactNamelist |
| | | }, |
| | | saleChancelist() { |
| | | return this.$store.state.getClientName.saleChancelist |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | } |
| | | }, |
| | | editSelectContactConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | }, |
| | | clientId: this.editContactsConfig.infomation.client_id, |
| | | contactId: this.editContactsConfig.infomation.contact_id |
| | | // saleChanceId: this.editContactsConfig.infomation.sale_chance_id |
| | | } |
| | | }, |
| | | created() { |
| | | this.$store.dispatch("geClient") |
| | | this.$store.dispatch("geContact") |
| | | this.$store.dispatch("geChance") |
| | | this.getCommonData() |
| | | }, |
| | | methods: { |
| | |
| | | let data = this.editConfig.infomation |
| | | let follow_record = { |
| | | follow_record: { |
| | | client_id: data.client_id || 0, |
| | | client_id: parseInt(this.clientId), |
| | | client_status_id: data.client_status_id || 0, |
| | | contact_id: 0, // data.contact_id || |
| | | contact_id: parseInt(this.contactId), |
| | | contact_information_id: data.contact_information_id || 0, |
| | | content: data.content || "", |
| | | follow_time: data.follow_time || "", |
| | |
| | | number: data.number || "", |
| | | purpose: data.purpose || "", |
| | | record: data.record || "", |
| | | sale_chance_id: 0, //data.sale_chance_id || |
| | | sale_chance_id: parseInt(data.sale_chance_id), //data.sale_chance_id || |
| | | sales_leads_id: 0, // data.sales_leads_id || |
| | | topic: data.topic || "" |
| | | } |
| | |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants |
| | | cb(results) |
| | | }, |
| | | // 选择联系人姓名 |
| | | queryContactAsync(queryString, cb) { |
| | | var restaurants = this.contactNamelist |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants |
| | | cb(results) |
| | | }, |
| | | // 销售机会 |
| | | queryChanceAsync(queryString, cb) { |
| | | var restaurants = this.saleChancelist |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants |
| | | cb(results) |
| | | }, |
| | | createStateFilter(queryString) { |
| | | return (state) => { |
| | | return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 |
| | | } |
| | | }, |
| | | handleSelectClient(item) { |
| | | this.editConfig.infomation.client_id = item.id |
| | | handleSelectClient(value, item) { |
| | | console.log(value) |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | } else if (value === "contact") { |
| | | this.contactId = item.id |
| | | } else { |
| | | this.saleChanceId = item.id |
| | | } |
| | | }, |
| | | selClientClick() { |
| | | selClientClick(value) { |
| | | if (value === "client") { |
| | | this.editSelectClientConfig.editVisible = true |
| | | } else if (value === "contact") { |
| | | this.editSelectContactConfig.editVisible = true |
| | | } |
| | | }, |
| | | selClient(row) { |
| | | console.log(row) |
| | | selClient(row, value) { |
| | | console.log(value) |
| | | if (value === "contact") { |
| | | this.editConfig.infomation.contact_name = row.name |
| | | this.contactId = row.id |
| | | } else { |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.editConfig.infomation.client_id = row.id |
| | | this.clientId = row.id |
| | | } |
| | | }, |
| | | // 清除已选择用户 |
| | | clearupClient() { |
| | | clearupClient(value) { |
| | | if (value === "client") { |
| | | this.editConfig.infomation.client_name = "" |
| | | this.editConfig.infomation.client_id = 0 |
| | | this.clientId = 0 |
| | | } else { |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.contactId = 0 |
| | | } |
| | | }, |
| | | // 添加附件 |
| | | addAnnexClick() {}, |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="地址" prop="address"> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | </div> |
| | | <!-- 备注信息 --> |
| | | <div v-if="isUnflod" class="basic-info-title">备注信息</div> |
| | |
| | | return { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: { |
| | | name: "", |
| | | number: "LEA50", |
| | | contact_name: "", |
| | | contact_position: "", |
| | | contact_phone: "", |
| | | businessStatus: "", |
| | | sales_sources_id: "", |
| | | member_id: "", |
| | | country_id: "", |
| | | province_id: "", |
| | | city_id: "", |
| | | region_id: "", |
| | | address: "", |
| | | desc: "", |
| | | id: "" |
| | | } |
| | | infomation: {} |
| | | } |
| | | } |
| | | } |
| | |
| | | sales_sources_id: [{ required: true, message: "请选择商机来源", trigger: "change" }] |
| | | }, |
| | | businessSourceOptions: [], |
| | | ownerOptions: [ |
| | | { value: "1", label: "BOSS" }, |
| | | { value: "2", label: "Mia" }, |
| | | { value: "3", label: "财务" }, |
| | | { value: "4", label: "市场" }, |
| | | { value: "5", label: "系统管理员" }, |
| | | { value: "6", label: "销售" }, |
| | | { value: "7", label: "销售总监" } |
| | | ], |
| | | ownerOptions: [], |
| | | countryOptions: [], // 国家 |
| | | provinceOptions: [], // 省份 |
| | | cityOptions: [], // 城市 |
| | |
| | | created() { |
| | | this.getCommonData() |
| | | }, |
| | | mounted() { |
| | | this.setData() |
| | | }, |
| | | methods: { |
| | | getCommonData() { |
| | | getAllData() |
| | |
| | | this.provinceOptions = res.data.province |
| | | this.cityOptions = res.data.city |
| | | this.regionOptions = res.data.region |
| | | this.ownerOptions = res.data.member |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | |
| | | }, |
| | | // 编辑下拉框 |
| | | editDropdownBox() { |
| | | console.log("aaa") |
| | | this.editDropdownConfig.editVisible = true |
| | | this.editDropdownConfig.title = "商机来源" |
| | | }, |
| | | // 数据处理 |
| | | setData() { |
| | | this.editConfig.infomation.city_id = |
| | | this.editConfig.infomation.city_id === 0 ? "" : this.editConfig.infomation.city_id |
| | | this.editConfig.infomation.member_id = |
| | | this.editConfig.infomation.member_id === 0 ? "" : this.editConfig.infomation.member_id |
| | | this.editConfig.infomation.province_id = |
| | | this.editConfig.infomation.province_id === 0 ? "" : this.editConfig.infomation.province_id |
| | | this.editConfig.infomation.region_id = |
| | | this.editConfig.infomation.region_id === 0 ? "" : this.editConfig.infomation.region_id |
| | | this.editConfig.infomation.country_id = |
| | | this.editConfig.infomation.country_id === 0 ? "" : this.editConfig.infomation.country_id |
| | | } |
| | | } |
| | | } |
| | |
| | | addBtnClick() { |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "新建" |
| | | this.editSalesLeadConfig.infomation = {} |
| | | this.editSalesLeadConfig.infomation = { businessStatus: "新建" } |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "编辑" |
| | | this.editSalesLeadConfig.infomation = { ...row } |
| | | this.editSalesLeadConfig.infomation = { ...row, businessStatus: "新建" } |
| | | }, |
| | | // 导入 |
| | | importClitk() { |
New file |
| | |
| | | <template> |
| | | <div class="edit-selClient-box"> |
| | | <el-dialog |
| | | :title="'联系人'" |
| | | :visible.sync="editConfig.editVisible" |
| | | :width="dialogWidth" |
| | | :before-close="handleClose" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="bg-view"> |
| | | <div class="query-bg"> |
| | | <el-input placeholder="请输入内容" v-model="queryInput" size="mini" class="input-with-select"> |
| | | <el-select v-model="select" slot="prepend" placeholder="请选择" disabled> |
| | | <el-option label="全部字段" value="1"></el-option> |
| | | <el-option label="联系人姓名" value="2"></el-option> |
| | | <el-option label="联系人编号" value="3"></el-option> |
| | | <el-option label="客户名称" value="4"></el-option> |
| | | <el-option label="手机" value="5"></el-option> |
| | | </el-select> |
| | | </el-input> |
| | | <div class="btn"> |
| | | <el-button type="primary" size="mini" disabled>设置字段</el-button> |
| | | <el-button type="primary" size="mini" disabled>快速创建</el-button> |
| | | </div> |
| | | </div> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | size="mini" |
| | | v-loading="loading" |
| | | :header-cell-style="{ background: '#f7f7f7' }" |
| | | > |
| | | <el-table-column label="联系人姓名" prop="name" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <span class="sel-name" @click="selNameClick(scope.row)">{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="联系人编号" prop="number"></el-table-column> |
| | | <el-table-column label="客户名称" prop="client_name"></el-table-column> |
| | | <el-table-column label="手机" prop="phone"></el-table-column> |
| | | <div slot="empty"> |
| | | <el-empty :image-size="100"></el-empty> |
| | | </div> |
| | | </el-table> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <div class="remark">说明:支持多字段模糊查询,仅显示符合条件的前5条数据</div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getContactList } from "@/api/client/contacts" |
| | | export default { |
| | | name: "EditSelClientDialog", |
| | | props: { |
| | | editCommonConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: { |
| | | name: "", |
| | | color: "", |
| | | setDefault: "" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | components: {}, |
| | | computed: {}, |
| | | data() { |
| | | return { |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | queryInput: "", |
| | | select: "1", |
| | | tableData: [], |
| | | searchSelOptions: [], |
| | | loading: false |
| | | } |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | handleClose() { |
| | | this.editConfig.editVisible = false |
| | | }, |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | | await getContactList() |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | ...item, |
| | | client_name: item.Client.name |
| | | } |
| | | }) |
| | | this.tableData = list.slice(0, 5) || [] |
| | | } else { |
| | | this.tableData = [] |
| | | } |
| | | } else { |
| | | this.tableData = [] |
| | | } |
| | | this.loading = false |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | | this.tableData = [] |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | selNameClick(row) { |
| | | this.editConfig.editVisible = false |
| | | this.$emit("selClient", row, "contact") |
| | | }, |
| | | // 时间显示 |
| | | dateFormat(fmt, date) { |
| | | let ret = "" |
| | | date = new Date(date) |
| | | const opt = { |
| | | "Y+": date.getFullYear().toString(), // 年 |
| | | "m+": (date.getMonth() + 1).toString(), // 月 |
| | | "d+": date.getDate().toString(), // 日 |
| | | "H+": date.getHours().toString(), // 时 |
| | | "M+": date.getMinutes().toString(), // 分 |
| | | "S+": date.getSeconds().toString() // 秒 |
| | | // 有其他格式化字符需求可以继续添加,必须转化成字符串 |
| | | } |
| | | for (let k in opt) { |
| | | ret = new RegExp("(" + k + ")").exec(fmt) |
| | | if (ret) { |
| | | fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0")) |
| | | } |
| | | } |
| | | return fmt |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <!-- Add "scoped" attribute to limit CSS to this component only --> |
| | | <style lang="scss" scoped> |
| | | .bg-view { |
| | | margin: 10px; |
| | | .query-bg { |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-input { |
| | | width: 310px; |
| | | .el-select { |
| | | width: 100px; |
| | | } |
| | | } |
| | | .btn { |
| | | float: right; |
| | | } |
| | | } |
| | | } |
| | | .sel-name { |
| | | color: $color-primary; |
| | | cursor: pointer; |
| | | } |
| | | .dialog-footer { |
| | | height: 40px; |
| | | line-height: 40px; |
| | | color: red; |
| | | } |
| | | ::v-deep { |
| | | .input-with-select .el-input-group__prepend { |
| | | background-color: #fff; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | v-model="editConfig.infomation.client_name" |
| | | :fetch-suggestions="querySearchAsync" |
| | | value-key="name" |
| | | @select="handleSelectClient" |
| | | @select="handleSelectClient('client', $event)" |
| | | ></el-autocomplete> |
| | | <div class="common-select-btn" @click="selClientClick"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="联系人姓名" prop="contact_id"> |
| | | <div class="custom-name"> |
| | | <el-input v-model="editConfig.infomation.contact_id"></el-input> |
| | | <div class="common-select-btn"><i class="el-icon-circle-plus-outline" title="选择"></i></div> |
| | | <div class="common-select-btn"><i class="el-icon-edit" title="编辑"></i></div> |
| | | <el-autocomplete |
| | | v-model="editConfig.infomation.contact_name" |
| | | :fetch-suggestions="queryContactAsync" |
| | | value-key="name" |
| | | @select="handleSelectClient('contact', $event)" |
| | | ></el-autocomplete> |
| | | <div class="common-select-btn" @click="selClientClick('contact')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div class="common-select-btn" @click="clearupClient('contact')"> |
| | | <i class="el-icon-edit-outline" title="清除"></i> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | :edit-common-config="editSelectClientConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | <!-- 选择联系人 --> |
| | | <SelectContactDialog |
| | | v-if="editSelectContactConfig.editVisible" |
| | | :edit-common-config="editSelectContactConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import { getAllData } from "@/api/client/client" |
| | | import { getAddQuotation, getUpdateQuotation } from "@/api/sales/quotation" |
| | | import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" |
| | | import SelectContactDialog from "@/views/other/commonDialog/SelectContactDialog" |
| | | export default { |
| | | name: "QuotationDialog", |
| | | props: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | components: { SelectClientDialog }, |
| | | components: { SelectClientDialog, SelectContactDialog }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | | return this.$refs.searchCommonView.offsetHeight |
| | | }, |
| | | clientList() { |
| | | return this.$store.state.getClientName.clientList |
| | | }, |
| | | contactNamelist() { |
| | | return this.$store.state.getClientName.contactNamelist |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | } |
| | | }, |
| | | editSelectContactConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | }, |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | contactId: this.editCommonConfig.infomation.contact_id |
| | | } |
| | | }, |
| | | created() { |
| | | this.$store.dispatch("geClient") |
| | | this.$store.dispatch("geContact") |
| | | this.setTableForm() |
| | | this.getCommonData() |
| | | }, |
| | |
| | | let data = this.editConfig.infomation |
| | | let params = { |
| | | id: this.editConfig.title === "新建" ? 0 : data.id, |
| | | client_id: parseInt(data.client_id) || 0, |
| | | client_id: parseInt(this.clientId) || 0, |
| | | conditions: data.conditions || "", |
| | | contact_id: data.contact_id || 0, |
| | | contact_id: parseInt(this.contactId) || 0, |
| | | file: data.file || "", |
| | | member_id: data.member_id || 0, |
| | | number: data.number || "", |
| | |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants |
| | | cb(results) |
| | | }, |
| | | // 选择联系人姓名 |
| | | queryContactAsync(queryString, cb) { |
| | | var restaurants = this.contactNamelist |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants |
| | | cb(results) |
| | | }, |
| | | createStateFilter(queryString) { |
| | | return (state) => { |
| | | return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 |
| | | } |
| | | }, |
| | | handleSelectClient(item) { |
| | | this.editConfig.infomation.client_id = item.id |
| | | handleSelectClient(value, item) { |
| | | console.log(value) |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | } else { |
| | | this.contactId = item.id |
| | | } |
| | | }, |
| | | selClientClick() { |
| | | selClientClick(value) { |
| | | if (value === "client") { |
| | | this.editSelectClientConfig.editVisible = true |
| | | } else if (value === "contact") { |
| | | this.editSelectContactConfig.editVisible = true |
| | | } |
| | | }, |
| | | selClient(row) { |
| | | console.log(row) |
| | | selClient(row, value) { |
| | | console.log(value) |
| | | if (value === "contact") { |
| | | this.editConfig.infomation.contact_name = row.name |
| | | this.contactId = row.id |
| | | } else { |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.editConfig.infomation.client_id = row.id |
| | | this.clientId = row.id |
| | | } |
| | | }, |
| | | // 清除已选择用户 |
| | | clearupClient() { |
| | | clearupClient(value) { |
| | | if (value === "client") { |
| | | this.editConfig.infomation.client_name = "" |
| | | this.editConfig.infomation.client_id = 0 |
| | | this.clientId = 0 |
| | | } else { |
| | | this.editConfig.infomation.contact_name = "" |
| | | this.contactId = 0 |
| | | } |
| | | }, |
| | | // 添加附件 |
| | | addAnnexClick() {}, |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <!-- <el-col :span="12"> |
| | | <el-form-item label="微信订单状态" prop="wechatOrderStatus"> |
| | | <div class="common-select"> |
| | | <el-select |
| | |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | </div> |
| | | <!-- 收货信息 --> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="物流公司" prop="logisticsCompany"> |
| | | <el-input v-model="editConfig.infomation.addressee"></el-input> |
| | | <el-form-item label="物流公司" prop="logisticCompany"> |
| | | <el-input v-model="editConfig.infomation.logisticCompany"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="物流单号" prop="logisticsOddNumber"> |
| | | <el-input v-model="editConfig.infomation.phone"></el-input> |
| | | <el-form-item label="物流单号" prop="logisticNumber"> |
| | | <el-input v-model="editConfig.infomation.logisticNumber"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="物流费用" prop="logisticsCost"> |
| | | <el-input v-model="editConfig.infomation.addressee"></el-input> |
| | | <el-form-item label="物流费用" prop="logisticCost"> |
| | | <el-input v-model="editConfig.infomation.logisticCost"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | dialogWidth: "80%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | clientId: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | number: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | signTime: [{ required: true, message: "请选择", trigger: "change" }], |
| | | memberId: [{ required: true, message: "请选择负责人", trigger: "change" }] |
| | | // approvalOpinion: [{ required: true, message: "请输入", trigger: "blur" }] |
| | | }, |
| | | clientId: this.editCommonConfig.infomation.clientId, |
| | | memberOptions: [], |
| | | selSourceOrderOptions: [], |
| | | wechatOrderStatusOptions: [], // 微信订单状态 |
| | |
| | | salesDetails: { |
| | | address: data.address || "", |
| | | addressee: data.addressee || "", |
| | | clientId: parseInt(data.clientId) || 0, |
| | | clientId: parseInt(this.clientId), |
| | | conditions: data.conditions || "", |
| | | deliveryDate: data.deliveryDate || "", |
| | | memberId: data.memberId || 0, |
| | |
| | | saleChanceId: data.saleChanceId || 0, |
| | | saleType: data.saleType || 0, |
| | | signTime: data.signTime || "", |
| | | wechatOrderStatus: data.wechatOrderStatus || 0 |
| | | wechatOrderStatus: data.wechatOrderStatus || 0, |
| | | logisticCompany: data.logisticCompany || "", |
| | | logisticCost: parseInt(data.logisticCost) || 0, |
| | | logisticNumber: data.logisticNumber || "" |
| | | } |
| | | } |
| | | return params |
| | |
| | | } |
| | | }, |
| | | handleSelectClient(item) { |
| | | this.editConfig.infomation.client_id = item.id |
| | | this.clientId = item.id |
| | | }, |
| | | selClientClick() { |
| | | this.editSelectClientConfig.editVisible = true |
| | |
| | | selClient(row) { |
| | | console.log(row) |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.editConfig.infomation.client_id = row.id |
| | | this.clientId = row.id |
| | | }, |
| | | // 清除已选择用户 |
| | | clearupClient() { |