|
@@ -3,7 +3,7 @@
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header"
|
|
<div slot="header"
|
|
|
class="clearfix">
|
|
class="clearfix">
|
|
|
- <span style="font-weight: bold">准入范围1</span>
|
|
|
|
|
|
|
+ <span style="font-weight: bold">准入范围</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
<el-button style="float: right; padding: 3px 0px"
|
|
<el-button style="float: right; padding: 3px 0px"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -418,12 +418,12 @@ export default {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- type_change(val,canadd,newcanadd){
|
|
|
|
|
|
|
+ type_change (val, canadd, newcanadd) {
|
|
|
if (canadd == true || newcanadd == true) {
|
|
if (canadd == true || newcanadd == true) {
|
|
|
- if (val.IsManufacturer == 2){
|
|
|
|
|
|
|
+ if (val.IsManufacturer == 2) {
|
|
|
this.tableloading = true
|
|
this.tableloading = true
|
|
|
let IsManufacturer = 2
|
|
let IsManufacturer = 2
|
|
|
- this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.Id) +'/'+parseInt(val.SupplierId) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
|
|
|
|
+ this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.Id) + '/' + parseInt(val.SupplierId) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -443,10 +443,10 @@ export default {
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
- } else if (val.IsManufacturer == 1){ // ---------------转换供应商与非供应商
|
|
|
|
|
|
|
+ } else if (val.IsManufacturer == 1) { // ---------------转换供应商与非供应商
|
|
|
this.tableloading = true
|
|
this.tableloading = true
|
|
|
let IsManufacturer = 1
|
|
let IsManufacturer = 1
|
|
|
- this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.Id) +'/'+parseInt(val.SupplierId) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
|
|
|
|
+ this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.Id) + '/' + parseInt(val.SupplierId) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -567,7 +567,7 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
_this.loading = true
|
|
_this.loading = true
|
|
|
- _this.$axios.post('/suppliercertsub/add-goods-certsub-filter', params)
|
|
|
|
|
|
|
+ _this.$axios.post('/suppliercertsub/add-goods-certsub-filter', params)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
@@ -649,15 +649,14 @@ export default {
|
|
|
_this.Ids = []
|
|
_this.Ids = []
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- setManufacturer(index){
|
|
|
|
|
- if (this.Ids.length == 0) {
|
|
|
|
|
|
|
+ setManufacturer (index) {
|
|
|
|
|
+ if (this.Ids.length == 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: '请先选择设置的条目'
|
|
message: '请先选择设置的条目'
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$confirm('是否确定此操作, 是否继续?', '提示', {
|
|
_this.$confirm('是否确定此操作, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -669,13 +668,13 @@ export default {
|
|
|
lock: true,
|
|
lock: true,
|
|
|
text: '正在设置请稍后...'
|
|
text: '正在设置请稍后...'
|
|
|
})
|
|
})
|
|
|
- let postData = {
|
|
|
|
|
|
|
+ let postData = {
|
|
|
CertSubIdList: [],
|
|
CertSubIdList: [],
|
|
|
SupplierId: parseInt(this.SupplierId),
|
|
SupplierId: parseInt(this.SupplierId),
|
|
|
SupplierCertId: parseInt(this.SupplierCertId),
|
|
SupplierCertId: parseInt(this.SupplierCertId),
|
|
|
IsManufacturer: index
|
|
IsManufacturer: index
|
|
|
}
|
|
}
|
|
|
- _this.$axios.post('suppliercertsub/modify-manufacturer/' + this.Ids.join(),postData)
|
|
|
|
|
|
|
+ _this.$axios.post('suppliercertsub/modify-manufacturer/' + this.Ids.join(), postData)
|
|
|
.then(function (response) {
|
|
.then(function (response) {
|
|
|
if (response.data.code === 0) {
|
|
if (response.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
@@ -757,7 +756,6 @@ export default {
|
|
|
if (!value) return true
|
|
if (!value) return true
|
|
|
return data.CodeName.indexOf(value) !== -1
|
|
return data.CodeName.indexOf(value) !== -1
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
handleSizeChange (value) {
|
|
handleSizeChange (value) {
|
|
|
this.size = value
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|