|
|
@@ -914,7 +914,7 @@
|
|
|
// sort: true
|
|
|
// },
|
|
|
|
|
|
- /*{
|
|
|
+ /* {
|
|
|
prop: "SpecSupplier",
|
|
|
label: '是否特殊业务供应商(可不招标)',
|
|
|
width: 100,
|
|
|
@@ -1010,17 +1010,17 @@
|
|
|
}
|
|
|
},
|
|
|
searchCommand (command) {
|
|
|
- if (command == 'search') {
|
|
|
+ if (command === 'search') {
|
|
|
this.dialogVisible = true
|
|
|
- } else if (command == 'clear') {
|
|
|
+ } else if (command === 'clear') {
|
|
|
this.clearSearch()
|
|
|
}
|
|
|
},
|
|
|
// 列表排序功能
|
|
|
orderby (column) {
|
|
|
- if (column.order == 'ascending') {
|
|
|
+ if (column.order === 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
- } else if (column.order == 'descending') {
|
|
|
+ } else if (column.order === 'descending') {
|
|
|
this.Column.Order = 'desc'
|
|
|
}
|
|
|
this.Column.Prop = column.prop
|
|
|
@@ -1028,15 +1028,15 @@
|
|
|
},
|
|
|
clearSearch () {
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
- //this.searchForm = this.searchFormReset;
|
|
|
- this.CreateOn = ''
|
|
|
+ // this.searchForm = this.searchFormReset;
|
|
|
+ this.CreateOn = ''
|
|
|
this.initDatas()
|
|
|
},
|
|
|
handleSearch () {
|
|
|
this.currentPage = 1
|
|
|
- this.dialogVisible = false
|
|
|
- this.initDatas()
|
|
|
- },
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.initDatas()
|
|
|
+ },
|
|
|
handleCurrentChange (value) {
|
|
|
this.currentPage = value
|
|
|
this.initDatas()
|
|
|
@@ -1048,25 +1048,31 @@
|
|
|
},
|
|
|
deleteEntity (row) {
|
|
|
row.deleteConfirmFlag = false
|
|
|
- api.deleteAllEntity(row.Id, row.SupplierTypeCode, this.$axios).then(res => {
|
|
|
+ if (row.SupplierTypeCode === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '准入类型错误'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ api.deleteAllEntity(row.Id, row.SupplierTypeCode, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.initDatas()
|
|
|
- this.isCanApply()
|
|
|
- this.$message({
|
|
|
+ this.isCanApply()
|
|
|
+ this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
-
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
isCanApply () {
|
|
|
api.isCanApply('01', this.$axios).then(res => {
|
|
|
@@ -1078,7 +1084,7 @@
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
@@ -1095,15 +1101,15 @@
|
|
|
|
|
|
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
|
|
|
- }
|
|
|
+ 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>
|