|
@@ -208,7 +208,8 @@
|
|
|
},
|
|
|
//回签附件
|
|
|
checkBackFiles(){
|
|
|
- const reg = /\.(pdf)|\.doc|\.docx$/;
|
|
|
+ const reg = /\.(pdf)$/;
|
|
|
+ const reg2= /\.doc|\.docx$/
|
|
|
return this.detail&&this.detail.CheckBackFileUrl&&this.detail.CheckBackFileUrl.split("#").map((item) => {
|
|
|
if (reg.test(item)) {
|
|
|
return {
|
|
@@ -216,7 +217,13 @@
|
|
|
url: item,
|
|
|
img: require("@/pages-approve/static/pdf.png"),
|
|
|
};
|
|
|
- } else {
|
|
|
+ } else if(reg2.test(item)){
|
|
|
+ return {
|
|
|
+ type: "word",
|
|
|
+ url: item,
|
|
|
+ img: require("@/pages-approve/static/word.png"),
|
|
|
+ };
|
|
|
+ }else {
|
|
|
return {
|
|
|
type: "img",
|
|
|
url: item,
|
|
@@ -435,7 +442,7 @@
|
|
|
|
|
|
// 预览合同文件
|
|
|
preViewContract(e) {
|
|
|
- if (e.type === "pdf") {
|
|
|
+ if (e.type === "pdf"||e.type==='word') {
|
|
|
preViewFile(e.url)
|
|
|
} else {
|
|
|
this.handlePreviewImg(e.url)
|