|
|
@@ -89,6 +89,14 @@
|
|
|
<!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="是否为制造商" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
|
|
|
+ <el-tag type="success" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
<!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
@@ -117,6 +125,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="是否为制造商" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope)">非制造商</el-tag>
|
|
|
+ <el-tag type="success" v-else-if="scope.row.IsManufacturer == 1" @click="type_change(scope)">制造商</el-tag>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
<!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
@@ -950,6 +966,40 @@
|
|
|
this.dialogFormData.SortFlag = sortFlagStr
|
|
|
this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
|
|
|
},
|
|
|
+ type_change(val){
|
|
|
+ console.log(this.formData.Status,"asdasddds")
|
|
|
+ if (this.formData.Status <= 0 && this.formData.Status != -5) {
|
|
|
+ if (val.row.IsManufacturer == 2){
|
|
|
+ let IsManufacturer = 2
|
|
|
+ this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.row.Id) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '更改成功'
|
|
|
+ })
|
|
|
+ this.getMySortList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }else if (val.row.IsManufacturer == 1){//---------------转换供应商与非供应商
|
|
|
+ let IsManufacturer = 1
|
|
|
+ this.$axios.get('suppliercertsub/updatemanufacturer/' + parseInt(val.row.Id) + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '更改成功'
|
|
|
+ })
|
|
|
+ this.getMySortList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
commitaudit () {
|
|
|
this.AuditdialogShow = true
|
|
|
@@ -1342,6 +1392,7 @@
|
|
|
// 访问接口
|
|
|
api.getMyList(params, this.$axios).then(res => {
|
|
|
this.myentityList = res.data.item
|
|
|
+ console.log(this.myentityList,"uwuwuwuwuwuwuwu")
|
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -1498,6 +1549,7 @@
|
|
|
SupplierCertId: parseInt(this.formData.SupplierCertId),
|
|
|
SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
SupplierTypeCode: '01',
|
|
|
+ IsManufacturer: 2,
|
|
|
Remark: this.dialogFormData.Remark,
|
|
|
Type: '2'
|
|
|
}
|
|
|
@@ -1789,6 +1841,7 @@
|
|
|
SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
SupplierTypeCode: '01',
|
|
|
Type: '2',
|
|
|
+ IsManufacturer: 2,
|
|
|
Remark: this.Remark1,
|
|
|
CheckList: this.sectionCert
|
|
|
}
|