apply-clients 3.0.4 → 3.0.5-4

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.
Files changed (64) hide show
  1. package/index.html +1 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +126 -15
  4. package/src/apply.js +152 -134
  5. package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
  6. package/src/bootstrap/less/bootstrap.less +1 -2
  7. package/src/bootstrap/less/standard.less +208 -0
  8. package/src/components/Util.js +4 -0
  9. package/src/components/app_apply/FieldExploration.vue +2 -2
  10. package/src/components/app_apply/Ventilation.vue +2 -2
  11. package/src/components/image/doc.jpg +0 -0
  12. package/src/components/image/excel.jpg +0 -0
  13. package/src/components/image/pdf.jpg +0 -0
  14. package/src/components/image//345/233/276/345/261/20212.png +0 -0
  15. package/src/components/image//345/233/276/345/261/20213.png +0 -0
  16. package/src/components/image//345/233/276/345/261/20216.png +0 -0
  17. package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
  18. package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
  19. package/src/components/image//346/244/255/345/234/2062.png +0 -0
  20. package/src/components/image//346/244/255/345/234/2065.png +0 -0
  21. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  22. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
  23. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
  24. package/src/components/image//347/273/2044.png +0 -0
  25. package/src/components/image//347/273/2045.png +0 -0
  26. package/src/components/image//347/273/2046.png +0 -0
  27. package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
  28. package/src/components/product/Function/InstallFunction.vue +9 -5
  29. package/src/components/product/Function/InstallInfoSelect.vue +98 -69
  30. package/src/components/product/Function/Service/FunctionServiceControl.vue +47 -4
  31. package/src/components/product/Function/functions/AddContract.vue +161 -139
  32. package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
  33. package/src/components/product/Function/functions/InstallFee.vue +1117 -912
  34. package/src/components/product/MaterialBatchList.vue +109 -0
  35. package/src/components/product/MaterialBatchManage.vue +34 -0
  36. package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
  37. package/src/components/product/Process/ExplorationSelect.vue +213 -73
  38. package/src/components/product/Process/ExplorationUser.vue +94 -39
  39. package/src/components/product/Process/MaterialUseList.vue +159 -0
  40. package/src/components/product/Process/ModifyUserFiles.vue +15 -5
  41. package/src/components/product/Process/ProcessInfo/history_control.vue +35 -6
  42. package/src/components/product/Process/Processes/ApplyUpload.vue +287 -0
  43. package/src/components/product/Process/Processes/CustomerCostPlan.vue +214 -0
  44. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
  45. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +949 -753
  46. package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
  47. package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
  48. package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
  49. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +27 -14
  50. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2561 -1104
  51. package/src/components/product/Process/Processes/Upload.vue +532 -0
  52. package/src/components/product/Process/ShowBackReason.vue +1 -1
  53. package/src/components/product/ServiceView.vue +825 -583
  54. package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
  55. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +212 -23
  56. package/src/components/product/Supervisory/SupervisoryControl.vue +79 -26
  57. package/src/components/product/Supervisory/SupervisoryList.vue +182 -41
  58. package/src/components/product/Supervisory/SupervisoryhCart.vue +4 -2
  59. package/src/components/product/VueUtils/Tree.vue +330 -0
  60. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +29 -38
  61. package/src/stores/ApplyLoadParams.js +1 -1
  62. package/src/stores/PagedListLogic.js +173 -0
  63. package/.npmignore +0 -12
  64. package/yarn.lock +0 -9008
@@ -1,19 +1,25 @@
1
1
  <template>
2
2
  <div>
3
- <service-view :data="data" v-if="showview"></service-view>
3
+ <service-view :data="data" v-if="showview" v-ref:serviceview></service-view>
4
4
  <installfee :infee="selectdata" v-if="showinfee"></installfee>
5
5
  <!--预存款-->
6
6
  <preparationfee :selectdata="selectdata" v-if="showpreparation"></preparationfee>
7
7
  <!--预存报建收费-->
8
8
  <prestorefee :infee="selectdata" v-if="showprestorefee" v-ref:prestorefee></prestorefee>
9
+ <!--材料导入-->
10
+ <material-message v-if="showmaterialmessage" v-ref:material
11
+ :selectdata="selectdata"
12
+ :state="2"
13
+ :flag ="'fc'"
14
+ :edit="true"></material-message>
9
15
  <!-- 费用变更 -->
10
16
  <!--<updatefee :upfee="selectdata" v-if="showupfee"></updatefee>-->
11
17
  <!-- 费用减免 -->
12
18
  <!--<reducefee :redufee="selectdata" v-if="showreducefee"></reducefee>-->
13
19
  <!-- 购货方信息 -->
14
- <buyer-message v-ref:buyermessagev :selectdata="selectdata" v-if="showbuyer" ></buyer-message>
20
+ <buyer-message v-ref:buyermessagev :selectdata="selectdata" :state="1" v-if="showbuyer" ></buyer-message>
15
21
  <!-- 领取材料 -->
16
- <receive-batch :selectdata="selectdata" v-if="showreceivebatch" ></receive-batch>
22
+ <receive-batch :selectdata="selectdata" :state="1" v-if="showreceivebatch" ></receive-batch>
17
23
  <!-- 添加合同 -->
18
24
  <addcontract :addcontract="selectdata" v-if="showcontract"></addcontract>
19
25
  <!-- 终止报建 -->
@@ -42,10 +48,35 @@
42
48
  showstop: false, // 终止报建
43
49
  showbill: false, // 打印票据
44
50
  showpreparation: false, // 预付款
45
- show_material:false//报建材料
51
+ show_material:false,//报建材料
52
+ showmaterialmessage:false, // 显示材料导入
46
53
  }
47
54
  },
48
55
  methods: {
56
+ getmodel(){
57
+ return {}
58
+ },
59
+ // 材料导入
60
+ materialImport(){
61
+ this.$parent.$refs.installselect.clifun(this.selectdata)
62
+ // this.selectdata = row
63
+ this.$parent.clishow= true
64
+ this.$parent.show = false
65
+
66
+ this.showbuyer = false
67
+ this.showreceivebatch = false
68
+ this.show_material = false
69
+ this.showview = false
70
+ this.showinfee = false
71
+ this.showprestorefee = false
72
+ this.showupfee = false
73
+ this.showreducefee = false
74
+ this.showstop = false
75
+ this.showcontract = false
76
+ this.showbill = false
77
+ this.showpreparation = false
78
+ this.showmaterialmessage = true
79
+ },
49
80
  // 购货方信息
50
81
  buyerMessage(){
51
82
  this.$parent.$refs.installselect.clifun(this.selectdata)
@@ -54,6 +85,7 @@
54
85
  this.$parent.show = false
55
86
 
56
87
  this.showbuyer = true
88
+ this.showmaterialmessage = false
57
89
  this.showreceivebatch = false
58
90
  this.show_material = false
59
91
  this.showview = false
@@ -74,6 +106,7 @@
74
106
  this.$parent.show = false
75
107
 
76
108
  this.showreceivebatch = true
109
+ this.showmaterialmessage = false
77
110
  this.showbuyer = false
78
111
  this.show_material = false
79
112
  this.showview = false
@@ -94,6 +127,7 @@
94
127
  this.$parent.show = false
95
128
 
96
129
  this.show_material = true
130
+ this.showmaterialmessage = false
97
131
  this.showbuyer = false
98
132
  this.showreceivebatch = false
99
133
  this.showview = false
@@ -114,6 +148,7 @@
114
148
  this.$parent.show = false
115
149
 
116
150
  this.showreceivebatch = false
151
+ this.showmaterialmessage = false
117
152
  this.showbuyer = false
118
153
  this.show_material = false
119
154
  this.showview = false
@@ -134,6 +169,7 @@
134
169
  this.$parent.show = false
135
170
 
136
171
  this.showreceivebatch = false
172
+ this.showmaterialmessage = false
137
173
  this.showbuyer = false
138
174
  this.showview = false
139
175
  this.showinfee = false
@@ -154,6 +190,7 @@
154
190
  this.$parent.show = false
155
191
 
156
192
  this.showreceivebatch = false
193
+ this.showmaterialmessage = false
157
194
  this.showbuyer = false
158
195
  this.showview = false
159
196
  this.showinfee = false
@@ -174,6 +211,7 @@
174
211
  this.$parent.show = false
175
212
 
176
213
  this.showreceivebatch = false
214
+ this.showmaterialmessage = false
177
215
  this.showbuyer = false
178
216
  this.showview = false
179
217
  this.showupfee = false
@@ -200,6 +238,7 @@
200
238
  this.$parent.show = false
201
239
 
202
240
  this.showreceivebatch = false
241
+ this.showmaterialmessage = false
203
242
  this.showbuyer = false
204
243
  this.showview = false
205
244
  this.showbill = false
@@ -275,6 +314,9 @@
275
314
  if(this.funcdata.title==='派工单'){
276
315
  this.receiveBatch()
277
316
  }
317
+ if(this.funcdata.title==='材料导入'){
318
+ this.materialImport()
319
+ }
278
320
  }
279
321
  }
280
322
  },
@@ -295,6 +337,7 @@
295
337
  }
296
338
  }
297
339
  */
340
+ this.$refs.serviceview.update();
298
341
  },
299
342
  // 获取view层button事件
300
343
  async 'button'(model){
@@ -1,134 +1,131 @@
1
1
  <template>
2
- <div class="col-sm-12" style="height: auto">
3
- <div class="auto select-overspread">
4
- <div class="panel panel-info">
5
- <div class="panel-heading auto">
6
- <h3 class="panel-title">补充协议</h3>
2
+ <div class="col-sm-12" style="height: auto" v-if="refresh">
3
+ <div class="auto select-overspread">
4
+ <div class="panel panel-info">
5
+ <div class="panel-heading auto">
6
+ <h3 class="panel-title">补充协议</h3>
7
+ </div>
7
8
  </div>
8
9
  </div>
9
- </div>
10
- <div class="col-sm-12" style="height: auto">
11
- <span class="col-sm-1"></span>
12
- <span class="col-sm-3">总个数:{{contract_datas.length}}</span>
13
- <span class="col-sm-2"></span>
14
- <span class="col-sm-3" v-if="!$login.f.f_fengongsi.includes('彩虹')">总金额:{{sum}}元</span>
15
- <button class="col-sm-offset-2 btn btn-warning" type="button" @click="add()">补充协议</button>
16
- </div>
17
- <div class="col-sm-12" style="height: auto;border:1px solid #000;padding-top: 10px;" v-for="row in contract_datas">
18
- <div class="col-sm-12">
19
- <div class="form-group col-sm-3 form-input-group">
20
- <label class="control-label">合同编号:</label>
21
- <div class="col-sm-6">
22
- <input class="form-control" type="text" v-model="row.f_contract_number" readonly>
10
+ <div class="col-sm-12" style="height: auto">
11
+ <span class="col-sm-1"></span>
12
+ <span class="col-sm-3">总个数:{{contract_datas.length}}</span>
13
+ <span class="col-sm-2"></span>
14
+ <span class="col-sm-3" v-if="!$login.f.f_fengongsi.includes('彩虹')">总金额:{{sum}}元</span>
15
+ </div>
16
+
17
+ <table class="table table-bordered table-striped table-hover">
18
+ <tr style="background-color: #00A3F0">
19
+ <th style="border-color: #00A3F0"><font color="white">序号</font></th>
20
+ <th v-for="title in titles" style="text-align: center;border-color: #00A3F0">
21
+ <nobr><font color="white">{{title}}</font></nobr>
22
+ </th>
23
+ <th style="text-align: center;border-color: #00A3F0;padding: 0px" v-if="edit">
24
+ <button type="button" @click="add()" class="btn btn-warning">
25
+ +
26
+ </button>
27
+ </th>
28
+ </tr>
29
+ <tr v-for="(j,row) in contract_datas">
30
+ <td style="text-align: center">{{$index+1}}</td>
31
+ <td v-for="key in fields" style="text-align: center">
32
+ {{row[key]}}
33
+ </td>
34
+ <td style="text-align: center">
35
+ <!--<a href="#" @click="revise(i,j)">修改</a>-->
36
+ <!--|<a href="#" @click="deleted(i,j)">删除</a>-->
37
+ </td>
38
+ </tr>
39
+ </table>
40
+
41
+ <modal :show.sync="show" v-ref:modal backdrop="false">
42
+ <header slot="modal-header" class="modal-header">
43
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
44
+ <h4 class="modal-title">新增合同</h4>
45
+ </header>
46
+ <article slot="modal-body" class="modal-body">
47
+ <div class="from-group">
48
+ <label>合同编号</label>
49
+ <input type="text" class="form-control" v-model="addcontract.f_contract_number" readonly>
23
50
  </div>
24
- </div>
25
- <div class="form-group col-sm-3 form-input-group">
26
- <label class="control-label">类型(合同/协议):</label>
27
- <div class="col-sm-6">
28
- <input class="form-control" type="text" v-model="row.f_contract_type" readonly>
51
+ <div class="from-group">
52
+ <label>签订日期</label>
53
+ <div>
54
+ <datepicker width="600.76px;"
55
+ :value.sync="addItem.f_contract_time"
56
+ :format="'yyyy-MM-dd'"
57
+ v-model="addItem.f_contract_time" readonly="readonly"
58
+ :show-reset-button="reset">
59
+ </datepicker>
60
+ </div>
29
61
  </div>
30
- </div>
31
- <div class="form-group col-sm-3 form-input-group">
32
- <label class="control-label">签订日期:</label>
33
- <div class="col-sm-6">
34
- <input class="form-control" type="text" v-model="row.f_contract_time" readonly>
62
+ <div class="from-group">
63
+ <label>合同金额(元)</label>
64
+ <input type="text" class="form-control" v-model="addItem.f_contract_money">
35
65
  </div>
36
- </div>
37
- </div>
38
- <div class="col-sm-12">
39
- <div class="form-group col-sm-3 form-input-group">
40
- <label class="control-label">合同金额(元):</label>
41
- <div class="col-sm-6">
42
- <input class="form-control" type="text" v-model="row.f_contract_money" readonly>
66
+ <!--<div class="form-group">-->
67
+ <!--<label class="control-label">金额大写:</label>-->
68
+ <!--<input class="form-control" type="text" v-model="getCapital" readonly>-->
69
+ <!--</div>-->
70
+
71
+ <div class="from-group">
72
+ <label>付款方式</label>
73
+ <v-select :options="jiaofei"
74
+ v-model="addItem.f_pay_type" :value.sync="addItem.f_pay_type" close-on-select>
75
+ </v-select>
43
76
  </div>
44
- </div>
45
- <div class="form-group col-sm-3 form-input-group">
46
- <label class="control-label">金额大写:</label>
47
- <div class="col-sm-6">
48
- <input class="form-control" type="text" v-model="row.f_capital" readonly>
77
+ <div class="from-group">
78
+ <label>备注</label>
79
+ <textarea class="form-control" v-model="addItem.t_remarks" rows="3"></textarea>
49
80
  </div>
50
- </div>
51
- <div class="form-group col-sm-3 form-input-group">
52
- <label class="control-label">合同性质:</label>
53
- <div class="col-sm-6">
54
- <input class="form-control" type="text" v-model="row.f_contract_nature" readonly>
55
- </div>
56
- </div>
57
- </div>
58
- <div class="form-group col-sm-12 form-input-group">
59
- <label class="control-label">缴费类型:</label>
60
- <div class="col-sm-5">
61
- <textarea class="form-control" v-model="row.f_pay_type" rows="3" readonly></textarea>
62
- </div>
63
- </div>
64
- <div class="form-group col-sm-12 form-input-group">
65
- <label class="control-label">备注:</label>
66
- <div class="col-sm-5">
67
- <textarea class="form-control" v-model="row.t_remarks" rows="2" readonly></textarea>
68
- </div>
69
- </div>
81
+ </article>
82
+ <footer slot="modal-footer" class="modal-footer">
83
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
84
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
85
+ </footer>
86
+ </modal>
70
87
  </div>
71
- <modal :show.sync="show" v-ref:modal backdrop="false">
72
- <header slot="modal-header" class="modal-header">
73
- <button type="button" class="close" @click="close"><span>&times;</span></button>
74
- <h4 class="modal-title">新增合同</h4>
75
- </header>
76
- <article slot="modal-body" class="modal-body">
77
- <div class="from-group">
78
- <label>合同编号</label>
79
- <input type="text" class="form-control" v-model="addcontract.f_contract_number" readonly>
80
- </div>
81
- <div class="from-group">
82
- <label>签订日期</label>
83
- <div>
84
- <datepicker width="600.76px;"
85
- :value.sync="addItem.f_contract_time"
86
- :format="'yyyy-MM-dd'"
87
- v-model="addItem.f_contract_time" readonly="readonly"
88
- :show-reset-button="reset">
89
- </datepicker>
90
- </div>
91
- </div>
92
- <div class="from-group">
93
- <label>合同金额(元)</label>
94
- <input type="text" class="form-control" v-model="addItem.f_contract_money">
95
- </div>
96
- <div class="form-group">
97
- <label class="control-label">金额大写:</label>
98
- <input class="form-control" type="text" v-model="getCapital" readonly>
99
- </div>
100
-
101
- <div class="from-group">
102
- <label>缴费类型</label>
103
- <v-select :options="jiaofei"
104
- v-model="addItem.f_pay_type" :value.sync="addItem.f_pay_type" close-on-select>
105
- </v-select>
106
- </div>
107
- <div class="from-group">
108
- <label>备注</label>
109
- <textarea class="form-control" v-model="addItem.t_remarks" rows="3"></textarea>
110
- </div>
111
- </article>
112
- <footer slot="modal-footer" class="modal-footer">
113
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
114
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
115
- </footer>
116
- </modal>
117
- </div>
118
88
  </template>
119
89
 
120
90
  <script>
121
91
  import {HttpResetClass} from 'vue-client'
122
92
 
93
+ // Date格式化
94
+ Date.prototype.Format = function (fmt) {
95
+ var o = {
96
+ "M+": this.getMonth() + 1, //月份
97
+ "d+": this.getDate(), //日
98
+ "H+": this.getHours(), //小时
99
+ "m+": this.getMinutes(), //分
100
+ "s+": this.getSeconds(), //秒
101
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
102
+ "S": this.getMilliseconds() //毫秒
103
+ };
104
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
105
+ for (var k in o)
106
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
107
+ return fmt;
108
+ }
123
109
  export default {
124
110
 
125
111
  title: "追加合同",
126
- props: ['addcontract'],
112
+ props: {
113
+ addcontract:{},
114
+ edit:{
115
+ default:true
116
+ }
117
+ },
127
118
  data() {
128
119
  return {
120
+ model:{
121
+ rows:[]
122
+ },
123
+ titles:['合同编号','签订日期','合同金额','付款方式','合同价格类型','合同类型','提交人','备注'],
124
+ fields:['f_contract_number','f_contract_time','f_contract_money','f_pay_type','f_contract_nature','f_contract_type','f_operator','f_remarks'],
129
125
  contract_datas: [], // 合同信息数组
126
+ refresh: true,
130
127
  show: false, // 新增合同模态框控制
131
- addItem: null, // 模态框零时对象
128
+ addItem: {}, // 模态框零时对象
132
129
  }
133
130
  },
134
131
  ready() {
@@ -140,9 +137,19 @@
140
137
  // t_remarks: 5
141
138
  // }, //测试数据
142
139
  // {f_contract_number: 1, f_contract_money: 9, f_contract_time: 2, f_pay_type: 3, t_remarks: 5}
140
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
143
141
  this.load();
144
142
  },
145
143
  methods: {
144
+ // 新增按钮触发事件
145
+ add() {
146
+ if (this.contract_datas) {
147
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
148
+ this.show = true
149
+ } else {
150
+ this.$showMessage("请先在主流程中签订合同")
151
+ }
152
+ },
146
153
  // 小写转换大写
147
154
  smalltoBIG(n) {
148
155
  let fraction = ['角', '分'];
@@ -168,6 +175,9 @@
168
175
  s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
169
176
  }
170
177
  return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
178
+ },
179
+ events:{
180
+
171
181
  },
172
182
  // 获取数据库数据
173
183
  async load() {
@@ -178,31 +188,32 @@
178
188
  }
179
189
  let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取合同表失败'})
180
190
  this.contract_datas = []
181
- res.data.forEach((item,index)=>{
182
- if(item.f_contract_nature.includes("\"")){
191
+ res.data.forEach((item, index) => {
192
+ if (item.f_contract_nature&&typeof item.f_contract_nature =='string' &&item.f_contract_nature.includes("\"")) {
183
193
  item.f_contract_nature = item.f_contract_nature.split("\"")[1]
184
194
  }
185
- if(item.f_pay_type.includes("\"")){
195
+ if (item.f_pay_type&& typeof item.f_pay_type == 'string' &&item.f_pay_type.includes("\"")) {
186
196
  item.f_pay_type = item.f_pay_type.split("\"")[1]
187
197
  }
188
198
  })
189
199
  this.contract_datas = res.data
190
200
  },
191
201
  // 新增按钮触发事件
192
- add() {
193
- if(this.contract_datas){
194
- this.show = true
195
- }else{
196
- this.$showMessage("请先在主流程中签订合同")
197
- }
198
- },
202
+ // add() {
203
+ // if (this.contract_datas) {
204
+ // this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
205
+ // this.show = true
206
+ // } else {
207
+ // this.$showMessage("请先在主流程中签订合同")
208
+ // }
209
+ // },
199
210
  // 模态框确定按钮触发
200
211
  async confirm() {
201
- if(this.addItem.f_contract_money){
212
+ if (this.addItem.f_contract_money) {
202
213
  let http = new HttpResetClass();
203
214
  this.addItem.f_contract_nature = this.addcontract.f_contract_nature
204
215
  this.addItem.f_contract_number = this.addcontract.f_contract_number
205
- this.addItem.processid = this.addcontract.f_process_id
216
+ this.addItem.f_process_id = this.addcontract.f_process_id
206
217
  this.addItem.f_contract_type = '补充协议'
207
218
  this.addItem.applyid = this.addcontract.f_apply_num
208
219
  this.addItem.f_operator = this.$login.f.name
@@ -211,20 +222,30 @@
211
222
  this.contract_datas.push(this.addItem)
212
223
 
213
224
  this.applyparam = {
214
- id:this.addcontract.id,
215
- f_contract_money : Number(this.addcontract.f_contract_money)+Number(this.addItem.f_contract_money),
216
- f_budget_money : Number(this.addcontract.f_budget_money)+Number(this.addItem.f_contract_money),
217
- f_unaccounts_money : Number(this.addcontract.f_unaccounts_money)+Number(this.addItem.f_contract_money),
218
- f_residual_invoicing : Number(this.addcontract.f_residual_invoicing)+Number(this.addItem.f_contract_money),
219
- f_additional_payment: Number(this.addcontract.f_additional_payment)+Number(this.addItem.f_contract_money)
225
+ id: this.addcontract.id,
226
+ f_contract_money: Number(this.addcontract.f_contract_money) + Number(this.addItem.f_contract_money),
227
+ f_budget_money: Number(this.addcontract.f_budget_money) + Number(this.addItem.f_contract_money),
228
+ f_unaccounts_money: Number(this.addcontract.f_unaccounts_money) + Number(this.addItem.f_contract_money),
229
+ f_residual_invoicing: Number(this.addcontract.f_residual_invoicing) + Number(this.addItem.f_contract_money),
230
+ f_additional_payment: Number(this.addcontract.f_additional_payment) + Number(this.addItem.f_contract_money)
220
231
  }
221
- await http.load('POST', 'rs/logic/saveentity', {data:{tablename:'t_contract',parameters:this.addItem}}, {resolveMsg: null, rejectMsg: "添加失败"})
232
+ await http.load('POST', 'rs/logic/saveentity', {
233
+ data: {
234
+ tablename: 't_contract',
235
+ parameters: this.addItem
236
+ }
237
+ }, {resolveMsg: null, rejectMsg: "添加失败"})
222
238
  .then((res) => {
223
- this.$resetpost('rs/logic/saveentity',{data:{tablename:'t_apply',parameters:this.applyparam}}).then((res) => {
224
- this.close()
239
+ this.$resetpost('rs/logic/saveentity', {
240
+ data: {
241
+ tablename: 't_apply',
242
+ parameters: this.applyparam
243
+ }
244
+ }).then((res) => {
245
+ this.close()
225
246
  })
226
247
  })
227
- }{
248
+ }else{
228
249
  this.$showMessage("请输入金额")
229
250
  }
230
251
 
@@ -233,19 +254,20 @@
233
254
  // 模态框关闭按钮触发
234
255
  close() {
235
256
  this.show = false
236
- this.addItem = null
257
+ this.addItem = {}
258
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
237
259
  }
238
260
 
239
261
  },
240
262
  watch: {
241
- 'selectdata.f_process_id'() {
242
- this.load()
243
- }
263
+ 'addcontract.f_process_id'() {
264
+ this.load()
265
+ }
244
266
  },
245
267
  computed: {
246
268
  // 计算大写
247
269
  getCapital() {
248
- if (this.addItem.f_contract_money) {
270
+ if (this.addItem.f_contract_money) {合同价格类型
249
271
  this.addItem.f_capital = this.smalltoBIG(Number(this.addItem.f_contract_money))
250
272
  }
251
273
  return this.addItem.f_capital
@@ -259,8 +281,8 @@
259
281
  return num
260
282
  },
261
283
  jiaofei() {
262
- return this.$appdata.getParam('缴费类型')
263
- // return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
284
+ return this.$appdata.getParam('付款方式')
285
+ // return [{label: '全部', value: ''}, ...AppData.getParam('付款方式')]
264
286
  }
265
287
  }
266
288
  }