|
|
@@ -4,28 +4,37 @@
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item :to="{ path: '/oilsupplier/goodsaptitude' }">审验对比</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
- <el-card class="box-card" style="height: calc(100vh - 115px);" v-loading="loading">
|
|
|
+ <el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
<div slot="header">
|
|
|
<span>
|
|
|
- <i class="el-icon-document-copy"></i> 审验对比
|
|
|
+ <i class="el-icon-document-copy"></i> 物资类审验对比
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-upload multiple action="" ref="refuploadattach"
|
|
|
- :http-request="uploadrequest" :before-upload="beforeAvatarUpload">
|
|
|
- <el-button style="margin-left:10px; margin-top: -4px;" size="small" type="primary">点击上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-button size="small" style="margin-left:10px; margin-top: -4px;" type="primary" @click="uploadExcel()">审验对比</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-upload multiple action="" ref="refuploadattach"
|
|
|
+ :http-request="uploadrequest" :before-upload="beforeAvatarUpload">
|
|
|
+ <el-button style="margin-left:10px; margin-top: -4px;" size="small" type="primary">点击上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-button size="small" style="margin-left:10px; margin-top: -4px;" type="primary" @click="uploadExcel()">审验对比</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</span>
|
|
|
+ <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
+
|
|
|
+ <el-form-item label="分类编码">
|
|
|
+ <el-input size="mini" v-model="formData.Code" style="width:180px" placeholder="请输入分类编码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="供应商名称">
|
|
|
+ <el-input size="mini" v-model="formData.CompanyName" style="width:180px" placeholder="请输入供应商名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
</div>
|
|
|
- <el-table id="rebateSetTable" :data="entityList" size="mini" v-loading="loading" border height="calc(100vh - 243px)"
|
|
|
- style="width: 100%" :v-loading="importloading" :row-class-name="compareline">
|
|
|
- <el-table-column label="分类编码" prop="SortCoding" align="center"></el-table-column>
|
|
|
+ <el-table v-loading="importloading" id="rebateSetTable" :data="entityList" size="mini" border height="calc(100vh - 243px)"
|
|
|
+ style="width: 100%" :row-class-name="compareline">
|
|
|
+ <el-table-column label="分类编码" sortable prop="SortCoding" align="center"></el-table-column>
|
|
|
<el-table-column label="分类名称" prop="SortName" align="center"></el-table-column>
|
|
|
<el-table-column label="级别" prop="Level" align="center"></el-table-column>
|
|
|
<el-table-column label="供应商名称" prop="SupplierName" align="center"></el-table-column>
|
|
|
@@ -59,6 +68,10 @@
|
|
|
loading: false,
|
|
|
entityList:[],
|
|
|
Excelurl: '',
|
|
|
+ formData: {
|
|
|
+ Code:'',
|
|
|
+ CompanyName:''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
@@ -66,15 +79,24 @@
|
|
|
},
|
|
|
methods: {
|
|
|
uploadExcel () {
|
|
|
- this.importloading = true
|
|
|
+
|
|
|
let params = {
|
|
|
- ExcelUrl: this.Excelurl
|
|
|
+ ExcelUrl: this.Excelurl,
|
|
|
+ Code:this.formData.Code,
|
|
|
+ CompanyName:this.formData.CompanyName
|
|
|
}
|
|
|
if(this.Excelurl != ''){
|
|
|
+ this.importloading = true
|
|
|
api.oilcompare(params, this.$axios).then(res => {
|
|
|
if (res.data.items) {
|
|
|
this.entityList = res.data.items
|
|
|
this.importloading = false
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '查无数据!'
|
|
|
+ })
|
|
|
+ this.importloading = false
|
|
|
}
|
|
|
})
|
|
|
}else if (this.Excelurl == '') {
|
|
|
@@ -82,6 +104,7 @@
|
|
|
type: 'warning',
|
|
|
message: '获取文件地址错误!'
|
|
|
})
|
|
|
+ this.importloading = false
|
|
|
}
|
|
|
},
|
|
|
uploadrequest (option) {
|
|
|
@@ -124,6 +147,9 @@
|
|
|
if (row.Diff == "1") {
|
|
|
return 'warning-row'
|
|
|
}
|
|
|
+ if(row.Diff == "0"){
|
|
|
+ return 'correct-row'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -137,4 +163,13 @@
|
|
|
.el-table .warning-row {
|
|
|
background: #FFCCCC;
|
|
|
}
|
|
|
+ .el-table .el-table__body .warning-row:hover>td {
|
|
|
+ background: #FFCCCC !important;
|
|
|
+ }
|
|
|
+ .el-table .correct-row {
|
|
|
+ background: #CCFFCC;
|
|
|
+ }
|
|
|
+ .el-table .el-table__body .correct-row:hover>td {
|
|
|
+ background: #CCFFCC !important;
|
|
|
+ }
|
|
|
</style>
|