|
@@ -53,26 +53,18 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column align="right" width="245">
|
|
|
|
|
|
|
+ <el-table-column align="center" width="200">
|
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
|
- <!-- <el-input v-model="search" size="mini" placeholder="输入关键字搜索"/> -->
|
|
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
- <el-button type="plain" size="small" @click="setManufacturer(2)">制造商</el-button>
|
|
|
|
|
- <el-button type="plain" size="small" @click="setManufacturer(1)">非制造商<i class="el-icon--right"></i></el-button>
|
|
|
|
|
|
|
+ <el-button type="plain" size="mini" @click="setManufacturer(2)">制造商</el-button>
|
|
|
|
|
+ <el-button type="plain" size="mini" @click="setManufacturer(1)">非制造商</el-button>
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">非制造商</el-button>
|
|
<el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">非制造商</el-button>
|
|
|
<el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">制造商</el-button>
|
|
<el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">制造商</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="是否为制造商" width="105">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">非制造商</el-button>
|
|
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope.row,canadd,newcanadd)" :disabled="isDisabledBtn()">制造商</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
<el-table-column prop="CertSubStatus"
|
|
<el-table-column prop="CertSubStatus"
|
|
|
label="状态"
|
|
label="状态"
|
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
@@ -321,16 +313,7 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- setManufacturer(index){
|
|
|
|
|
- console.log(index)
|
|
|
|
|
- if (this.Ids.length == 0) {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: '请先选择设置的条目'
|
|
|
|
|
- })
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ setManufacturer (operTag){
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$confirm('是否确定此操作, 是否继续?', '提示', {
|
|
_this.$confirm('是否确定此操作, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -346,9 +329,9 @@
|
|
|
CertSubIdList: [],
|
|
CertSubIdList: [],
|
|
|
SupplierId: parseInt(this.SupplierId),
|
|
SupplierId: parseInt(this.SupplierId),
|
|
|
SupplierCertId: parseInt(this.SupplierCertId),
|
|
SupplierCertId: parseInt(this.SupplierCertId),
|
|
|
- IsManufacturer: index
|
|
|
|
|
|
|
+ IsManufacturer: operTag
|
|
|
}
|
|
}
|
|
|
- _this.$axios.post('suppliercertsub/modify-manufacturer/' + this.Ids.join(),postData)
|
|
|
|
|
|
|
+ _this.$axios.post('suppliercertsub/modify-manufacturers/' + this.SupplierCertId, postData)
|
|
|
.then(function (response) {
|
|
.then(function (response) {
|
|
|
if (response.data.code === 0) {
|
|
if (response.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|