|
@@ -563,6 +563,7 @@ export default {
|
|
|
this.$set(this.form, "zfcSubject", this.ticketList[0].zfcSubject);
|
|
|
this.$set(this.form, "zfcId", this.ticketList[0].zfcId);
|
|
|
this.open = false
|
|
|
+ this.queryParamsContract.zfcName = null
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: '请选择合同',
|
|
@@ -577,6 +578,7 @@ export default {
|
|
|
this.$refs.tableContract.clearSelection();
|
|
|
}
|
|
|
this.open = false;
|
|
|
+ this.queryParamsContract.zfcName = null
|
|
|
},
|
|
|
/** 清空选择发票信息 */
|
|
|
deleteTicekt() {
|
|
@@ -602,7 +604,7 @@ export default {
|
|
|
if (row.pfiUrl) {
|
|
|
if (pfiFileName.substr(-3) == "pdf") {
|
|
|
this.wordUrl = pfiUrl + "/" + getToken();
|
|
|
- } else {
|
|
|
+ } else if(pfiFileName.substr(-3) == "doc" || pfiFileName.substr(-3) == "docx"){
|
|
|
this.wordUrl =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
pfiUrl +
|
|
@@ -610,6 +612,12 @@ export default {
|
|
|
getToken() +
|
|
|
"/" +
|
|
|
pfiFileName;
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: "暂不支持该类型文件预览",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
|