|
|
@@ -291,6 +291,11 @@
|
|
|
this.$refs[ref].validate().then(res => {
|
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
|
this.form.auditPass = true;
|
|
|
+ let fileIds = [];
|
|
|
+ this.fileList.forEach(v => {
|
|
|
+ fileIds.push(v.id)
|
|
|
+ })
|
|
|
+ this.form.fileIdList = fileIds;
|
|
|
create(this.form).then(response => {
|
|
|
uni.showToast({
|
|
|
title: `提交成功`
|
|
|
@@ -298,9 +303,9 @@
|
|
|
if(this.id){
|
|
|
this.$emit('popupClose');
|
|
|
}else{
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(0)
|
|
|
- }, 500)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$router.go(0)
|
|
|
+ // }, 500)
|
|
|
}
|
|
|
|
|
|
}).catch(() => {
|
|
|
@@ -316,6 +321,11 @@
|
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
|
}
|
|
|
this.form.auditPass = false;
|
|
|
+ let fileIds = [];
|
|
|
+ this.fileList.forEach(v => {
|
|
|
+ fileIds.push(v.id)
|
|
|
+ })
|
|
|
+ this.form.fileIdList = fileIds;
|
|
|
save(this.form).then(response => {
|
|
|
uni.showToast({
|
|
|
title: `暂存成功`
|
|
|
@@ -323,9 +333,9 @@
|
|
|
if(this.id){
|
|
|
this.$emit('popupClose');
|
|
|
}else{
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(0)
|
|
|
- }, 500)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$router.go(0)
|
|
|
+ // }, 500)
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
|