safecheck-client 4.0.2-5 → 4.0.2-50
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/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/android.html +18 -18
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/docs/AppBase.md +22 -22
- package/docs/Busy.md +14 -14
- package/docs/CriteriaPaged.md +47 -47
- package/docs/DataGrid.md +54 -54
- package/docs/DataModel.md +22 -22
- package/docs/Dynamic.md +42 -42
- package/docs/GetParams.md +11 -11
- package/docs/HttpBusy.md +13 -13
- package/docs/HttpStore.md +29 -29
- package/docs/MessageBox.md +28 -28
- package/docs/PagedList.md +29 -29
- package/docs/Pager.md +21 -21
- package/docs/Project.md +23 -23
- package/docs/Route.md +105 -105
- package/docs/SafetyCheck/AdjustPlan.md +13 -13
- package/docs/SafetyCheck/CheckerPlan.md +12 -12
- package/docs/Task.md +46 -46
- package/docs/TreeList.md +28 -28
- package/docs/TreeMixin.md +18 -18
- package/docs/all.md +10 -10
- package/docs/list.md +42 -42
- package/docs/partial.md +75 -75
- package/docs/selector.md +82 -82
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
- package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
- package/examples/AddressList/App.vue +13 -13
- package/examples/AddressList/index.html +11 -11
- package/examples/DispatchList/App.vue +10 -10
- package/examples/DispatchList/BaseTree.vue +13 -13
- package/examples/DispatchList/Init.vue +22 -22
- package/examples/DispatchList/Test.vue +20 -20
- package/examples/DispatchList/index.html +11 -11
- package/examples/DispatchList/main.js +18 -18
- package/home.html +16 -16
- package/package.json +1 -1
- package/publish.bat +7 -7
- package/release.bat +5 -5
- package/src/Widget.vue +13 -13
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/android-bootstrap/less/.csscomb.json +304 -304
- package/src/android-bootstrap/less/.csslintrc +19 -19
- package/src/android-bootstrap/less/alerts.less +73 -73
- package/src/android-bootstrap/less/badges.less +66 -66
- package/src/android-bootstrap/less/bootstrap.less +56 -56
- package/src/android-bootstrap/less/breadcrumbs.less +26 -26
- package/src/android-bootstrap/less/button-groups.less +247 -247
- package/src/android-bootstrap/less/buttons.less +173 -173
- package/src/android-bootstrap/less/carousel.less +269 -269
- package/src/android-bootstrap/less/close.less +34 -34
- package/src/android-bootstrap/less/code.less +69 -69
- package/src/android-bootstrap/less/component-animations.less +33 -33
- package/src/android-bootstrap/less/grid.less +84 -84
- package/src/android-bootstrap/less/input-groups.less +167 -167
- package/src/android-bootstrap/less/jumbotron.less +52 -52
- package/src/android-bootstrap/less/labels.less +64 -64
- package/src/android-bootstrap/less/list-group.less +141 -141
- package/src/android-bootstrap/less/media.less +66 -66
- package/src/android-bootstrap/less/mixins/alerts.less +14 -14
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
- package/src/android-bootstrap/less/mixins/buttons.less +69 -69
- package/src/android-bootstrap/less/mixins/center-block.less +7 -7
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
- package/src/android-bootstrap/less/mixins/forms.less +90 -90
- package/src/android-bootstrap/less/mixins/gradients.less +59 -59
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/android-bootstrap/less/mixins/grid.less +122 -122
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
- package/src/android-bootstrap/less/mixins/image.less +33 -33
- package/src/android-bootstrap/less/mixins/labels.less +12 -12
- package/src/android-bootstrap/less/mixins/list-group.less +30 -30
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/android-bootstrap/less/mixins/opacity.less +8 -8
- package/src/android-bootstrap/less/mixins/pagination.less +24 -24
- package/src/android-bootstrap/less/mixins/panels.less +24 -24
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
- package/src/android-bootstrap/less/mixins/resize.less +6 -6
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/android-bootstrap/less/mixins/size.less +10 -10
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/android-bootstrap/less/mixins/table-row.less +44 -44
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/android-bootstrap/less/mixins.less +40 -40
- package/src/android-bootstrap/less/modals.less +151 -151
- package/src/android-bootstrap/less/navbar.less +660 -660
- package/src/android-bootstrap/less/navs.less +290 -290
- package/src/android-bootstrap/less/normalize.less +424 -424
- package/src/android-bootstrap/less/pager.less +76 -76
- package/src/android-bootstrap/less/pagination.less +89 -89
- package/src/android-bootstrap/less/panels.less +274 -274
- package/src/android-bootstrap/less/popovers.less +131 -131
- package/src/android-bootstrap/less/print.less +101 -101
- package/src/android-bootstrap/less/progress-bars.less +87 -87
- package/src/android-bootstrap/less/responsive-embed.less +35 -35
- package/src/android-bootstrap/less/responsive-utilities.less +194 -194
- package/src/android-bootstrap/less/scaffolding.less +161 -161
- package/src/android-bootstrap/less/tables.less +262 -262
- package/src/android-bootstrap/less/theme.less +291 -291
- package/src/android-bootstrap/less/thumbnails.less +36 -36
- package/src/android-bootstrap/less/tooltip.less +102 -102
- package/src/android-bootstrap/less/type.less +303 -303
- package/src/android-bootstrap/less/utilities.less +55 -55
- package/src/android-bootstrap/less/variables.less +896 -896
- package/src/android-bootstrap/less/wells.less +29 -29
- package/src/bootstrap/less/.csscomb.json +304 -304
- package/src/bootstrap/less/.csslintrc +19 -19
- package/src/bootstrap/less/alerts.less +73 -73
- package/src/bootstrap/less/badges.less +66 -66
- package/src/bootstrap/less/breadcrumbs.less +26 -26
- package/src/bootstrap/less/button-groups.less +247 -247
- package/src/bootstrap/less/buttons.less +172 -172
- package/src/bootstrap/less/carousel.less +269 -269
- package/src/bootstrap/less/close.less +34 -34
- package/src/bootstrap/less/code.less +69 -69
- package/src/bootstrap/less/component-animations.less +33 -33
- package/src/bootstrap/less/dropdowns.less +216 -216
- package/src/bootstrap/less/grid.less +84 -84
- package/src/bootstrap/less/input-groups.less +167 -167
- package/src/bootstrap/less/jumbotron.less +52 -52
- package/src/bootstrap/less/labels.less +64 -64
- package/src/bootstrap/less/list-group.less +141 -141
- package/src/bootstrap/less/media.less +66 -66
- package/src/bootstrap/less/mixins/alerts.less +14 -14
- package/src/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/bootstrap/less/mixins/buttons.less +69 -69
- package/src/bootstrap/less/mixins/center-block.less +7 -7
- package/src/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/bootstrap/less/mixins/forms.less +90 -90
- package/src/bootstrap/less/mixins/gradients.less +59 -59
- package/src/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/bootstrap/less/mixins/grid.less +122 -122
- package/src/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/bootstrap/less/mixins/image.less +33 -33
- package/src/bootstrap/less/mixins/labels.less +12 -12
- package/src/bootstrap/less/mixins/list-group.less +30 -30
- package/src/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/bootstrap/less/mixins/opacity.less +8 -8
- package/src/bootstrap/less/mixins/pagination.less +24 -24
- package/src/bootstrap/less/mixins/panels.less +24 -24
- package/src/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/bootstrap/less/mixins/resize.less +6 -6
- package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/bootstrap/less/mixins/size.less +10 -10
- package/src/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/bootstrap/less/mixins/table-row.less +44 -44
- package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/bootstrap/less/mixins.less +40 -40
- package/src/bootstrap/less/modals.less +151 -151
- package/src/bootstrap/less/navbar.less +660 -660
- package/src/bootstrap/less/normalize.less +424 -424
- package/src/bootstrap/less/pagination.less +89 -89
- package/src/bootstrap/less/panels.less +275 -275
- package/src/bootstrap/less/popovers.less +131 -131
- package/src/bootstrap/less/print.less +101 -101
- package/src/bootstrap/less/progress-bars.less +87 -87
- package/src/bootstrap/less/responsive-embed.less +35 -35
- package/src/bootstrap/less/responsive-utilities.less +194 -194
- package/src/bootstrap/less/scaffolding.less +161 -161
- package/src/bootstrap/less/theme.less +291 -291
- package/src/bootstrap/less/thumbnails.less +36 -36
- package/src/bootstrap/less/tooltip.less +102 -102
- package/src/bootstrap/less/type.less +303 -303
- package/src/bootstrap/less/utilities.less +55 -55
- package/src/bootstrap/less/wells.less +29 -29
- package/src/components/FileUpload.vue +696 -696
- package/src/components/Hello.vue +39 -39
- package/src/components/LeftTree.vue +27 -27
- package/src/components/NewDefectList/DefectPaperNew.vue +2 -2
- package/src/components/android/AttendanceTally.vue +116 -116
- package/src/components/android/Blank.vue +10 -10
- package/src/components/android/CheckUnplanPage.vue +56 -56
- package/src/components/android/Checker.vue +12 -12
- package/src/components/android/CheckerAnnual.vue +81 -81
- package/src/components/android/CheckerAvarta.vue +82 -82
- package/src/components/android/EquipmentInspection.vue +348 -348
- package/src/components/android/FootprintMap.vue +120 -120
- package/src/components/android/HiddentroubleInvestigation.vue +192 -192
- package/src/components/android/MasterMain.vue +77 -77
- package/src/components/android/Menu.vue +132 -132
- package/src/components/android/PaperAlarm.vue +85 -85
- package/src/components/android/PaperDeviceNoncivil.vue +214 -214
- package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/PlumberAnnual.vue +83 -83
- package/src/components/android/PlumberAnnualDetail.vue +65 -65
- package/src/components/android/PlumberMonthly.vue +84 -84
- package/src/components/android/PostMap.vue +83 -83
- package/src/components/android/QueryCheckHistory.vue +122 -122
- package/src/components/android/QueryCheckHistoryItem.vue +62 -62
- package/src/components/android/RepairMain.vue +60 -60
- package/src/components/android/Repairman.vue +12 -12
- package/src/components/android/SafeRightTree.vue +218 -218
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/StationMaster.vue +12 -12
- package/src/components/android/week/CheckResultSimple.vue +251 -0
- package/src/components/android/week/FirstWeekCheck.vue +275 -0
- package/src/components/android/week/StepHeaderBar.vue +457 -0
- package/src/components/android/week/WeekCheck.vue +209 -0
- package/src/components/android/week/WeekCheckPaper.vue +219 -0
- package/src/components/android/week/WeekCheckPlan.vue +145 -0
- package/src/components/checkplan/SelectCheckPlan.vue +39 -0
- package/src/components/defects/DefectModal.vue +101 -101
- package/src/components/defects/DevicesAndItem.vue +39 -39
- package/src/components/issueplan/IssuePlanMain.vue +23 -23
- package/src/components/notice/NoticeForm.vue +100 -100
- package/src/components/notice/NoticeIssue.vue +20 -20
- package/src/components/paper/PicViewer.vue +18 -18
- package/src/components/paper/safetyledger.vue +198 -0
- package/src/components/pc/CheckBook.vue +1 -1
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/components/phonestate/MonthlyTraffic.vue +66 -66
- package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
- package/src/components/phonestate/PostMap.vue +82 -82
- package/src/components/planmanage/checkUserList.vue +1 -1
- package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
- package/src/components/querycheckpaper/PaperItem.vue +59 -59
- package/src/components/report/CheckByPlan.vue +118 -118
- package/src/components/report/CheckPlanAreaList.vue +53 -7
- package/src/components/userfile/MeterFile.vue +145 -145
- package/src/components/userfile/MeterModify.vue +46 -46
- package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
- package/src/filiale/jinhong/android/CurrentCreate.vue +34 -12
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
- package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
- package/src/filiale/jinhong/android.js +1 -0
- package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
- package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
- package/src/filiale/jinhong/pc/PaperList.vue +5 -1
- package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
- package/src/filiale/jinhong/pc.js +1 -0
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
- package/src/filiale/meihekou/android/PaperFeedback.vue +3 -0
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
- package/src/filiale/meihekou/android.js +22 -22
- package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
- package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
- package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +1 -0
- package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
- package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
- package/src/filiale/meihekou/pc.js +3 -0
- package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
- package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +2683 -2676
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
- package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
- package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
- package/src/filiale/xinliansihui/pc.js +13 -0
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- package/src/safecheck-android.js +327 -316
- package/src/safecheck.js +3 -0
- package/src/stores/wxconfig.js +10 -10
- package/src/utils/getNowDate.js +33 -33
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +13 -13
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +62 -62
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
<v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
|
|
205
205
|
:options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
|
|
206
206
|
@change="$parent.$parent.planNameChange"
|
|
207
|
-
condition="f_plan_name
|
|
207
|
+
condition="f_plan_name = '{}'" close-on-select clear-button>
|
|
208
208
|
</v-select>
|
|
209
209
|
</div>
|
|
210
210
|
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
<div class="col-xs-12">
|
|
443
443
|
<button type="button" name="button" class="btn btn-primary"
|
|
444
444
|
style="background-color:#499edf;float: right"
|
|
445
|
-
@click="$parent.$parent.$parent.inspect(row)">处理</button>
|
|
445
|
+
@click="$parent.$parent.$parent.inspect(row,$index)">处理</button>
|
|
446
446
|
<button type="button" name="button" class="btn btn-primary"
|
|
447
447
|
style="background-color:#499edf;float: right;margin-right:10px;"
|
|
448
448
|
@click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
|
|
@@ -613,6 +613,7 @@ export default {
|
|
|
613
613
|
planid: '',
|
|
614
614
|
model: Vue.android ? new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }) : new PagedList('AndroidRest/api/af-safecheck/sql/androidGetuserinfo', 20, { condition: 'this.condition' }),
|
|
615
615
|
showModal: false,
|
|
616
|
+
index:0,
|
|
616
617
|
showModal2: false,
|
|
617
618
|
showModal3: false,
|
|
618
619
|
needid: '',
|
|
@@ -667,7 +668,9 @@ export default {
|
|
|
667
668
|
notVisited: 0,
|
|
668
669
|
checked: 0,
|
|
669
670
|
notChecked: 0,
|
|
670
|
-
enterRate: 0
|
|
671
|
+
enterRate: 0,
|
|
672
|
+
ruhunum:0
|
|
673
|
+
|
|
671
674
|
}
|
|
672
675
|
},
|
|
673
676
|
ready() {
|
|
@@ -866,7 +869,7 @@ export default {
|
|
|
866
869
|
condition += ` and f_checker_id= '${this.check}'`
|
|
867
870
|
}
|
|
868
871
|
if (this.plan) {
|
|
869
|
-
condition += ` and f_plan_name
|
|
872
|
+
condition += ` and f_plan_name = '${this.plan}'`
|
|
870
873
|
}
|
|
871
874
|
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
|
|
872
875
|
data: {
|
|
@@ -951,7 +954,8 @@ export default {
|
|
|
951
954
|
})
|
|
952
955
|
}
|
|
953
956
|
},
|
|
954
|
-
inspect(row) {
|
|
957
|
+
inspect(row,index) {
|
|
958
|
+
this.index = index
|
|
955
959
|
var _this = this
|
|
956
960
|
try {
|
|
957
961
|
let http = new HttpResetClass()
|
|
@@ -975,7 +979,7 @@ export default {
|
|
|
975
979
|
}
|
|
976
980
|
_this.$dispatch('gotoson', pardate)
|
|
977
981
|
//tag
|
|
978
|
-
_this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.
|
|
982
|
+
_this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.goNext)
|
|
979
983
|
}).catch((msg) => {
|
|
980
984
|
this.noLineInspect(row)
|
|
981
985
|
})
|
|
@@ -992,6 +996,23 @@ export default {
|
|
|
992
996
|
this.noLineInspect(row)
|
|
993
997
|
}
|
|
994
998
|
},
|
|
999
|
+
goNext(){
|
|
1000
|
+
if (this.index+1 == this.model.rows.length){
|
|
1001
|
+
this.reload()
|
|
1002
|
+
return
|
|
1003
|
+
}
|
|
1004
|
+
console.log(this.index)
|
|
1005
|
+
this.$showMessage(`开始安检之前,请核对用户信息`, ['cancel', 'confirm']).then(
|
|
1006
|
+
(response) => {
|
|
1007
|
+
if (response === 'confirm') {
|
|
1008
|
+
this.inspect(this.model.rows[this.index+1],this.index+1)
|
|
1009
|
+
}else {
|
|
1010
|
+
this.reload()
|
|
1011
|
+
this.index = 0
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
)
|
|
1015
|
+
},
|
|
995
1016
|
noLineInspect(row){
|
|
996
1017
|
let _this = this
|
|
997
1018
|
let criteria = {
|
|
@@ -1009,7 +1030,7 @@ export default {
|
|
|
1009
1030
|
safe:true
|
|
1010
1031
|
}
|
|
1011
1032
|
_this.$dispatch('gotoson',pardate)
|
|
1012
|
-
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.
|
|
1033
|
+
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.goNext)
|
|
1013
1034
|
}
|
|
1014
1035
|
},
|
|
1015
1036
|
makeAPhoneCall(phoneNumber) {
|
|
@@ -1036,10 +1057,10 @@ export default {
|
|
|
1036
1057
|
if (this.$refs.paged.$refs.cri.model.f_unit)
|
|
1037
1058
|
condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
|
|
1038
1059
|
if (this.planName) {
|
|
1039
|
-
condition += " and f_plan_name
|
|
1060
|
+
condition += " and f_plan_name = '" + this.planName + "'"
|
|
1040
1061
|
} else {
|
|
1041
1062
|
if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
|
|
1042
|
-
condition += " and f_plan_name
|
|
1063
|
+
condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
|
|
1043
1064
|
}
|
|
1044
1065
|
// if(this.$refs.paged.$refs.cri.model.f_plan_year)
|
|
1045
1066
|
// condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
|
|
@@ -1068,7 +1089,7 @@ export default {
|
|
|
1068
1089
|
condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
|
|
1069
1090
|
if (this.$refs.paged.$refs.cri.model.f_check_book.length > 0){
|
|
1070
1091
|
if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0 || this.planName){
|
|
1071
|
-
condition += " and ti.f_check_book_id
|
|
1092
|
+
condition += " and ti.f_check_book_id = '" + this.$refs.paged.$refs.cri.model.f_check_book + "'"
|
|
1072
1093
|
}else {
|
|
1073
1094
|
this.$showMessage("使用安检册筛选项必须选择计划名称")
|
|
1074
1095
|
return
|
|
@@ -1210,8 +1231,8 @@ export default {
|
|
|
1210
1231
|
}
|
|
1211
1232
|
}
|
|
1212
1233
|
let tjData = {
|
|
1213
|
-
items: " COUNT(*) AS total_items,
|
|
1214
|
-
tablename: "
|
|
1234
|
+
items: " COUNT(*) AS total_items,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END ) AS no_answer_count,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) AS ruhunum,SUM ( CASE WHEN tcpi.f_state= '已检' AND f_last_check_state != '到访不遇' THEN 1 ELSE 0 END ) AS yj_count,SUM ( CASE WHEN tcpi.f_state= '未检' THEN 1 ELSE 0 END ) AS wj_count,ROUND( SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) * 100.0 / COUNT ( * ), 2 ) AS entry_rate_percent ",
|
|
1235
|
+
tablename: " t_check_plan_item tcpi LEFT JOIN t_check_plan tcpl ON tcpi.f_plan_id = tcpl.id ",
|
|
1215
1236
|
condition: condition,
|
|
1216
1237
|
orderitem: '1'
|
|
1217
1238
|
}
|
|
@@ -1226,6 +1247,7 @@ export default {
|
|
|
1226
1247
|
this.checked = stat.yj_count || 0;
|
|
1227
1248
|
this.notChecked = stat.wj_count || 0;
|
|
1228
1249
|
this.enterRate = stat.entry_rate_percent || 0;
|
|
1250
|
+
this.ruhunum = stat.ruhunum || 0;
|
|
1229
1251
|
}
|
|
1230
1252
|
|
|
1231
1253
|
let criteria = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="auto clearfix">
|
|
3
|
+
<work-busy :is-busy="isbusy"></work-busy>
|
|
3
4
|
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
|
4
5
|
<div class="col-xs-4 col-sm-4 col-md-4">
|
|
5
6
|
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
</div>
|
|
191
192
|
</div>
|
|
192
193
|
<div class="col-xs-12 text-center app-row">
|
|
193
|
-
<button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="
|
|
194
|
+
<button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="check()">提交</button>
|
|
194
195
|
</div>
|
|
195
196
|
</div>
|
|
196
197
|
</template>
|
|
@@ -204,7 +205,7 @@ export default {
|
|
|
204
205
|
data() {
|
|
205
206
|
return {
|
|
206
207
|
create_date: Util.getNowDate(),
|
|
207
|
-
|
|
208
|
+
isbusy: false,
|
|
208
209
|
insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
|
|
209
210
|
insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
|
|
210
211
|
payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
@@ -269,6 +270,27 @@ export default {
|
|
|
269
270
|
this.model.f_id_type = '身份证'
|
|
270
271
|
},
|
|
271
272
|
methods: {
|
|
273
|
+
//查询是否在今天已经操作过了
|
|
274
|
+
async check() {
|
|
275
|
+
let http = new HttpResetClass()
|
|
276
|
+
// 获取今天的开始和结束时间
|
|
277
|
+
let startOfDay =Util.toStartDateString() + ' 00:00:00'
|
|
278
|
+
let endOfDay =Util.toEndDateString() + ' 23:59:59'
|
|
279
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
|
280
|
+
data: {
|
|
281
|
+
items: 'id',
|
|
282
|
+
tablename: 't_userfees',
|
|
283
|
+
condition: `f_userinfo_id= '${this.model.f_userinfo_id}' and f_state='有效' and f_fee_type='保险收费' and f_operate_date >= '${startOfDay}' and f_operate_date <= '${endOfDay}'`,
|
|
284
|
+
orderitem: 'id'
|
|
285
|
+
}
|
|
286
|
+
}, { resolveMsg: null, rejectMsg: null }).then((res) => {
|
|
287
|
+
if (res.data.length > 0) {
|
|
288
|
+
this.$showMessage('今天已经进行了保险收费,请勿重复操作。')
|
|
289
|
+
} else {
|
|
290
|
+
this.commit()
|
|
291
|
+
}
|
|
292
|
+
})
|
|
293
|
+
},
|
|
272
294
|
async commit() {
|
|
273
295
|
if (!this.model.f_payment) {
|
|
274
296
|
this.$showMessage('收款方式未选择,请选择后重新尝试。')
|
|
@@ -353,6 +375,7 @@ export default {
|
|
|
353
375
|
return
|
|
354
376
|
}
|
|
355
377
|
}
|
|
378
|
+
this.isbusy= true
|
|
356
379
|
commit_data.f_receivable = this.model.f_money
|
|
357
380
|
commit_data.f_operate_date = Util.toStandardTimeString()
|
|
358
381
|
commit_data.f_state = '有效'
|
|
@@ -360,12 +383,14 @@ export default {
|
|
|
360
383
|
commit_data.f_orgname = Vue.user.orgs
|
|
361
384
|
commit_data.f_depid = Vue.user.depids
|
|
362
385
|
commit_data.f_depname = Vue.user.deps
|
|
386
|
+
commit_data.f_fee_type='保险收费'
|
|
363
387
|
await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
|
|
364
388
|
this.$showMessage('提交成功')
|
|
389
|
+
this.isbusy= false
|
|
365
390
|
this.$back()
|
|
366
391
|
} catch (error) {
|
|
367
392
|
this.$showMessage('提交失败')
|
|
368
|
-
this.
|
|
393
|
+
this.isbusy= false
|
|
369
394
|
}
|
|
370
395
|
},
|
|
371
396
|
changeExpirationDate() {
|