|
|
@@ -128,9 +128,8 @@
|
|
|
<el-table-column
|
|
|
label="是否为制造商" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope,canadd,newcanadd)">非制造商</el-button>
|
|
|
- <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope,canadd,newcanadd)">制造商</el-button>
|
|
|
- <span v-else>——</span>
|
|
|
+ <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 2" @click="type_change(scope)">非制造商</el-button>
|
|
|
+ <el-button type="primary" plain size="mini" v-if="scope.row.IsManufacturer == 1" @click="type_change(scope)">制造商</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
@@ -259,6 +258,7 @@
|
|
|
|
|
|
<el-dialog
|
|
|
element-loading-text="正在添加请稍后..."
|
|
|
+ v-loading="loading"
|
|
|
title="物资类业务列表"
|
|
|
:visible.sync="goodsDialog"
|
|
|
top="5vh">
|
|
|
@@ -999,6 +999,7 @@
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+ this.getSortList()
|
|
|
},
|
|
|
|
|
|
commitaudit () {
|
|
|
@@ -1543,6 +1544,7 @@
|
|
|
// 添加增项分类信息
|
|
|
addSortAppend () {
|
|
|
let _this = this
|
|
|
+ _this.loading = true
|
|
|
let params = {
|
|
|
SupplierId: parseInt(this.formData.SupplierId),
|
|
|
SupplierCertId: parseInt(this.formData.SupplierCertId),
|
|
|
@@ -1557,6 +1559,7 @@
|
|
|
CheckList: _this.checkList
|
|
|
})
|
|
|
} else {
|
|
|
+ _this.loading = false
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: '名称不能为空,请选择分类!'
|
|
|
@@ -1566,6 +1569,7 @@
|
|
|
_this.$axios.post('/suppliercertappendsub/addgoodsbus/', params)
|
|
|
.then(res => {
|
|
|
_this.dialogloading = false
|
|
|
+ _this.loading = false
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
@@ -1574,10 +1578,12 @@
|
|
|
// 关闭dialog
|
|
|
_this.dialogVisible = false
|
|
|
// 更新增项分类表
|
|
|
+ _this.loading = false
|
|
|
_this.getSortList()
|
|
|
_this.getMySortList()
|
|
|
_this.getFileList()
|
|
|
} else {
|
|
|
+ _this.loading = false
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
@@ -1591,6 +1597,7 @@
|
|
|
this.$refs.secmanagetree.setCheckedKeys([])
|
|
|
this.filterText = ''
|
|
|
this.searchText = ''
|
|
|
+ _this.loading = false
|
|
|
},
|
|
|
|
|
|
// 删除增项分类信息
|