|
|
@@ -7,7 +7,7 @@
|
|
|
<el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
<div slot="header">
|
|
|
<span>
|
|
|
- <i class="icon icon-table2"></i> 基建类待入库列表
|
|
|
+ <i class="icon icon-table2"></i> 基建类已入库列表
|
|
|
</span>
|
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
<el-form-item label="上报时间">
|
|
|
@@ -279,9 +279,9 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import { mapGetters } from 'vuex';
|
|
|
- import api from '@/api/oilsupplier/supplier';
|
|
|
- import certApi from '@/api/oilsupplier/suppliercert'
|
|
|
+ import { mapGetters } from 'vuex'
|
|
|
+import api from '@/api/oilsupplier/supplier'
|
|
|
+import certApi from '@/api/oilsupplier/suppliercert'
|
|
|
|
|
|
export default {
|
|
|
computed: {
|
|
|
@@ -291,95 +291,95 @@
|
|
|
},
|
|
|
name: 'oilsupplier',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
dialogVisible: false,
|
|
|
- //列表数据
|
|
|
- countryoptions: [],
|
|
|
+ // 列表数据
|
|
|
+ countryoptions: [],
|
|
|
CityAry: [],
|
|
|
- LinkCityAry:[],
|
|
|
+ LinkCityAry: [],
|
|
|
countryprops: {
|
|
|
- value: 'adcode',
|
|
|
- label: 'name',
|
|
|
- children: 'districts'
|
|
|
+ value: 'adcode',
|
|
|
+ label: 'name',
|
|
|
+ children: 'districts'
|
|
|
},
|
|
|
- //列表数据
|
|
|
+ // 列表数据
|
|
|
entityList: [],
|
|
|
- OperTypeOptions:[],
|
|
|
- UnitRelationOptions:[],
|
|
|
- countryListOptions:[],
|
|
|
+ OperTypeOptions: [],
|
|
|
+ UnitRelationOptions: [],
|
|
|
+ countryListOptions: [],
|
|
|
CompanyTypeOptions: [],
|
|
|
InOptions: [],
|
|
|
- ManagementUnitOptions:[],
|
|
|
+ ManagementUnitOptions: [],
|
|
|
dictData: null,
|
|
|
- //分页参数
|
|
|
+ // 分页参数
|
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
|
- //列表排序
|
|
|
+ // 列表排序
|
|
|
Column: {
|
|
|
Order: '',
|
|
|
Prop: ''
|
|
|
},
|
|
|
- //查询时间
|
|
|
+ // 查询时间
|
|
|
CreateOn: [new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()],
|
|
|
- //查询项
|
|
|
+ // 查询项
|
|
|
searchFormReset: {},
|
|
|
searchForm: {
|
|
|
Id: '',
|
|
|
SupplierName: '',
|
|
|
- OperType:'',
|
|
|
- SpecTypeCode:'',
|
|
|
- Country:'',
|
|
|
- InStyle:'',
|
|
|
- MgrUnit:'',
|
|
|
- PACNumber:'',
|
|
|
- CommercialNo:'',
|
|
|
- Province:'',
|
|
|
+ OperType: '',
|
|
|
+ SpecTypeCode: '',
|
|
|
+ Country: '',
|
|
|
+ InStyle: '',
|
|
|
+ MgrUnit: '',
|
|
|
+ PACNumber: '',
|
|
|
+ CommercialNo: '',
|
|
|
+ Province: '',
|
|
|
City: '',
|
|
|
- Street:'',
|
|
|
- Address:'',
|
|
|
- LinkProvince:'',
|
|
|
- LinkCity:'',
|
|
|
- LinkStreet:'',
|
|
|
- LinkAddress:'',
|
|
|
- LegalPerson:'',
|
|
|
- ContactName:'',
|
|
|
- CompanyType:'',
|
|
|
- SetupTime:'',
|
|
|
- RegCapital1:'',
|
|
|
- RegCapital2:'',
|
|
|
- BusinessScope:'',
|
|
|
+ Street: '',
|
|
|
+ Address: '',
|
|
|
+ LinkProvince: '',
|
|
|
+ LinkCity: '',
|
|
|
+ LinkStreet: '',
|
|
|
+ LinkAddress: '',
|
|
|
+ LegalPerson: '',
|
|
|
+ ContactName: '',
|
|
|
+ CompanyType: '',
|
|
|
+ SetupTime: '',
|
|
|
+ RegCapital1: '',
|
|
|
+ RegCapital2: '',
|
|
|
+ BusinessScope: ''
|
|
|
},
|
|
|
tableColumns: [
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "Id",
|
|
|
label: '',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
},*/
|
|
|
{
|
|
|
- prop: "AccessCardNo",
|
|
|
+ prop: 'AccessCardNo',
|
|
|
label: '准入证编号',
|
|
|
width: 240,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "SupplierTypeName",
|
|
|
+ prop: 'SupplierTypeName',
|
|
|
label: '准入类别',
|
|
|
width: 130,
|
|
|
sort: true
|
|
|
},
|
|
|
{
|
|
|
- prop: "InFlag",
|
|
|
+ prop: 'InFlag',
|
|
|
label: '准入标识',
|
|
|
width: 110,
|
|
|
sort: true
|
|
|
},
|
|
|
{
|
|
|
- prop: "SupplierName",
|
|
|
+ prop: 'SupplierName',
|
|
|
label: '企业名称',
|
|
|
width: 240,
|
|
|
sort: true
|
|
|
@@ -397,23 +397,23 @@
|
|
|
label: '级别',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
- },*/
|
|
|
+ }, */
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "MgrUnit",
|
|
|
label: '管理单位',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
},*/
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "OperType",
|
|
|
label: '经营方式',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
},*/
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "Country",
|
|
|
label: '国家',
|
|
|
width: 100,
|
|
|
@@ -435,13 +435,13 @@
|
|
|
},*/
|
|
|
|
|
|
{
|
|
|
- prop: "CommercialNo",
|
|
|
+ prop: 'CommercialNo',
|
|
|
label: '工商注册号',
|
|
|
width: 240,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "OrganCode",
|
|
|
label: '组织机构代码',
|
|
|
width: 100,
|
|
|
@@ -449,7 +449,7 @@
|
|
|
},*/
|
|
|
|
|
|
{
|
|
|
- prop: "CountryTaxNo",
|
|
|
+ prop: 'CountryTaxNo',
|
|
|
label: '税务登记证编号',
|
|
|
width: 240,
|
|
|
sort: true
|
|
|
@@ -460,16 +460,16 @@
|
|
|
label: '税务登记证地税编号',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
- },*/
|
|
|
+ }, */
|
|
|
|
|
|
{
|
|
|
- prop: "Address",
|
|
|
+ prop: 'Address',
|
|
|
label: '单位地址',
|
|
|
width: 280,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "Province",
|
|
|
label: '省直辖市',
|
|
|
width: 200,
|
|
|
@@ -586,114 +586,114 @@
|
|
|
label: '行业类别名称',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
- },*/
|
|
|
+ }, */
|
|
|
|
|
|
{
|
|
|
- prop: "RegCapital",
|
|
|
+ prop: 'RegCapital',
|
|
|
label: '注册资本',
|
|
|
width: 150,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "Currency",
|
|
|
+ prop: 'Currency',
|
|
|
label: '币种',
|
|
|
width: 100,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "ContactName",
|
|
|
+ prop: 'ContactName',
|
|
|
label: '联系人姓名',
|
|
|
width: 140,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "CompanyType",
|
|
|
+ prop: 'CompanyType',
|
|
|
label: '公司类型',
|
|
|
width: 150,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "SetupTime",
|
|
|
+ prop: 'SetupTime',
|
|
|
label: '成立时间',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "DepositBank",
|
|
|
+ prop: 'DepositBank',
|
|
|
label: '开户银行',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "BankAccount",
|
|
|
+ prop: 'BankAccount',
|
|
|
label: '银行账号',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "EMail",
|
|
|
+ prop: 'EMail',
|
|
|
label: '电子邮箱',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "BankCreditRating",
|
|
|
+ prop: 'BankCreditRating',
|
|
|
label: '银行信用等级',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "Mobile",
|
|
|
+ prop: 'Mobile',
|
|
|
label: '移动电话',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "Telphone",
|
|
|
+ prop: 'Telphone',
|
|
|
label: '固定电话',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "Fax",
|
|
|
+ prop: 'Fax',
|
|
|
label: '传真',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "CompanyTel",
|
|
|
+ prop: 'CompanyTel',
|
|
|
label: '公司电话',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "QQ",
|
|
|
+ prop: 'QQ',
|
|
|
label: 'QQ号码',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "CompanyUrl",
|
|
|
+ prop: 'CompanyUrl',
|
|
|
label: '公司网址',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "SpecSupplier",
|
|
|
label: '是否特殊业务供应商(可不招标)',
|
|
|
width: 100,
|
|
|
@@ -715,7 +715,7 @@
|
|
|
},*/
|
|
|
|
|
|
{
|
|
|
- prop: "Remark",
|
|
|
+ prop: 'Remark',
|
|
|
label: '备注',
|
|
|
width: 220,
|
|
|
sort: true
|
|
|
@@ -725,15 +725,15 @@
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- //查询条件初始值备份
|
|
|
- Object.assign(this.searchFormReset, this.searchForm);
|
|
|
- //查询列表
|
|
|
- this.initDatas();
|
|
|
- this.getDictOptions()
|
|
|
+ // 查询条件初始值备份
|
|
|
+ Object.assign(this.searchFormReset, this.searchForm)
|
|
|
+ //查询列表
|
|
|
+ this.initDatas()
|
|
|
+ this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
- initDatas() {
|
|
|
- //分页及列表条件
|
|
|
+ initDatas () {
|
|
|
+ // 分页及列表条件
|
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
|
@@ -744,16 +744,16 @@
|
|
|
}
|
|
|
let myCreateOn = []
|
|
|
// 解析时间
|
|
|
- if (this.CreateOn !=null && this.CreateOn.length == 2) {
|
|
|
+ if (this.CreateOn != null && this.CreateOn.length == 2) {
|
|
|
this.CreateOn[1].setHours(23)
|
|
|
this.CreateOn[1].setMinutes(59)
|
|
|
this.CreateOn[1].setSeconds(59)
|
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
}
|
|
|
- //查询条件
|
|
|
+ // 查询条件
|
|
|
Object.assign(params, this.searchForm)
|
|
|
- //访问接口
|
|
|
+ // 访问接口
|
|
|
api.getStoreList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.items
|
|
|
this.currentItemCount = res.data.currentItemCount
|
|
|
@@ -762,31 +762,30 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
- this.dictData = res.data.items
|
|
|
- console.log(this.dictData)
|
|
|
- this.OperTypeOptions = this.dictData['OperType']
|
|
|
- this.UnitRelationOptions = this.dictData['UnitRelation']
|
|
|
- this.InOptions = this.dictData['InOptions']
|
|
|
- this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
- this.getCountryList(this.dictData['CountryList'])
|
|
|
- this.ManagementUnitOptions=this.dictData['ManagementUnit']
|
|
|
- this.getCityList(this.dictData['GaodeMapChinaAreas'])
|
|
|
-
|
|
|
+ this.dictData = res.data.items
|
|
|
+ console.log(this.dictData)
|
|
|
+ this.OperTypeOptions = this.dictData['OperType']
|
|
|
+ this.UnitRelationOptions = this.dictData['UnitRelation']
|
|
|
+ this.InOptions = this.dictData['InOptions']
|
|
|
+ this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
+ this.getCountryList(this.dictData['CountryList'])
|
|
|
+ this.ManagementUnitOptions = this.dictData['ManagementUnit']
|
|
|
+ this.getCityList(this.dictData['GaodeMapChinaAreas'])
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- searchCommand(command) {
|
|
|
+ searchCommand (command) {
|
|
|
if (command == 'search') {
|
|
|
this.dialogVisible = true
|
|
|
} else if (command == 'clear') {
|
|
|
this.clearSearch()
|
|
|
}
|
|
|
},
|
|
|
- //列表排序功能
|
|
|
- orderby(column) {
|
|
|
+ // 列表排序功能
|
|
|
+ orderby (column) {
|
|
|
if (column.order == 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order == 'descending') {
|
|
|
@@ -795,20 +794,20 @@
|
|
|
this.Column.Prop = column.prop
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- clearSearch() {
|
|
|
- Object.assign(this.searchForm, this.searchFormReset);
|
|
|
- //this.searchForm = this.searchFormReset;
|
|
|
- this.CityAry = []
|
|
|
- this.LinkCityAry=[]
|
|
|
+ clearSearch () {
|
|
|
+ Object.assign(this.searchForm, this.searchFormReset)
|
|
|
+ //this.searchForm = this.searchFormReset;
|
|
|
+ this.CityAry = []
|
|
|
+ this.LinkCityAry = []
|
|
|
this.CreateOn = ''
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- getCityList (val) {
|
|
|
- let resultData = JSON.parse(val)
|
|
|
- let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
- countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
- this.countryoptions = JSON.parse(countstr)
|
|
|
- },
|
|
|
+ getCityList (val) {
|
|
|
+ let resultData = JSON.parse(val)
|
|
|
+ let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
+ countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
+ this.countryoptions = JSON.parse(countstr)
|
|
|
+ },
|
|
|
getCountryList (val) {
|
|
|
let tmpJson = JSON.parse(val)
|
|
|
this.countryListOptions = []
|
|
|
@@ -822,51 +821,51 @@
|
|
|
}
|
|
|
},
|
|
|
handleLinkAreaChange (value) {
|
|
|
- this.searchForm.LinkProvince = value[0]
|
|
|
- this.searchForm.LinkCity = value[1]
|
|
|
- this.searchForm.LinkStreet = value[2]
|
|
|
+ this.searchForm.LinkProvince = value[0]
|
|
|
+ this.searchForm.LinkCity = value[1]
|
|
|
+ this.searchForm.LinkStreet = value[2]
|
|
|
},
|
|
|
handleAreaChange (value) {
|
|
|
- this.searchForm.Province = value[0]
|
|
|
- this.searchForm.City = value[1]
|
|
|
- this.searchForm.Street = value[2]
|
|
|
+ this.searchForm.Province = value[0]
|
|
|
+ this.searchForm.City = value[1]
|
|
|
+ this.searchForm.Street = value[2]
|
|
|
},
|
|
|
- handleSearch() {
|
|
|
- this.currentPage = 1;
|
|
|
- this.dialogVisible = false;
|
|
|
- this.initDatas();
|
|
|
- },
|
|
|
- handleCurrentChange(value) {
|
|
|
+ handleSearch () {
|
|
|
+ this.currentPage = 1
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.initDatas()
|
|
|
+ },
|
|
|
+ handleCurrentChange (value) {
|
|
|
this.currentPage = value
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
+ handleSizeChange (value) {
|
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- deleteEntity(row) {
|
|
|
- row.deleteConfirmFlag = false;
|
|
|
- api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
+ deleteEntity (row) {
|
|
|
+ row.deleteConfirmFlag = false
|
|
|
+ api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- this.initDatas();
|
|
|
- this.$message({
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
+ })
|
|
|
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
- },
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -879,20 +878,19 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
- var y = date.getFullYear();
|
|
|
- var m = date.getMonth() + 1;
|
|
|
- m = m < 10 ? ('0' + m) : m;
|
|
|
- var d = date.getDate();
|
|
|
- d = d < 10 ? ('0' + d) : d;
|
|
|
- var h = date.getHours();
|
|
|
- var minute = date.getMinutes();
|
|
|
- minute = minute < 10 ? ('0' + minute) : minute;
|
|
|
- return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
|
- }
|
|
|
+ formatDateTime (date) {
|
|
|
+ var y = date.getFullYear()
|
|
|
+ var m = date.getMonth() + 1
|
|
|
+ m = m < 10 ? ('0' + m) : m
|
|
|
+ var d = date.getDate()
|
|
|
+ d = d < 10 ? ('0' + d) : d
|
|
|
+ var h = date.getHours()
|
|
|
+ var minute = date.getMinutes()
|
|
|
+ minute = minute < 10 ? ('0' + minute) : minute
|
|
|
+ return y + '-' + m + '-' + d + ' ' + h + ':' + minute
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|