|
@@ -3,13 +3,33 @@
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bold">分类</span>
|
|
<span style="font-weight: bold">分类</span>
|
|
|
- <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog">添加</el-button> -->
|
|
|
|
|
|
|
+ <span style="float: right;">
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="AuditEntity">提交审批</el-button>
|
|
|
|
|
+ </span>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-table :data="businessList" border>
|
|
|
|
|
- <el-table-column label="操作" width="70" align="center" fixed>
|
|
|
|
|
|
|
+ <el-table :data="auditbusList" border>
|
|
|
|
|
+ <el-table-column label="操作" width="90" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" title="查看" size="small" icon="el-icon-edit" @click="openDialog(scope.row)">
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-popover trigger="hover" width="700" placement="right" @show="getopinonList(scope.row)">
|
|
|
|
|
+ <el-table :data="opinionList">
|
|
|
|
|
+ <el-table-column width="80" property="AuditStatus" label="状态">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ transferStr(scope.row.AuditStatus+'') }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column width="90" property="AuditorName" label="审批人"></el-table-column>
|
|
|
|
|
+ <el-table-column min-width="100" property="Opinion" label="审批意见"></el-table-column>
|
|
|
|
|
+ <el-table-column width="150" property="CreateOn" label="审批时间">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ jstimehandle(scope.row.CreateOn+'') }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column width="120" property="Remark" label="备注信息"></el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <div slot="reference" class="name-wrapper">
|
|
|
|
|
+ <el-button type="primary" plain size="mini" title="意见" @click="openDialog(scope.row)">意见</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-popover>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
@@ -27,89 +47,38 @@
|
|
|
<span style="font-weight: bold">分类文档</span>
|
|
<span style="font-weight: bold">分类文档</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="subfiledialog">添加</el-button>
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="subfiledialog">添加</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <subfile-list ref="subfileList" :data="subfileList" :SupplierId="SupplierId" :SupplierCertId="SupplierCertId"
|
|
|
|
|
- :SupplierTypeCode="SupplierTypeCode" :businessList="businessList" :BusinessForm="BusinessForm" height="360px"
|
|
|
|
|
- style="margin-top: 20px">
|
|
|
|
|
- </subfile-list>
|
|
|
|
|
|
|
+ <auditfile-list ref="auditfileList" :data="auditfileList" :SupplierId="SupplierId"
|
|
|
|
|
+ :SupplierCertId="SupplierCertId" :SupplierTypeCode="SupplierTypeCode" :businessList="auditbusList"
|
|
|
|
|
+ :BusinessForm="BusinessForm" height="360px" style="margin-top: 20px"></auditfile-list>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
|
- <el-form :model="BusinessForm" label-width="100px">
|
|
|
|
|
|
|
+ <el-form :model="AuditForm" label-width="100px">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode == '01' && Title == '新增准入范围'">
|
|
|
|
|
- <el-form-item label="名称" required>
|
|
|
|
|
- <el-select filterable default-first-option v-model="OneCode" placeholder="请选择" style="width: 100%"
|
|
|
|
|
- @change="getChild()">
|
|
|
|
|
- <el-option v-for="item in oneList" :key="item.Id" :label="item.Name" :value="item.Id">
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode == '02' && Title == '新增准入范围'">
|
|
|
|
|
- <el-form-item label="名称" required>
|
|
|
|
|
- <el-input placeholder="请选择名称" v-model="BusinessForm.Name" style="width:100%">
|
|
|
|
|
- <el-button type="primary" style="width:30%" @click="basicDialog = true" slot="append">选择
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode != '02' && Title == '新增准入范围'">
|
|
|
|
|
- <el-form-item label="名称" required>
|
|
|
|
|
- <el-cascader :options="techTreeList" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
|
|
- v-model="selectedorg" placeholder="请选择菜单" @change="getCode()" style="width:100%"></el-cascader>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="12" v-if="Title == '编辑准入范围'">
|
|
|
|
|
- <el-form-item label="名称">
|
|
|
|
|
- <el-input v-model="BusinessForm.Name" placeholder="请输入名称" disabled></el-input>
|
|
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="审批意见">
|
|
|
|
|
+ <el-radio v-model="AuditForm.AuditStatus" label="1">合格</el-radio>
|
|
|
|
|
+ <el-radio v-model="AuditForm.AuditStatus" label="2">不合格</el-radio>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
|
|
- <el-form-item label="编码" required>
|
|
|
|
|
- <el-input v-model="BusinessForm.Code" placeholder="请输入编码" :disabled="Title == '编辑准入范围'"></el-input>
|
|
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="审批意见">
|
|
|
|
|
+ <el-input v-model="AuditForm.Opinion" type="textarea" :rows=3 placeholder="请输入审核意见"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注信息">
|
|
<el-form-item label="备注信息">
|
|
|
- <el-input v-model="BusinessForm.Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="AuditForm.Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
<div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
|
<el-button @click="visible = false">取 消</el-button>
|
|
<el-button @click="visible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="savedata()">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="addAudit()">确 定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
- <el-dialog title="基建类业务列表" :visible.sync="basicDialog" top="5vh" style="width:1000px">
|
|
|
|
|
- <span style="float: right;">
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="seachdata()">查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="basicDialog = false">
|
|
|
|
|
- 取消</el-button>
|
|
|
|
|
- </span>
|
|
|
|
|
- <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
|
|
- <el-form-item label="业务名称">
|
|
|
|
|
- <el-input size="mini" style="width: 165px;" v-model="keyword" placeholder="请输入业务名称"></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-form>
|
|
|
|
|
- <el-table :data="techList" border>
|
|
|
|
|
- <el-table-column label="操作" width="70" align="center" fixed>
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button type="text" size="small" @click="getChooseCode(scope.row)">选择</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </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>
|
|
|
|
|
- </el-table>
|
|
|
|
|
- <el-pagination @size-change="HandleSizeChange" @current-change="HandleCurrentChange" :current-page="CurrentPage"
|
|
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="Size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
- :total="CurrentItemCount">
|
|
|
|
|
- </el-pagination>
|
|
|
|
|
-
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -117,12 +86,12 @@
|
|
|
import {
|
|
import {
|
|
|
mapGetters
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
|
- import SubfileList from '../../components/oilsupplier/subfilelist'
|
|
|
|
|
|
|
+ import AuditfileList from '../../components/oilsupplier/auditfilelist'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- name: 'EquipmentList',
|
|
|
|
|
|
|
+ name: 'AuditBusList',
|
|
|
components: {
|
|
components: {
|
|
|
- SubfileList, //文档
|
|
|
|
|
|
|
+ AuditfileList, //文档
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
SupplierCertId: {
|
|
SupplierCertId: {
|
|
@@ -150,7 +119,7 @@
|
|
|
return {
|
|
return {
|
|
|
oneList: [],
|
|
oneList: [],
|
|
|
OneCode: '',
|
|
OneCode: '',
|
|
|
- businessList: [],
|
|
|
|
|
|
|
+ auditbusList: [],
|
|
|
techList: [],
|
|
techList: [],
|
|
|
techTreeList: [],
|
|
techTreeList: [],
|
|
|
orgtreeprops: {
|
|
orgtreeprops: {
|
|
@@ -162,14 +131,16 @@
|
|
|
ClassId: '',
|
|
ClassId: '',
|
|
|
|
|
|
|
|
Title: '',
|
|
Title: '',
|
|
|
- BusinessForm: {
|
|
|
|
|
|
|
+ AuditForm: {
|
|
|
Id: '',
|
|
Id: '',
|
|
|
SupplierId: '',
|
|
SupplierId: '',
|
|
|
- SupplierCertId: '',
|
|
|
|
|
SupplierTypeCode: '',
|
|
SupplierTypeCode: '',
|
|
|
- SubClassId: '',
|
|
|
|
|
- Code: '',
|
|
|
|
|
- Name: '',
|
|
|
|
|
|
|
+ SupplierCertSubId: '',
|
|
|
|
|
+ CertSubName: '',
|
|
|
|
|
+ Opinion: '',
|
|
|
|
|
+ AuditStatus: '1',
|
|
|
|
|
+ AuditorId: '',
|
|
|
|
|
+ AuditorName: '',
|
|
|
Remark: '',
|
|
Remark: '',
|
|
|
IsDelete: 0
|
|
IsDelete: 0
|
|
|
},
|
|
},
|
|
@@ -178,13 +149,9 @@
|
|
|
currentPage: 1, // 分页
|
|
currentPage: 1, // 分页
|
|
|
size: 10,
|
|
size: 10,
|
|
|
currentItemCount: 0,
|
|
currentItemCount: 0,
|
|
|
- basicDialog: false,
|
|
|
|
|
- keyword: '',
|
|
|
|
|
- CurrentPage: 1, // 分页
|
|
|
|
|
- Size: 10,
|
|
|
|
|
- CurrentItemCount: 0,
|
|
|
|
|
|
|
|
|
|
- subfileList: [], //文档
|
|
|
|
|
|
|
+ opinionList: [],
|
|
|
|
|
+ auditfileList: [], //文档
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -196,201 +163,115 @@
|
|
|
_currentPage: this.currentPage,
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
_size: this.size,
|
|
|
}
|
|
}
|
|
|
- this.$axios.get('suppliercertsub/list', {
|
|
|
|
|
|
|
+ this.$axios.get('suppliercertsub/auditbuslist', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- _this.businessList = res.data.items
|
|
|
|
|
|
|
+ _this.auditbusList = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- _this.$refs["subfileList"].initData()
|
|
|
|
|
|
|
+ _this.$refs["auditfileList"].initData()
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
// handle error
|
|
// handle error
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- savedata() {
|
|
|
|
|
- if (this.Title == '新增准入范围') {
|
|
|
|
|
- this.addBusiness()
|
|
|
|
|
- } else if (this.Title == '编辑准入范围') {
|
|
|
|
|
- this.editBusiness()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ AuditEntity() {
|
|
|
|
|
+ this.$axios.post('/suppliercert/audit' + this.certId, {
|
|
|
|
|
+ params
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ this.initData()
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
- addBusiness() {
|
|
|
|
|
- let _this = this
|
|
|
|
|
- _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
|
|
|
|
|
- _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
|
|
|
|
|
- _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
|
|
|
|
|
- _this.$axios.post('/suppliercertsub/addbusiness/', _this.BusinessForm)
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.data.code === 0) {
|
|
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message,
|
|
|
|
|
- })
|
|
|
|
|
- _this.BusinessForm.Id = res.data.item + ''
|
|
|
|
|
- _this.visible = false
|
|
|
|
|
- _this.initData()
|
|
|
|
|
- _this.$refs["subfileList"].initData()
|
|
|
|
|
- } else {
|
|
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- console.error(err)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ addAudit() {
|
|
|
|
|
+ let _this = this;
|
|
|
|
|
+ _this.AuditForm.SupplierId = parseInt(_this.AuditForm.SupplierId)
|
|
|
|
|
+ _this.AuditForm.SupplierCertSubId = parseInt(_this.AuditForm.SupplierCertSubId)
|
|
|
|
|
+ _this.AuditForm.AuditStatus = parseInt(_this.AuditForm.AuditStatus)
|
|
|
|
|
+ _this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
})
|
|
})
|
|
|
- },
|
|
|
|
|
- editBusiness() {
|
|
|
|
|
- let _this = this
|
|
|
|
|
- _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
|
|
|
|
|
- _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
|
|
|
|
|
- _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
|
|
|
|
|
- _this.$axios.put('/suppliercertsub/editbusiness/' + _this.BusinessForm.Id, _this.BusinessForm)
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.data.code === 0) {
|
|
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message,
|
|
|
|
|
- })
|
|
|
|
|
- this.visible = false
|
|
|
|
|
- this.initData()
|
|
|
|
|
- } else {
|
|
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ _this.$axios.post('/suppliercertsub/addopinion', _this.AuditForm, {})
|
|
|
|
|
+ .then(function (response) {
|
|
|
|
|
+ if (response.data.code === 0) {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: response.data.message,
|
|
|
|
|
+ })
|
|
|
|
|
+ _this.AuditForm.Id = response.data.item + ''
|
|
|
|
|
+ _this.visible = false
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ message: response.data.message
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
|
|
+ .catch(function (error) {
|
|
|
|
|
+ console.log(error);
|
|
|
|
|
+ });
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // showDialog() {
|
|
|
|
|
- // this.Title = '新增准入范围'
|
|
|
|
|
- // this.BusinessForm.Id = ''
|
|
|
|
|
- // this.BusinessForm.SupplierId = this.SupplierId
|
|
|
|
|
- // this.BusinessForm.SupplierCertId = this.SupplierCertId
|
|
|
|
|
- // this.BusinessForm.SupplierTypeCode = this.SupplierTypeCode
|
|
|
|
|
- // this.BusinessForm.SubClassId = ''
|
|
|
|
|
- // this.BusinessForm.Code = ''
|
|
|
|
|
- // this.BusinessForm.Name = ''
|
|
|
|
|
- // this.BusinessForm.Remark = ''
|
|
|
|
|
- // this.BusinessForm.IsDelete = 0
|
|
|
|
|
- // this.getbusiness()
|
|
|
|
|
- // this.visible = true
|
|
|
|
|
- // },
|
|
|
|
|
- openDialog(val) {
|
|
|
|
|
- this.Title = '编辑准入范围'
|
|
|
|
|
- this.BusinessForm.Id = val.Id
|
|
|
|
|
- this.BusinessForm.SupplierId = val.SupplierId
|
|
|
|
|
- this.BusinessForm.SupplierCertId = val.SupplierCertId
|
|
|
|
|
- this.BusinessForm.SupplierTypeCode = val.SupplierTypeCode
|
|
|
|
|
- this.BusinessForm.SubClassId = val.SubClassId
|
|
|
|
|
- this.BusinessForm.Code = val.Code
|
|
|
|
|
- this.BusinessForm.Name = val.Name
|
|
|
|
|
- this.BusinessForm.Remark = val.Remark
|
|
|
|
|
- this.BusinessForm.IsDelete = val.IsDelete
|
|
|
|
|
- this.getbusiness()
|
|
|
|
|
- this.visible = true
|
|
|
|
|
- },
|
|
|
|
|
- getbusiness() {
|
|
|
|
|
- let _this = this
|
|
|
|
|
- if (_this.SupplierTypeCode == '01') { //获取物资类业务列表
|
|
|
|
|
- this.$axios.get('goodsaptitude/goodsparentlist', {})
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- _this.oneList = res.data.items
|
|
|
|
|
- if (_this.Title == '编辑准入范围') {
|
|
|
|
|
- for (var i = 0; i < _this.oneList.length; i++) {
|
|
|
|
|
- if (_this.BusinessForm.Code == _this.oneList[i].Code) {
|
|
|
|
|
- _this.OneCode = _this.oneList[i].Id
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
- } else if (_this.SupplierTypeCode == '02') { //获取基建类业务列表
|
|
|
|
|
- const params = {
|
|
|
|
|
- keyword: this.keyword,
|
|
|
|
|
- _currentPage: this.CurrentPage,
|
|
|
|
|
- _size: this.Size,
|
|
|
|
|
- }
|
|
|
|
|
- this.$axios.get('basisbuild/basiclist', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- _this.techList = res.data.items
|
|
|
|
|
- _this.CurrentItemCount = res.data.currentItemCount
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- // handle error
|
|
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
- } else if (_this.SupplierTypeCode == '03') { //获取技术服务类业务列表
|
|
|
|
|
- this.$axios.get('technologyservice/businesslist', {})
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- _this.techList = res.data.items
|
|
|
|
|
- _this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- // handle error
|
|
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- getCode() {
|
|
|
|
|
- this.ClassId = this.selectedorg[this.selectedorg.length - 1]
|
|
|
|
|
- for (var i = 0; i < this.techList.length; i++) {
|
|
|
|
|
- if (this.selectedorg[this.selectedorg.length - 1] == this.techList[i].Id) {
|
|
|
|
|
- this.BusinessForm.SubClassId = this.techList[i].Id
|
|
|
|
|
- this.BusinessForm.Name = this.techList[i].Name
|
|
|
|
|
- this.BusinessForm.Code = this.techList[i].Code
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- getChild() {
|
|
|
|
|
|
|
+ getopinonList(val) {
|
|
|
|
|
+ let _this = this;
|
|
|
const params = {
|
|
const params = {
|
|
|
- ParentId: this.OneCode
|
|
|
|
|
|
|
+ SupplierCertSubId: val.Id,
|
|
|
}
|
|
}
|
|
|
- this.$axios.get('goodsaptitude/goodschildlist', {
|
|
|
|
|
|
|
+ _this.$axios.get('/suppliercertsub/opinionlist', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
- .then(res => {
|
|
|
|
|
- this.techList = res.data.items
|
|
|
|
|
- if (this.techList && this.techList.length > 0) {
|
|
|
|
|
- this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
|
|
|
|
+ .then(function (response) {
|
|
|
|
|
+ if (!!response.data.code) {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: response.data.message
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
- this.getParentCode()
|
|
|
|
|
|
|
+ _this.opinionList = response.data.items
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- // handle error
|
|
|
|
|
|
|
+ }).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
- getParentCode() {
|
|
|
|
|
- this.ClassId = this.OneCode
|
|
|
|
|
- for (var i = 0; i < this.oneList.length; i++) {
|
|
|
|
|
- if (this.OneCode == this.oneList[i].Id) {
|
|
|
|
|
- this.BusinessForm.SubClassId = this.techList[i].Id
|
|
|
|
|
- this.BusinessForm.Name = this.oneList[i].Name
|
|
|
|
|
- this.BusinessForm.Code = this.oneList[i].Code
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
- getChooseCode(val) {
|
|
|
|
|
- this.ClassId = val.Id
|
|
|
|
|
- this.BusinessForm.Code = val.Code
|
|
|
|
|
- this.BusinessForm.Name = val.Name
|
|
|
|
|
- this.basicDialog = false
|
|
|
|
|
|
|
+
|
|
|
|
|
+ openDialog(val) {
|
|
|
|
|
+ this.Title = '新增审核意见'
|
|
|
|
|
+ this.AuditForm.Id = ''
|
|
|
|
|
+ this.AuditForm.SupplierId = this.SupplierId
|
|
|
|
|
+ this.AuditForm.SupplierTypeCode = this.SupplierTypeCode
|
|
|
|
|
+ this.AuditForm.SupplierCertSubId = val.Id
|
|
|
|
|
+ this.AuditForm.CertSubName = val.Name
|
|
|
|
|
+ this.AuditForm.Opinion = ''
|
|
|
|
|
+ this.AuditForm.AuditStatus = '1'
|
|
|
|
|
+ this.AuditForm.AuditorId = ''
|
|
|
|
|
+ this.AuditForm.AuditorName = ''
|
|
|
|
|
+ this.AuditForm.Remark = ''
|
|
|
|
|
+ this.AuditForm.IsDelete = 0
|
|
|
|
|
+ this.visible = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
subfiledialog() {
|
|
subfiledialog() {
|
|
|
- this.$refs["subfileList"].showDialog()
|
|
|
|
|
|
|
+ this.$refs["auditfileList"].showDialog()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
handleSizeChange(value) {
|
|
handleSizeChange(value) {
|
|
@@ -415,6 +296,15 @@
|
|
|
this.CurrentPage = -1
|
|
this.CurrentPage = -1
|
|
|
this.getbusiness()
|
|
this.getbusiness()
|
|
|
},
|
|
},
|
|
|
|
|
+ transferStr(val) {
|
|
|
|
|
+ if (val === '1') {
|
|
|
|
|
+ return '合格'
|
|
|
|
|
+ } else if (val === '2') {
|
|
|
|
|
+ return '合格'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '----'
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
jstimehandle(val) {
|
|
jstimehandle(val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|