销售发票列表页显示问题及合同管理、服务管理模块必填项增加
| | |
| | | </div> |
| | | <TableCommonView |
| | | ref="tableListRef" |
| | | v-loading="loading" |
| | | :table-list="tableList" |
| | | :select-box="!isDetail" |
| | | @selClientClick="selClientClick" |
| | | @selCommonClick="selCommonClick" |
| | | @getSelectArray="getSelectArray" |
| | | @selTableCol="selTableCol" |
| | | > |
| | | <!-- <template slot="tableButton"> |
| | | <el-table-column label="操作" width="60" fixed="right"> |
| | |
| | | }, |
| | | search_map: {}, |
| | | keyword: "", |
| | | keywordType: "" |
| | | keywordType: "", |
| | | tableColumn: [ |
| | | { label: "发票编号", prop: "invoiceNumber", default: true }, |
| | | { label: "主题", prop: "subject" }, |
| | | { label: "客户名称", prop: "client_name" }, |
| | | { label: "票据类型", prop: "invoiceType_name" }, |
| | | { label: "开票日期", prop: "invoiceDate" }, |
| | | { label: "销售负责人", prop: "principalId" }, |
| | | { label: "产品名称", prop: "name", isProductName: true }, |
| | | { label: "数量", prop: "amount", isProductAmount: true }, |
| | | { label: "含税单价", prop: "price", isProductPrice: true }, |
| | | { label: "价税合计", prop: "total", isProductTotal: true } |
| | | ], |
| | | showCol: [ |
| | | "发票编号", |
| | | "主题", |
| | | "客户名称", |
| | | "票据类型", |
| | | "开票日期", |
| | | "销售负责人", |
| | | "产品名称", |
| | | "数量", |
| | | "含税单价", |
| | | "价税合计" |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "发票编号", prop: "invoiceNumber" }, |
| | | { label: "主题", prop: "subject" }, |
| | | { label: "客户名称", prop: "client_name" }, |
| | | { label: "票据类型", prop: "invoiceType_name" }, |
| | | { label: "开票日期", prop: "invoiceDate" }, |
| | | { label: "销售负责人", prop: "principalId" }, |
| | | { label: "产品名称", prop: "name", isProductName: true }, |
| | | { label: "数量", prop: "amount", isProductAmount: true }, |
| | | { label: "含税单价", prop: "price", isProductPrice: true }, |
| | | { label: "价税合计", prop: "total", isProductTotal: true } |
| | | ] |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.tableList.allcol = this.tableList.tableColumn.filter((ele) => !ele.default).map((ele) => ele.label) |
| | | this.searchOptions = [] |
| | | for (let i = 0; i < this.tableList.tableColumn.length; i++) { |
| | | const label = this.tableList.tableColumn[i].label |
| | |
| | | this.searchOptions.push({ value: value, label: label }) |
| | | } |
| | | }, |
| | | setColumnVisible(showCol) { |
| | | return this.tableColumn.map((ele) => { |
| | | return { |
| | | ...ele, |
| | | isShowColumn: showCol.includes(ele.label) |
| | | } |
| | | }) |
| | | }, |
| | | selTableCol(val) { |
| | | this.showcol = val |
| | | this.tableList.tableColumn = this.setColumnVisible(val) |
| | | }, |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | number: [{ required: true, message: "请输入单据编号", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | member_id: [{ required: true, message: "请选择", trigger: "change" }] |
| | | }, |
| | | memberOptions: [], |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | serviceNumber: [{ required: true, message: "请输入服务单编号", trigger: "blur" }], |
| | | // faultTypeId: [{ required: true, message: "请选择故障类别", trigger: "change" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | subject: [{ required: true, message: "请输入主题", trigger: "blur" }], |
| | | // productCategory: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | | serviceManId: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入服务合同编号", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | signTime: [{ required: true, message: "请选择", trigger: "change" }], |
| | | memberId: [{ required: true, message: "请选择负责人", trigger: "change" }] |
| | | }, |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入回访单单编号", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | service_number: [{ required: true, message: "请选择客户服务单", trigger: "change" }], |
| | | memberId: [{ required: true, message: "请选择", trigger: "change" }] |
| | | }, |
| | | satisfactionOptions: [], // 满意度 |