Merge branch 'dev' into songshankun/adjust-style
| | |
| | | padding: 0 5px; |
| | | } |
| | | .el-input__inner { |
| | | text-align: left; |
| | | // text-align: left; |
| | | text-align: center !important; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | } |
| | | this.searchSel = { value: "number", label: "单据编号" } |
| | | } else if (this.editConfig.title === "服务合同") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "客户名称", prop: "client_name" }, // 客户名称 |
| | | this.tableColumn = [ |
| | | { label: "客户名称", prop: "client_name", default: true }, // 客户名称 |
| | | { label: "服务合同编号", prop: "number", isClick: true }, // 服务合同编号 |
| | | { label: "负责人", prop: "member_name" }, // 负责人 |
| | | { label: "合计", prop: "total" }, // 合计 |
| | | { label: "签约日期", prop: "signTime", isTime: true }, // 签约日期 |
| | | { label: "合同状态", prop: "serviceContractStatus" } // 合同状态 |
| | | ] |
| | | this.showCol = ["客户名称", "服务合同编号", "负责人", "合计", "签约日期", "合同状态"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "number", label: "服务合同编号" } |
| | | } else if (this.editConfig.title === "销售明细单") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "客户名称", prop: "client_name" }, // 客户名称 |
| | | this.tableColumn = [ |
| | | { label: "客户名称", prop: "client_name", default: true }, // 客户名称 |
| | | { label: "订单编号", prop: "number", isClick: true }, // 订单编号 |
| | | { label: "签约日期", prop: "signTime" }, // 签约日期 |
| | | { label: "销售负责人", prop: "member_name" }, // 销售负责人 |
| | | { label: "合计", prop: "tptal" } // 合计 |
| | | ] |
| | | this.showCol = ["客户名称", "订单编号", "签约日期", "销售负责人", "合计"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "number", label: "订单编号" } |
| | | } else if (this.editConfig.title === "报价单") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "报价单号", prop: "number", isClick: true }, // 报价单号 |
| | | this.tableColumn = [ |
| | | { label: "报价单号", prop: "number", isClick: true, default: true }, // 报价单号 |
| | | { label: "销售负责人", prop: "member_name" } // 销售负责人 |
| | | ] |
| | | this.showCol = ["报价单号", "销售负责人"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "number", label: "报价单号" } |
| | | } else if (this.editConfig.title === "客户服务单") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "服务单编号", prop: "serviceNumber", isClick: true }, // 服务单编号 |
| | | this.tableColumn = [ |
| | | { label: "服务单编号", prop: "serviceNumber", isClick: true, default: true }, // 服务单编号 |
| | | { label: "主题", prop: "subject" }, // 主题 |
| | | { label: "服务方式", prop: "serviceType_name" }, // 服务方式 |
| | | { label: "服务人员", prop: "serviceMan_name" }, // 服务人员 |
| | |
| | | { label: "处理状态", prop: "serviceOrderStatus_name" }, // 处理状态 |
| | | { label: "客户签名", prop: "qianming" } // 客户签名 |
| | | ] |
| | | this.showCol = ["服务单编号", "主题", "服务方式", "服务人员", "优先级别", "处理状态", "客户签名"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "serviceNumber", label: "服务单编号" } |
| | | } else if (this.editConfig.title === "产品名称") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "产品名称", prop: "name", isClick: true }, |
| | | this.tableColumn = [ |
| | | { label: "产品名称", prop: "name", isClick: true, default: true }, // 产品名称 |
| | | { label: "产品编号", prop: "number" } |
| | | ] |
| | | this.showCol = ["产品名称", "产品编号"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "name", label: "产品名称" } |
| | | } else if (this.editConfig.title === "销售退货单") { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | tableColumn: [ |
| | | { label: "退货单编号", prop: "number", isClick: true }, |
| | | this.tableColumn = [ |
| | | { label: "退货单编号", prop: "number", isClick: true, default: true }, // 退货单编号 |
| | | { label: "退货日期", prop: "returnDate" }, |
| | | { label: "状态", prop: "salesReturnStatus_name" }, |
| | | { label: "退入仓库", prop: "repository" } |
| | | ] |
| | | this.showCol = ["退货单编号", "退货日期", "状态", "退入仓库"] |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | | tableColumn: this.setColumnVisible(this.showCol) |
| | | } |
| | | this.searchSel = { value: "number", label: "销售退货单编号" } |
| | | } |
| | |
| | | :model="editConfig.infomation" |
| | | :rules="rules" |
| | | label-position="right" |
| | | label-width="308px" |
| | | label-width="30%" |
| | | size="mini" |
| | | style="height: 60vh; overflow-x: hidden" |
| | | > |
| | |
| | | <el-form-item label="客户名称" prop="client_name"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.client_name" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="退款单编号" prop="number"> |
| | | <el-input v-model="editConfig.infomation.number"></el-input> |
| | | <el-input v-model="editConfig.infomation.number" |
| | | style="width:100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售退货单" prop="sale_return_nunber"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.sale_return_nunber" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售负责人" prop="memberId"> |
| | | <el-select |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.memberId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 63%" |
| | | > |
| | | <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | </el-option> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="退款日期" prop="refundDate"> |
| | | <el-date-picker |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.refundDate" |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | |
| | | <el-form-item label="付款方式" prop="paymentTypeId"> |
| | | <div class="common-select"> |
| | | <el-select |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.paymentTypeId" |
| | | placeholder="请选择" |
| | | class="common-select-sel" |
| | |
| | | <el-form-item label="账户" prop="bankAccountId"> |
| | | <div class="common-select"> |
| | | <el-select |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.bankAccountId" |
| | | placeholder="请选择" |
| | | class="common-select-sel" |
| | |
| | | <el-form-item label="是否开票" prop="isInvoice"> |
| | | <div class="common-select"> |
| | | <el-select |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.isInvoice" |
| | | placeholder="请选择" |
| | | class="common-select-sel" |
| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="退款原因" prop="reason"> |
| | | <el-form-item label="退款原因" prop="reason" label-width="15%"> |
| | | <el-input |
| | | style="width:100%" |
| | | type="textarea" |
| | | :autosize="{ minRows: 2 }" |
| | | v-model="editConfig.infomation.reason" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogWidth: "80%", |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | |
| | | > |
| | | <template slot="leftButton"> |
| | | <el-button size="small" type="primary" @click="addBtnClick">新建</el-button> |
| | | <el-button size="small" @click="delClick">删除</el-button> |
| | | <!-- <el-button size="small" @click="delClick">删除</el-button> --> |
| | | </template> |
| | | </CommonSearch> |
| | | </div> |
| | |
| | | <TableCommonView |
| | | ref="tableListRef" |
| | | :table-list="tableList" |
| | | :select-box="!isDetail" |
| | | @selClientClick="selClientClick" |
| | | @selCommonClick="selCommonClick" |
| | | @getSelectArray="getSelectArray" |
| | |
| | | <el-table-column label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button> |
| | | <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> --> |
| | | <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | |
| | | :model="editConfig.infomation" |
| | | :rules="rules" |
| | | label-position="right" |
| | | label-width="308px" |
| | | label-width="30%" |
| | | size="mini" |
| | | style="height: 60vh; overflow-x: hidden" |
| | | > |
| | |
| | | <el-form-item label="客户名称" prop="client_name"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | style="width:100%;" |
| | | v-model="editConfig.infomation.client_name" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="订单编号" prop="number"> |
| | | <el-input v-model="editConfig.infomation.number"></el-input> |
| | | <el-input v-model="editConfig.infomation.number" style="width:100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售机会" prop="saleChanceId"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.sale_chance_name" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | | placeholder="选择日期" |
| | | style="width:100%" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售负责人" prop="memberId"> |
| | | <el-select |
| | | |
| | | v-model="editConfig.infomation.memberId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 63%" |
| | | style="width: 100%" |
| | | > |
| | | <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | </el-option> |
| | |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | | placeholder="选择日期" |
| | | style="width:100%" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="editConfig.infomation.phone"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="收货地址" prop="address"> |
| | | <el-input |
| | | style="width:100%" |
| | | type="textarea" |
| | | :autosize="{ minRows: 2 }" |
| | | v-model="editConfig.infomation.address" |
| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="条款与条件" prop="conditions"> |
| | | <el-form-item label="条款与条件" prop="conditions" label-width="15%"> |
| | | <el-input |
| | | style="width:100%;" |
| | | type="textarea" |
| | | :autosize="{ minRows: 4 }" |
| | | v-model="editConfig.infomation.conditions" |
| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-form-item label="备注" prop="remark" label-width="15%"> |
| | | <el-input |
| | | type="textarea" |
| | | :autosize="{ minRows: 2 }" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogWidth: "80%", |
| | | dialogWidth: "60%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | |
| | | handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | this.editConfig.infomation.client_name = item.name |
| | | } else if (value === "chance") { |
| | | this.saleChanceId = item.id |
| | | this.editConfig.infomation.client_name = item.name |
| | | } |
| | | }, |
| | | selClientClick(value) { |
| | |
| | | <style lang="scss" scoped> |
| | | ::v-deep { |
| | | .iframe-dialog .el-dialog__body { |
| | | .el-form{ |
| | | .el-form-item{ |
| | | width: 100%; |
| | | } |
| | | } |
| | | .basic-info { |
| | | .basic-info-title { |
| | | background-color: #f4f8fe; |
| | |
| | | > |
| | | <template slot="leftButton"> |
| | | <el-button size="small" type="primary" @click="addBtnClick">新建</el-button> |
| | | <el-button size="small" @click="delClick">删除</el-button> |
| | | <!-- <el-button size="small" @click="delClick">删除</el-button> --> |
| | | </template> |
| | | </CommonSearch> |
| | | </div> |
| | |
| | | ref="tableListRef" |
| | | :show-summary="showSummary" |
| | | :table-list="tableList" |
| | | :select-box="!isDetail" |
| | | @selClientClick="selClientClick" |
| | | @selCommonClick="selCommonClick" |
| | | @getSelectArray="getSelectArray" |
| | |
| | | <el-table-column label="操作" width="90"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button> |
| | | <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> --> |
| | | <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |
| | |
| | | :model="editConfig.infomation" |
| | | :rules="rules" |
| | | label-position="right" |
| | | label-width="308px" |
| | | label-width="30%" |
| | | size="mini" |
| | | style="height: 60vh; overflow-x: hidden" |
| | | > |
| | |
| | | <el-form-item label="客户名称" prop="client_name"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.client_name" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售退货单编号" prop="number"> |
| | | <el-input v-model="editConfig.infomation.number"></el-input> |
| | | <el-input v-model="editConfig.infomation.number" style="width:100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="合同订单"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.salesDetailNumber" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="退入仓库" prop="repository"> |
| | | <el-select v-model="editConfig.infomation.repository" size="mini" style="width: 63%"> |
| | | <el-select v-model="editConfig.infomation.repository" size="mini" style="width: 100%"> |
| | | <el-option v-for="item in repositoryOptions" :key="item.id" :label="item.name" :value="item.name"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | v-model="editConfig.infomation.memberId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 63%" |
| | | style="width: 100%" |
| | | > |
| | | <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | </el-option> |
| | |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | | placeholder="选择日期" |
| | | style="width:100%" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="状态" prop="salesReturnStatusId"> |
| | | <div class="common-select"> |
| | | <el-select |
| | | style="width:100%" |
| | | v-model="editConfig.infomation.salesReturnStatusId" |
| | | placeholder="请选择" |
| | | class="common-select-sel" |
| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="退货原因" prop="reason"> |
| | | <el-form-item label="退货原因" prop="reason" label-width="15%"> |
| | | <el-input |
| | | style="width:100%" |
| | | type="textarea" |
| | | :autosize="{ minRows: 2 }" |
| | | v-model="editConfig.infomation.reason" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogWidth: "80%", |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入", trigger: "blur" }], |
| | |
| | | > |
| | | <template slot="leftButton"> |
| | | <el-button size="small" type="primary" @click="addBtnClick">新建</el-button> |
| | | <el-button size="small" @click="delClick">删除</el-button> |
| | | <!-- <el-button size="small" @click="delClick">删除</el-button> --> |
| | | </template> |
| | | </CommonSearch> |
| | | </div> |
| | |
| | | <TableCommonView |
| | | ref="tableListRef" |
| | | :table-list="tableList" |
| | | :select-box="!isDetail" |
| | | @selClientClick="selClientClick" |
| | | @selCommonClick="selCommonClick" |
| | | @getSelectArray="getSelectArray" |
| | |
| | | <el-table-column label="操作" width="90"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button> |
| | | <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> --> |
| | | <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | | selectIndex: true, |
| | | tableInfomation: [], |
| | | allcol: [], |
| | | showcol: this.showCol, |