diff --git a/src/assets/images/sunVillage_info/PDF.png b/src/assets/images/sunVillage_info/PDF.png
new file mode 100644
index 00000000..4c04d10c
Binary files /dev/null and b/src/assets/images/sunVillage_info/PDF.png differ
diff --git a/src/assets/images/sunVillage_info/PPT.png b/src/assets/images/sunVillage_info/PPT.png
new file mode 100644
index 00000000..a80d0b67
Binary files /dev/null and b/src/assets/images/sunVillage_info/PPT.png differ
diff --git a/src/assets/images/sunVillage_info/RAR.png b/src/assets/images/sunVillage_info/RAR.png
new file mode 100644
index 00000000..97425b8d
Binary files /dev/null and b/src/assets/images/sunVillage_info/RAR.png differ
diff --git a/src/router/index.js b/src/router/index.js
index 3ca9d5f5..be091e2c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2005,15 +2005,6 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/yinnong/personalPicture'], resolve)
},
- {
- path: '/yinnong/done',
- name: 'yinnongDone',
- meta: {
- title: '我的已办',
- hidden: true,
- },
- component: (resolve) => require(['@/views/yinnong/done'], resolve)
- },
{
path: '/yinnong/doneCompleted/doneNew',
name: 'yinnongDoneCompletedDoneNew',
@@ -2023,15 +2014,6 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/yinnong/doneCompleted/doneNew'], resolve)
},
- {
- path: '/yinnong/doneCompleted/completed',
- name: 'yinnongDoneCompletedCompleted',
- meta: {
- title: '我的待办',
- hidden: true,
- },
- component: (resolve) => require(['@/views/yinnong/doneCompleted/completed'], resolve)
- },
{
path: '/yinnong/doneCompleted/completedNew',
name: 'yinnongDoneCompletedCompletedNew',
diff --git a/src/views/sunVillage_info/bankAgriculture/collectionAccount/collectionAdd.vue b/src/views/sunVillage_info/bankAgriculture/collectionAccount/collectionAdd.vue
index 52f4d120..558a4b73 100644
--- a/src/views/sunVillage_info/bankAgriculture/collectionAccount/collectionAdd.vue
+++ b/src/views/sunVillage_info/bankAgriculture/collectionAccount/collectionAdd.vue
@@ -181,16 +181,16 @@
},
changeInform(val){
- console.log(val)
var that = this;
var str = val;
var numArr = str.match(/\d+/g)
- var nameArr = str.match(/[\u4e00-\u9fa5]/g).join("")
- console.log(numArr)
- console.log(nameArr)
+ var nameArr = str.match(/[\u4e00-\u9fa5]/g);
+ if(nameArr != null){
+ nameArr = nameArr.join("")
+ }
if (numArr) {
numArr.map(rr=>{
- if (rr.length>16) {
+ if (rr.length>=16) {
const carId = isBankCard(rr);
if (carId) {
that.form.payee = nameArr;
diff --git a/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue b/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue
index 1ae2e27c..c8254e42 100644
--- a/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue
+++ b/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd.vue
@@ -328,11 +328,41 @@
上传附件(若申请单未变动可不必点击底部的修改按钮)
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
@@ -680,6 +710,120 @@
})
});
},
+ previewPreview(file, index, len) {
+ const baseImgUrl = this.$store.getters.baseRoutingUrl;
+ if (file.url) {
+ //已上传文件
+ let fileName = file.file.name || file.url;
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ let imgi = file.listIndex
+ //console.log(ext)
+ let allUrl = file.url;
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ const link = document.createElement("a");
+ link.style.display = "none";
+ link.target = "_blank"
+ link.href = allUrl;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+
+ } else {
+ //新上传文件
+ let fileName = file.file.name;
+ // console.info(file.file.name)
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ let type = this.getfileType(ext);
+ // 将文件转换为base64编码
+ this.fileToBase64(file.file, ext).then(res => {
+ this.downloadFile(res, fileName, ext, type);
+ })
+ }
+ }
+ },
+ downloadFile(base64, fileName, fileType, mimetype) {
+ const typeHeader = 'data:application/' + fileType + ';base64,';
+ const blob = this.base64ToBlob(base64, mimetype);
+ this.downloadFileDownload(blob, fileName, fileType);
+ },
+ fileToBase64(file,fileType){
+ return new Promise((resolve,reject)=>{
+ //创建一个新的FileReader 对象
+ const reader = new FileReader();
+ //读取file对象
+ reader.readAsDataURL(file);
+ reader.onload=function () {
+ const base64String = reader.result.split(",")[1];
+ resolve('data:application/' + fileType + ';base64,'+base64String);
+ }
+ reader.onerror=function () {
+ reject(new Error("Failed to load file") )
+ }
+ })
+ },
+ base64ToBlob(base64, mime) {
+ //解码base64得到二进制字符串
+
+ let raw = window.atob(base64.substring(base64.indexOf(',') + 1));
+ let rawLength = raw.length
+ //创建8位无符号整数值的类型化数组
+ let uInt8Array = new Uint8Array(rawLength)
+ for (let i = 0; i < rawLength; ++i) {
+ uInt8Array[i] = raw.charCodeAt(i);
+ }
+ return new Blob([uInt8Array], {type: mime})
+ },
+ getfileType(type) {
+ switch (type) {
+ case 'txt':
+ return 'text/plain';
+ case 'doc':
+ return 'application/msword';
+ case 'docx':
+ return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
+ case 'xls':
+ return 'application/vnd.ms-excel';
+ case 'xlsx':
+ return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+ case 'pdf':
+ return 'application/pdf';
+ case 'pptx':
+ return 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
+ case 'png':
+ return 'image/png';
+ case 'jpg':
+ return 'image/jpeg';
+ case 'gif':
+ return 'image/gif';
+ case 'svg':
+ return 'image/svg+xml';
+ case 'ico':
+ return 'image/x-icon';
+ case 'bmp':
+ return 'image/bmp,';
+ }
+ },
+ downloadFileDownload(blob, fileName, fileType) {
+ const downloadElement = document.createElement('a');
+ let href = blob;
+ if (typeof blob === 'string') {
+ downloadElement.target = '_blank'
+ } else {
+ href = window.URL.createObjectURL(blob)
+ }
+ downloadElement.href = href;
+ downloadElement.download = fileName + '.' + fileType;//下载后文件名
+ document.body.appendChild(downloadElement);
+ downloadElement.click();
+ document.body.removeChild(downloadElement)
+ if (typeof blob !== 'string') {
+ window.URL.revokeObjectURL(href)
+ }
+ },
payeeDictLabel(datas, value) {
var actions = [];
Object.keys(datas).some((key) => {
@@ -1187,6 +1331,20 @@
commonAttach(params1).then((r1) => {
file.id=r1.id;
file.fileUrl = r1.fileUrl;
+ let subIndex = r1.fileUrl.lastIndexOf(".");
+ let ext = r1.fileUrl.substring(subIndex + 1, r1.fileUrl.length);
+ let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL;
+ let fileData = {"url": baseUrl + r1.fileUrl, "file": new File([], "name", {}), "id": r1.id,"type":ext};
+ if(obj === '1'){
+ this.fileList1.splice(-1, 1);
+ this.fileList1.push(fileData);
+ }else if(obj === '2'){
+ this.fileList2.splice(-1, 1);
+ this.fileList2.push(fileData);
+ }else{
+ this.fileList3.splice(-1, 1);
+ this.fileList3.push(fileData);
+ }
})
}
},
@@ -1203,7 +1361,9 @@
attachmentList(oData1).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData2= {
@@ -1215,7 +1375,9 @@
attachmentList(oData2).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData3= {
@@ -1227,7 +1389,9 @@
attachmentList(oData3).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
},
diff --git a/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue b/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue
index df527990..35087748 100644
--- a/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue
+++ b/src/views/sunVillage_info/bankAgriculture/paymentApproval/approvalAdd11.vue
@@ -1,18 +1,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
添加备付金支出申请
@@ -124,11 +124,13 @@
-
+
关联项目
-
+
-
-
+
+
-
+
关联合同
@@ -195,8 +200,10 @@
@cancel="showcontract = false"
/>
-
-
+
+
付款方信息
@@ -223,37 +230,85 @@
@cancel="showpayer = false"
/>
-
+
-
收款方信息
-
-
+
收款方信息
+
+
+
上传附件
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- 保存
+ 保存
+
- 保存并提交
+ 保存并提交
+
@@ -263,8 +318,10 @@
diff --git a/src/views/sunVillage_info/list_tourists_registration.vue b/src/views/sunVillage_info/list_tourists_registration.vue
index e19014e8..b412e1b3 100644
--- a/src/views/sunVillage_info/list_tourists_registration.vue
+++ b/src/views/sunVillage_info/list_tourists_registration.vue
@@ -29,8 +29,8 @@
姓名
-
- 张三
+
+ {{item.workerName}}
@@ -43,10 +43,10 @@
出工事由
出工数
-
- 2023-03-05
- 上班打卡
- 8
+
+ {{item.jobTime}}
+ {{item.workReason}}
+ {{item.workNum}}
@@ -77,6 +77,7 @@
fileList:[],
listLength:'0',
searchInput:'',
+ pageNum:0,
queryParams:{
pageNum:1,
pageSize:10,
@@ -92,6 +93,7 @@
showBtn:true,
yearMonth:[],
yearList:[],
+ oddjobList:[],
deptName:'',
nowYear:new Date().getFullYear(),
};
@@ -109,7 +111,14 @@
methods: {
getList(){
var _this = this;
-
+ let params = {
+ bookId:this.queryParams.bookId,
+ yearMonth:this.queryParams.yearMonth,
+ }
+ listOddjob(params).then(response => {
+ this.listLength = response.total;
+ this.oddjobList = response.rows;
+ });
},
tabClickMonth(month){
this.month = month ;
diff --git a/src/views/sunVillage_info/list_tourists_registration_add.vue b/src/views/sunVillage_info/list_tourists_registration_add.vue
index 0c0f4d36..75368e19 100644
--- a/src/views/sunVillage_info/list_tourists_registration_add.vue
+++ b/src/views/sunVillage_info/list_tourists_registration_add.vue
@@ -4,7 +4,7 @@
零工登记
-
+

@@ -16,7 +16,7 @@
clickable
label="出工日期"
placeholder="请选择"
- v-model="value"
+ v-model="form.jobTime"
@click="showBuildTime = true"
input-align="right"
right-icon="arrow-down"
@@ -30,24 +30,25 @@
type="date"
title="选择年月日"
:min-date="minDate"
- v-model="buildTime"
+ :max-date="maxDate"
+ :value="new Date"
@confirm="onConfirmBuildTime"
@cancel="showBuildTime = false"
/>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
保存
@@ -55,15 +56,16 @@
diff --git a/src/views/yinnong/bankAgriculture/collectionAccount/collectionAdd.vue b/src/views/yinnong/bankAgriculture/collectionAccount/collectionAdd.vue
index c8915e0a..27aeed02 100644
--- a/src/views/yinnong/bankAgriculture/collectionAccount/collectionAdd.vue
+++ b/src/views/yinnong/bankAgriculture/collectionAccount/collectionAdd.vue
@@ -180,12 +180,13 @@
var that = this;
var str = val;
var numArr = str.match(/\d+/g)
- var nameArr = str.match(/[\u4e00-\u9fa5]/g).join("")
- console.log(numArr)
- console.log(nameArr)
+ var nameArr = str.match(/[\u4e00-\u9fa5]/g)
+ if(nameArr != null){
+ nameArr = nameArr.join("")
+ }
if (numArr) {
numArr.map(rr=>{
- if (rr.length>16) {
+ if (rr.length>=16) {
const carId = isBankCard(rr);
if (carId) {
that.form.payee = nameArr;
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue
index a24ce9ac..2fb1a7d3 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue
@@ -275,7 +275,7 @@
-
+
上传附件(若申请单未变动可不必点击底部的修改按钮)
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
@@ -538,6 +568,120 @@
let dd = new Date().getDate();
_this.nowDate = moment(new Date()).format("YYYY-MM-DD");
},
+ previewPreview(file, index, len) {
+ const baseImgUrl = this.$store.getters.baseRoutingUrl;
+ if (file.url) {
+ //已上传文件
+ let fileName = file.file.name || file.url;
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ let imgi = file.listIndex
+ //console.log(ext)
+ let allUrl = file.url;
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ const link = document.createElement("a");
+ link.style.display = "none";
+ link.target = "_blank"
+ link.href = allUrl;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+
+ } else {
+ //新上传文件
+ let fileName = file.file.name;
+ // console.info(file.file.name)
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ let type = this.getfileType(ext);
+ // 将文件转换为base64编码
+ this.fileToBase64(file.file, ext).then(res => {
+ this.downloadFile(res, fileName, ext, type);
+ })
+ }
+ }
+ },
+ getfileType(type) {
+ switch (type) {
+ case 'txt':
+ return 'text/plain';
+ case 'doc':
+ return 'application/msword';
+ case 'docx':
+ return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
+ case 'xls':
+ return 'application/vnd.ms-excel';
+ case 'xlsx':
+ return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+ case 'pdf':
+ return 'application/pdf';
+ case 'pptx':
+ return 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
+ case 'png':
+ return 'image/png';
+ case 'jpg':
+ return 'image/jpeg';
+ case 'gif':
+ return 'image/gif';
+ case 'svg':
+ return 'image/svg+xml';
+ case 'ico':
+ return 'image/x-icon';
+ case 'bmp':
+ return 'image/bmp,';
+ }
+ },
+ downloadFile(base64, fileName, fileType, mimetype) {
+ const typeHeader = 'data:application/' + fileType + ';base64,';
+ const blob = this.base64ToBlob(base64, mimetype);
+ this.downloadFileDownload(blob, fileName, fileType);
+ },
+ base64ToBlob(base64, mime) {
+ //解码base64得到二进制字符串
+
+ let raw = window.atob(base64.substring(base64.indexOf(',') + 1));
+ let rawLength = raw.length
+ //创建8位无符号整数值的类型化数组
+ let uInt8Array = new Uint8Array(rawLength)
+ for (let i = 0; i < rawLength; ++i) {
+ uInt8Array[i] = raw.charCodeAt(i);
+ }
+ return new Blob([uInt8Array], {type: mime})
+ },
+ downloadFileDownload(blob, fileName, fileType) {
+ const downloadElement = document.createElement('a');
+ let href = blob;
+ if (typeof blob === 'string') {
+ downloadElement.target = '_blank'
+ } else {
+ href = window.URL.createObjectURL(blob)
+ }
+ downloadElement.href = href;
+ downloadElement.download = fileName + '.' + fileType;//下载后文件名
+ document.body.appendChild(downloadElement);
+ downloadElement.click();
+ document.body.removeChild(downloadElement)
+ if (typeof blob !== 'string') {
+ window.URL.revokeObjectURL(href)
+ }
+ },
+ fileToBase64(file,fileType){
+ return new Promise((resolve,reject)=>{
+ //创建一个新的FileReader 对象
+ const reader = new FileReader();
+ //读取file对象
+ reader.readAsDataURL(file);
+ reader.onload=function () {
+ const base64String = reader.result.split(",")[1];
+ resolve('data:application/' + fileType + ';base64,'+base64String);
+ }
+ reader.onerror=function () {
+ reject(new Error("Failed to load file") )
+ }
+ })
+ },
initProjectInfo(){
let _this = this
let queryParams={
@@ -1168,6 +1312,20 @@
commonAttach(params1).then((r1) => {
file.id=r1.id;
file.fileUrl = r1.fileUrl;
+ let subIndex = r1.fileUrl.lastIndexOf(".");
+ let ext = r1.fileUrl.substring(subIndex + 1, r1.fileUrl.length);
+ let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL;
+ let fileData = {"url": baseUrl + r1.fileUrl, "file": new File([], "name", {}), "id": r1.id,"type":ext};
+ if(obj === '1'){
+ this.fileList1.splice(-1, 1);
+ this.fileList1.push(fileData);
+ }else if(obj === '2'){
+ this.fileList2.splice(-1, 1);
+ this.fileList2.push(fileData);
+ }else{
+ this.fileList3.splice(-1, 1);
+ this.fileList3.push(fileData);
+ }
})
}
},
@@ -1184,7 +1342,9 @@
attachmentList(oData1).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData2= {
@@ -1196,7 +1356,9 @@
attachmentList(oData2).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData3= {
@@ -1208,7 +1370,9 @@
attachmentList(oData3).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
},
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue
index 88c65863..994183aa 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue
@@ -232,11 +232,11 @@
上传附件
-
+
-
+
-
+
@@ -445,6 +445,120 @@
}
});
},
+ previewPreview(file, index, len) {
+ const baseImgUrl = this.$store.getters.baseRoutingUrl;
+ if (file.url) {
+ //已上传文件
+ let fileName = file.file.name || file.url;
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ let imgi = file.listIndex
+ //console.log(ext)
+ let allUrl = file.url;
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ const link = document.createElement("a");
+ link.style.display = "none";
+ link.target = "_blank"
+ link.href = allUrl;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+
+ } else {
+ //新上传文件
+ let fileName = file.file.name;
+ // console.info(file.file.name)
+ let subIndex = fileName.lastIndexOf(".");
+ let ext = fileName.substring(subIndex + 1, fileName.length);
+ if(ext !== 'jpg' && ext !== 'png' && ext !== 'gif' && ext !== 'svg' && ext !== 'ico' && ext !== 'bmp'){
+ let type = this.getfileType(ext);
+ // 将文件转换为base64编码
+ this.fileToBase64(file.file, ext).then(res => {
+ this.downloadFile(res, fileName, ext, type);
+ })
+ }
+ }
+ },
+ getfileType(type) {
+ switch (type) {
+ case 'txt':
+ return 'text/plain';
+ case 'doc':
+ return 'application/msword';
+ case 'docx':
+ return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
+ case 'xls':
+ return 'application/vnd.ms-excel';
+ case 'xlsx':
+ return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+ case 'pdf':
+ return 'application/pdf';
+ case 'pptx':
+ return 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
+ case 'png':
+ return 'image/png';
+ case 'jpg':
+ return 'image/jpeg';
+ case 'gif':
+ return 'image/gif';
+ case 'svg':
+ return 'image/svg+xml';
+ case 'ico':
+ return 'image/x-icon';
+ case 'bmp':
+ return 'image/bmp,';
+ }
+ },
+ downloadFile(base64, fileName, fileType, mimetype) {
+ const typeHeader = 'data:application/' + fileType + ';base64,';
+ const blob = this.base64ToBlob(base64, mimetype);
+ this.downloadFileDownload(blob, fileName, fileType);
+ },
+ base64ToBlob(base64, mime) {
+ //解码base64得到二进制字符串
+
+ let raw = window.atob(base64.substring(base64.indexOf(',') + 1));
+ let rawLength = raw.length
+ //创建8位无符号整数值的类型化数组
+ let uInt8Array = new Uint8Array(rawLength)
+ for (let i = 0; i < rawLength; ++i) {
+ uInt8Array[i] = raw.charCodeAt(i);
+ }
+ return new Blob([uInt8Array], {type: mime})
+ },
+ downloadFileDownload(blob, fileName, fileType) {
+ const downloadElement = document.createElement('a');
+ let href = blob;
+ if (typeof blob === 'string') {
+ downloadElement.target = '_blank'
+ } else {
+ href = window.URL.createObjectURL(blob)
+ }
+ downloadElement.href = href;
+ downloadElement.download = fileName + '.' + fileType;//下载后文件名
+ document.body.appendChild(downloadElement);
+ downloadElement.click();
+ document.body.removeChild(downloadElement)
+ if (typeof blob !== 'string') {
+ window.URL.revokeObjectURL(href)
+ }
+ },
+ fileToBase64(file,fileType){
+ return new Promise((resolve,reject)=>{
+ //创建一个新的FileReader 对象
+ const reader = new FileReader();
+ //读取file对象
+ reader.readAsDataURL(file);
+ reader.onload=function () {
+ const base64String = reader.result.split(",")[1];
+ resolve('data:application/' + fileType + ';base64,'+base64String);
+ }
+ reader.onerror=function () {
+ reject(new Error("Failed to load file") )
+ }
+ })
+ },
// 表单重置
reset() {
this.form = {
@@ -700,6 +814,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
})
@@ -710,6 +825,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
})
@@ -718,6 +834,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -776,6 +893,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -792,6 +910,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -807,6 +926,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -828,6 +948,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -844,6 +965,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -859,6 +981,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -889,6 +1012,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -905,6 +1029,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -920,6 +1045,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -940,6 +1066,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -956,6 +1083,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -971,6 +1099,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1011,6 +1140,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1027,6 +1157,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1043,6 +1174,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1063,6 +1195,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1079,6 +1212,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1094,6 +1228,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1124,6 +1259,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1140,6 +1276,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1155,6 +1292,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1175,6 +1313,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1191,6 +1330,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1206,6 +1346,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1308,6 +1449,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1322,6 +1464,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1335,6 +1478,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1353,6 +1497,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1367,6 +1512,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1380,6 +1526,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1408,6 +1555,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1422,6 +1570,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1435,6 +1584,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1453,6 +1603,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1467,6 +1618,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1480,6 +1632,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1518,6 +1671,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1532,6 +1686,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1545,6 +1700,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1563,6 +1719,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1577,6 +1734,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1590,6 +1748,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1618,6 +1777,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1632,6 +1792,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1645,6 +1806,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1663,6 +1825,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1677,6 +1840,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1690,6 +1854,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
})
@@ -1857,7 +2022,9 @@
attachmentList(oData1).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData2= {
@@ -1869,7 +2036,9 @@
attachmentList(oData2).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
let oData3= {
@@ -1881,7 +2050,9 @@
attachmentList(oData3).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext})
})
})
},
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue
index a91de357..b294a63c 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue
@@ -782,6 +782,8 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
+
},2000)
})
}else{
@@ -789,6 +791,7 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -801,6 +804,7 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -808,6 +812,7 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -818,6 +823,7 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -825,6 +831,7 @@
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -880,6 +887,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -887,6 +895,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -898,6 +907,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -905,6 +915,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -915,6 +926,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -922,6 +934,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -937,6 +950,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -944,6 +958,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -955,6 +970,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -962,6 +978,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -972,6 +989,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -979,6 +997,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1004,6 +1023,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1011,6 +1031,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1022,6 +1043,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1029,6 +1051,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1039,6 +1062,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1046,6 +1070,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1061,6 +1086,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1068,6 +1094,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1079,6 +1106,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1086,6 +1114,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1096,6 +1125,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1103,6 +1133,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1138,6 +1169,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1145,6 +1177,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1156,6 +1189,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1163,6 +1197,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1173,6 +1208,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1180,6 +1216,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1195,6 +1232,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1202,6 +1240,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1213,6 +1252,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1220,6 +1260,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1230,6 +1271,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1237,6 +1279,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1262,6 +1305,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1269,6 +1313,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1280,6 +1325,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1287,6 +1333,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1297,6 +1344,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1304,6 +1352,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1319,6 +1368,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1326,6 +1376,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1337,6 +1388,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1344,6 +1396,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1354,6 +1407,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
@@ -1361,6 +1415,7 @@
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}
@@ -1446,6 +1501,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1453,12 +1509,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1470,6 +1528,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1477,12 +1536,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1504,6 +1565,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1511,12 +1573,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1528,6 +1592,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1535,12 +1600,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1572,6 +1639,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1579,12 +1647,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1596,6 +1666,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1603,12 +1674,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1630,6 +1703,7 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(_this.form.capitalExpenditureType==4){
@@ -1637,12 +1711,14 @@
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
_this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
@@ -1654,6 +1730,7 @@
this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
} else if(this.form.capitalExpenditureType==4){
@@ -1661,12 +1738,14 @@
this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
})
}else{
this.$toast.success('保存成功');
setTimeout(function(){
history.go(-1)
+ window.location.reload();
},2000)
}
}
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
index 9f859446..4662d81d 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
@@ -78,7 +78,17 @@
上传附件(收据)
附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}
@@ -87,7 +97,17 @@
上传附件(发票)
附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}
@@ -96,7 +116,17 @@
上传附件(其他)
附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}
@@ -332,7 +362,9 @@
attachmentList(oData1).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
let oData2= {
@@ -344,7 +376,9 @@
attachmentList(oData2).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
let oData3= {
@@ -356,7 +390,9 @@
attachmentList(oData3).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
},
@@ -366,7 +402,7 @@
const data = {
taskId: this.$route.query.taskId,
auditbatchNo: this.$route.query.auditbatchNo,
- comment: this.comment,
+ remark: this.comment,
pass: this.pass,
};
approval(data).then((response) => {
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
index 08e9061b..61eb68cd 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
@@ -68,7 +68,17 @@
上传附件(收据)
附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}
@@ -77,7 +87,17 @@
上传附件(发票)
附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}
@@ -86,7 +106,17 @@
上传附件(其他)
附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}
@@ -315,7 +345,9 @@
attachmentList(oData1).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
let oData2= {
@@ -327,7 +359,9 @@
attachmentList(oData2).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
let oData3= {
@@ -339,7 +373,9 @@
attachmentList(oData3).then(res => {
res.rows.map(r => {
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
- this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ let subIndex = r.fileName.lastIndexOf(".");
+ let ext = r.fileName.substring(subIndex + 1, r.fileName.length);
+ this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext,"fileName":r.fileName})
})
})
},
@@ -355,7 +391,7 @@
const data = {
taskId: this.$route.query.taskId,
auditbatchNo: this.$route.query.auditbatchNo,
- comment: this.comment,
+ remark: this.comment,
pass: this.pass,
};
console.log(data);
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalDetail.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalDetail.vue
index 30254e95..a64781fd 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalDetail.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalDetail.vue
@@ -15,8 +15,8 @@
基础信息
-
-
+
+
@@ -26,15 +26,18 @@
-
+
-
+
-
+
付款方信息
@@ -44,14 +47,14 @@
-
+
-
+
-
+
@@ -59,116 +62,170 @@
收款方信息
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
查看更多
+
+ 查看更多
收起列表
上传附件
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/src/views/yinnong/doneCompleted/completedNew.vue b/src/views/yinnong/doneCompleted/completedNew.vue
index 45dad854..dda2fa97 100644
--- a/src/views/yinnong/doneCompleted/completedNew.vue
+++ b/src/views/yinnong/doneCompleted/completedNew.vue
@@ -14,18 +14,18 @@
finished-text="没有更多了"
@load="getList"
>
-
-
+
+
-
+
{{item.systemType =='4'?selectDictLabel(transferTypeOptions, item.data.transferType):item.auditName}}
+ src="../../../../static/images/onlineHome/done.png">{{item.auditName}}
@@ -34,7 +34,7 @@
- {{item.createTime?item.createTime.substring(0,10):item.data.updateTime.substring(0,10)}}
+ {{item.createTime.substring(0,10)}}
{{item.businessType}}
diff --git a/src/views/yinnong/doneCompleted/done.vue b/src/views/yinnong/doneCompleted/done.vue
deleted file mode 100644
index 2d81f866..00000000
--- a/src/views/yinnong/doneCompleted/done.vue
+++ /dev/null
@@ -1,170 +0,0 @@
-done.vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.projectName}}
-
-
-
-
-
-
-
-
- {{item.createTime?item.createTime.substring(0,10):item.startTime.substring(0,10)}}
-
-
- {{item.formData.activityBusinessType}}
-
-
- {{activeName=='1'?'待审批':'已审批'}}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/yinnong/doneCompleted/doneNew.vue b/src/views/yinnong/doneCompleted/doneNew.vue
index 12d0170f..7c7eb344 100644
--- a/src/views/yinnong/doneCompleted/doneNew.vue
+++ b/src/views/yinnong/doneCompleted/doneNew.vue
@@ -8,18 +8,18 @@ done.vue
-
-
+
+
-
+
{{item.systemType =='4'?selectDictLabel(transferTypeOptions, item.data.transferType):item.auditName}}
+ src="../../../../static/images/onlineHome/done.png">{{item.auditName}}
@@ -34,7 +34,8 @@ done.vue
{{item.businessType}}
- {{activeName=='1'?'待审批':'已审批'}}
+ 驳回
+ 通过
diff --git a/src/views/yinnongIndex.vue b/src/views/yinnongIndex.vue
index 6b79f04f..0505193b 100644
--- a/src/views/yinnongIndex.vue
+++ b/src/views/yinnongIndex.vue
@@ -4,9 +4,9 @@
- 待办(新)
+ 待办
- 已办(新)
+ 已办
工作台
我的