|
|
@@ -22,7 +22,7 @@
|
|
|
</el-steps>
|
|
|
<el-button slot="reference" plain size="mini" style="margin-right: 8px">查看进度</el-button>
|
|
|
</el-popover>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批历史</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="AuditdialogShow = true"
|
|
|
v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5">提交审批
|
|
|
</el-button>
|
|
|
@@ -72,7 +72,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);overflow: auto">
|
|
|
<div slot="header">
|
|
|
- <span><i class="icon icon-table2"></i> 所有增项分类</span>
|
|
|
+ <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> -->
|
|
|
</div>
|
|
|
@@ -95,9 +95,11 @@
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
+ <!-- <goods-list ref="goodsList" :data.sync="myentityList" :canadd="add_flat"
|
|
|
+ :candelete="delete_flat" height="360px" style="margin-top: 20px"></goods-list> -->
|
|
|
<el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);overflow: auto">
|
|
|
<div slot="header">
|
|
|
- <span><i class="icon icon-table2"></i> 新增增项分类</span>
|
|
|
+ <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>
|
|
|
</div>
|
|
|
@@ -108,7 +110,6 @@
|
|
|
:disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <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 prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
@@ -127,8 +128,8 @@
|
|
|
<el-table :data="subfileList" size="mini" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" title="编辑" @click="openDialog(scope.row)"
|
|
|
- :disabled="scope.row.SupType != 2||formData.Status > 0">编辑
|
|
|
+ <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)"
|
|
|
+ :disabled="scope.row.SupType != 2||formData.Status > 0">上传
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -151,7 +152,7 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
- <el-dialog title="编辑文件" :visible.sync="visible" top="5vh">
|
|
|
+ <el-dialog title="上传文件" :visible.sync="visible" top="5vh">
|
|
|
<el-form :model="SubfileForm" size="mini" label-width="100px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
@@ -196,15 +197,23 @@
|
|
|
<el-form label-width="150px" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">
|
|
|
<el-row style="margin-top: -10px">
|
|
|
<el-col :span="12">
|
|
|
- <el-input v-model="filterText" placeholder="请输入名称或代码" size="mini" style="width: 250px;"></el-input>
|
|
|
- <!-- <el-button style="float: right;" type="primary" size="mini" @click="getorgtreelist()">查询</el-button> -->
|
|
|
+ <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 highlight-current :expand-on-click-node="true" node-key="CodeName" :data="orgtreelist"
|
|
|
- :props="orgtreeprops" ref="orgmanagetree" show-checkbox lazy :load="getChildrens"
|
|
|
- :filter-node-method="filterNode">
|
|
|
+ <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>
|
|
|
@@ -222,14 +231,14 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="审批历史" :visible.sync="audithistoryshow" width="1200px">
|
|
|
- <wf-back-history ref="WfBackHistory" :entryinfo="backhistroy"></wf-back-history>
|
|
|
+ <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
+ <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
|
|
|
<el-form ref="searchForm" label-width="110px">
|
|
|
<el-row>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="初审人员">
|
|
|
<el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
@@ -238,7 +247,7 @@
|
|
|
<el-form-item label="复审人员">
|
|
|
<el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
allow-create default-first-option>
|
|
|
- <el-option v-for="item in secauditerOptions" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
+ <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -272,16 +281,16 @@
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
import axios from 'axios'
|
|
|
+ import WfMultiHistory from "@/components/workflow/wfmultihistory.vue";
|
|
|
import uploadajax from '@/assets/js//uploadajax.js'
|
|
|
import suppapi from '@/api/oilsupplier/supplier'
|
|
|
import api from '@/api/oilsupplier/supplierappendsub'
|
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
- import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- WfBackHistory,
|
|
|
+ WfMultiHistory,
|
|
|
ChooseAuditor
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -319,8 +328,12 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ filterText: '',
|
|
|
+ searchText: '',
|
|
|
+ switchstatus: false,
|
|
|
audithistoryshow: false,
|
|
|
chooseAuditorVisible: false,
|
|
|
+ sectreelist: [],
|
|
|
orgtreelist: [], //二级单位
|
|
|
preorgtreelist: [],
|
|
|
secauditerOptions: [],
|
|
|
@@ -334,17 +347,23 @@
|
|
|
value: 'Id',
|
|
|
label: 'CodeName',
|
|
|
children: 'children',
|
|
|
- isLeaf: 'Leaf'
|
|
|
+ isLeaf: 'Leaf',
|
|
|
+ disabled: 'disabled'
|
|
|
+ },
|
|
|
+ sectreeprops: {
|
|
|
+ children: 'children',
|
|
|
+ label: 'CodeName',
|
|
|
+ disabled: 'disabled'
|
|
|
},
|
|
|
preorgtreeprops: {
|
|
|
value: 'id',
|
|
|
label: 'name',
|
|
|
children: 'children'
|
|
|
},
|
|
|
- backhistroy: {
|
|
|
- certId: '',
|
|
|
- classId: '01',
|
|
|
- workflowId: ''
|
|
|
+ entrydetail: {
|
|
|
+ process: "",
|
|
|
+ business: "",
|
|
|
+ instance: ""
|
|
|
},
|
|
|
auditform: {
|
|
|
FirstAuditName: '',
|
|
|
@@ -416,6 +435,7 @@
|
|
|
Id: '',
|
|
|
Step: 1,
|
|
|
Status: '',
|
|
|
+ ProcessKey: '',
|
|
|
SupplierId: 0,
|
|
|
SupplierCertId: 0,
|
|
|
RecUnitFlag: '', //推荐单位的级联Id标记
|
|
|
@@ -549,7 +569,7 @@
|
|
|
// })
|
|
|
// },
|
|
|
|
|
|
- //获取下一级所有分类
|
|
|
+ //获取下一级所有分类
|
|
|
getChildrens(val, resolve) {
|
|
|
let Id = 0
|
|
|
if (val.level === 0) {
|
|
|
@@ -564,6 +584,9 @@
|
|
|
return resolve([])
|
|
|
}
|
|
|
for (let idx in res.data.items) {
|
|
|
+ if (res.data.items[idx].Code.length <= 4) {
|
|
|
+ res.data.items[idx].disabled = true
|
|
|
+ }
|
|
|
res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1' ? true : false
|
|
|
}
|
|
|
return resolve(res.data.items)
|
|
|
@@ -572,11 +595,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- filterNode(value, data) {
|
|
|
- if (!value) return true;
|
|
|
- return data.CodeName.indexOf(value) !== -1;
|
|
|
+ filterNode (value, data) {
|
|
|
+ if (!value) return true
|
|
|
+ return data.CodeName.indexOf(value) !== -1
|
|
|
},
|
|
|
-
|
|
|
//获取分类级联Id
|
|
|
getCode(item) {
|
|
|
let sortFlagStr = item.toString()
|
|
|
@@ -623,8 +645,9 @@
|
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
_this.formData = res.data
|
|
|
console.log("---this.formData---", _this.formData)
|
|
|
- this.backhistroy.certId = _this.Id
|
|
|
- this.backhistroy.workflowId = _this.formData.WorkFlowId
|
|
|
+ this.entrydetail.process = this.formData.ProcessKey
|
|
|
+ this.entrydetail.business = this.formData.BusinessKey
|
|
|
+ this.entrydetail.instance = this.formData.WorkFlowId;
|
|
|
this.getFileList()
|
|
|
//显示公司名
|
|
|
_this.supplierOptions = _this.formData.SupplierId.toString()
|
|
|
@@ -989,17 +1012,36 @@
|
|
|
ensureOption() {
|
|
|
let _this = this
|
|
|
let arr = []
|
|
|
- let val = this.$refs.orgmanagetree.getCheckedNodes()
|
|
|
+ let val1 = this.$refs.orgmanagetree.getCheckedNodes()
|
|
|
+ let val2 = this.$refs.secmanagetree.getCheckedNodes()
|
|
|
this.checkList = []
|
|
|
- for (var i = 0; i < val.length; i++) {
|
|
|
- if (!val[i].children || val[i].children.length <= 0) {
|
|
|
- this.checkList.push(val[i])
|
|
|
+ for (var i = 0; i < val1.length; i++) {
|
|
|
+ if (val1[i].Code.length == 8) {
|
|
|
+ this.checkList.push(val1[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (var i = 0; i < val2.length; i++) {
|
|
|
+ if (val2[i].Code.length == 8) {
|
|
|
+ this.checkList.push(val2[i])
|
|
|
}
|
|
|
}
|
|
|
_this.dialogFormData.SupplierId = _this.formData.SupplierId
|
|
|
_this.dialogFormData.SupplierCertId = _this.formData.SupplierCertId
|
|
|
_this.dialogFormData.SupplierCertAppendId = parseInt(_this.dialogFormData.SupplierCertAppendId)
|
|
|
_this.addSortAppend()
|
|
|
+ _this.switchstatus = false
|
|
|
+ },
|
|
|
+
|
|
|
+ getsectreelist() {
|
|
|
+ let _this = this
|
|
|
+ let name = _this.searchText
|
|
|
+ this.$axios.get('goodsaptitude/goodsparentlist/' + name)
|
|
|
+ .then(res => {
|
|
|
+ _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
//判断是否保存了增项信息
|
|
|
@@ -1035,6 +1077,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ console.log("parmas", params)
|
|
|
_this.$axios.post('/suppliercertappendsub/addgoodsbus/', params)
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1057,6 +1100,10 @@
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
+ this.$refs.orgmanagetree.setCheckedKeys([])
|
|
|
+ this.$refs.secmanagetree.setCheckedKeys([])
|
|
|
+ this.filterText = ''
|
|
|
+ this.searchText = ''
|
|
|
},
|
|
|
|
|
|
//删除增项分类信息
|