|
|
@@ -516,7 +516,7 @@ $(document).ready(function() {
|
|
|
})
|
|
|
console.log(pays);
|
|
|
newPays.forEach((pay, idx) => {
|
|
|
- const shenpi_html = setPayShenpiHtml(pay);
|
|
|
+ const shenpi_html = setPayShenpiHtml(pay, false, node);
|
|
|
const operationHtml = !pay.fpcid ? `<a href="javascript:void(0);" class="text-primary pay-edit" data-id="${pay.id}" ${!pay.showEdit ? `style="display:none"` : ''}>编辑</a> <a href="javascript:void(0);" class="text-danger pay-del" data-id="${pay.id}" ${!pay.showEdit ? `style="display:none"` : ''}>删除</a>` : '';
|
|
|
paysHtml += `<tr class="text-center" data-cpid="${pay.id}">
|
|
|
<td style="position: relative">${idx + 1}${ pay.fpcid ? '<a href="javascript:void(0);" style="position: absolute;right: 2px;top:50%;transform: translate(-50%, -50%);"><i class="fa fa-cny"></i></a>' : ''}</td>
|
|
|
@@ -2525,9 +2525,13 @@ $(document).ready(function() {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- function setPayShenpiHtml(pay, reload = false) {
|
|
|
+ function setPayShenpiHtml(pay, reload = false, contract = null) {
|
|
|
let shenpi_html = '';
|
|
|
if (pay_shenpi_status) {
|
|
|
+ if (shenpi_status && contract && contract.status !== auditConst.status.checked) {
|
|
|
+ shenpi_html += `<td class="text-secondary">合同未完成审批</td>`;
|
|
|
+ return shenpi_html;
|
|
|
+ }
|
|
|
shenpi_html += !reload ? `<td class="shenpi-td ${auditConst.auditProgressClass[pay.status]}">` : '';
|
|
|
if ((pay.status === auditConst.status.uncheck || pay.status === auditConst.status.checkNo) && pay.uid === user_id) {
|
|
|
shenpi_html += `<a href="javascript:void(0);" node-cid="${pay.cid}" node-cpid="${pay.id}" class="btn ${auditConst.statusButtonClass[pay.status]} btn-sm show-sub-sp">${auditConst.statusButton[pay.status]}</a>`;
|