apply-clients 3.1.59 → 3.1.61

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.59",
3
+ "version": "3.1.61",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -81,6 +81,7 @@
81
81
  // AOP:进入vue组件前初始化内容
82
82
  // json配置数据处理 比如下拉框的options
83
83
  async initializtion() {
84
+
84
85
  if (this.show_data && this.show_data.f_process_id == this.data.f_process_id
85
86
  && this.show_data.defname==this.selectdata.defname){
86
87
  this.data = Object.assign({}, this.data, this.selectdata,this.show_data)
@@ -189,7 +190,7 @@
189
190
 
190
191
  // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
191
192
  let temp = JSON.parse(JSON.stringify(this.data))
192
-
193
+ debugger
193
194
  this.show_data = temp
194
195
  this.$nextTick(() => {
195
196
  this.showview = true
@@ -207,6 +208,11 @@
207
208
  this.moneyDue()
208
209
  this.moneySumArrears()
209
210
  }
211
+ let istrue=this.data.f_is_true;
212
+ let isrefund=this.data.f_is_refund;
213
+ if(istrue==="是"||isrefund==="是"){
214
+ this.show_data.buttons[2].hidden = true
215
+ }
210
216
 
211
217
  },
212
218
  // 金额转大写
@@ -1041,7 +1047,7 @@
1041
1047
  }
1042
1048
  }
1043
1049
  // 给后台存工改接口所需的附件
1044
- /*if(this.data.defname=='方案确认'){
1050
+ if(this.data.defname=='方案确认'){
1045
1051
  let http = new HttpResetClass()
1046
1052
  await http.load('POST', 'rs/sql/singleTable', {
1047
1053
  data: {
@@ -1052,38 +1058,9 @@
1052
1058
  .then(async (res1) => {
1053
1059
  if(res1.data.length>0){
1054
1060
  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
1061
  }
1085
1062
  })
1086
- }else{*/
1063
+ }
1087
1064
  // 修改提交数据
1088
1065
  model = Object.assign({}, this.selectdata, model)
1089
1066
  let http = new HttpResetClass()
@@ -1111,7 +1088,6 @@
1111
1088
  this.$showMessage(res.data.msg)
1112
1089
  }
1113
1090
  }
1114
- //}
1115
1091
  },
1116
1092
  // 失去焦点出触发事件
1117
1093
  async 'check'(index) {
@@ -1182,7 +1158,6 @@
1182
1158
  this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
1183
1159
  }
1184
1160
  }
1185
-
1186
1161
  //时间提醒
1187
1162
  if (this.$refs.service_show.data.fields[index].label.includes("时间") || this.$refs.service_show.data.fields[index].type === 'datepicker') {
1188
1163
  let setTime = this.$refs.service_show.data.fields[i].value
@@ -1192,18 +1167,43 @@
1192
1167
  }
1193
1168
  }
1194
1169
 
1195
- // // 任何是否的选择框只要是否都不能提交
1196
- // if (this.$refs.service_show.data.fields[index].value === '否') {
1197
- // this.$refs.service_show.disable_button = true
1198
- // // this.$refs.service_show.data.buttons[1].button_name = '保存'
1199
- // this.$showMessage("当审核/确认为否时,无法提交")
1200
- // return
1201
- // }else {
1202
- // // this.$refs.service_show.data.buttons[1].button_name = '提交'
1203
- // this.$refs.service_show.disable_button = false
1204
- // }
1170
+ // 派工是,退费否,不提交,不退费
1171
+ //派工否,退费是,到退费环节
1172
+ //派工是,退费是,到退费环节-》施工
1173
+ //派工否,退费否,不提交,不退费
1174
+ let paigong= this.$refs.service_show.data.fields[9].value
1175
+ let tuifei= this.$refs.service_show.data.fields[10].value
1176
+
1177
+ if ( paigong === '否' && tuifei === '是') {
1178
+ //禁用提交按钮,启用退费按钮
1179
+ //获取id值为1的button,设置disabled为false
1180
+ var button = document.getElementById("1"); // 获取id值为1的button元素
1181
+ button.disabled = true; // 设置button元素为不可用
1182
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1183
+ button2.disabled = false; // 设置button元素为不可用
1184
+ }else if ( paigong === '是' && tuifei === '是') {
1185
+ //禁用提交按钮,启用退费按钮,后转到施工环节
1186
+ var button = document.getElementById("1"); // 获取id值为1的button元素
1187
+ button.disabled = true; // 设置button元素为不可用
1188
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1189
+ button2.disabled = false; // 设置button元素为不可用
1190
+ }else if ( paigong === '否' && tuifei === '否') {
1191
+ //禁用提交按钮,禁用退费按钮
1192
+ var button1 = document.getElementById("1"); // 获取id值为1的button元素
1193
+ button1.disabled = true; // 设置button元素为不可用
1194
+ var button2 = document.getElementById("2"); // 获取id值为1的button元素
1195
+ button2.disabled = true; // 设置button元素为不可用
1196
+
1197
+ } else if ( paigong === '是' && tuifei === '否') {
1198
+ //启用提交按钮,禁用退费按钮
1199
+ var button1 = document.getElementById("1"); // 获取id值为1的button元素
1200
+ button1.disabled = false; // 设置button元素为不可用
1201
+ var button2 = document.getElementById("2"); //
1202
+ button2.disabled = true; // 设置button元素为不可用
1203
+
1204
+ }
1205
1205
  },
1206
- // input值发生变化
1206
+ // input值发生变·
1207
1207
  async 'oninput'(index) {},
1208
1208
  // 错误事件
1209
1209
  error_check(index) {
@@ -214,9 +214,11 @@
214
214
  <center>
215
215
  <!-- 按钮组 -->
216
216
  <button v-for="(index,button) in data.buttons"
217
- :disabled="(button.button_name==='提交'||button.button_name==='下发')&&disable_button" type="button"
217
+ v-show="!button.hidden"
218
+ :id=index
219
+ :disabled="(button.button_name==='提交'||button.button_name==='下发'||button.button_name==='退费')&&disable_button" type="button"
218
220
  @click="clicked(index,button)"
219
- :class="(button.button_name==='提交'||button.button_name==='下发')&&disable_button?'btn btn-default':'btn btn-primary'"
221
+ :class="(button.button_name==='提交'||button.button_name==='下发'||button.button_name==='退费')&&disable_button?'btn btn-default':'btn btn-primary'"
220
222
  style="min-width:100px; margin-right:50px;">
221
223
  {{button.button_name}}
222
224
  </button>
@@ -465,9 +467,9 @@
465
467
  flag = true
466
468
  }
467
469
  // 任何选择框只要是否都不能提交
468
- if (item.type === 'select' && item.value === '否') {
469
- flag = true
470
- }
470
+ // if (item.type === 'select' && item.value === '否') {
471
+ // flag = true
472
+ // }
471
473
  })
472
474
 
473
475
  let count = 0