作者 张晓杰

合规审查甲乙方加链接

@@ -101,8 +101,26 @@ @@ -101,8 +101,26 @@
101 <span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span> 101 <span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span>
102 </template> 102 </template>
103 </el-table-column> 103 </el-table-column>
104 - <el-table-column label="甲方" align="center" prop="partyA" />  
105 - <el-table-column label="乙方" align="center" prop="partyB" /> 104 + <el-table-column label="甲方" align="center" prop="partyA" >
  105 + <template slot-scope="scope">
  106 + <a
  107 + :href="scope.row.partyAAddress"
  108 + target="_blank"
  109 + style="color: #1890ff"
  110 + >{{ scope.row.partyA }}</a
  111 + >
  112 + </template>
  113 + </el-table-column>
  114 + <el-table-column label="乙方" align="center" prop="partyB" >
  115 + <template slot-scope="scope">
  116 + <a
  117 + :href="scope.row.partyBAddress"
  118 + target="_blank"
  119 + style="color: #1890ff"
  120 + >{{ scope.row.partyA }}</a
  121 + >
  122 + </template>
  123 + </el-table-column>
106 <el-table-column label="签订日期" align="center" prop="signingDate" width="180"> 124 <el-table-column label="签订日期" align="center" prop="signingDate" width="180">
107 <template slot-scope="scope"> 125 <template slot-scope="scope">
108 <span>{{ parseTime(scope.row.signingDate, '{y}-{m}-{d}') }}</span> 126 <span>{{ parseTime(scope.row.signingDate, '{y}-{m}-{d}') }}</span>
@@ -234,38 +234,19 @@ @@ -234,38 +234,19 @@
234 v-hasPermi="['workflow:process:cancel']" 234 v-hasPermi="['workflow:process:cancel']"
235 >取消</el-button 235 >取消</el-button
236 > 236 >
237 - <el-button  
238 - type="text"  
239 - size="mini"  
240 - icon="el-icon-refresh-right"  
241 - v-hasPermi="['workflow:process:start']"  
242 - @click="handleAgain(scope.row)"  
243 - >重新发起</el-button  
244 - >  
245 - <el-button  
246 - type="text"  
247 - size="mini"  
248 - icon="el-icon-edit-outline"  
249 - v-hasPermi="['workflow:process:start']"  
250 - @click="handleEvaluate(scope.row)"  
251 - >履行评价</el-button  
252 - >  
253 - <el-button  
254 - type="text"  
255 - size="mini"  
256 - icon="el-icon-edit-outline"  
257 - @click="handleEdit(scope.row)"  
258 - >合同变更</el-button  
259 - >  
260 - <el-switch  
261 - class="switch"  
262 - v-model="scope.row.status"  
263 - :active-value="0"  
264 - :inactive-value="1"  
265 - active-text="进行中"  
266 - inactive-text="已解除"  
267 - >  
268 - </el-switch> 237 + <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['workflow:process:start', 'workflow:process:start']">
  238 + <el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button>
  239 + <el-dropdown-menu slot="dropdown">
  240 + <el-dropdown-item command="handleAgain" icon="el-icon-refresh-right"
  241 + v-hasPermi="['workflow:process:start']">重新发起</el-dropdown-item>
  242 + <el-dropdown-item command="handleEvaluate" icon="el-icon-star-off"
  243 + >履行评价</el-dropdown-item>
  244 + <el-dropdown-item command="handleEdit" icon="el-icon-edit-outline"
  245 + v-hasPermi="['workflow:process:start']">合同变更</el-dropdown-item>
  246 + <el-dropdown-item command="handleUnbind" icon="el-icon-edit-outline">
  247 + 解绑</el-dropdown-item>
  248 + </el-dropdown-menu>
  249 + </el-dropdown>
269 </template> 250 </template>
270 </el-table-column> 251 </el-table-column>
271 </el-table> 252 </el-table>
@@ -289,6 +270,7 @@ @@ -289,6 +270,7 @@
289 type="application/pdf" 270 type="application/pdf"
290 width="100%" 271 width="100%"
291 height="800px" 272 height="800px"
  273 + v-if="pdfUrl"
292 /> 274 />
293 </el-dialog> 275 </el-dialog>
294 <!-- 添加或修改【请填写功能名称】对话框 --> 276 <!-- 添加或修改【请填写功能名称】对话框 -->
@@ -526,6 +508,29 @@ export default { @@ -526,6 +508,29 @@ export default {
526 this.getList(); 508 this.getList();
527 }, 509 },
528 methods: { 510 methods: {
  511 + // 更多操作触发
  512 + handleCommand(command, row) {
  513 + switch (command) {
  514 + case "handleAgain":
  515 + this.handleAgain(row);
  516 + break;
  517 + case "handleEvaluate":
  518 + this.handleEvaluate(row);
  519 + break;
  520 + case "handleEdit":
  521 + this.handleEdit(row);
  522 + break;
  523 + case "handleUnbind":
  524 + this.handleUnbind(row);
  525 + break;
  526 +
  527 + default:
  528 + break;
  529 + }
  530 + },
  531 + handleUnbind(row){
  532 + console.log(row)
  533 + },
529 /** 查询【请填写功能名称】列表 */ 534 /** 查询【请填写功能名称】列表 */
530 getList() { 535 getList() {
531 this.loading = true; 536 this.loading = true;
@@ -98,9 +98,9 @@ @@ -98,9 +98,9 @@
98 <el-table-column type="selection" width="50px" align="center" /> 98 <el-table-column type="selection" width="50px" align="center" />
99 <el-table-column label="单位编号" align="center" prop="orgcode" /> 99 <el-table-column label="单位编号" align="center" prop="orgcode" />
100 <el-table-column label="单位名称" align="center" prop="orgname" /> 100 <el-table-column label="单位名称" align="center" prop="orgname" />
101 - <el-table-column label="进行中合同" align="center" prop="tocontract" />  
102 - <el-table-column label="已完成合同" align="center" prop="okcontract" />  
103 - <el-table-column label="已解除合同" align="center" prop="stopcontract" /> 101 + <el-table-column label="进行中" align="center" prop="tocontract" />
  102 + <el-table-column label="已完成" align="center" prop="okcontract" />
  103 + <el-table-column label="已解除" align="center" prop="stopcontract" />
104 <el-table-column label="应付金额" align="center" prop="copePrice" /> 104 <el-table-column label="应付金额" align="center" prop="copePrice" />
105 <el-table-column label="已付金额" align="center" prop="paidPrice" /> 105 <el-table-column label="已付金额" align="center" prop="paidPrice" />
106 </el-table> 106 </el-table>