diff --git a/config/index.js b/config/index.js
index adc7b121..8386f4ae 100644
--- a/config/index.js
+++ b/config/index.js
@@ -12,7 +12,7 @@ module.exports = {
proxyTable: {
"/api": {
// 请求的目标主机
- // target: 'http://116.255.223.226:8082/nsgk_test/', // 公网测试环境
+ // target: 'http://218.59.175.44:8082/nsgk_test/', // 公网测试环境
// target: `http://192.168.0.116:8091/nsgk_api/`, // 内网测试环境
target: 'http://localhost:8080/',
//target: 'http://192.168.0.106:8080/',
diff --git a/src/api/homesteadSurvey/zjdzd.js b/src/api/homesteadSurvey/zjdzd.js
index 28e9924d..c2ca1ea0 100644
--- a/src/api/homesteadSurvey/zjdzd.js
+++ b/src/api/homesteadSurvey/zjdzd.js
@@ -114,3 +114,7 @@ export function surveyInspectByZjddm(zjddm) {
method: 'get'
})
}
+
+export function submitUploadImageList() {
+ // missing???
+}
diff --git a/src/components/common/PagedList.vue b/src/components/common/PagedList.vue
new file mode 100644
index 00000000..9c467bb6
--- /dev/null
+++ b/src/components/common/PagedList.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval13.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval13.vue
index fa406e80..183cd60a 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval13.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval13.vue
@@ -80,27 +80,27 @@
附件{{fileList&&fileList.length==0?':暂无可下载文件':''}}
{{index+1}}.{{item.fileName}}
-
+
审批
意见
-
+
同意
驳回
-
+
-
+
提交
@@ -116,6 +116,7 @@
import request from '@/utils/request';
import Dialog from "vant/lib/dialog";
import Editor from '@/components/Editor';
+ import {A_auditHistoryDetail} from "@/api/audit/aauditpipeline";
export default {
name: "approvalApproval13",
components: {
@@ -229,10 +230,17 @@
getForm(){
getMajorevent(this.$route.query.id).then(response => {
this.form = response.data;
+ if(!this.isAudit)
+ {
+ A_auditHistoryDetail(this.$route.query.taskId).then((resp) => {
+ this.pass = resp.data.auditStatus === '3' ? "true" : 'false';
+ this.comment = resp.data.auditRemark;
+ });
+ }
});
},
goFlow(){
- window.location='approvalProcess13?id='+this.form.instanceId;
+ window.location='approvalProcess13?id='+this.$route.query.auditbatchNo;
},
getChange(){
updateMajorevent(this.form).then(response => {
@@ -289,14 +297,13 @@
submitForm() {
const data = {
taskId: this.$route.query.taskId,
- instanceId: this.form.instanceId,
- variables: JSON.stringify({
- comment: this.comment,
- pass: this.pass,
- }),
+ auditbatchNo: this.$route.query.auditbatchNo,
+ remark: this.comment,
+ pass: this.pass === "true",
+ deptId: this.form.deptId
};
approval(data).then((response) => {
- if(response.code==200 && response.msg=="操作成功"){
+ if(response.code==200){
this.$toast.success("操作成功");
setTimeout(function(){
history.go(-1)
@@ -309,9 +316,15 @@
},
watch: {
pass: function (val) {
- this.comment = val === "true" ? "同意" : "驳回";
+ if(this.isAudit)
+ this.comment = val === "true" ? "同意" : "驳回";
},
},
+ computed: {
+ isAudit() {
+ return this.$route.query.type != 'done';
+ }
+ }
}
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalProcess13.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalProcess13.vue
index 07d9d30c..58a61249 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalProcess13.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalProcess13.vue
@@ -11,25 +11,25 @@
-
+
-
+
-
- {{item1.activityName}}
+
+ {{item1.actorName}}
- {{item1.startTime}}
+ {{item1.startTime}}
-
+
- {{item1.assigneeName}}
+ {{item1.auditBy}}
- {{item1.comment}}
+ {{item1.auditRemark}}
@@ -39,14 +39,11 @@
@@ -139,7 +143,7 @@ export default {
color: #FFF;
}
.blue{
- background-color: #1D6FE9;
+ background-color: #07c160;
}
.red{
background-color: rgb(245, 108, 108);
diff --git a/src/views/yinnong/doneCompleted/completedNew.vue b/src/views/yinnong/doneCompleted/completedNew.vue
index 46b39153..6792a38b 100644
--- a/src/views/yinnong/doneCompleted/completedNew.vue
+++ b/src/views/yinnong/doneCompleted/completedNew.vue
@@ -8,45 +8,53 @@
-
-
-
-
-
-
-
- {{item.auditName}}
-
-
-
-
-
-
-
-
- {{item.createTime.substring(0,10)}}
-
-
- {{item.businessType}}
-
-
- {{activeName=='1'?'待审批':'已审批'}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{item.auditName}}
+
+
+
+
+
+
+
+
+ {{item.createTime.substring(0,10)}}
+
+
+ {{item.businessType}}
+
+
+ {{activeName=='1'?'待审批':'已审批'}}
+
+
+
+
+
+
+
+
@@ -58,9 +66,12 @@
import { getInfo } from "../../../api/login/index";
import {A_myTodoList} from "../../../api/audit/aauditpipeline";
import Cookies from "js-cookie";
+ import {registrationList} from "@/api/sunVillage_info/subcontract";
+ import PagedList from "@/components/common/PagedList.vue";
export default {
components: {
+ PagedList,
onlineHomeIndex,
yinnongIndex
},
@@ -116,7 +127,40 @@
this.$router.push({name:"yinnongWorkbench"})
}
},
- getList() {
+ getListReq(pageInfo) {
+ //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize);
+ return new Promise((resolve, reject) => {
+ A_myTodoList(this.queryParams).then((response) => {
+ //console.info(_this.taskList.length)
+ response.rows.forEach(res => {
+ // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
+ // res.tableName = '来自农村宅基地管理系统'
+ // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
+ // res.tableName = '来自银农直联审批管理系统'
+ // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
+ // res.tableName = '来自银农直联审批管理系统'
+ // }
+ if(this.activityBusinessTypeOptions){
+ this.activityBusinessTypeOptions.map(t => {
+ if(t.dictValue === res.businessType){
+ res.businessType = t.dictLabel
+ this.taskList.push(res)
+ }
+ });
+ }
+ });
+ resolve(response);
+ });
+ });
+ },
+
+ getList(target) {
+ if(this.$refs.pagedList)
+ {
+ this.$refs.pagedList.getList(target);
+ return;
+ }
+
//this.$set(this.queryParams, "systemType", '4');
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
let _this = this;
@@ -150,11 +194,10 @@
})
}
-
},
goDetail(item){
let type = item.tableName;
- //console.info(type)
+ console.info(type)
switch (type) {
case 't_homeuse_zyyctc':
this.$router.push({name:'sunVillageInfoPaidExitDetailNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"todo",electronicSignature:this.electronicSignature,nickName:this.nickName}})
@@ -189,8 +232,10 @@
this.$router.push({name:'approvalApproval',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"todo"}})
break;
}
+ break;
case 'yinnong_majorevent':
- this.$router.push({name:'approvalApproval13',query: {id:item.data.id,taskId:item.id,type:"todo"}})
+ case 't_yinnong_majorevent':
+ this.$router.push({name:'approvalApproval13',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"todo"}})
break;
case 't_yinnong_cashexpense':
this.$router.push({
diff --git a/src/views/yinnong/doneCompleted/doneNew.vue b/src/views/yinnong/doneCompleted/doneNew.vue
index 8633dec0..99e6bab9 100644
--- a/src/views/yinnong/doneCompleted/doneNew.vue
+++ b/src/views/yinnong/doneCompleted/doneNew.vue
@@ -1,4 +1,4 @@
-done.vue
+
-
+
+
@@ -48,7 +53,7 @@ done.vue
-
+
@@ -57,10 +62,12 @@ done.vue