safecheck-client 4.0.1-83 → 4.0.1-85

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 (251) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +132 -132
  4. package/src/App.vue +31 -31
  5. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  6. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  7. package/src/components/NewDefectList/DefectListNew.vue +682 -682
  8. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  9. package/src/components/android/AddPlanItem.vue +447 -447
  10. package/src/components/android/AddPlanItemYy.vue +451 -451
  11. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  12. package/src/components/android/AndroidDefectDeal.vue +1 -0
  13. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  14. package/src/components/android/DailyworkloadQuery.vue +473 -473
  15. package/src/components/android/Devices.vue +327 -327
  16. package/src/components/android/Devicesm.vue +327 -327
  17. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1343
  18. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  19. package/src/components/android/PhoneRecordInfo.vue +113 -113
  20. package/src/components/android/PhoneSellInfo.vue +113 -113
  21. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  22. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  23. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  24. package/src/components/android/SafePlanItem.vue +509 -509
  25. package/src/components/android/examples/SafeListExamples.vue +296 -296
  26. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  27. package/src/components/android/recheck/Recheck.vue +402 -402
  28. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  29. package/src/components/checkplan/checkmsg.vue +459 -459
  30. package/src/components/defect/DefectList.vue +507 -507
  31. package/src/components/defect/DefectListWeixiu.vue +484 -484
  32. package/src/components/filialCircle/CircleList.vue +139 -139
  33. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  34. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  35. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  36. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  37. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  38. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  39. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  40. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  41. package/src/components/map/PersonTrack.vue +226 -226
  42. package/src/components/paper/RegionalList.vue +220 -220
  43. package/src/components/pc/AnnouncementPC.vue +524 -524
  44. package/src/components/pc/DefectList.vue +742 -742
  45. package/src/components/pc/DefectMaterialLook.vue +98 -98
  46. package/src/components/pc/DeviceChange.vue +1068 -1068
  47. package/src/components/pc/PaperDefectMain.vue +905 -905
  48. package/src/components/pc/RoleSelectorDep.vue +166 -166
  49. package/src/components/pc/SafeVisitInfo.vue +261 -261
  50. package/src/components/report/HiddenSituation.vue +165 -165
  51. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  52. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  53. package/src/components/rongcheng/DefectList.vue +560 -560
  54. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  55. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  56. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  57. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  58. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  59. package/src/components/shaoguan/DefectList.vue +473 -473
  60. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  61. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  62. package/src/components/userfile/SecurityAudit.vue +243 -243
  63. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  64. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  65. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  66. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  67. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  68. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  69. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  70. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  71. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  72. package/src/filiale/bayan/android/Edit.vue +132 -132
  73. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  74. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  75. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  76. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  77. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  78. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  79. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  80. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  81. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  82. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  83. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  84. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  85. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  86. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  87. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  88. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  89. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  90. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  91. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  92. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  93. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  94. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  95. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  96. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  97. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  98. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  99. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  100. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  101. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  102. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  103. package/src/filiale/jinhong/pc/CheckBookList.vue +393 -393
  104. package/src/filiale/jinhong/pc/PaperList.vue +853 -853
  105. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  106. package/src/filiale/jinhong/pc/checkPlanList.vue +420 -420
  107. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  108. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  109. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  110. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  111. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  112. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  113. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  114. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  115. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  116. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  117. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  118. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  119. package/src/filiale/libo/android/CurrentCreate.vue +1067 -1067
  120. package/src/filiale/libo/android.js +15 -15
  121. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  122. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  123. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  124. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  125. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  126. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  127. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  128. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  129. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  130. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  131. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  132. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  133. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  134. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  135. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  136. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  137. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  138. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  139. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  140. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  141. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  142. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  143. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  144. package/src/filiale/qingjian/pc.js +15 -15
  145. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  146. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  147. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  148. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  149. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  150. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  151. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  152. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  153. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  154. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  155. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  156. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  157. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  158. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  159. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  160. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  161. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  162. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  163. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  164. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  165. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  166. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  167. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  168. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  169. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  170. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  171. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  172. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  173. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  174. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  175. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  176. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  177. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  178. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  179. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  180. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  181. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  182. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  183. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  184. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  185. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  186. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  187. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  188. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  189. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  190. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  191. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  192. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  193. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  194. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  195. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  196. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  197. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  198. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  199. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  200. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  201. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  202. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  203. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  204. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  205. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  206. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  207. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  208. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  209. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  210. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  211. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  212. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  213. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  214. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  215. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  216. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  219. package/src/filiale/xinliansihui/android/AndroidDefectDeal.vue +701 -0
  220. package/src/filiale/xinliansihui/android/AppInstallationMaterial.vue +866 -0
  221. package/src/filiale/xinliansihui/android.js +9 -0
  222. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  223. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  224. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  225. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  226. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  227. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  228. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  229. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  230. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  231. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  232. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  233. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  234. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  235. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  236. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  237. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  238. package/src/filiale/yunchengminsheng/android.js +15 -15
  239. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  240. package/src/filiale/yunchengminsheng/pc.js +15 -15
  241. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  242. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  243. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  244. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  245. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  246. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  247. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  248. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  249. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  250. package/src/main.js +33 -32
  251. package/src/safecheck.js +924 -924
@@ -0,0 +1,866 @@
1
+ <template>
2
+ <work-busy :is-busy="button_state"></work-busy>
3
+ <div v-for="(i, item) in material" class="y-form">
4
+ <div class="y-form-head">
5
+ <span style="text-align: center">材料{{ $index + 1 }}信息</span>
6
+ <button style="float: right" class="button_delete button_spacing" v-if="i > 0" @click.prevent="deleteUserFile(i)">删除
7
+ </button>
8
+ </div>
9
+ <div class="y-form-item">
10
+ <label>材料分类</label>
11
+ <input-select
12
+ class="select select_list y-form-item-input"
13
+ :value.sync="item.f_typename" v-model="item.f_typename"
14
+ :options="category.typeoptions"
15
+ @change="materialChange(item.f_typename)"
16
+ :valueSingle="true">
17
+ </input-select>
18
+ </div>
19
+ <div class="y-form-item">
20
+ <label>材料名称</label>
21
+ <input-select
22
+ class="select select_list y-form-item-input"
23
+ :value.sync="item.f_material_name"
24
+ v-model="item.f_material_name"
25
+ :options="category.options"
26
+ @change="item.f_typenumber = undefined"
27
+ :valueSingle="true">
28
+ </input-select>
29
+ </div>
30
+ <div class="y-form-item">
31
+ <label>材料型号</label>
32
+ <input-select
33
+ class="select select_list y-form-item-input"
34
+ :value.sync="item.f_typenumber"
35
+ v-model="item.f_typenumber"
36
+ :options="category.children[item.f_material_name].options"
37
+ @change="handleTypeChange(i)"
38
+ :valueSingle="true">
39
+ </input-select>
40
+ </div>
41
+ <div class="y-form-item">
42
+ <label>单价(元/{{
43
+ category.children[item.f_material_name].children[item.f_typenumber].f_material_spec
44
+ }})</label>
45
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_material_price"
46
+ :value="item.f_material_price || category.children[item.f_material_name].children[item.f_typenumber].f_material_price">
47
+ </div>
48
+ <div class="y-form-item">
49
+ <label>数量</label>
50
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_material_number">
51
+ </div>
52
+ <div class="y-form-item">
53
+ <label>金额</label>
54
+ <input type="number" class="form-control y-form-item-input" v-model="item.f_fee"
55
+ :value="smallnum(item.f_material_price, item.f_material_number)" readonly>
56
+ </div>
57
+ <div class="y-form-item">
58
+ <label>备注</label>
59
+ <textarea type="text" rows="2" class="form-control y-form-item-input" v-model="item.f_remarks"></textarea>
60
+ </div>
61
+ </div>
62
+ <div style="padding: 10px;display: flex;justify-content: space-around;">
63
+ <button type="button" class="btn btn-primary" @click="addUserFile">添加</button>
64
+ <button type="button" class="btn btn-primary" @click="showQrcodeButton">保存</button>
65
+ </div>
66
+ <div v-show="showQrCode">
67
+ <div class="row">
68
+ <label class="text-justify lb-left" style="width: 100px">收款</label>
69
+ <div class="row row_sty">
70
+ <label class="lab_sty col-xs-4">合计金额</label>
71
+ <div class="col-xs-8">
72
+ <input type="number" class="form-control" v-model="payNumber" :value.sync="payNumber" readonly>
73
+ </div>
74
+ </div>
75
+ <div class="row row_sty">
76
+ <label class="lab_sty col-xs-4">收款方式</label>
77
+ <div class="col-xs-8">
78
+ <v-select
79
+ :width="'100%'"
80
+ :value.sync="payType"
81
+ v-model="payType"
82
+ :options='payTypes'
83
+ placeholder='请选择'
84
+ close-on-select
85
+ :value-single="true"
86
+ ></v-select>
87
+ </div>
88
+ </div>
89
+ <div v-if="zfCode" style="margin-top: 20px; text-align: center;">
90
+ <div id="qrcode" style="margin-top: 25px;width: 266px;height: 266px"></div>
91
+ </div>
92
+ </div>
93
+ <div style="padding: 10px;display: flex;justify-content: space-around;">
94
+ <button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;"
95
+ @click="beforeSaveCharge()">收费
96
+ </button>
97
+ <button type="button" class="btn btn-primary" @click="cancel">取消</button>
98
+ </div>
99
+ </div>
100
+ </template>
101
+ <script>
102
+ import Vue from 'vue'
103
+ import {HttpResetClass} from 'vue-client'
104
+ import QRCode from 'qrcodejs2'
105
+ import {getNowDate, isEmpty} from '../../../components/Util'
106
+
107
+ export default {
108
+ title: '材料添加',
109
+ props: {
110
+ selectdata: {
111
+ type: Object
112
+ }
113
+ },
114
+ data() {
115
+ return {
116
+ originalOptions: [], // 用于保存原始数据
117
+ othercharge_id: '',
118
+ payState: false,
119
+ zfCode: false,
120
+ f_out_trade_no: '',
121
+ payTypes: this.$appdata.getParam('材料收费方式'),
122
+ payType: '',
123
+ payNumber: 0,
124
+ button_state: false,
125
+ category: {
126
+ options: [],
127
+ },
128
+ showFile: false,
129
+ material: [],
130
+ positions: this.$appdata.getParam('品名及规格'), // 获取材料名称
131
+ charge: {
132
+ payment_terms: [{f_payment_term: '', f_charge_money: '', f_amount_words: '', f_payment_method: ''}]
133
+ }, // 收费内容
134
+ showCharge: false, // 收费显示
135
+ timeLeft: 300, // 收费时间
136
+ title1: '', // 二维码标题
137
+ showQrCode: false, // 二维码显示
138
+ order: {}, // 订单信息
139
+ f_cost_sum: 0, // 总收费
140
+ }
141
+ },
142
+ ready() {
143
+ this.loadOptions()
144
+ },
145
+ methods: {
146
+ handleTypeChange(i) {
147
+ if(!isEmpty(this.material[i].f_material_name)){
148
+ this.material[i].f_material_price = this.category.children[this.material[i].f_material_name].children[this.material[i].f_typenumber].f_material_price
149
+ }
150
+
151
+ },
152
+ materialChange(typename) {
153
+ this.category.options=[]
154
+ if(isEmpty(typename)){
155
+ this.category.options=[]
156
+ }else{
157
+ // 从原始数据中过滤,仅保留当前分类下的材料名称
158
+ // this.category.options = this.originalOptions.filter(option => option.key === typename);
159
+ for (let i = 0; i < this.originalOptions.length; i++) {
160
+ if (this.originalOptions[i].key === typename) {
161
+ this.category.options.push({
162
+ label: this.originalOptions[i].label,
163
+ value: this.originalOptions[i].value
164
+ })
165
+ }
166
+
167
+ }
168
+ }
169
+ },
170
+ cancel() {
171
+ this.payNumber = 0
172
+ this.othercharge_id = ''
173
+ this.payState = false
174
+ this.zfCode = false
175
+ this.showQrCode = false
176
+ clearTimeout(this.orderInterval)
177
+ },
178
+ getChangePayNumber() {
179
+ this.payNumber = 0
180
+ for (let i = 0; i < this.material.length; i++) {
181
+ this.material[i].f_fee = this.material[i].f_material_price * this.material[i].f_material_number
182
+ this.payNumber += Number(this.material[i].f_fee)
183
+ }
184
+ },
185
+ showQrcodeButton() {
186
+ this.getChangePayNumber()
187
+ this.showQrCode = true
188
+ },
189
+ loadOptions () {
190
+ const data = {
191
+ tablename: 't_material_management',
192
+ condition: `1=1 and f_orgid='${Vue.user.orgid}'`
193
+ }
194
+ this.$resetpost(this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data}, {
195
+ resolveMsg: null,
196
+ rejectMsg: '获取数据失败'
197
+ }).then((res) => {
198
+ const categories = []
199
+ const types = []
200
+ for (let material of res.data) {
201
+ if (material.f_material_stype == '分类') {
202
+ categories.push(material)
203
+ } else if (material.f_material_stype == '型号') {
204
+ types.push(material)
205
+ }
206
+ }
207
+ this.category.typeoptions = []
208
+ const seen = new Set(); // 用于记录已出现的 f_material_type
209
+ for (let category of categories) {
210
+ const type = category.f_material_type;
211
+ if (!seen.has(type)) {
212
+ seen.add(type);
213
+ this.category.typeoptions.push({
214
+ label: type,
215
+ value: type
216
+ });
217
+ }
218
+ }
219
+ this.originalOptions = []
220
+ for (let category of categories) {
221
+ this.originalOptions.push({
222
+ key: category.f_material_type,
223
+ label: category.f_material_name,
224
+ value: category.f_material_name
225
+ })
226
+ }
227
+
228
+ this.category.children = {}
229
+ for (let category of categories) {
230
+ this.category.children[category.f_material_name] = {
231
+ options: [],
232
+ children: {}
233
+ }
234
+
235
+ for (let type of types) {
236
+ if (type.parent_id == category.id) {
237
+ this.category.children[category.f_material_name].options.push({
238
+ label: type.f_material_name,
239
+ value: type.f_material_name
240
+ })
241
+ this.category.children[category.f_material_name].children[type.f_material_name] = type
242
+ }
243
+ }
244
+ }
245
+ console.log('this.category=', JSON.stringify(this.category))
246
+ this.search()
247
+ })
248
+ },
249
+ // 删除未保存的材料信息
250
+ async deleteUserFile(index) {
251
+ this.material.splice(index, 1)
252
+ this.cancel()
253
+ },
254
+ // 追加材料信息
255
+ addUserFile() {
256
+ this.material.push({})
257
+ this, this.cancel()
258
+ },
259
+ search() {
260
+ let http = new HttpResetClass()
261
+ let data = {
262
+ tablename: 't_material_service',
263
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
264
+ }
265
+ http.load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data: data}, {
266
+ resolveMsg: null,
267
+ rejectMsg: '获取数据失败'
268
+ }).then(res => {
269
+ this.material = res.data
270
+ if (this.material.length <= 0) {
271
+ this.material = [{}]
272
+ }
273
+ })
274
+ },
275
+ // 获取品名规格
276
+ // setTypename(i, val) {
277
+ // let ac = this.$appdata.getParam(val)
278
+ // this.$set('material[' + i + '].typeNameList', ac)
279
+ // this.$set('material[' + i + '].typeNumberList', [])
280
+ // this.$set('material[' + i + '].f_typenumber', null)
281
+ // this.$set('material[' + i + '].f_material_price', 0)
282
+ // },
283
+ // 获取类型
284
+ // setTypenumber(i, val) {
285
+ // let ac = this.$appdata.getParam(val)
286
+ // this.$set('material[' + i + '].typeNumberList', ac)
287
+ // this.$set('material[' + i + '].f_material_price', 0)
288
+ // },
289
+ // 获取单价
290
+ // setmaterialprice(i, val) {
291
+ // var num
292
+ // if (val == null) {
293
+ // num = 0
294
+ // }
295
+ // num = this.$appdata.getSingleValue(val)
296
+ // this.$set('material[' + i + '].f_material_price', num)
297
+ // },
298
+ // 金额计算
299
+ smallnum(val, val1) {
300
+ let num = Number(val) * Number(val1)
301
+ return num
302
+ },
303
+ qrcode(url) {
304
+ new QRCode('qrcode', {
305
+ text: url, // 设置二维码内容或跳转地址
306
+ width: 266, // 设置宽度,单位像素
307
+ height: 266, // 设置高度,单位像素
308
+ correctLevel: QRCode.CorrectLevel.L //容错率,L/M/Hs
309
+ })
310
+ },
311
+ clearQrCode() {
312
+ if (document.getElementById('qrcode')) {
313
+ document.getElementById('qrcode').innerHTML = ''
314
+ }
315
+ },
316
+ async getOrderInformation() {
317
+ // 查询订单信息
318
+ console.log('查询订单信息!!!')
319
+ let http = new HttpResetClass()
320
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/weixin/orderStatus`, {
321
+ "f_filiale": "wensuxilong",
322
+ "out_trade_no": `${this.f_out_trade_no}`
323
+ }, {
324
+ resolveMsg: null,
325
+ rejectMsg: '订单查询失败!!!'
326
+ })
327
+ // 支付成功
328
+ if (res.data.trade_state_desc.includes('成功')) {
329
+ this.$showMessage('支付成功!!!')
330
+ await this.saveUserFile('save')
331
+ this.clearQrCode()
332
+ this.cancel()
333
+ }
334
+ },
335
+ async openQrcode() {
336
+ this.clearQrCode()
337
+ let data = {
338
+ tablename: 't_userfiles',
339
+ condition: `f_userinfo_id = '${this.selectdata.model.f_userinfo_id}'`
340
+ }
341
+ let res = await new HttpResetClass().load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data: data}, {
342
+ resolveMsg: null,
343
+ rejectMsg: '获取数据失败'
344
+ })
345
+ let reqdata = {
346
+ "filiale": "wensuxilong",
347
+ "money": 1,
348
+ "str": "材料收费",
349
+ "attach": {
350
+ "f_userfiles_id": res.data[0].f_userfiles_id,
351
+ "f_userinfo_id": this.selectdata.model.f_userinfo_id
352
+ }
353
+ }
354
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/weixin/gasgetcode`, reqdata).then(res => {
355
+ if (res.data.code === 200) {
356
+ this.f_out_trade_no = res.data.out_trade_no
357
+ this.zfCode = true
358
+ this.$nextTick(() => {
359
+ this.qrcode(res.data.url)
360
+ })
361
+ this.orderInterval = setInterval(() => {
362
+ this.getOrderInformation()
363
+ }, 3000)
364
+ } else {
365
+ this.$showMessage('网络异常。。。')
366
+ }
367
+ })
368
+ },
369
+ async beforeSaveCharge() {
370
+
371
+
372
+ if (this.material.length == 0) {
373
+ return this.$showMessage(`请先添加消耗的材料!`)
374
+ }
375
+ for (let index = 0; index < this.material.length; index++) {
376
+ const item = this.material[index]
377
+ if (!item.f_material_name) {
378
+ this.$showMessage(`请选择材料${index + 1}的材料名称`)
379
+ return;
380
+ }
381
+ if (!item.f_typenumber) {
382
+ this.$showMessage(`请选择材料${index + 1}的型号`)
383
+ return;
384
+ }
385
+ if (!item.f_material_price) {
386
+ this.$showMessage(`请填写材料${index + 1}的单价`)
387
+ return;
388
+ }
389
+ if (!item.f_material_number || item.f_material_number == 0) {
390
+ this.$showMessage(`请填写材料${index + 1}的数量`)
391
+ return;
392
+ }
393
+ }
394
+ if (!this.payType) {
395
+ this.$showMessage(`请选择缴费方式`)
396
+ return;
397
+ }
398
+ if (this.payType.includes('二维码') && this.payNumber>0) {
399
+ await this.openQrcode()
400
+ } else {
401
+ this.payState= true
402
+ await this.saveUserFile('save')
403
+ }
404
+ this.$emit('close')
405
+ },
406
+ async saveUserFile(type) {
407
+ for (let i = 0; i < this.material.length; i++) {
408
+ this.material[i].f_material_name = this.material[i].f_material_name
409
+ this.material[i].f_process_id = this.selectdata.f_process_id
410
+ this.material[i].f_department = Vue.user.f_department_name
411
+ this.material[i].f_operator = Vue.user.name
412
+ this.material[i].f_fee = this.material[i].f_material_price * this.material[i].f_material_number
413
+ if (isEmpty(this.material[i].f_state)) {
414
+ this.material[i].f_state = null
415
+ }
416
+ }
417
+ await this.saveOrder(type)
418
+ },
419
+ async saveOrder(type) {
420
+ console.log('this.material', this.material)
421
+ let otherdetail = []
422
+ if (this.payNumber == 0) {
423
+ otherdetail.push({
424
+ f_brand_spec: ['维修'],
425
+ f_typename: ['材料费'],
426
+ f_typenumber: [],
427
+ f_unitprice: 0,
428
+ f_number: this.material.length
429
+ })
430
+ } else {
431
+ this.material.forEach((row) => {
432
+ if (row.f_material_price != 0) {
433
+ otherdetail.push({
434
+ f_brand_spec: ['维修'],
435
+ f_typename: [`${row.material_type ? row.material_type : '材料费'}`],
436
+ f_typenumber: [],
437
+ f_unitprice: row.f_material_price,
438
+ f_number: row.f_material_number
439
+ })
440
+ }
441
+ })
442
+ }
443
+ let param = {
444
+ model: this.material,
445
+ operator_type: type,
446
+ othercharge_id: this.othercharge_id,
447
+ f_process_id: this.selectdata.f_process_id,
448
+ f_userinfo_code: this.selectdata.model.f_userinfo_id,
449
+ other:{
450
+ "record_userinfo": this.selectdata.model.f_userinfo_id,
451
+ "f_user_name": this.selectdata.model.f_user_name,
452
+ "f_address": this.selectdata.model.f_address,
453
+ "f_user_type": this.selectdata.model.f_user_type,
454
+ "f_gasproperties": "",
455
+ "f_collection": this.payNumber,
456
+ "f_comments": `${Vue.user.name}进行维修材料收费,收费方式-${this.payType} ${this.order.body && this.order.body.tradeNo ? '。支付订单号:' + this.order.body.tradeNo : ''}`,
457
+ "f_payment": this.payType,
458
+ "f_voucher_number": this.selectdata.f_process_id,
459
+ "f_bill_style": "普通收据",
460
+ "f_userinfo_id": this.selectdata.model.f_userinfo_id,
461
+ "f_service_person": Vue.user.name,
462
+ "f_operat_type": "维修收费",
463
+ "f_describe": "",
464
+ "f_serial_id": this.order.body ? this.order.body.tradeNo : null,
465
+ "f_state": '有效',
466
+ "f_operator": Vue.user.name,
467
+ "f_operatorid": Vue.user.id,
468
+ "f_orgid": Vue.user.orgid,
469
+ "f_orgname": Vue.user.orgs,
470
+ "f_depid": Vue.user.depids,
471
+ "f_depname": Vue.user.f_department_name,
472
+ "t_userfees": "",
473
+ "f_fee_type": "维修费用",
474
+ "f_fee_time": "12",
475
+ "otherdetail": otherdetail
476
+ }
477
+ }
478
+ console.log("材料收费保存", param)
479
+ let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/saveMaterialService`, param, {
480
+ resolveMsg: null,
481
+ rejectMsg: null
482
+ })
483
+ if (res.data.code == 200) {
484
+ if (type === 'create') {
485
+ // this.$showMessage('收费记录创建成功!!!')
486
+ // this.othercharge_id = res.data.othercharge_id
487
+ // this.$emit('aftersave')
488
+ } else {
489
+ this.$showMessage('材料保存成功!!!')
490
+ this.$emit('aftersave')
491
+ }
492
+
493
+
494
+ } else {
495
+ this.$showMessage(res.data.msg)
496
+ }
497
+ },
498
+ // 关闭对话框
499
+ // closeModal() {
500
+ // this.showCharge = false
501
+ // this.charge = {
502
+ // payment_terms: [{
503
+ // f_payment_term: '',
504
+ // f_charge_money: '',
505
+ // f_amount_words: '',
506
+ // f_payment_method: this.charge.f_payment_method
507
+ // }]
508
+ // }
509
+ // },
510
+ // 金额转大写
511
+ // handleInput(index) {
512
+ // // 通过正则过滤小数点后两位
513
+ // console.log('-----------------------')
514
+ // this.charge.payment_terms[index].f_charge_money = (this.charge.payment_terms[index].f_charge_money.match(/^\d*(\.?\d{0,2})/g)[0]) || null
515
+ // this.charge.payment_terms[index].f_amount_words = this.smalltoBIG(this.charge.payment_terms[index].f_charge_money)
516
+ // },
517
+ // 金额转大写
518
+ // smalltoBIG(n) {
519
+ // let fraction = ['角', '分'];
520
+ // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
521
+ // let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
522
+ // let head = n < 0 ? '欠' : '';
523
+ // n = Math.abs(n);
524
+ //
525
+ // let s = '';
526
+ //
527
+ // for (var i = 0; i < fraction.length; i++) {
528
+ // s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
529
+ // }
530
+ // s = s || '整';
531
+ // n = Math.floor(n);
532
+ //
533
+ // for (var i = 0; i < unit[0].length && n > 0; i++) {
534
+ // let p = '';
535
+ // for (var j = 0; j < unit[1].length && n > 0; j++) {
536
+ // p = digit[n % 10] + unit[1][j] + p;
537
+ // n = Math.floor(n / 10);
538
+ // }
539
+ // s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
540
+ // }
541
+ // return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
542
+ // },
543
+ // moneyChange(index) {
544
+ // console.log(`当前下标----${index}`)
545
+ // if (isEmpty(this.charge.payment_terms[index].f_charge_money) || Number(this.charge.payment_terms[index].f_charge_money) === 0) {
546
+ // this.$showMessage('单笔收费不能为0元!!!', 'warning', 3000)
547
+ // this.charge.payment_terms[index].f_charge_money = null
548
+ // return
549
+ // }
550
+ //
551
+ // },
552
+ // 打开二维码
553
+ // async openQrCode() {
554
+ // let http = new HttpResetClass()
555
+ // for (let row = 0; row < this.charge.payment_terms.length; row++) {
556
+ // console.log(this.charge.payment_terms[row])
557
+ // if (isEmpty(this.charge.payment_terms[row].f_payment_term)) {
558
+ // this.$showMessage('请选择收费项目!!!', 'warning', 3000)
559
+ // return
560
+ // } else if (isEmpty(this.charge.payment_terms[row].f_charge_money)) {
561
+ // this.$showMessage('请输入收费金额!!!', 'warning', 3000)
562
+ // return
563
+ // }
564
+ // }
565
+ // if (this.charge.f_payment_method !== '微信支付' && this.charge.f_payment_method !== '支付宝支付') {
566
+ // this.saveother()
567
+ // this.$showMessage('缴费成功!')
568
+ // this.update()
569
+ // this.showCharge = false
570
+ // return
571
+ // }
572
+ // if (this.charge.f_payment_method == '微信支付') {
573
+ // this.title1 = '微信'
574
+ // }
575
+ // if (this.charge.f_payment_method == '支付宝支付') {
576
+ // this.title1 = '支付宝'
577
+ // }
578
+ // this.showCharge = false
579
+ // // 接口金额 单位为:分
580
+ // let data = {
581
+ // money: this.accMul(this.getTotalAmount(), 1) + '',
582
+ // attach: {
583
+ // "f_user": Vue.user.id,
584
+ // "f_user_name": Vue.user.name
585
+ // },
586
+ // orderType: '工单收费',
587
+ // userfilesid: '',
588
+ // flag: 'JsApiWeiNan',
589
+ // openid: '',
590
+ // filiale: 'weinanchengtou'
591
+ // }
592
+ // // 下订单
593
+ // await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
594
+ // resolveMsg: null,
595
+ // rejectMsg: '订单生成失败!!!'
596
+ // }).then(
597
+ // res => {
598
+ // this.order = res.data
599
+ // this.showQrCode = true
600
+ // this.$nextTick(() => {
601
+ // this.qrcode()
602
+ // })
603
+ // // 剩余支付时间
604
+ // this.paymentInterval = setInterval(() => {
605
+ // this.timeLeft = this.timeLeft - 1
606
+ // }, 1000)
607
+ //
608
+ // // 3秒查询一次订单支付信息
609
+ // this.orderInterval = setInterval(() => {
610
+ // this.getOrderInformation()
611
+ // }, 3000)
612
+ // }
613
+ // )
614
+ // },
615
+ // getTotalAmount() {
616
+ // let money = 0
617
+ // this.charge.payment_terms.forEach((row) => {
618
+ // money = Math.floor((Number(money) + Number(row.f_charge_money)) * 100) / 100
619
+ // })
620
+ // return money
621
+ // },
622
+ // getPaymentTerm() {
623
+ // let term = ''
624
+ // this.charge.payment_terms.forEach((row) => {
625
+ // term += `${row.f_payment_term} `
626
+ // })
627
+ // return term
628
+ // },
629
+ // closeQRCode() {
630
+ // clearTimeout(this.paymentInterval)
631
+ // clearTimeout(this.orderInterval)
632
+ // this.timeLeft = 300
633
+ // this.closeOrder()
634
+ // // 清除二维码
635
+ // this.clearQrCode()
636
+ // this.showQrCode = false
637
+ // },
638
+ // clearQrCode() {
639
+ // document.getElementById('qrcode').innerHTML = ''
640
+ // },
641
+ // async closeOrder() {
642
+ // let data = {
643
+ // "flag": "JsApiWeiNan",
644
+ // "f_filiale": "weinanchengtou",
645
+ // "f_out_trade_no": this.order.f_out_trade_no,// 商户单号
646
+ // "isClose": "是",
647
+ // "f_sys_trace": this.order.f_sys_trace // 交易流水号
648
+ // }
649
+ // let http = new HttpResetClass()
650
+ // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/microPayOrderStatus`, data, {
651
+ // resolveMsg: null,
652
+ // rejectMsg: '关闭失败!!!'
653
+ // })
654
+ // },
655
+ // qrcode() {
656
+ // let qrcode = new QRCode('qrcode', {
657
+ // text: this.order.appId, // 设置二维码内容或跳转地址
658
+ // width: 200, // 设置宽度,单位像素
659
+ // height: 200, // 设置高度,单位像素
660
+ // correctLevel: QRCode.CorrectLevel.L //容错率,L/M/Hs
661
+ // })
662
+ // },
663
+ // // 获取订单信息
664
+ // async getOrderInformation() {
665
+ // // 查询订单信息
666
+ // console.log('查询订单信息!!!')
667
+ // let http = new HttpResetClass()
668
+ // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/tel_singleTable`, {
669
+ // data: {
670
+ // tablename: "t_weixinreturnxml",
671
+ // condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_order_state = '已支付' `,
672
+ // }
673
+ // }, {
674
+ // resolveMsg: null,
675
+ // rejectMsg: '订单查询失败!!!'
676
+ // })
677
+ // // 支付成功
678
+ // if (res.data.length > 0) {
679
+ // clearTimeout(this.paymentInterval)
680
+ // clearTimeout(this.orderInterval)
681
+ // this.timeLeft = 300
682
+ // // 修改支付状态
683
+ // this.saveother()
684
+ // this.$showMessage('支付成功!!!')
685
+ // this.update()
686
+ // // 清除二维码
687
+ // this.clearQrCode()
688
+ // this.showQrCode = false
689
+ // }
690
+ // },
691
+ // async update() {
692
+ // let http = new HttpResetClass()
693
+ // for (let i = 0; i < this.material.length; i++) {
694
+ // if (this.material[i].f_state == '未收费') {
695
+ // this.material[i].f_state = '已收费'
696
+ // }
697
+ // }
698
+ // let data = {
699
+ // model: this.material
700
+ // }
701
+ // let res = await http.load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/logic/saveweinanmaterial', {data: data}, {
702
+ // resolveMsg: null,
703
+ // rejectMsg: '保存失败'
704
+ // })
705
+ // this.search()
706
+ // },
707
+ // async saveother() {
708
+ // let http = new HttpResetClass()
709
+ // let data1 = {
710
+ // tablename: 't_material_service',
711
+ // condition: `f_process_id = '${this.selectdata.f_process_id}' and f_state = '未收费'`
712
+ // }
713
+ // let res1 = await http.load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data: data1}, {
714
+ // resolveMsg: null,
715
+ // rejectMsg: '获取数据失败'
716
+ // })
717
+ // let data = {
718
+ // tablename: 't_userfiles',
719
+ // condition: `f_userinfo_id = '${this.selectdata.model.f_userinfo_id}'`
720
+ // }
721
+ // let res = await http.load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data: data}, {
722
+ // resolveMsg: null,
723
+ // rejectMsg: '获取数据失败'
724
+ // })
725
+ // let otherdetails = []
726
+ // for (let i = 0; i < res1.data.length; i++) {
727
+ // otherdetails.push(
728
+ // {
729
+ // "f_brand_spec": [res1.data[i].f_material_name],
730
+ // "f_unitprice": res1.data[i].f_material_price,
731
+ // "f_typename": [res1.data[i].f_typename],
732
+ // "f_typenumber": [res1.data[i].f_typenumber],
733
+ // "f_number": res1.data[i].f_material_number
734
+ // }
735
+ // )
736
+ // }
737
+ //
738
+ // console.log("查询的用户信息", otherdetails)
739
+ // let data2 = {
740
+ // "record_userinfo": this.selectdata.model.f_userinfo_id,
741
+ // "f_userfiles_id": res.data[0].f_userfiles_id,
742
+ // "f_user_id": res.data[0].f_user_id,
743
+ // "f_user_name": this.selectdata.model.f_user_name,
744
+ // "f_address": this.selectdata.model.f_address,
745
+ // "f_user_type": this.selectdata.model.f_user_type,
746
+ // "f_gasproperties": "",
747
+ // "f_collection": this.f_cost_sum,
748
+ // "f_comments": "",
749
+ // "f_payment": this.charge.f_payment_method,
750
+ // "f_voucher_number": "",
751
+ // "f_bill_style": "普通收据",
752
+ // "f_userinfo_id": this.selectdata.model.f_userinfo_id,
753
+ // "f_service_person": Vue.user.name,
754
+ // "f_operat_type": "其他收费",
755
+ // "f_describe": "",
756
+ // "f_state": "有效",
757
+ // "f_operator": Vue.user.name,
758
+ // "f_operatorid": Vue.user.id,
759
+ // "f_orgid": Vue.user.orgid,
760
+ // "f_orgname": Vue.user.orgs,
761
+ // "f_depid": Vue.user.depids,
762
+ // "f_depname": Vue.user.f_department_name,
763
+ // "t_userfees": "",
764
+ // "f_fee_type": "其他费用",
765
+ // "f_fee_time": "12",
766
+ // "otherdetail": otherdetails
767
+ // }
768
+ // let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/sale_othercharge_logic`, {data: data2}, {
769
+ // resolveMsg: null,
770
+ // rejectMsg: '保存数据失败'
771
+ // })
772
+ // },
773
+ // async shoufei() {
774
+ // let http = new HttpResetClass()
775
+ // let data = {
776
+ // tablename: 't_material_service',
777
+ // condition: `f_process_id = '${this.selectdata.f_process_id}' and f_state = '未收费'`
778
+ // }
779
+ // let res = await http.load('post', this.$androidUtil.getProxyUrl() + '/af-telephone/rs/sql/tel_singleTable', {data: data}, {
780
+ // resolveMsg: null,
781
+ // rejectMsg: '获取数据失败'
782
+ // })
783
+ // if (res.data.length <= 0) {
784
+ // this.$showMessage('请先添加未收费的材料!!!')
785
+ // return
786
+ // }
787
+ // this.f_cost_sum = 0
788
+ // for (let i = 0; i < res.data.length; i++) {
789
+ // this.f_cost_sum += Number(res.data[i].f_fee)
790
+ // }
791
+ // this.showCharge = true
792
+ // this.charge.payment_terms[0].f_charge_money = this.f_cost_sum
793
+ // },
794
+ // accMul(arg1, arg2) {
795
+ // let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
796
+ // try {
797
+ // m += s1.split(".")[1].length
798
+ // } catch (e) {
799
+ // }
800
+ // try {
801
+ // m += s2.split(".")[1].length
802
+ // } catch (e) {
803
+ // }
804
+ // return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
805
+ // },
806
+ },
807
+ events: {},
808
+ computed: {
809
+ paymentMethod() {
810
+ return this.$appdata.getParam("付款方式")
811
+ },
812
+ paymentTerm() {
813
+ return this.$appdata.getParam("收费项目")
814
+ }
815
+ },
816
+ watch: {}
817
+ }
818
+ </script>
819
+ <style lang="less" scoped>
820
+ .head-but {
821
+ margin-left: 5px;
822
+ height: 34px;
823
+ /*background-color: #6aa6e2;*/
824
+ border-radius: 4px;
825
+ font-family: PingFang;
826
+ color: #ffffff;
827
+ }
828
+
829
+ /*清除model中的浮动*/
830
+ .clearfix:after, .clearfix:before {
831
+ display: table;
832
+ }
833
+
834
+ .clearfix:after {
835
+ clear: both;
836
+ }
837
+
838
+ .y-form {
839
+ display: flex;
840
+ flex-flow: column;
841
+ gap: 10px;
842
+ padding: 10px 5px;
843
+
844
+ .y-form-head {
845
+ background-color: #e8f4ff;
846
+ display: flex;
847
+ padding: 10px 20px;
848
+ align-items: center;
849
+ justify-content: space-between;
850
+ }
851
+
852
+ .y-form-item {
853
+ display: flex;
854
+ gap: 10px;
855
+
856
+ label {
857
+ width: 30%;
858
+ text-align: right;
859
+ }
860
+
861
+ .y-form-item-input {
862
+ width: 70%;
863
+ }
864
+ }
865
+ }
866
+ </style>