apply-clients 3.5.5-7 → 3.5.5-70
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/build/dev-server.js +7 -19
- package/package.json +5 -3
- package/src/App.vue +25 -25
- package/src/apply.js +141 -141
- package/src/components/QXClient.js +333 -0
- package/src/components/SignTools.js +65 -0
- package/src/components/android/Process/AppChargeList.vue +391 -383
- package/src/components/android/Process/AppExplorationUser.vue +508 -508
- package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
- package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
- package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
- package/src/components/product/Process/Processes/contractModel.vue +436 -454
- package/src/components/product/Supervisory/SupervisoryControl.vue +141 -141
- package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
- package/src/filiale/baiyin/android/ByAddMaterialScience.vue +860 -858
- package/src/filiale/dingcheng/pc/SupervisoryList.vue +441 -441
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +20 -16
- package/src/filiale/fugou/android/AppDevicesManagement.vue +3 -1
- package/src/filiale/fugou/android/AppExplorationUser.vue +2 -2
- package/src/filiale/fugou/android/AppInstallationDetails.vue +2 -1
- package/src/filiale/fugou/android/AppServiceControl.vue +11 -7
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +3 -1
- package/src/filiale/fugou/pc/ApplyChargeList.vue +4 -0
- package/src/filiale/fugou/pc/ExplorationSelect.vue +3 -4
- package/src/filiale/fugou/pc/ServiceControl.vue +19 -10
- package/src/filiale/fugou/pc/StopApplyList.vue +291 -0
- package/src/filiale/fugou/pc/SupervisoryServiceControl.vue +881 -0
- package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +1 -1
- package/src/filiale/fugou/pc/chargeReport.vue +87 -15
- package/src/filiale/fugou/pc/devicesManagement.vue +1 -0
- package/src/filiale/fugou/pc.js +3 -1
- package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
- package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
- package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
- package/src/filiale/gongyi/android/AppSign.vue +170 -170
- package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
- package/src/filiale/gongyi/android.js +18 -18
- package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -371
- package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -221
- package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
- package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -309
- package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
- package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
- package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -575
- package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
- package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
- package/src/filiale/gongyi/pc.js +24 -24
- package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
- package/src/filiale/jingyang/pc/SupervisoryList.vue +459 -459
- package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -0
- package/src/filiale/jinhuang/android.js +6 -0
- package/src/filiale/jinhuang/pc/ContractList.vue +220 -0
- package/src/filiale/jinhuang/pc/ExplorationSelect.vue +497 -0
- package/src/filiale/jinhuang/pc/ServiceControl.vue +1932 -1925
- package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -0
- package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +41 -1
- package/src/filiale/jinhuang/pc.js +3 -0
- package/src/filiale/qianneng/android/AppServiceView.vue +13 -13
- package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +1 -1
- package/src/filiale/qianneng/pc/Applydetail.vue +1 -1
- package/src/filiale/qianneng/pc/FunctionServiceControl.vue +10 -3
- package/src/filiale/qianneng/pc/ServiceControl.vue +8 -3
- package/src/filiale/ruihua/pc/ServiceControl.vue +2 -1
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +6 -2
- package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +585 -518
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1116 -1087
- package/src/filiale/yangchunboneng/android/AppProcessSupervisory.vue +331 -0
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +217 -43
- package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
- package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -205
- package/src/filiale/yangchunboneng/android/MaterIialOne.vue +21 -1
- package/src/filiale/yangchunboneng/android.js +2 -1
- package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +32 -4
- package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +114 -49
- package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -191
- package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2 -2
- package/src/filiale/yangchunboneng/pc/StopApplyList.vue +294 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -142
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +617 -605
- package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +5 -1
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -902
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -901
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1 -1
- package/src/filiale/yangchunboneng/pc/buildOrderList.vue +337 -0
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +5 -1
- package/src/filiale/yangchunboneng/pc/constructionInfo.vue +84 -0
- package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -0
- package/src/filiale/yangchunboneng/pc.js +28 -24
- package/src/main.js +1 -1
- package/~/chatbot/main.py +0 -57
|
@@ -4,6 +4,45 @@
|
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
6
|
<div class="row">
|
|
7
|
+
<div class="col-sm-2">
|
|
8
|
+
<label class="font_normal_body">组织机构:</label>
|
|
9
|
+
<res-select
|
|
10
|
+
restype='organization'
|
|
11
|
+
:initresid='$parent.$parent.curorgid'
|
|
12
|
+
@res-select="$parent.$parent.getorg"
|
|
13
|
+
:is-mul="false"
|
|
14
|
+
></res-select>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-2">
|
|
17
|
+
<label class="font_normal_body">部  门:</label>
|
|
18
|
+
<res-select
|
|
19
|
+
restype='department'
|
|
20
|
+
:parentresid="$parent.$parent.curorgid"
|
|
21
|
+
:initresid='$parent.$parent.curdepid'
|
|
22
|
+
@res-select="$parent.$parent.getdep"
|
|
23
|
+
:is-mul="true"
|
|
24
|
+
></res-select>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-2">
|
|
27
|
+
<label class="font_normal_body">人  员:</label>
|
|
28
|
+
<res-select
|
|
29
|
+
restype='user'
|
|
30
|
+
:parentresid="$parent.$parent.curdepid"
|
|
31
|
+
:initresid='$parent.$parent.curuserid'
|
|
32
|
+
@res-select="$parent.$parent.getuser"
|
|
33
|
+
:is-mul="true"></res-select>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-2" >
|
|
36
|
+
<label class="font_normal_body" for="startDate">分组项:</label>
|
|
37
|
+
<v-select
|
|
38
|
+
:value.sync="model.f_public_group1"
|
|
39
|
+
v-model="model.f_public_group1"
|
|
40
|
+
v-ref:groupone
|
|
41
|
+
:options='$parent.$parent.group1'
|
|
42
|
+
placeholder='请选择'
|
|
43
|
+
close-on-select
|
|
44
|
+
></v-select>
|
|
45
|
+
</div>
|
|
7
46
|
<div class="col-sm-2" >
|
|
8
47
|
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
48
|
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
@@ -54,7 +93,7 @@
|
|
|
54
93
|
</th>
|
|
55
94
|
</tr>
|
|
56
95
|
<tr>
|
|
57
|
-
<th :colspan='$
|
|
96
|
+
<th :colspan='$par ent.spans' style="font-weight: normal; text-align: center;">
|
|
58
97
|
<div>
|
|
59
98
|
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
60
99
|
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
@@ -70,9 +109,9 @@
|
|
|
70
109
|
</tr>
|
|
71
110
|
<tfoot>
|
|
72
111
|
</tfoot>
|
|
73
|
-
|
|
112
|
+
</table>
|
|
74
113
|
</div>
|
|
75
|
-
</criteria-
|
|
114
|
+
</criteria-page d>
|
|
76
115
|
</div>
|
|
77
116
|
</template>
|
|
78
117
|
<script>
|
|
@@ -83,6 +122,9 @@ export default {
|
|
|
83
122
|
data () {
|
|
84
123
|
return {
|
|
85
124
|
printTime: this.$login.toStandardTimeString(),
|
|
125
|
+
curorgid: [this.$login.f.orgid],
|
|
126
|
+
curdepid: [],
|
|
127
|
+
curuserid: [],
|
|
86
128
|
depresid: [],
|
|
87
129
|
userresid: [],
|
|
88
130
|
f_orgid: this.$login.f.orgid,
|
|
@@ -98,40 +140,70 @@ export default {
|
|
|
98
140
|
orgCondtionStr: '1=1',
|
|
99
141
|
model: new DataModel('rs/report/fgChargeRecord', {
|
|
100
142
|
startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
101
|
-
f_orgid: 'this.model.f_orgid'
|
|
143
|
+
f_orgid: 'this.model.f_orgid',
|
|
144
|
+
f_public_group1: 'this.model.f_public_group1[0]',
|
|
145
|
+
group1Name: 'this.model.group1Name'
|
|
102
146
|
}),
|
|
103
147
|
reportStr: null,
|
|
104
148
|
spans: 0,
|
|
149
|
+
f_public_group1: '',
|
|
150
|
+
group1Name: ''
|
|
105
151
|
}
|
|
106
152
|
},
|
|
107
153
|
ready () {
|
|
108
154
|
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
109
155
|
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
110
|
-
this.searchData()
|
|
111
156
|
},
|
|
112
157
|
created () {
|
|
113
158
|
},
|
|
114
159
|
methods: {
|
|
115
|
-
searchData () {
|
|
116
|
-
this.$refs.paged.$refs.criteria.search()
|
|
117
|
-
},
|
|
118
160
|
selfSearch(args) {
|
|
119
|
-
|
|
161
|
+
this.$refs.paged.$refs.criteria.model.group1Name = this.$refs.paged.$refs.criteria.$refs.groupone.selectedItems
|
|
162
|
+
if (this.curuserid.length > 0) {
|
|
163
|
+
args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
|
|
164
|
+
}
|
|
120
165
|
let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
|
|
166
|
+
let name1 = args.model.f_public_group1
|
|
167
|
+
if (name1 == null || name1 == ''){
|
|
168
|
+
alert("请选择分组项!!!")
|
|
169
|
+
return
|
|
170
|
+
}
|
|
121
171
|
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
122
172
|
this.$refs.paged.search(args)
|
|
123
173
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
174
|
+
getuser (val) {
|
|
175
|
+
if (val.length <= 0) {
|
|
176
|
+
return
|
|
177
|
+
}
|
|
178
|
+
this.curuserid = val
|
|
179
|
+
},
|
|
180
|
+
getdep (val) {
|
|
181
|
+
if (val.length <= 0) {
|
|
182
|
+
return
|
|
183
|
+
}
|
|
184
|
+
this.curdepid = val
|
|
185
|
+
this.curuserid = []
|
|
186
|
+
},
|
|
187
|
+
getorg (val) {
|
|
188
|
+
if (val.length <= 0) {
|
|
189
|
+
return
|
|
190
|
+
}
|
|
191
|
+
this.curorgid = val
|
|
192
|
+
this.curdepid = []
|
|
193
|
+
this.curuserid = []
|
|
194
|
+
},
|
|
195
|
+
searchData () {
|
|
196
|
+
this.$refs.paged.$refs.criteria.search()
|
|
127
197
|
}
|
|
128
198
|
},
|
|
199
|
+
computed: {
|
|
200
|
+
group1() {
|
|
201
|
+
return [{label:'报建类型', value:'f_apply_type'}, {label:'报建性质', value:'f_apply_nature'}]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
129
204
|
watch: {
|
|
130
205
|
'model.data' (val) {
|
|
131
206
|
this.spans = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
|
|
132
|
-
},
|
|
133
|
-
'this.$refs.paged.$refs.criteria.model.f_insurance_company' (val) {
|
|
134
|
-
console.log(val)
|
|
135
207
|
}
|
|
136
208
|
}
|
|
137
209
|
}
|
package/src/filiale/fugou/pc.js
CHANGED
|
@@ -11,6 +11,8 @@ let specialComp = {
|
|
|
11
11
|
'apply-charge-report': (resolve) => { require(['./pc/chargeReport'], resolve) },
|
|
12
12
|
'service-view': (resolve) => { require(['./pc/serviceview'], resolve) },
|
|
13
13
|
'apply-charge-list': (resolve) => { require(['./pc/ApplyChargeList'], resolve) },
|
|
14
|
-
'apply-print-chargepc': (resolve) => { require(['./pc/printChargepc'], resolve) }
|
|
14
|
+
'apply-print-chargepc': (resolve) => { require(['./pc/printChargepc'], resolve) },
|
|
15
|
+
'stop-apply-list': (resolve) => { require(['./pc/StopApplyList'], resolve) },
|
|
16
|
+
'supervisory-service-control': (resolve) => { require(['./pc/SupervisoryServiceControl'], resolve) }
|
|
15
17
|
}
|
|
16
18
|
exports.specialComp = specialComp
|
|
@@ -1,214 +1,214 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<data-grid :model="onetomany" class="list_area table_sy">
|
|
4
|
-
<template partial='head'>
|
|
5
|
-
<tr>
|
|
6
|
-
<th class="textNoLineBreak">交底人</th>
|
|
7
|
-
<th class="textNoLineBreak">交底日期</th>
|
|
8
|
-
<th class="textNoLineBreak">交底内容</th>
|
|
9
|
-
<th class="textNoLineBreak">
|
|
10
|
-
<button type="button" class="btn btn-primary" @click="$parent.$parent.openMaterialModal()">添加
|
|
11
|
-
</button>
|
|
12
|
-
</th>
|
|
13
|
-
</tr>
|
|
14
|
-
</template>
|
|
15
|
-
<template partial='body'>
|
|
16
|
-
<tr>
|
|
17
|
-
<td style="text-align: center;">
|
|
18
|
-
<nobr>{{row.f_operator}}</nobr>
|
|
19
|
-
</td>
|
|
20
|
-
<td style="text-align: center;">
|
|
21
|
-
<nobr>{{row.f_operation_date}}</nobr>
|
|
22
|
-
</td>
|
|
23
|
-
<td style="text-align: center;">
|
|
24
|
-
<nobr>{{ row.f_log_content.length > 20 ? row.f_log_content.substring(0, 50) + '...' : row.f_log_content }}</nobr>
|
|
25
|
-
</td>
|
|
26
|
-
<td style="text-align: center;">
|
|
27
|
-
<button type="button" class="button_delete button_spacing" @click="$parent.$parent.deletelogs(row)">删除
|
|
28
|
-
</button>
|
|
29
|
-
<button type="button" class="button_delete button_spacing" @click="$parent.$parent.look(row)">查看
|
|
30
|
-
</button>
|
|
31
|
-
</td>
|
|
32
|
-
</tr>
|
|
33
|
-
</template>
|
|
34
|
-
</data-grid>
|
|
35
|
-
<modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
|
|
36
|
-
:backdrop="false" :title="title">
|
|
37
|
-
<header slot="modal-header" class="modal-header">
|
|
38
|
-
<button type="button" class="close" @click="closeMaterials"><span>×</span></button>
|
|
39
|
-
<h4 class="modal-title">{{title}}</h4>
|
|
40
|
-
</header>
|
|
41
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
42
|
-
<div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
|
|
43
|
-
<div class="row">
|
|
44
|
-
<div class="form-group col-sm-6">
|
|
45
|
-
<label class="col-sm-4 control-label">内容:</label>
|
|
46
|
-
<textarea
|
|
47
|
-
class="form-control"
|
|
48
|
-
v-model="item.f_log_content"
|
|
49
|
-
rows="3"
|
|
50
|
-
:readonly="mark === 1"
|
|
51
|
-
></textarea>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
</div>
|
|
56
|
-
</article>
|
|
57
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
58
|
-
<template v-if="mark!== 1">
|
|
59
|
-
<button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addlogs()"
|
|
60
|
-
:disabled="!$v.valid">确认
|
|
61
|
-
</button>
|
|
62
|
-
<button type="button" class="btn btn-primary" v-if="title==='查看'" @click="changelogs()"
|
|
63
|
-
:disabled="!$v.valid">修改
|
|
64
|
-
</button>
|
|
65
|
-
</template>
|
|
66
|
-
</footer>
|
|
67
|
-
</modal>
|
|
68
|
-
</div>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<script>
|
|
72
|
-
import {HttpResetClass} from 'vue-client'
|
|
73
|
-
import Vue from "vue";
|
|
74
|
-
|
|
75
|
-
export default {
|
|
76
|
-
name: '交底记录',
|
|
77
|
-
props: {
|
|
78
|
-
selectdata: {
|
|
79
|
-
type: Object
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
data() {
|
|
83
|
-
return {
|
|
84
|
-
onetomany: {
|
|
85
|
-
rows: []
|
|
86
|
-
},
|
|
87
|
-
title: '新增',
|
|
88
|
-
showMaterialModal: false,
|
|
89
|
-
materials: [
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
meterialOptions: [],
|
|
95
|
-
row: {},
|
|
96
|
-
bjqChecklag:[],
|
|
97
|
-
fmaterialname:{}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
ready() {
|
|
101
|
-
this.getOnetoManyData()
|
|
102
|
-
},
|
|
103
|
-
methods: {
|
|
104
|
-
look(row){
|
|
105
|
-
this.title = '查看'
|
|
106
|
-
this.materials = [
|
|
107
|
-
{
|
|
108
|
-
id: row.id,
|
|
109
|
-
f_log_content:row.f_log_content
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
this.showMaterialModal = true
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
changelogs(){
|
|
116
|
-
let http = new HttpResetClass()
|
|
117
|
-
let s={
|
|
118
|
-
id:this.materials[0].id,
|
|
119
|
-
f_process_id:this.selectdata.f_process_id,
|
|
120
|
-
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
121
|
-
f_log_content:this.materials[0].f_log_content,
|
|
122
|
-
f_operator:Vue.user.name,
|
|
123
|
-
f_operator_id:Vue.user.id
|
|
124
|
-
}
|
|
125
|
-
let data = {
|
|
126
|
-
tableName:'t_tisclosure_record',
|
|
127
|
-
model:s
|
|
128
|
-
}
|
|
129
|
-
http.load(
|
|
130
|
-
'POST',
|
|
131
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
|
|
132
|
-
data,
|
|
133
|
-
{resolveMsg: '修改成功', rejectMsg: '添加失败'}
|
|
134
|
-
).then(res => {
|
|
135
|
-
this.closeMaterials()
|
|
136
|
-
})
|
|
137
|
-
},
|
|
138
|
-
addlogs(){
|
|
139
|
-
let http = new HttpResetClass()
|
|
140
|
-
let s={
|
|
141
|
-
f_process_id:this.selectdata.f_process_id,
|
|
142
|
-
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
143
|
-
f_log_content:this.materials[0].f_log_content,
|
|
144
|
-
f_operator:Vue.user.name,
|
|
145
|
-
f_operator_id:Vue.user.id
|
|
146
|
-
}
|
|
147
|
-
let data = {
|
|
148
|
-
tableName:'t_tisclosure_record',
|
|
149
|
-
model:s
|
|
150
|
-
}
|
|
151
|
-
http.load(
|
|
152
|
-
'POST',
|
|
153
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
|
|
154
|
-
data,
|
|
155
|
-
{resolveMsg: '添加成功', rejectMsg: '添加失败'}
|
|
156
|
-
).then(res => {
|
|
157
|
-
this.closeMaterials()
|
|
158
|
-
})
|
|
159
|
-
},
|
|
160
|
-
deletelogs(row){
|
|
161
|
-
let http = new HttpResetClass()
|
|
162
|
-
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
163
|
-
if (res === 'confirm') {
|
|
164
|
-
let data = {
|
|
165
|
-
tableName:'t_tisclosure_record',
|
|
166
|
-
id:row.id
|
|
167
|
-
}
|
|
168
|
-
http.load(
|
|
169
|
-
'POST',
|
|
170
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/delentitySingleTable`,
|
|
171
|
-
data,
|
|
172
|
-
{resolveMsg: '删除成功', rejectMsg: '删除失败'}
|
|
173
|
-
).then(res => {
|
|
174
|
-
this.getOnetoManyData()
|
|
175
|
-
})
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
},
|
|
179
|
-
async getOnetoManyData () {
|
|
180
|
-
let http = new HttpResetClass()
|
|
181
|
-
let data = {
|
|
182
|
-
tablename: `t_tisclosure_record`,
|
|
183
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
184
|
-
}
|
|
185
|
-
let res = await http.load(
|
|
186
|
-
'POST',
|
|
187
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
|
|
188
|
-
{data: data},
|
|
189
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
190
|
-
)
|
|
191
|
-
this.onetomany.rows = res.data
|
|
192
|
-
},
|
|
193
|
-
async openMaterialModal() {
|
|
194
|
-
this.title = '新增'
|
|
195
|
-
this.materials = [
|
|
196
|
-
{
|
|
197
|
-
f_logs_content:''
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
this.showMaterialModal = true
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
closeMaterials() {
|
|
204
|
-
this.getOnetoManyData()
|
|
205
|
-
this.showMaterialModal = false
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
</script>
|
|
211
|
-
|
|
212
|
-
<style scoped>
|
|
213
|
-
|
|
214
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<data-grid :model="onetomany" class="list_area table_sy">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th class="textNoLineBreak">交底人</th>
|
|
7
|
+
<th class="textNoLineBreak">交底日期</th>
|
|
8
|
+
<th class="textNoLineBreak">交底内容</th>
|
|
9
|
+
<th class="textNoLineBreak">
|
|
10
|
+
<button type="button" class="btn btn-primary" @click="$parent.$parent.openMaterialModal()">添加
|
|
11
|
+
</button>
|
|
12
|
+
</th>
|
|
13
|
+
</tr>
|
|
14
|
+
</template>
|
|
15
|
+
<template partial='body'>
|
|
16
|
+
<tr>
|
|
17
|
+
<td style="text-align: center;">
|
|
18
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
19
|
+
</td>
|
|
20
|
+
<td style="text-align: center;">
|
|
21
|
+
<nobr>{{row.f_operation_date}}</nobr>
|
|
22
|
+
</td>
|
|
23
|
+
<td style="text-align: center;">
|
|
24
|
+
<nobr>{{ row.f_log_content.length > 20 ? row.f_log_content.substring(0, 50) + '...' : row.f_log_content }}</nobr>
|
|
25
|
+
</td>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<button type="button" class="button_delete button_spacing" @click="$parent.$parent.deletelogs(row)">删除
|
|
28
|
+
</button>
|
|
29
|
+
<button type="button" class="button_delete button_spacing" @click="$parent.$parent.look(row)">查看
|
|
30
|
+
</button>
|
|
31
|
+
</td>
|
|
32
|
+
</tr>
|
|
33
|
+
</template>
|
|
34
|
+
</data-grid>
|
|
35
|
+
<modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
|
|
36
|
+
:backdrop="false" :title="title">
|
|
37
|
+
<header slot="modal-header" class="modal-header">
|
|
38
|
+
<button type="button" class="close" @click="closeMaterials"><span>×</span></button>
|
|
39
|
+
<h4 class="modal-title">{{title}}</h4>
|
|
40
|
+
</header>
|
|
41
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
42
|
+
<div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
|
|
43
|
+
<div class="row">
|
|
44
|
+
<div class="form-group col-sm-6">
|
|
45
|
+
<label class="col-sm-4 control-label">内容:</label>
|
|
46
|
+
<textarea
|
|
47
|
+
class="form-control"
|
|
48
|
+
v-model="item.f_log_content"
|
|
49
|
+
rows="3"
|
|
50
|
+
:readonly="mark === 1"
|
|
51
|
+
></textarea>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
</article>
|
|
57
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
58
|
+
<template v-if="mark!== 1">
|
|
59
|
+
<button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addlogs()"
|
|
60
|
+
:disabled="!$v.valid">确认
|
|
61
|
+
</button>
|
|
62
|
+
<button type="button" class="btn btn-primary" v-if="title==='查看'" @click="changelogs()"
|
|
63
|
+
:disabled="!$v.valid">修改
|
|
64
|
+
</button>
|
|
65
|
+
</template>
|
|
66
|
+
</footer>
|
|
67
|
+
</modal>
|
|
68
|
+
</div>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<script>
|
|
72
|
+
import {HttpResetClass} from 'vue-client'
|
|
73
|
+
import Vue from "vue";
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
name: '交底记录',
|
|
77
|
+
props: {
|
|
78
|
+
selectdata: {
|
|
79
|
+
type: Object
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
onetomany: {
|
|
85
|
+
rows: []
|
|
86
|
+
},
|
|
87
|
+
title: '新增',
|
|
88
|
+
showMaterialModal: false,
|
|
89
|
+
materials: [
|
|
90
|
+
{
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
meterialOptions: [],
|
|
95
|
+
row: {},
|
|
96
|
+
bjqChecklag:[],
|
|
97
|
+
fmaterialname:{}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
ready() {
|
|
101
|
+
this.getOnetoManyData()
|
|
102
|
+
},
|
|
103
|
+
methods: {
|
|
104
|
+
look(row){
|
|
105
|
+
this.title = '查看'
|
|
106
|
+
this.materials = [
|
|
107
|
+
{
|
|
108
|
+
id: row.id,
|
|
109
|
+
f_log_content:row.f_log_content
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
this.showMaterialModal = true
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
changelogs(){
|
|
116
|
+
let http = new HttpResetClass()
|
|
117
|
+
let s={
|
|
118
|
+
id:this.materials[0].id,
|
|
119
|
+
f_process_id:this.selectdata.f_process_id,
|
|
120
|
+
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
121
|
+
f_log_content:this.materials[0].f_log_content,
|
|
122
|
+
f_operator:Vue.user.name,
|
|
123
|
+
f_operator_id:Vue.user.id
|
|
124
|
+
}
|
|
125
|
+
let data = {
|
|
126
|
+
tableName:'t_tisclosure_record',
|
|
127
|
+
model:s
|
|
128
|
+
}
|
|
129
|
+
http.load(
|
|
130
|
+
'POST',
|
|
131
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
|
|
132
|
+
data,
|
|
133
|
+
{resolveMsg: '修改成功', rejectMsg: '添加失败'}
|
|
134
|
+
).then(res => {
|
|
135
|
+
this.closeMaterials()
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
addlogs(){
|
|
139
|
+
let http = new HttpResetClass()
|
|
140
|
+
let s={
|
|
141
|
+
f_process_id:this.selectdata.f_process_id,
|
|
142
|
+
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
143
|
+
f_log_content:this.materials[0].f_log_content,
|
|
144
|
+
f_operator:Vue.user.name,
|
|
145
|
+
f_operator_id:Vue.user.id
|
|
146
|
+
}
|
|
147
|
+
let data = {
|
|
148
|
+
tableName:'t_tisclosure_record',
|
|
149
|
+
model:s
|
|
150
|
+
}
|
|
151
|
+
http.load(
|
|
152
|
+
'POST',
|
|
153
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
|
|
154
|
+
data,
|
|
155
|
+
{resolveMsg: '添加成功', rejectMsg: '添加失败'}
|
|
156
|
+
).then(res => {
|
|
157
|
+
this.closeMaterials()
|
|
158
|
+
})
|
|
159
|
+
},
|
|
160
|
+
deletelogs(row){
|
|
161
|
+
let http = new HttpResetClass()
|
|
162
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
163
|
+
if (res === 'confirm') {
|
|
164
|
+
let data = {
|
|
165
|
+
tableName:'t_tisclosure_record',
|
|
166
|
+
id:row.id
|
|
167
|
+
}
|
|
168
|
+
http.load(
|
|
169
|
+
'POST',
|
|
170
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/delentitySingleTable`,
|
|
171
|
+
data,
|
|
172
|
+
{resolveMsg: '删除成功', rejectMsg: '删除失败'}
|
|
173
|
+
).then(res => {
|
|
174
|
+
this.getOnetoManyData()
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
async getOnetoManyData () {
|
|
180
|
+
let http = new HttpResetClass()
|
|
181
|
+
let data = {
|
|
182
|
+
tablename: `t_tisclosure_record`,
|
|
183
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
184
|
+
}
|
|
185
|
+
let res = await http.load(
|
|
186
|
+
'POST',
|
|
187
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
|
|
188
|
+
{data: data},
|
|
189
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
190
|
+
)
|
|
191
|
+
this.onetomany.rows = res.data
|
|
192
|
+
},
|
|
193
|
+
async openMaterialModal() {
|
|
194
|
+
this.title = '新增'
|
|
195
|
+
this.materials = [
|
|
196
|
+
{
|
|
197
|
+
f_logs_content:''
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
this.showMaterialModal = true
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
closeMaterials() {
|
|
204
|
+
this.getOnetoManyData()
|
|
205
|
+
this.showMaterialModal = false
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
</script>
|
|
211
|
+
|
|
212
|
+
<style scoped>
|
|
213
|
+
|
|
214
|
+
</style>
|