safecheck-client 3.0.35-10 → 3.0.35-12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,212 @@
1
+ <template>
2
+ <div class="auto">
3
+
4
+ <div class="auto">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
7
+ <div partial>
8
+ <div class="row app-row">
9
+ <div class="col-xs-4">
10
+ <img src="../../../assets/档案信息.png" style="width: 20px;margin-bottom: 5px" alt="">
11
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
12
+ </div>
13
+ <div class="col-xs-8" >
14
+ <input id="f_plan_name" class="search_input input-font"
15
+ v-model="model.f_plan_name" condition="f_plan_name like '%{}%'" />
16
+ </div>
17
+ </div>
18
+ <div class="row text-center" style="margin-top: 20px;">
19
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
20
+ </div>
21
+ <!--<div class="row app-btn">-->
22
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
23
+ <!--</div>-->
24
+ <div style="height:30px;"></div>
25
+ </div>
26
+ </criteria>
27
+ <list :model="model" partial='list'>
28
+ <div partial>
29
+ <div class="auto app-text" style="margin-top: 5px;">
30
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
31
+ <div class="panel-body panel-self">
32
+ <div class="row">
33
+ <p class="panel-title col-xs-4 text-left font">计划名称</p>
34
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_name }}</p>
35
+ </div>
36
+ <div class="row">
37
+ <p class="panel-title col-xs-4 text-left font">计划时间</p>
38
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}/{{row.f_plan_month}}</p>
39
+ </div>
40
+ <!--<div class="row">-->
41
+ <!--<p class="panel-title col-xs-4 text-left font">生成人员</p>-->
42
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_create_operator }}/{{row.f_plan_month}}</p>-->
43
+ <!--</div>-->
44
+ <!--<div class="row">-->
45
+ <!--<p class="panel-title col-xs-4 text-left font">下发人员</p>-->
46
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_send_operator }}/{{row.f_plan_month}}</p>-->
47
+ <!--</div>-->
48
+ <div class="row text-right" >
49
+ <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.downloadHand(row)' v-if="$parent.$parent.$parent.isDown(row)">下载</button>&nbsp;
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+ </div>
56
+ </list>
57
+ </criteria-paged>
58
+ </div>
59
+ <!--<div class="row text-center" style="margin-top: 20px;">-->
60
+ <!--<button type="' 正在进行共享计划下载,请确认!' btn-lg btn-font btn-color" style="width: 45%;" @click="downHand()">共享计划下载</button>-->
61
+ <!--&lt;!&ndash;<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="database()">数据库导出</button>&ndash;&gt;-->
62
+ <!--</div>-->
63
+ <!-- <div class="auto" style="padding-top: 20px;" v-if='show'>
64
+ <p class="text-warning" style="padding: 0 10px">正在下载抄表单...</p>
65
+ </div> -->
66
+ <!-- <hand-info v-if="show" :data="handinfo"></hand-info> -->
67
+ <!-- <div class="auto" v-if="!show">
68
+ <p class="text-warning" style="padding: 0 10px">
69
+ 暂无可操作的抄表信息
70
+ </p>
71
+ </div> -->
72
+ </div>
73
+ <!-- <back-page :need-back='true' @flag="$back()"></back-page>-->
74
+ </template>
75
+ <script>
76
+ import { PagedList } from 'vue-client'
77
+ import co from 'co'
78
+ import Vue from 'vue'
79
+ // const downloadHand = function * (self, row) {
80
+ //
81
+ // }
82
+
83
+ export default {
84
+ title: '共享计划下载',
85
+ data () {
86
+ return {
87
+ model: new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/getShareCheckPlan`,5,{f_fengongsi:`'${Vue.user.orgid}'`,f_fengongsi_name:`'${Vue.user.orgs.split('.').pop()}'`}),
88
+ checkPlanInfo: [],
89
+ localcheckPlanInfo:[]
90
+ }
91
+ },
92
+ ready () {
93
+
94
+ this.getlocalCheckPlan()
95
+ },
96
+ methods: {
97
+ reload() {
98
+ //tag
99
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
100
+ },
101
+ getlocalCheckPlan() {
102
+ let value = this.$androidUtil.path({alias: 'getLocalCheckPlan', data: {}})
103
+ //tag
104
+ this.localcheckPlanInfo = value.data
105
+ // this.$androidUtil.path({alias: 'getLocalCheckPlan', data:{}}).then((value)=>{
106
+ // //tag
107
+ // this.localcheckPlanInfo = value.data
108
+ // })
109
+ },
110
+ downloadHand(row) {
111
+ HostApp.__this__ =this
112
+ this.$showMessage('正在进行共享计划下载,请确认!', ['confirm', 'cancel']).then((res) => {
113
+ if (res === 'confirm') {
114
+ HostApp.logicWithHint({
115
+ 'logic': 'DownCheckPlanInfo',
116
+ 'callback': 'javascript: HostApp.__this__.downloadHandCallback()',
117
+ 'data': {id: row.id},
118
+ 'backresult': 1
119
+ })
120
+ }
121
+ })
122
+ },
123
+ downloadHandCallback(jo) {
124
+ // 安卓端
125
+ //tag
126
+ if (jo.state == 'ok') {
127
+ let result = JSON.parse(jo.result)
128
+ if (result.state == 0) {
129
+ if (result.data.length > 0) {
130
+ this.getlocalCheckPlan()
131
+ this.$showMessage('下载成功,您可前往计划导航进行查看!')
132
+ } else {
133
+ this.$showMessage('无可下载的共享计划!')
134
+ }
135
+ } else {
136
+ this.$showMessage('下载失败!')
137
+ }
138
+ } else {
139
+ this.$showMessage('下载失败,请重试!')
140
+ }
141
+ }
142
+ },
143
+ computed: {
144
+ isDown () {
145
+ return function (row) {
146
+ for (let info of this.localcheckPlanInfo) {
147
+ if (info.id == row.id) {
148
+ return false
149
+ }
150
+ }
151
+ return true
152
+ }
153
+ }
154
+ }
155
+ }
156
+ </script>
157
+ <style>
158
+ .bg {
159
+ background-color: blue;
160
+ height: 1px;
161
+ border: 0;
162
+ }
163
+ .app-row {
164
+ background-color: white;
165
+ padding: 10px 10px 0 10px;
166
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
167
+ }
168
+ .search_input {
169
+ border: 0;
170
+ outline: none;
171
+ }
172
+ .font{
173
+ font: 15px PingFang-SC-Medium;
174
+ color: #666666;
175
+ }
176
+ .input-font{
177
+ font: 15px PingFang-SC-Medium;
178
+ color: #333333;
179
+ }
180
+ .btn-font{
181
+ font:600 16px PingFang-SC-Bold;
182
+ color: #499EDF;
183
+ }
184
+ .btn-color{
185
+ background-color: #FFFFFF;
186
+ border-radius: 10px ;
187
+ border: 1px solid #499EDF;
188
+ }
189
+ .app-text {
190
+ font-size: 12px;
191
+ }
192
+ .panel-self{
193
+ border-radius: 10px;
194
+ border:1px solid #499EDF;
195
+ background-color: #F8F8F8;
196
+ }
197
+ .yybtn-color{
198
+ background-color:#499edf;
199
+ border-radius: 4px ;
200
+ border: 1px solid #499EDF;
201
+ color: #FFFFFF;
202
+ font: 14px PingFang-SC-Bold;
203
+ }
204
+ .qxbtn-color{
205
+ background-color: #FFFFFF;
206
+ border-radius: 4px ;
207
+ color: #499edf;
208
+ font: 14px PingFang-SC-Bold;
209
+ border: 1px solid #499EDF;
210
+ }
211
+
212
+ </style>
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  //手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'check-plan-down': (resolve) => { require(['./android/CheckPlanDown'], resolve) }
7
8
  }
8
9
  exports.specialComp = specialComp
9
10