|
|
@@ -103,8 +103,10 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 新增准入范围</span>
|
|
|
+ <!--<el-button style="float: right; padding: 3px 0" type="text"-->
|
|
|
+ <!--v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>-->
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>
|
|
|
+ v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData1()">添加</el-button>
|
|
|
</div>
|
|
|
<el-table :data="myentityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
@@ -199,42 +201,167 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 增项分类添加、修改 -->
|
|
|
- <el-dialog :title="dialogTitle" :visible.sync="dialogVisible">
|
|
|
- <el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">
|
|
|
- <el-row style="margin-top: -10px">
|
|
|
- <el-col :span="12">
|
|
|
- <el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"
|
|
|
- style="width: 250px;"></el-input>
|
|
|
- <el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">
|
|
|
- </el-input>
|
|
|
- <el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"
|
|
|
- :disabled="!switchstatus">查询</el-button>
|
|
|
- <el-switch v-model="switchstatus" size="mini"></el-switch>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
|
|
|
- <el-col :span="20">
|
|
|
- <el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"
|
|
|
- :data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy
|
|
|
- :load="getChildrens" :filter-node-method="filterNode">
|
|
|
- </el-tree>
|
|
|
- <el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node
|
|
|
- node-key="CodeName" :props="sectreeprops">
|
|
|
- </el-tree>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row style="margin-top: 30px">
|
|
|
- 备注信息:
|
|
|
- <el-col :span="24">
|
|
|
- <el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
|
|
|
- </el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="mini" @click="cancelOption()">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>
|
|
|
- </span>
|
|
|
+ <!--<el-dialog :title="dialogTitle" :visible.sync="dialogVisible">-->
|
|
|
+
|
|
|
+ <!--<el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">-->
|
|
|
+ <!--<el-row style="margin-top: -10px">-->
|
|
|
+ <!--<el-col :span="12">-->
|
|
|
+ <!--<el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"-->
|
|
|
+ <!--style="width: 250px;"></el-input>-->
|
|
|
+ <!--<el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <!--<el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"-->
|
|
|
+ <!--:disabled="!switchstatus">查询</el-button>-->
|
|
|
+ <!--<el-switch v-model="switchstatus" size="mini"></el-switch>-->
|
|
|
+ <!--</el-col>-->
|
|
|
+ <!--</el-row>-->
|
|
|
+ <!--<el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">-->
|
|
|
+ <!--<el-col :span="20">-->
|
|
|
+ <!--<el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"-->
|
|
|
+ <!--:data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy-->
|
|
|
+ <!--:load="getChildrens" :filter-node-method="filterNode">-->
|
|
|
+ <!--</el-tree>-->
|
|
|
+ <!--<el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node-->
|
|
|
+ <!--node-key="CodeName" :props="sectreeprops">-->
|
|
|
+ <!--</el-tree>-->
|
|
|
+ <!--</el-col>-->
|
|
|
+ <!--</el-row>-->
|
|
|
+ <!--<el-row style="margin-top: 30px">-->
|
|
|
+ <!--备注信息:-->
|
|
|
+ <!--<el-col :span="24">-->
|
|
|
+ <!--<el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <!--</el-col>-->
|
|
|
+ <!--</el-row>-->
|
|
|
+ <!--</el-form>-->
|
|
|
+ <!--<span slot="footer" class="dialog-footer">-->
|
|
|
+ <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
|
|
|
+ <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
|
|
|
+ <!--</span>-->
|
|
|
+ <!--</el-dialog>-->
|
|
|
+
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ element-loading-text="正在添加请稍后..."
|
|
|
+ title="物资类业务列表"
|
|
|
+ :visible.sync="goodsDialog"
|
|
|
+ top="5vh">
|
|
|
+ <el-tabs v-model="tabIdx"
|
|
|
+ style="margin-top: -30px;">
|
|
|
+ <el-tab-pane label="准入编码"
|
|
|
+ name="1">
|
|
|
+ <el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData" style="padding-top: 15px">
|
|
|
+ <el-row style="margin-top: -10px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"
|
|
|
+ style="width: 250px;"></el-input>
|
|
|
+ <el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">
|
|
|
+ </el-input>
|
|
|
+ <el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"
|
|
|
+ :disabled="!switchstatus">查询</el-button>
|
|
|
+ <el-switch v-model="switchstatus" size="mini"></el-switch>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
|
|
|
+ <el-col :span="20">
|
|
|
+ <el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"
|
|
|
+ :data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy
|
|
|
+ :load="getChildrens" :filter-node-method="filterNode">
|
|
|
+ </el-tree>
|
|
|
+ <el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node
|
|
|
+ node-key="CodeName" :props="sectreeprops">
|
|
|
+ </el-tree>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-top: 30px">
|
|
|
+ 备注信息:
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <!--<span slot="footer" class="dialog-footer">-->
|
|
|
+ <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
|
|
|
+ <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
|
|
|
+ <!--</span>-->
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="顶级编码" v-loading="loading"
|
|
|
+ name="2">
|
|
|
+ <el-form ref="form"
|
|
|
+ :inline="true"
|
|
|
+ style="float: left;margin-top:-7px">
|
|
|
+ <el-form-item label="">
|
|
|
+ <el-input size="mini"
|
|
|
+ style="width: 245px;"
|
|
|
+ v-model="keyword"
|
|
|
+ placeholder="请输入名称或代码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span style="float: left">
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ style="margin-left:10px;"
|
|
|
+ @click="initData2019()">查询
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ style="margin-left:10px;"
|
|
|
+ @click="goodsDialog = false">
|
|
|
+ 取消</el-button>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <el-table :data="goodsList2019"
|
|
|
+ border
|
|
|
+ size="mini"
|
|
|
+ @selection-change="handleSelectionChangeCert">
|
|
|
+ <el-table-column type="selection"
|
|
|
+ width="55">
|
|
|
+ </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>
|
|
|
+ <el-pagination @size-change="handleSizeChangeCert"
|
|
|
+ @current-change="handleCurrentChangeCert"
|
|
|
+ :current-page="currentPageCert"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="sizeCert"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentItemCountCert">
|
|
|
+ </el-pagination>
|
|
|
+ <el-form label-width="80px"
|
|
|
+ label-position="top">
|
|
|
+ <el-form-item label="备注信息">
|
|
|
+ <el-input size="mini"
|
|
|
+ type="textarea"
|
|
|
+ style="width:100%"
|
|
|
+ v-model="Remark1"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <div slot="footer"
|
|
|
+ class="dialog-footer"
|
|
|
+ v-if="tabIdx==1">
|
|
|
+ <!--<el-button size="mini" @click="visible = false">取 消</el-button>-->
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="ensureOption()">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ <div slot="footer"
|
|
|
+ class="dialog-footer"
|
|
|
+ v-if="tabIdx==2">
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="addBusiness1()">确 定</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
@@ -418,6 +545,22 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ // 456
|
|
|
+ Remark: '',
|
|
|
+ Remark1: '',
|
|
|
+ loading: false,
|
|
|
+ tabIdx: '1',
|
|
|
+ sizeCert: 10,
|
|
|
+ currentItemCountCert: 0,
|
|
|
+ currentPageCert: 1, // 分页
|
|
|
+ keyword: '',
|
|
|
+ goodsList2019: [],
|
|
|
+ sectionCert: [],
|
|
|
+ goodsDialog: false,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
UnitOrg: '',
|
|
|
allowpre: true,
|
|
|
newVisible: false,
|
|
|
@@ -628,8 +771,12 @@
|
|
|
this.getorgtreelist()
|
|
|
this.orgtreeChange(this.majorDept)
|
|
|
this.initTableHeader()
|
|
|
+ this.initData2019()
|
|
|
},
|
|
|
methods: {
|
|
|
+ addSortData1 () {
|
|
|
+ this.goodsDialog = true
|
|
|
+ },
|
|
|
newdeletedata (val) {
|
|
|
let _this = this
|
|
|
_this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
@@ -1363,6 +1510,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ console.log(params, 'params')
|
|
|
_this.$axios.post('/suppliercertappendsub/addgoodsbus/', params)
|
|
|
.then(res => {
|
|
|
_this.dialogloading = false
|
|
|
@@ -1606,16 +1754,6 @@
|
|
|
}
|
|
|
this.Column.Prop = column.prop
|
|
|
},
|
|
|
- // 分页功能
|
|
|
- handleCurrentChange (value) {
|
|
|
- this.currentPage = value
|
|
|
- this.getSortList()
|
|
|
- },
|
|
|
- handleSizeChange (value) {
|
|
|
- this.size = value
|
|
|
- this.currentPage = 1
|
|
|
- this.getSortList()
|
|
|
- },
|
|
|
|
|
|
jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
@@ -1628,7 +1766,87 @@
|
|
|
val = val.replace('T', ' ')
|
|
|
return val.substring(0, 10)
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ // 123
|
|
|
+ addBusiness1 () {
|
|
|
+ if (this.sectionCert.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择准入类别'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ SupplierId: parseInt(this.formData.SupplierId),
|
|
|
+ SupplierCertId: parseInt(this.formData.SupplierCertId),
|
|
|
+ SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
+ SupplierTypeCode: '01',
|
|
|
+ Type: '2',
|
|
|
+ Remark: this.Remark1,
|
|
|
+ CheckList: this.sectionCert
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.sectionCert.length; i++) {
|
|
|
+ this.sectionCert[i].Id = this.sectionCert[i].Id + ''
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
+ console.log(params, 'params2')
|
|
|
+ this.$axios.post('/suppliercertappendsub/addgoodsbus', params)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.goodsDialog = false
|
|
|
+ this.loading = false
|
|
|
+ this.sectionCert = []
|
|
|
+ this.Remark1 = ''
|
|
|
+ this.getSortList()
|
|
|
+ this.getMySortList()
|
|
|
+ this.getFileList()
|
|
|
+ this.initData2019()
|
|
|
+ } else {
|
|
|
+ this.loading = false
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '操作失败!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ initData2019 () {
|
|
|
+ let params = {
|
|
|
+ _currentPage: this.currentPageCert,
|
|
|
+ _size: this.sizeCert,
|
|
|
+ Name: this.keyword
|
|
|
+ }
|
|
|
+ this.$axios.get('suppliercertsub/listCert2019', { params })
|
|
|
+ .then(res => {
|
|
|
+ this.goodsList2019 = res.data.items
|
|
|
+ this.currentItemCountCert = res.data.currentItemCount
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleSizeChangeCert (value) {
|
|
|
+ this.sizeCert = value
|
|
|
+ this.currentPageCert = 1
|
|
|
+ this.initData2019()
|
|
|
+ },
|
|
|
+ handleCurrentChangeCert (value) {
|
|
|
+ this.currentPageCert = value
|
|
|
+ this.initData2019()
|
|
|
+ },
|
|
|
+ handleSelectionChangeCert (val) {
|
|
|
+ this.sectionCert = val
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|