|
|
@@ -37,11 +37,6 @@
|
|
|
</div>
|
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData" :disabled="true">
|
|
|
<el-row>
|
|
|
- <!-- <el-col :span="12">
|
|
|
- <el-form-item label="推荐单位名称" prop="RecUnitName">
|
|
|
- <el-input v-model="formData.RecUnitName" placeholder="请输入推荐单位名称"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="供应方公司名称" prop="checkSelectedSupplier">
|
|
|
<el-select v-model="supplierOptions" filterable placeholder="请选择供应方公司" style="width: 100%">
|
|
|
@@ -51,11 +46,6 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="12">
|
|
|
- <el-form-item label="推荐单位编码" prop="RecUnitId">
|
|
|
- <el-input v-model="formData.RecUnitId" placeholder="请输入推荐单位编码"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注" prop="Remark">
|
|
|
<el-input type="textarea" v-model="formData.Remark" placeholder="请输入"></el-input>
|
|
|
@@ -69,16 +59,35 @@
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 增项分类</span>
|
|
|
</div>
|
|
|
- <el-table :data="entityList" border height="calc(100vh - 345px)" style="width: 100%" @sort-change="orderby">
|
|
|
+ <el-table :data="entityList" border style="width: 100%" @sort-change="orderby">
|
|
|
<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>
|
|
|
</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-card>
|
|
|
+
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span><i class="icon icon-table2"></i> 企业资质</span>
|
|
|
+ </div>
|
|
|
+ <el-table :data="subfileList" border>
|
|
|
+ <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.EffectDate+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
@@ -89,11 +98,6 @@
|
|
|
|
|
|
<el-dialog title="审核" :visible.sync="dialogMakeSure">
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
- <!-- <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" filterable
|
|
|
- style="width: 100%" v-model="majorDept" placeholder="请选择组织">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item> -->
|
|
|
<el-form-item :label="aduitlabel"
|
|
|
v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
@@ -128,11 +132,6 @@
|
|
|
<el-form-item label="意见">
|
|
|
<el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="复审部门" v-if="this.formData.Status == '1'">
|
|
|
- <el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item> -->
|
|
|
<el-form-item :label="aduitlabel"
|
|
|
v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
@@ -146,8 +145,8 @@
|
|
|
style="width: 100%" v-model="majorDept" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
<el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
|
|
|
@@ -156,11 +155,6 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="分配" :visible.sync="dialogAllocation">
|
|
|
<el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
- <!-- <el-form-item label="审批人部门">
|
|
|
- <el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item> -->
|
|
|
<el-form-item label="审批人">
|
|
|
<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
|
|
|
default-first-option>
|
|
|
@@ -240,7 +234,7 @@
|
|
|
aduitlabel: '审核人',
|
|
|
auditer: '',
|
|
|
auditTitle: '审批',
|
|
|
- companyid:'',
|
|
|
+ companyid: '',
|
|
|
orgtreeprops: {
|
|
|
value: 'id',
|
|
|
label: 'name',
|
|
|
@@ -267,6 +261,7 @@
|
|
|
AppendType: '', //增项类别(1 物资类,2 基建类,3 技术服务类)
|
|
|
Remark: '', //备注
|
|
|
},
|
|
|
+ subfileList: [],
|
|
|
backhistroy: {
|
|
|
certId: '',
|
|
|
classId: '01',
|
|
|
@@ -276,10 +271,10 @@
|
|
|
dialogTitle: '',
|
|
|
dialogFormData: {
|
|
|
Id: '',
|
|
|
- SupplierId: 1, //供方表ID
|
|
|
- SupplierCertId: 1, //供方证书表ID
|
|
|
+ SupplierId: '', //供方表ID
|
|
|
+ SupplierCertId: '', //供方证书表ID
|
|
|
SupplierCertAppendId: '', //增项信息表ID
|
|
|
- SubClassId: 2, //分类表主键(物资类或基建类或技术服务类)
|
|
|
+ SubClassId: '', //分类表主键(物资类或基建类或技术服务类)
|
|
|
SortFlag: '', //分类标记
|
|
|
Code: '', //分类编码
|
|
|
Name: '', //分类名称
|
|
|
@@ -337,7 +332,6 @@
|
|
|
this.editFlag = '1'
|
|
|
this.getEntityById()
|
|
|
this.dialogFormData.SupplierCertAppendId = this.AppendId
|
|
|
- this.getSortList()
|
|
|
this.getorgtreelist()
|
|
|
this.getorgtreelistbydeptid()
|
|
|
this.getSupplierList() //获取供应方公司列表
|
|
|
@@ -367,6 +361,8 @@
|
|
|
this.auditTitle = '集中审批'
|
|
|
this.auditstepcode = 'PROF_REGULATION'
|
|
|
}
|
|
|
+ this.getFileList()
|
|
|
+ this.getSortList()
|
|
|
this.getDictOptions()
|
|
|
this.isAccess()
|
|
|
//显示公司名
|
|
|
@@ -394,26 +390,58 @@
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
+ },
|
|
|
+ //获取资质文件
|
|
|
+ getFileList() {
|
|
|
+ this.SupplierId = this.formData.SupplierId
|
|
|
+ this.SupplierTypeCode = this.formData.AppendType
|
|
|
+ let _this = this
|
|
|
+ const params = {
|
|
|
+ SupplierId: this.SupplierId,
|
|
|
+ SupplierTypeCode: this.SupplierTypeCode,
|
|
|
+ _currentPage: 1,
|
|
|
+ _size: 1000,
|
|
|
+ }
|
|
|
+ console.log("------param",params)
|
|
|
+ _this.$axios.get('supplierfile/filelistappend', {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ _this.subfileList = res.data.items
|
|
|
+ console.log("---this.subfileList---",this.subfileList)
|
|
|
+ _this.currentItemCount = res.data.currentItemCount
|
|
|
+ for (let idx in _this.subfileList) {
|
|
|
+ console.log(_this.subfileList[idx])
|
|
|
+ _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
//审批历史
|
|
|
auhistory() {
|
|
|
this.audithistoryshow = true
|
|
|
},
|
|
|
|
|
|
- //获取增项分类表
|
|
|
+ //获取增项分类表
|
|
|
getSortList() {
|
|
|
//分页及列表条件
|
|
|
let params = {
|
|
|
- _currentPage: this.currentPage,
|
|
|
- _size: this.size,
|
|
|
- Order: this.Column.Order,
|
|
|
- Prop: this.Column.Prop,
|
|
|
+ // _currentPage: this.currentPage,
|
|
|
+ // _size: this.size,
|
|
|
+ // Order: this.Column.Order,
|
|
|
+ // Prop: this.Column.Prop,
|
|
|
SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
+ SupCertId: this.formData.SupplierCertId,
|
|
|
+ SupTypeCode: "01",
|
|
|
};
|
|
|
+ console.log("----param",params)
|
|
|
//访问接口
|
|
|
- api.getList(params, this.$axios).then(res => {
|
|
|
- this.entityList = res.data.items
|
|
|
- this.currentItemCount = res.data.currentItemCount
|
|
|
+ api.getListAppend(params, this.$axios).then(res => {
|
|
|
+ this.entityList = res.data.item
|
|
|
+ console.log("------res.entityList==--", this.entityList)
|
|
|
+ // this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
@@ -474,7 +502,7 @@
|
|
|
})
|
|
|
},
|
|
|
auditOrgChange() {
|
|
|
-
|
|
|
+
|
|
|
console.log(this.formData.Status, 'status')
|
|
|
let auditstepcode = ''
|
|
|
if (this.formData.Status === '1') {
|
|
|
@@ -537,7 +565,11 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ fileurlcut(val, index) {
|
|
|
+ let fileurlall = val.split('$')[index]
|
|
|
+ let fileurl = fileurlall.split("|")
|
|
|
+ return fileurl[0]
|
|
|
+ },
|
|
|
|
|
|
//列表排序功能
|
|
|
orderby(column) {
|