Tony Kang 2 роки тому
батько
коміт
ad854cfc6e
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      app/view/payment/detail.ejs

+ 4 - 3
app/view/payment/detail.ejs

@@ -236,7 +236,7 @@
                         imgSrc = OSS_PATH + dtlPath;
                     }
                     let couldCreate = true;
-                    if (srcCell.picFeatures && srcCell.picFeatures.length === paths.length && srcCell.picFeatures[dtlPathIdx] === 'not found!') {
+                    if (srcCell.picFeatures && srcCell.picFeatures.length === paths.length && (srcCell.picFeatures[dtlPathIdx] === 'not found!')) {
                         couldCreate = false;
                     }
                     if (couldCreate) {
@@ -259,11 +259,12 @@
                         const newStampCell = {
                             signature_name: 'dummy_pic',
                             control: srcCell.control,
-                            style: srcCell.style,
+                            // style: srcCell.style,
+                            style: (srcCell.style && srcCell.style !== '') ? srcCell.style : 'sign_pic' ,
                             path: imgSrc,
                             isStamp: true,
                             area,
-                            // isOrgShow: (dtlPathIdx === 0),
+                            isOrgShow: (dtlPathIdx === 0),
                         };
                         rstCells.push(newStampCell);
                     }