apply-clients 3.1.57 → 3.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
// 给后台存工改接口所需的附件
|
|
1044
|
-
if(this.data.defname=='方案确认'){
|
|
1044
|
+
/*if(this.data.defname=='方案确认'){
|
|
1045
1045
|
let http = new HttpResetClass()
|
|
1046
1046
|
await http.load('POST', 'rs/sql/singleTable', {
|
|
1047
1047
|
data: {
|
|
@@ -1049,37 +1049,69 @@
|
|
|
1049
1049
|
condition: " f_blobid='" +this.data.f_process_id + "' order by id desc"
|
|
1050
1050
|
}
|
|
1051
1051
|
}, {resolveMsg: null, rejectMsg: "附件获取失败"}, {silent: true})
|
|
1052
|
-
.then((
|
|
1053
|
-
|
|
1052
|
+
.then(async (res1) => {
|
|
1053
|
+
if(res1.data.length>0){
|
|
1054
|
+
model.url=res1.data[0].f_downloadpath
|
|
1055
|
+
model = Object.assign({}, this.selectdata, model)
|
|
1056
|
+
let http = new HttpResetClass()
|
|
1057
|
+
let requestData = {
|
|
1058
|
+
tables: this.data.tables,
|
|
1059
|
+
start_activity: this.$workflow_vue.start_activity,
|
|
1060
|
+
model: model,
|
|
1061
|
+
loginUser: this.$login.f,
|
|
1062
|
+
workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
|
|
1063
|
+
}
|
|
1064
|
+
// 下发,提交,保存,退回通用业务后台处理logic
|
|
1065
|
+
let url = 'rs/logic/ApplyProductService'
|
|
1066
|
+
|
|
1067
|
+
let res2 = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
1068
|
+
if (res2.data.code == 200) {
|
|
1069
|
+
model = res2.data.model
|
|
1070
|
+
|
|
1071
|
+
this.showview = false
|
|
1072
|
+
// 特殊处理
|
|
1073
|
+
this.$dispatch('close')
|
|
1074
|
+
this.initializtion()
|
|
1075
|
+
|
|
1076
|
+
} else {
|
|
1077
|
+
if (res2.data.msg) {
|
|
1078
|
+
this.$showMessage(res2.data.msg)
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}else{
|
|
1082
|
+
this.$showMessage("请上传附件!")
|
|
1083
|
+
return
|
|
1084
|
+
}
|
|
1054
1085
|
})
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1086
|
+
}else{*/
|
|
1087
|
+
// 修改提交数据
|
|
1088
|
+
model = Object.assign({}, this.selectdata, model)
|
|
1089
|
+
let http = new HttpResetClass()
|
|
1090
|
+
let requestData = {
|
|
1091
|
+
tables: this.data.tables,
|
|
1092
|
+
start_activity: this.$workflow_vue.start_activity,
|
|
1093
|
+
model: model,
|
|
1094
|
+
loginUser: this.$login.f,
|
|
1095
|
+
workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
|
|
1096
|
+
}
|
|
1097
|
+
// 下发,提交,保存,退回通用业务后台处理logic
|
|
1098
|
+
let url = 'rs/logic/ApplyProductService'
|
|
1068
1099
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1100
|
+
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
1101
|
+
if (res.data.code == 200) {
|
|
1102
|
+
model = res.data.model
|
|
1072
1103
|
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1104
|
+
this.showview = false
|
|
1105
|
+
// 特殊处理
|
|
1106
|
+
this.$dispatch('close')
|
|
1107
|
+
this.initializtion()
|
|
1077
1108
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1109
|
+
} else {
|
|
1110
|
+
if (res.data.msg) {
|
|
1111
|
+
this.$showMessage(res.data.msg)
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
//}
|
|
1083
1115
|
},
|
|
1084
1116
|
// 失去焦点出触发事件
|
|
1085
1117
|
async 'check'(index) {
|