| | |
| | | plain |
| | | icon="Plus" |
| | | @click="openDialog('add',{})" |
| | | v-hasPermi="['contractChange:add']" |
| | | >新增</el-button> |
| | | </el-form-item> |
| | | <el-form-item label="企业名称:" v-if="data.isAdmin" style="margin-left: 20px"> |
| | | <el-form-item label="单位名称:" v-if="data.isAdmin" style="margin-left: 20px"> |
| | | <el-select v-model="data.queryParams.companyId" placeholder="请选择" filterable clearable> |
| | | <el-option |
| | | v-for="item in data.companyList" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-form-item label="评审状态:" style="margin-left: 20px"> |
| | | <el-select v-model="data.queryParams.status" placeholder="请选择" filterable clearable> |
| | | <el-option |
| | | v-for="item in data.stateList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="评审类型:" style="margin-left: 20px"> |
| | | <el-select v-model="data.queryParams.type" placeholder="请选择" filterable clearable> |
| | | <el-option |
| | | v-for="item in data.typeList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item > |
| | | <el-button type="primary" style="margin-left: 30px" @click="searchClick">查询</el-button> |
| | | <el-button plain @click="reset">重置</el-button> |
| | | </el-form-item> |
| | |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openDialog('review',scope.row)" >查看</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)" >编辑</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row)" >删除</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['contractChange:edit']">编辑</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['contractChange:del']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | companyId: null, |
| | | year: '', |
| | | type: '' |
| | | status:null, |
| | | type:null |
| | | }, |
| | | companyList: [], |
| | | isAdmin: false, |
| | | dialogVisible: false, |
| | | stateList:[ |
| | | { |
| | | id: 0, |
| | | name:'待评审' |
| | | }, |
| | | { |
| | | id: 1, |
| | | name:'已评审' |
| | | }, |
| | | ], |
| | | typeList:[ |
| | | { |
| | | id: 1, |
| | | name:'合同评审' |
| | | }, |
| | | { |
| | | id: 2, |
| | | name:'合同变更' |
| | | }, |
| | | ], |
| | | }); |
| | | const dataList = ref([]); |
| | | const total = ref(0); |
| | |
| | | companyId: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | status:null, |
| | | type:null |
| | | } |
| | | choosedData.value = [] |
| | | data.companyList = []; |
| | |
| | | companyId: data.queryParams.companyId, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | status:null, |
| | | type:null |
| | | } |
| | | } |
| | | getList(); |
| | |
| | | data.forEach(item => { |
| | | const msg = item.type == 1 ? '评审' : '变更' |
| | | templatePath.value = item.type == 1 ? '/contractReviewExample.docx' : '/contractChangeExample.docx' |
| | | item.reviewMesses = item.reviewMesses.map((i,index) => { |
| | | return{ |
| | | ...i, |
| | | contractReviewMessbs: i.contractReviewMessbs.map((q,qindex) => { |
| | | return{ |
| | | ...q, |
| | | first: qindex == 0, |
| | | num: index+1, |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | item.contractReviewRequires = item.contractReviewRequires.map((item,index) => { |
| | | return { |
| | | ...item, |