safecheck-client 4.0.0-7 → 4.0.0-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.
Files changed (117) hide show
  1. package/package.json +132 -132
  2. package/src/components/NewDefectList/DefectListNew.vue +11 -11
  3. package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
  4. package/src/components/Util/ImgSelfSafePlus.vue +13 -3
  5. package/src/components/android/AndroidDefectDeal.vue +1 -1
  6. package/src/components/android/AndroidDefectDealBeforeSafe.vue +1 -1
  7. package/src/components/android/AndroidDefectDetails.vue +725 -0
  8. package/src/components/android/BlackUserOnLine.vue +2 -2
  9. package/src/components/android/Insurance/PhoneInsurancePurchase.vue +1 -1
  10. package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +4 -4
  11. package/src/components/android/PaperFeedback.vue +14 -12
  12. package/src/components/android/PaperFeedbackTemp.vue +2 -2
  13. package/src/components/android/PhoneUpUserinfo.vue +20 -0
  14. package/src/components/android/RelieveRestrict.vue +1 -1
  15. package/src/components/android/Restriction.vue +1 -1
  16. package/src/components/android/SafecheckDevices.vue +47 -2
  17. package/src/components/android/SafecheckOrderV.vue +2 -2
  18. package/src/components/android/SealBind.vue +392 -0
  19. package/src/components/android/SealManage.vue +250 -0
  20. package/src/components/inspections/inspectionFeedback.vue +2 -2
  21. package/src/components/paper/PaperList.vue +360 -332
  22. package/src/components/pc/AddToCheckBook.vue +100 -23
  23. package/src/components/pc/CheckBook.vue +2 -0
  24. package/src/components/pc/CheckBookDetails.vue +6 -39
  25. package/src/components/pc/CheckBookEntry.vue +6 -7
  26. package/src/components/pc/CheckBookList.vue +60 -71
  27. package/src/components/pc/CheckBookSearchArea.vue +20 -24
  28. package/src/components/pc/CheckBookSearchUser.vue +139 -84
  29. package/src/components/pc/CheckBookSearchUserList.vue +1 -2
  30. package/src/components/pc/CheckBookUser.vue +276 -44
  31. package/src/components/pc/NewCheckpaper.vue +14 -8
  32. package/src/components/pc/NewCheckpaperTemp.vue +5 -5
  33. package/src/components/pc/PaperDefectMain.vue +1 -0
  34. package/src/components/planmanage/PlanManage.vue +819 -821
  35. package/src/components/planmanage/checkUserList.vue +346 -346
  36. package/src/components/querycheckpaper/CheckSearchUser.vue +68 -68
  37. package/src/components/report/CheckPlanAreaList.vue +266 -266
  38. package/src/components/rongcheng/AspPaperFeedback.vue +1 -1
  39. package/src/components/rongcheng/PaperFeedback.vue +2 -2
  40. package/src/components/safecheck/queryManage/CheckBookAll.vue +2 -2
  41. package/src/filiale/ancheng/android/PaperFeedback.vue +2 -2
  42. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
  43. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +1 -1
  44. package/src/filiale/bayan/android/PaperFeedback.vue +2 -2
  45. package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
  46. package/src/filiale/hanzhong/android/PaperFeedback.vue +2 -2
  47. package/src/filiale/huatong/android/PaperFeedback.vue +2 -2
  48. package/src/filiale/huayin/android/PaperFeedback.vue +2 -2
  49. package/src/filiale/huayin/android/SafecheckOrderV.vue +1 -1
  50. package/src/filiale/jiaocheng/android/PaperFeedback.vue +2 -2
  51. package/src/filiale/jingyang/android/PaperFeedback.vue +2 -2
  52. package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
  53. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +173 -101
  54. package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -0
  55. package/src/filiale/jinhong/android.js +3 -1
  56. package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -0
  57. package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -0
  58. package/src/filiale/jinhong/pc/DefectListNew.vue +663 -0
  59. package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -0
  60. package/src/filiale/jinhong/pc/PaperList.vue +823 -0
  61. package/src/filiale/jinhong/pc/PlanManage.vue +891 -0
  62. package/src/filiale/jinhong/pc/checkUserList.vue +776 -0
  63. package/src/filiale/jinhong/pc.js +11 -0
  64. package/src/filiale/kelai/android/AndroidDefectDeal.vue +2 -2
  65. package/src/filiale/kelai/android/PaperFeedback.vue +2 -2
  66. package/src/filiale/kelai/android/RelieveRestrict.vue +1 -1
  67. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  68. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +1 -1
  69. package/src/filiale/meihekou/android/AreaPlan.vue +569 -0
  70. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -0
  71. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -0
  72. package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -0
  73. package/src/filiale/meihekou/android/MeterReading.vue +106 -0
  74. package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -0
  75. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1276 -0
  76. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2400 -0
  77. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -0
  78. package/src/filiale/meihekou/android.js +20 -0
  79. package/src/filiale/meihekou/pc.js +12 -0
  80. package/src/filiale/pingxiang/android/PaperFeedback.vue +2 -2
  81. package/src/filiale/qianneng/android/PaperFeedback.vue +2 -2
  82. package/src/filiale/qingjian/pc/NewCheckpaper.vue +5 -11
  83. package/src/filiale/rizhao/android/PaperFeedback.vue +2 -2
  84. package/src/filiale/rongchuang/android/PaperFeedback.vue +2 -2
  85. package/src/filiale/shanggao/android/PaperFeedback.vue +2 -2
  86. package/src/filiale/shanxian/android/AndroidDefectDeal.vue +1 -1
  87. package/src/filiale/shanxian/android/PaperFeedback.vue +2 -2
  88. package/src/filiale/shexian/android/AndroidDefectDeal.vue +1 -1
  89. package/src/filiale/shexian/android/PaperFeedback.vue +2 -2
  90. package/src/filiale/shimen/android/PaperFeedback.vue +2 -2
  91. package/src/filiale/tongchuan/android/AndroidDefectDeal.vue +1 -1
  92. package/src/filiale/tongchuan/android/PaperFeedback.vue +2 -2
  93. package/src/filiale/weinan/android/SafecheckOrderV.vue +3 -3
  94. package/src/filiale/wenxi/android/PaperFeedback.vue +3 -3
  95. package/src/filiale/wuan/android/PaperFeedback.vue +2 -2
  96. package/src/filiale/wuhai/android/PaperFeedback.vue +2 -2
  97. package/src/filiale/xiangyuanzhongai/android/SafecheckDevices.vue +20 -1
  98. package/src/filiale/xiangyuanzhongai/android/SafecheckOrderV.vue +2282 -0
  99. package/src/filiale/xiangyuanzhongai/android/SafecheckUserInfo.vue +786 -0
  100. package/src/filiale/xiangyuanzhongai/android.js +2 -0
  101. package/src/filiale/xiangyuanzhongai/pc/DefectDeal.vue +1007 -0
  102. package/src/filiale/xiangyuanzhongai/pc/PaperList.vue +795 -0
  103. package/src/filiale/xiangyuanzhongai/pc.js +2 -0
  104. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +2 -2
  105. package/src/filiale/yongzhou/android/PaperFeedback.vue +2 -2
  106. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +1 -1
  107. package/src/filiale/yuansheng/android/PaperFeedback.vue +2 -2
  108. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +2 -2
  109. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -0
  110. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2 -0
  111. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  112. package/src/filiale/yunchengminsheng/android.js +1 -0
  113. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +16 -5
  114. package/src/filiale/zhongsheng/android/PaperFeedback.vue +2 -2
  115. package/src/filiale/zhoukou/android/PaperFeedback.vue +2 -2
  116. package/src/main.js +1 -1
  117. package/src/safecheck-android.js +3 -0
@@ -2,7 +2,7 @@
2
2
  <div class="auto clearfix">
3
3
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
4
4
  <div class="col-xs-4 col-sm-4 col-md-4">
5
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
5
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
6
6
  <span class="text-left font">客户编号</span>
7
7
  </div>
8
8
  <div class="col-xs-8 col-sm-8 col-md-8">
@@ -11,65 +11,65 @@
11
11
  </div>
12
12
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
13
13
  <div class="col-xs-4 col-sm-4 col-md-4">
14
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
14
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
15
15
  <span class="text-left font">客户姓名</span>
16
16
  </div>
17
17
  <div class="col-xs-8 col-sm-8 col-md-8">
18
- <input type="text" class="form-control show-font" v-model="model.f_user_name" placeholder="请输入客户姓名">
18
+ <input v-model="model.f_user_name" class="form-control show-font" placeholder="请输入客户姓名" type="text">
19
19
  </div>
20
20
  </div>
21
21
  <div class="row app-row col-xs-12 col-sm-12 col-md-12">
22
22
  <div class="col-xs-4 col-sm-2 col-md-2">
23
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
23
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
24
24
  <span class="text-left font">客户地址</span>
25
25
  </div>
26
26
  <div class="col-xs-8 col-sm-10 col-md-10">
27
- <input type="text" class="form-control show-font" v-model="model.f_address" placeholder="请输入客户地址">
27
+ <input v-model="model.f_address" class="form-control show-font" placeholder="请输入客户地址" type="text">
28
28
  </div>
29
29
  </div>
30
30
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
31
31
  <div class="col-xs-4 col-sm-4 col-md-4">
32
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
32
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
33
33
  <span class="text-left font">客户电话</span>
34
34
  </div>
35
35
  <div class="col-xs-8 col-sm-8 col-md-8">
36
- <input type="number" class="form-control show-font" v-model="model.f_user_phone" placeholder="请输入电话号码">
36
+ <input v-model="model.f_user_phone" class="form-control show-font" placeholder="请输入电话号码" type="number">
37
37
  </div>
38
38
  </div>
39
39
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
40
40
  <div class="col-xs-4 col-sm-4 col-md-4">
41
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
41
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
42
42
  <span class="text-left font">证件类型</span>
43
43
  </div>
44
44
  <div class="col-xs-8 col-sm-8 col-md-8">
45
- <v-select :value.sync="model.f_id_type" v-model="model.f_id_type"
46
- :options="idTypeOptions" placeholder="请选择证件类型"
47
- :value-single="true" style="width: 100%"
48
- close-on-select>
45
+ <v-select v-model="model.f_id_type" :options="idTypeOptions"
46
+ :value-single="true" :value.sync="model.f_id_type"
47
+ close-on-select placeholder="请选择证件类型"
48
+ style="width: 100%">
49
49
  </v-select>
50
50
  </div>
51
51
  </div>
52
52
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
53
53
  <div class="col-xs-4 col-sm-4 col-md-4">
54
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
54
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
55
55
  <span class="text-left font">证件号码</span>
56
56
  </div>
57
57
  <div class="col-xs-8 col-sm-8 col-md-8">
58
- <input type="text" class="form-control show-font" v-model="model.f_idnumber" placeholder="请输入证件号码">
58
+ <input v-model="model.f_idnumber" class="form-control show-font" placeholder="请输入证件号码" type="text">
59
59
  </div>
60
60
  </div>
61
61
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
62
62
  <div class="col-xs-4 col-sm-4 col-md-4">
63
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
63
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
64
64
  <span class="text-left font">保单号</span>
65
65
  </div>
66
66
  <div class="col-xs-8 col-sm-8 col-md-8">
67
- <input type="number" class="form-control show-font" v-model="model.f_ins_number" placeholder="请输入保单号">
67
+ <input v-model="model.f_insurance_number" class="form-control show-font" placeholder="请输入保单号" type="number">
68
68
  </div>
69
69
  </div>
70
70
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
71
71
  <div class="col-xs-4 col-sm-4 col-md-4">
72
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
72
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
73
73
  <span class="text-left font">上期保费截至日期</span>
74
74
  </div>
75
75
  <div class="col-xs-8 col-sm-8 col-md-8">
@@ -78,115 +78,150 @@
78
78
  </div>
79
79
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
80
80
  <div class="col-xs-4 col-sm-4 col-md-4">
81
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
81
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
82
82
  <span class="text-left font">投保日期</span>
83
83
  </div>
84
84
  <div class="col-xs-8 col-sm-8 col-md-8">
85
- <datepicker :value.sync="model.f_ins_start_date" v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'"
85
+ <datepicker v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'" :value.sync="model.f_ins_start_date"
86
86
  placeholder="请选择投保日期" style="width: 60%" @change="changeExpirationDate">
87
87
  </datepicker>
88
88
  </div>
89
89
  </div>
90
90
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
91
91
  <div class="col-xs-4 col-sm-4 col-md-4">
92
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
92
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
93
93
  <span class="text-left font">购买年限</span>
94
94
  </div>
95
95
  <div class="col-xs-8 col-sm-8 col-md-8">
96
- <input type="number" placeholder="购买年限" style="width: 60%" class="form-control show-font" v-model="model.f_salecount" @change="changeExpirationDate">
96
+ <input v-model="model.f_salecount" class="form-control show-font" placeholder="购买年限" style="width: 60%"
97
+ type="number" @change="changeExpirationDate">
97
98
  </div>
98
99
  </div>
99
100
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
100
101
  <div class="col-xs-4 col-sm-4 col-md-4">
101
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
102
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
102
103
  <span class="text-left font">购买日期</span>
103
104
  </div>
104
105
  <div class="col-xs-8 col-sm-8 col-md-8">
105
- <datepicker :value.sync="create_date" v-model="create_date" :format="'yyyy-MM-dd'"
106
+ <datepicker v-model="create_date" :format="'yyyy-MM-dd'" :value.sync="create_date"
106
107
  placeholder="购买日期" style="width: 60%">
107
108
  </datepicker>
108
109
  </div>
109
110
  </div>
110
111
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
111
112
  <div class="col-xs-4 col-sm-4 col-md-4">
112
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
113
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
113
114
  <span class="text-left font">到期日期</span>
114
115
  </div>
115
116
  <div class="col-xs-8 col-sm-8 col-md-8">
116
- <datepicker :value.sync="model.f_expiration_date" v-model="model.f_expiration_date" :format="'yyyy-MM-dd'"
117
+ <datepicker v-model="model.f_expiration_date" :format="'yyyy-MM-dd'" :value.sync="model.f_expiration_date"
117
118
  placeholder="到期日期" style="width: 60%">
118
119
  </datepicker>
119
120
  </div>
120
121
  </div>
121
122
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
122
123
  <div class="col-xs-4 col-sm-4 col-md-4">
123
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
124
- <span class="text-left font">金额</span>
124
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
125
+ <span class="text-left font">保险公司</span>
125
126
  </div>
126
127
  <div class="col-xs-8 col-sm-8 col-md-8">
127
- <input type="number" class="form-control show-font" v-model="model.f_money" placeholder="请输入金额">
128
+ <v-select v-model="model.f_insurance_company" :options="insurance_companys"
129
+ :value-single="true" :value.sync="model.f_insurance_company"
130
+ close-on-select placeholder="保险公司"
131
+ style="width: 100%">
132
+ </v-select>
128
133
  </div>
129
134
  </div>
130
135
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
131
136
  <div class="col-xs-4 col-sm-4 col-md-4">
132
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
137
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
133
138
  <span class="text-left font">保险险种</span>
134
139
  </div>
135
140
  <div class="col-xs-8 col-sm-8 col-md-8">
136
- <input type="text" class="form-control show-font" v-model="model.f_insurance_type" placeholder="请输入保险险种">
141
+ <v-select v-model="model.f_insurance_type" :options="insurance_types"
142
+ :value-single="true" :value.sync="model.f_insurance_type"
143
+ close-on-select placeholder="保险险种"
144
+ style="width: 100%">
145
+ </v-select>
137
146
  </div>
138
147
  </div>
139
148
  <div class="row app-row col-xs-12 col-sm-6 col-md-6">
140
149
  <div class="col-xs-4 col-sm-4 col-md-4">
141
- <img src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px" alt="">
150
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
151
+ <span class="text-left font">金额</span>
152
+ </div>
153
+ <div class="col-xs-8 col-sm-8 col-md-8">
154
+ <input v-model="model.f_money" class="form-control show-font" placeholder="请输入金额" type="number">
155
+ </div>
156
+ </div>
157
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
158
+ <div class="col-xs-4 col-sm-4 col-md-4">
159
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
142
160
  <span class="text-left font">与投保人关系</span>
143
161
  </div>
144
162
  <div class="col-xs-8 col-sm-8 col-md-8">
145
- <v-select :value.sync="model.f_relationship" v-model="model.f_relationship"
146
- :options="relationshipOptions" placeholder="请选择关系"
147
- :value-single="true" style="width: 100%"
148
- close-on-select>
163
+ <v-select v-model="model.f_relationship" :options="relationshipOptions"
164
+ :value-single="true" :value.sync="model.f_relationship"
165
+ close-on-select placeholder="请选择关系"
166
+ style="width: 100%">
167
+ </v-select>
168
+ </div>
169
+ </div>
170
+ <div class="row app-row col-xs-12 col-sm-6 col-md-6">
171
+ <div class="col-xs-4 col-sm-4 col-md-4">
172
+ <img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
173
+ <span class="text-left font">收款方式</span>
174
+ </div>
175
+ <div class="col-xs-8 col-sm-8 col-md-8">
176
+ <v-select v-model="model.f_payment" :options="payTypes"
177
+ :value-single="true" :value.sync="model.f_payment"
178
+ close-on-select placeholder="收款方式"
179
+ style="width: 100%">
149
180
  </v-select>
150
181
  </div>
151
182
  </div>
152
183
  <div class="row app-row col-xs-12">
153
184
  <div class="col-xs-4 col-sm-4 col-md-4">
154
- <img src="../../../assets/add.png" style="width: 20px;" alt="">
185
+ <img alt="" src="../../../assets/add.png" style="width: 20px;">
155
186
  <span class="text-left font">备注</span>
156
187
  </div>
157
188
  <div class="col-xs-8 col-sm-8 col-md-8">
158
- <input class="form-control show-font" v-model="model.f_comments" placeholder="备注">
189
+ <input v-model="model.f_comments" class="form-control show-font" placeholder="备注">
159
190
  </div>
160
191
  </div>
161
192
  <div class="col-xs-12 text-center app-row">
162
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 22%;" @click="commit()">提交</button>
193
+ <button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
163
194
  </div>
164
195
  </div>
165
196
  </template>
166
197
  <script>
167
- import { HttpResetClass } from 'vue-client'
198
+ import {HttpResetClass} from 'vue-client'
168
199
  import * as Util from '../../../components/Util'
169
200
  import Vue from 'vue'
201
+
170
202
  export default {
171
203
  title: '手机单户抄表',
172
204
  data() {
173
205
  return {
174
- create_date:Util.getNowDate(),
175
- isCommit:false,
206
+ create_date: Util.getNowDate(),
207
+ isCommit: false,
208
+ insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
209
+ insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
210
+ payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
176
211
  idTypeOptions: [
177
- { label: '身份证', value: '身份证' },
178
- { label: '军官证', value: '军官证' },
179
- { label: '统一社会信用代码', value: '统一社会信用代码' },
180
- { label: '港澳居民通行证', value: '港澳居民通行证' },
181
- { label: '外国人永久居留证', value: '外国人永久居留证' },
182
- { label: '户口本', value: '户口本' }
212
+ {label: '身份证', value: '身份证'},
213
+ {label: '军官证', value: '军官证'},
214
+ {label: '统一社会信用代码', value: '统一社会信用代码'},
215
+ {label: '港澳居民通行证', value: '港澳居民通行证'},
216
+ {label: '外国人永久居留证', value: '外国人永久居留证'},
217
+ {label: '户口本', value: '户口本'}
183
218
  ],
184
219
  relationshipOptions: [
185
- { label: '本人', value: '0' },
186
- { label: '配偶', value: '1' },
187
- { label: '父母', value: '2' },
188
- { label: '子女', value: '3' },
189
- { label: '其他', value: '9' }
220
+ {label: '本人', value: '0'},
221
+ {label: '配偶', value: '1'},
222
+ {label: '父母', value: '2'},
223
+ {label: '子女', value: '3'},
224
+ {label: '其他', value: '9'}
190
225
  ]
191
226
  }
192
227
  },
@@ -199,9 +234,9 @@ export default {
199
234
  ready() {
200
235
  new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
201
236
  data: {
202
- items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type',
237
+ items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type,tu.f_user_id,tu.version as table_version',
203
238
  tablename: 't_userinfo ui left join t_user_address ua on ui.f_userinfo_id = ua.f_userinfo_id left join t_pcd p on ua.f_pcd_id = p.id left join t_userfiles tu on tu.f_userinfo_id = ui.f_userinfo_id',
204
- condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}'`,
239
+ condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}' and tu.f_table_state in ('正常','停用','预备')`,
205
240
  orderitem: '1'
206
241
  }
207
242
  }).then(response => {
@@ -209,113 +244,150 @@ export default {
209
244
  this.model.f_last_insexpiration_date = response.data[0].f_ins_stop_date
210
245
  if (response.data[0].f_user_type.includes('非民用')) {
211
246
  this.model.f_relationship = '9'
212
- }else {
247
+ } else {
213
248
  this.model.f_relationship = '0'
214
249
  }
215
- if (!response.data[0].f_province || !response.data[0].f_city || !response.data[0].f_district){
216
- this.$showMessage('该户档案异常,缺少省市区数据,核对数据后重新进入')
250
+ if (response.data[0].f_ins_stop_date && response.data[0].f_ins_stop_date >= Util.toStandardDateString()) {
251
+ let stopDate = new Date(response.data[0].f_ins_stop_date)
252
+ stopDate.setDate(stopDate.getDate() + 1)
253
+ let year = stopDate.getFullYear()
254
+ let month = (stopDate.getMonth() + 1).toString().padStart(2, '0')
255
+ let day = stopDate.getDate().toString().padStart(2, '0')
256
+ this.model.f_ins_start_date = `${year}-${month}-${day}`
257
+ } else {
258
+ this.model.f_ins_start_date = Util.toStandardDateString()
217
259
  }
260
+ // if (!this.model.province || !this.model.city || !this.model.county){
261
+ // this.$showMessage('检查档案省、市、区数据是否正常')
262
+ // }
218
263
  })
219
264
  this.model.f_money = ''
220
265
  this.model.f_fee_type = ''
221
- this.model.f_insurance_type = '燃气险'
222
266
  this.model.f_comments = ''
223
267
  this.model.f_salecount = 1
224
- this.model.f_ins_number = ''
225
- this.model.f_ins_start_date = Util.toStandardDateString()
268
+ this.model.f_insurance_number = ''
226
269
  this.model.f_id_type = '身份证'
227
270
  },
228
271
  methods: {
229
- commit() {
230
- if (!this.model.f_money){
231
- this.$showMessage('金额未填写,请填写后重新尝试。')
272
+ async commit() {
273
+ if (!this.model.f_payment) {
274
+ this.$showMessage('收款方式未选择,请选择后重新尝试。')
232
275
  return
233
276
  }
234
- if (!this.model.f_ins_start_date){
277
+ if (!this.model.f_ins_start_date) {
235
278
  this.$showMessage('投保日期未选择,请选择后重新尝试。')
236
279
  return
237
280
  }
238
- if (!this.model.f_expiration_date){
281
+ if (!this.model.f_expiration_date) {
239
282
  this.$showMessage('到期日期未选择,请选择后重新尝试。')
240
283
  return
241
284
  }
242
- if (!this.model.f_insurance_type){
285
+ if (!this.model.f_insurance_type) {
243
286
  this.$showMessage('保险险种未填写,请填写后重新尝试。')
244
287
  return
245
288
  }
246
- if (!this.model.f_id_type){
289
+ if (!this.model.f_money) {
290
+ this.$showMessage('金额未填写,请填写后重新尝试。')
291
+ return
292
+ }
293
+ if (!this.model.f_id_type) {
247
294
  this.$showMessage('证件类型未选择,请选择后重新尝试。')
248
295
  return
249
296
  }
250
- if (!this.model.f_idnumber){
251
- this.$showMessage('证件号码未填写,请填写后重新尝试。')
297
+ // if (!this.model.f_idnumber) {
298
+ // this.$showMessage('证件号码未填写,请填写后重新尝试。')
299
+ // return
300
+ // }
301
+ if (!this.model.f_insurance_number) {
302
+ this.$showMessage('保单号未填写,请填写后重新尝试。')
252
303
  return
253
304
  }
254
- if (!this.model.f_relationship){
305
+ if (!this.model.f_relationship) {
255
306
  this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
256
307
  return
257
308
  }
258
309
  let data = {
259
- "begin_date" : this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
260
- "insure_period_display" : `${this.model.f_salecount}年`,// 保期
261
- "user_name" : this.model.f_user_name,// 投保人姓名
262
- "id_type" : this.model.f_id_type,//证件类型
263
- "id_number" : this.model.f_idnumber,// 证件号码
264
- "user_phone" : this.model.f_user_phone,// 投保人电话
310
+ "begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
311
+ "insure_period_display": `${this.model.f_salecount}年`,// 保期
312
+ "user_name": this.model.f_user_name,// 投保人姓名
313
+ "id_type": this.model.f_id_type,//证件类型
314
+ "id_number": this.model.f_idnumber,// 证件号码
315
+ "user_phone": this.model.f_user_phone,// 投保人电话
265
316
  "user_address": this.model.f_address,// 投保人地址
266
- "province":this.model.f_province,//省
267
- "city":this.model.f_city,//市
268
- "county":this.model.f_district,//区
269
- "insuredList" : [ //被保人信息
317
+ "province": this.model.f_province,//省
318
+ "city": this.model.f_city,//市
319
+ "county": this.model.f_district,//区
320
+ "insuredList": [ //被保人信息
270
321
  {
271
- "user_name" : this.model.f_user_name,// 被保人姓名
272
- "id_type" : this.model.f_id_type,//证件类型
273
- "id_number" : this.model.f_idnumber,// 证件号码
322
+ "user_name": this.model.f_user_name,// 被保人姓名
323
+ "id_type": this.model.f_id_type,//证件类型
324
+ "id_number": this.model.f_idnumber,// 证件号码
274
325
  "relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
275
326
  }
276
327
  ]
277
328
  }
278
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, { data: data }).then(response => {
279
- let commit_data = this.model
329
+ try {
330
+ let commit_data = JSON.parse(JSON.stringify(this.model))
331
+ /*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
332
+ let commit_data = JSON.parse(JSON.stringify(this.model))
280
333
  if (response.data.message.includes('成功')) {
281
334
  commit_data.f_serial_id = response.data.orderNo
282
- }else {
335
+ } else {
283
336
  this.$showMessage(response.data.message)
284
337
  return
285
- }
338
+ }*/
286
339
  commit_data.f_buy_date = this.create_date
287
340
  commit_data.f_total_ins_charge = 0
288
341
  commit_data.f_operatorid = Vue.user.id
289
342
  commit_data.f_operator = Vue.user.name
343
+ if (this.model.f_payment == '余额抵扣'){
344
+ if (this.model.f_meter_classify == '机表'){
345
+ if((this.model.f_balance -0)-this.model.f_money < 0){
346
+ this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
347
+ return
348
+ }
349
+ commit_data.f_receivable = Number(commit_data.f_money)
350
+ commit_data.f_money = 0
351
+ }else {
352
+ this.$showMessage('仅有机表用户可选择余额抵扣')
353
+ return
354
+ }
355
+ }
356
+ commit_data.f_receivable = this.model.f_money
290
357
  commit_data.f_operate_date = Util.toStandardDateString()
291
358
  commit_data.f_state = '有效'
292
359
  commit_data.f_orgid = Vue.user.orgid
293
360
  commit_data.f_orgname = Vue.user.orgs
294
361
  commit_data.f_depid = Vue.user.depids
295
362
  commit_data.f_depname = Vue.user.deps
296
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, { data: commit_data }).then(response => {
297
- this.$showMessage('提交成功')
298
- this.$back()
299
- }).catch(error => {
300
- this.$showMessage('提交失败')
301
- this.isCommit = false
302
- })
303
- }).catch(error => {
363
+ await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
364
+ this.$showMessage('提交成功')
365
+ this.$back()
366
+ } catch (error) {
304
367
  this.$showMessage('提交失败')
305
368
  this.isCommit = false
306
- })
369
+ }
307
370
  },
308
- changeExpirationDate(){
309
- if (this.model.f_ins_start_date && this.model.f_salecount){
371
+ changeExpirationDate() {
372
+ if (this.model.f_ins_start_date && this.model.f_salecount) {
310
373
  let factoryDate = new Date(this.model.f_ins_start_date);
311
374
  let scrapDate = new Date(factoryDate);
312
375
  scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
376
+ scrapDate.setDate(scrapDate.getDate() - 1)
313
377
  let year = scrapDate.getFullYear();
314
- let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
315
- let day = scrapDate.getDate().toString().padStart(2, '0');
316
- this.model.f_expiration_date = `${year}-${month}-${day}`
378
+ let month = String(scrapDate.getMonth() + 1).padStart(2, '0');
379
+ let day = String(scrapDate.getDate()).padStart(2, '0');
380
+ this.$set('model.f_expiration_date', `${year}-${month}-${day}`);
317
381
  }
318
382
  }
383
+ },
384
+ watch: {
385
+ 'model.f_insurance_type'() {
386
+ this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
387
+ },
388
+ 'model.f_salecount'() {
389
+ this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
390
+ }
319
391
  }
320
392
  }
321
393
  </script>