| | |
| | | <template> |
| | | <div style="padding: 10px; position: relative;"> |
| | | <div style="padding: 10px;position: relative;"> |
| | | <el-card style="margin-bottom: 10px;"> |
| | | <el-form :inline="true" :model="queryParams" ref="queryForm" class="mb8"> |
| | | <el-form-item label="客户代码" prop="HNumber"> |
| | |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-select v-model="queryParams.ColName" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title" |
| | | :value="item.field"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | <el-select v-model="queryParams.Comparator" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-select v-model="queryParams.ColName1" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title" |
| | | :value="item.field"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | <el-select v-model="queryParams.Comparator1" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-select v-model="queryParams.ColName2" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title" |
| | | :value="item.field"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | <el-select v-model="queryParams.Comparator2" placeholder="请选择" style="width: 100%"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | HNumber: null, |
| | | HName: null, |
| | | HNumber2: null, |
| | | ColName: "0", |
| | | ColName1: "0", |
| | | ColName2: "0", |
| | | Comparator: "0", |
| | | Comparator1: "0", |
| | | Comparator2: "0", |
| | | ColName: "", |
| | | ColName1: "", |
| | | ColName2: "", |
| | | Comparator: "", |
| | | Comparator1: "", |
| | | Comparator2: "", |
| | | ColContent: "", |
| | | ColContent1: "", |
| | | ColContent2: "", |
| | |
| | | title: "导入", |
| | | isUploading: false, |
| | | updateSupport: 0, |
| | | url: "http://47.96.97.237/API/Gy_Customer/Gy_Customer_Excel", |
| | | url: "", |
| | | }, |
| | | uploadData: [], |
| | | uploadTableLoading: false, |
| | | |
| | | baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/", |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/", |
| | | user: "admin", |
| | | }; |
| | | }, |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.upload.url = this.$baseUrl + "Gy_Customer/Gy_Customer_Excel"; |
| | | this.fetchData(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios |
| | | .get( |
| | | "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038" |
| | | ) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.user = data.Czymc; |
| | | |
| | | this.user = sessionStorage["HUserName"]; |
| | | this.getTreeData(); |
| | | this.getList(); |
| | | this.getDefaultFilterScheme(); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | getTreeData() { |
| | | axios |
| | | .get(this.baseURL + "/Gy_BadReason/Gy_CusTypeTreeListByLevel") |
| | | .get(this.$baseUrl + "/Gy_BadReason/Gy_CusTypeTreeListByLevel") |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.treeData = JSON.parse(response.data.data); |
| | |
| | | console.log(this.page); |
| | | console.log(this.pageSize); |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/page", { |
| | | .get(this.$baseUrl + "/Gy_Customer/page", { |
| | | params: { |
| | | sWhere: this.sWhere, |
| | | user: this.user, |
| | | page: 1, |
| | | size: this.pageSize, |
| | | Organization: '' |
| | | Organization: sessionStorage["Organization"] |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | } |
| | | |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/Gy_CustomerViewApi", { |
| | | .get(this.$baseUrl + "/Gy_Customer/Gy_CustomerViewApi", { |
| | | params: { |
| | | Number: this.queryParams.HNumber2, |
| | | Type: 'KH' |
| | |
| | | |
| | | handleExport() { |
| | | axios |
| | | .get(this.baseURL + "/LMES/getReportByModRightNameCheck", { |
| | | .get(this.$baseUrl + "/LMES/getReportByModRightNameCheck", { |
| | | params: { |
| | | ModRightNameCheck: "Gy_Customer_ExportExcel", |
| | | user: this.user |
| | |
| | | .confirm("确认要删除吗,删除后不能恢复") |
| | | .then(() => { |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/Delete_Json", { |
| | | .get(this.$baseUrl + "/Gy_Customer/Delete_Json", { |
| | | params: { |
| | | HItemID: this.selectedRow.HItemID, |
| | | User: this.user, |
| | |
| | | } |
| | | |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/AuditGy_Customer", { |
| | | .get(this.$baseUrl + "/Gy_Customer/AuditGy_Customer", { |
| | | params: { |
| | | HInterID: this.selectedRow.HItemID, |
| | | IsAudit: isAudit, |
| | |
| | | return; |
| | | } |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/StopGy_Customer", { |
| | | .get(this.$baseUrl + "/Gy_Customer/StopGy_Customer", { |
| | | params: { |
| | | HInterID: this.selectedRow.HItemID, |
| | | IsStop: isStop, |
| | |
| | | }, |
| | | |
| | | handleRefresh() { |
| | | if (this.$refs.tableData && this.$refs.tableData.clearSelection) { |
| | | this.$refs.tableData.clearSelection(); |
| | | } |
| | | this.selectedRow = null; |
| | | this.ids = []; |
| | | this.single = true; |
| | | this.multiple = true; |
| | | this.getList(); |
| | | }, |
| | | |
| | |
| | | getRelationUserData(HCusID) { |
| | | this.relationLoading = true; |
| | | axios |
| | | .get(this.baseURL + "/Gy_Customer/RelationUserlist", { |
| | | .get(this.$baseUrl + "/Gy_Customer/RelationUserlist", { |
| | | params: { HCusID: HCusID } |
| | | }) |
| | | .then((response) => { |
| | |
| | | |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | return { background: "#ecf5ff" }; |
| | | return { }; |
| | | } |
| | | }, |
| | | |
| | |
| | | var sMainSub = JSON.stringify(this.uploadData) + "&和" + this.user; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Customer/Gy_Customer_btnSave", |
| | | url: this.$baseUrl + "/Gy_Customer/Gy_Customer_btnSave", |
| | | data: { |
| | | sMainSub: sMainSub, |
| | | }, |
| | |
| | | .filter-collapse { |
| | | margin-top: 10px; |
| | | } |
| | | </style> |
| | | </style> |