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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.1.57",
3
+ "version": "3.1.59",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -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((res) => {
1053
- model.url=res.data[0].f_downloadpath
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
- model = Object.assign({}, this.selectdata, model)
1058
- let http = new HttpResetClass()
1059
- let requestData = {
1060
- tables: this.data.tables,
1061
- start_activity: this.$workflow_vue.start_activity,
1062
- model: model,
1063
- loginUser: this.$login.f,
1064
- workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
1065
- }
1066
- // 下发,提交,保存,退回通用业务后台处理logic
1067
- let url = 'rs/logic/ApplyProductService'
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
- let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
1070
- if (res.data.code == 200) {
1071
- model = res.data.model
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
- this.showview = false
1074
- // 特殊处理
1075
- this.$dispatch('close')
1076
- this.initializtion()
1104
+ this.showview = false
1105
+ // 特殊处理
1106
+ this.$dispatch('close')
1107
+ this.initializtion()
1077
1108
 
1078
- } else {
1079
- if (res.data.msg) {
1080
- this.$showMessage(res.data.msg)
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) {