apply-clients 5.0.361 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/css-loaders.js +34 -0
- package/build/dev-android.js +101 -0
- package/build/dev-client.js +8 -0
- package/build/dev-server-app.js +76 -0
- package/build/dev-server.js +72 -0
- package/build/example-server.js +80 -0
- package/build/release.sh +28 -0
- package/build/utils.js +80 -0
- package/build/webpack.base.conf.js +83 -0
- package/build/webpack.baseandroid.conf.js +84 -0
- package/build/webpack.dev.conf.js +39 -0
- package/build/webpack.devandroid.conf.js +34 -0
- package/build/webpack.example.conf.js +49 -0
- package/build/webpack.prod.conf.js +60 -0
- package/build/webpack.prodandroid.conf.js +60 -0
- package/build/webpack.test.conf.js +31 -0
- package/dist-android/static/.gitkeep +0 -0
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/psicon.png +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/xinxi.png +0 -0
- package/package.json +5 -10
- package/src/AndroidApp.vue +1 -1
- package/src/App.vue +0 -1
- package/src/apply.js +172 -104
- package/src/applyAndroid.js +0 -5
- package/src/assets/shipin1.mp4 +0 -0
- package/src/bootstrap/less/bootstrap.less +2 -1
- package/src/components/Hello.vue +39 -0
- package/src/components/Table.js +2 -2
- package/src/components/Test.vue +26 -0
- package/src/components/Util.js +6 -11
- package/src/components/app_apply/Acceptance.vue +2 -7
- package/src/components/app_apply/ApplyApp.vue +6 -16
- package/src/components/app_apply/ApplyInfo.vue +1 -1
- package/src/components/app_apply/ApplyListUpload.vue +3 -3
- package/src/components/app_apply/ApplyToDoList.vue +3 -3
- package/src/components/app_apply/ApplyUserInfo.vue +3 -2
- package/src/components/app_apply/FieldExploration.vue +1 -3
- package/src/components/app_apply/PlaceControler.vue +49 -38
- package/src/components/{product/VueUtils → apply/base}/rightview/InstallCardList2.vue +38 -29
- package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
- package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/StopApplyDetail2.vue +1 -1
- package/src/components/build/Install/ApplyChargeSearch.vue +210 -0
- package/src/components/build/Install/ExplorationSelect.vue +308 -0
- package/src/components/build/Install/ExplorationUser.vue +315 -0
- package/src/components/build/Install/InstallFee/AddContract.vue +257 -0
- package/src/components/build/Install/InstallFee/InstallFee.vue +929 -0
- package/src/components/build/Install/InstallFee/InstallFee2.vue +291 -0
- package/src/components/{product/Function/functions → build/Install/InstallFee}/InstallFeeInfo.vue +11 -42
- package/src/components/build/Install/InstallFee/InstallFunction.vue +242 -0
- package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -0
- package/src/components/{product/Process → build/Install}/ModifyUserFiles.vue +1 -1
- package/src/components/build/Install/Process/BuildJob.vue +242 -0
- package/src/components/build/Install/Process/ContratSigne.vue +283 -0
- package/src/components/build/Install/Process/CustomerEssentialInfo.vue +325 -0
- package/src/components/build/Install/Process/CustomerFile.vue +423 -0
- package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -0
- package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -0
- package/src/components/build/Install/Process/DispatchingJob.vue +261 -0
- package/src/components/build/Install/Process/FeeNorme.vue +252 -0
- package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -0
- package/src/components/build/Install/Process/FeeVerifier.vue +199 -0
- package/src/components/build/Install/Process/IgnitionVentilation.vue +232 -0
- package/src/components/build/Install/Process/MeterType.vue +379 -0
- package/src/components/build/Install/Process/PlaceControler.vue +304 -0
- package/src/components/build/Install/Process/ProjeterFigure.vue +211 -0
- package/src/components/build/Install/Process/ReceivingNote.vue +317 -0
- package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +370 -0
- package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -0
- package/src/components/build/Install/Process/zhongran/ZR_ContratSigne.vue +496 -0
- package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +415 -0
- package/src/components/build/Install/Process/zhongran/ZR_DispatchingJob.vue +409 -0
- package/src/components/build/Install/Process/zhongran/ZR_FeeNorme.vue +342 -0
- package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation.vue +253 -0
- package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation_transfer.vue +198 -0
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -0
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -0
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -0
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -0
- package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote.vue +404 -0
- package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote1.vue +301 -0
- package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -0
- package/src/components/build/Install/Process/zhongran/ZR_end.vue +20 -0
- package/src/components/build/Install/ProcessInfo/BasicInfo.vue +68 -0
- package/src/components/build/Install/ProcessInfo/BuildInfo.vue +110 -0
- package/src/components/build/Install/ProcessInfo/ContratProcessInfo.vue +116 -0
- package/src/components/build/Install/ProcessInfo/DispatchingInfo.vue +114 -0
- package/src/components/build/Install/ProcessInfo/FeeNormeInfo.vue +108 -0
- package/src/components/build/Install/ProcessInfo/FeeVerifierInfo.vue +102 -0
- package/src/components/build/Install/ProcessInfo/IgnitionInfo.vue +99 -0
- package/src/components/build/Install/ProcessInfo/MeterProcessInfo.vue +114 -0
- package/src/components/build/Install/ProcessInfo/PlaceProcessInfo.vue +115 -0
- package/src/components/build/Install/ProcessInfo/ProjeterProcessInfo.vue +107 -0
- package/src/components/build/Install/ProcessInfo/ReceivingInfo.vue +107 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_BasicInfo.vue +74 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_BuildInfo.vue +114 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_ContratProcessInfo.vue +114 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_DispatchingInfo.vue +119 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_FeeNormeInfo.vue +105 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_IgnitionInfo.vue +99 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_MaterialPlan_info.vue +104 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_PlaceProcessInfo.vue +109 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_ReceivingInfo.vue +102 -0
- package/src/components/build/Install/ProcessInfo/zhongran/ZR_ignition_transfer_info.vue +104 -0
- package/src/components/{product/Bill → build/Install/bill}/BillXSDMakeInfo.vue +1 -1
- package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -0
- package/src/components/build/Install/monitor/SupervisoryList.vue +209 -0
- package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryhCart.vue +3 -29
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +91 -1718
- package/src/main.js +2 -9
- package/src/stores/ApplyLoadParams.js +1 -1
- package/src/bootstrap/less/standard.less +0 -208
- package/src/components/app_apply/ServiceControl.vue +0 -442
- package/src/components/app_apply/ServiceView.vue +0 -356
- package/src/components/product/Common/ApplyValidateBill.vue +0 -55
- package/src/components/product/Common/PrintBill.vue +0 -120
- package/src/components/product/Function/InstallFunction.vue +0 -142
- package/src/components/product/Function/InstallInfoSelect.vue +0 -254
- package/src/components/product/Function/Service/FunctionServiceControl.vue +0 -328
- package/src/components/product/Function/functions/AddContract.vue +0 -301
- package/src/components/product/Function/functions/BuyerMessage.vue +0 -512
- package/src/components/product/Function/functions/InstallFee.vue +0 -919
- package/src/components/product/Function/functions/material_recording.vue +0 -237
- package/src/components/product/MaterialBatchList.vue +0 -109
- package/src/components/product/MaterialBatchManage.vue +0 -34
- package/src/components/product/Process/ExplorationSelect.vue +0 -636
- package/src/components/product/Process/ExplorationUser.vue +0 -131
- package/src/components/product/Process/MaterialUseList.vue +0 -159
- package/src/components/product/Process/ProcessInfo/history_control.vue +0 -134
- package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -776
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -910
- package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -383
- package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -957
- package/src/components/product/Process/Processes/SendOrder.vue +0 -47
- package/src/components/product/Process/Processes/Service/ApplyAcceptBill.vue +0 -89
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -305
- package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
- package/src/components/product/Process/ShowBackReason.vue +0 -18
- package/src/components/product/ServiceView.vue +0 -800
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -407
- package/src/components/product/Supervisory/SupervisoryControl.vue +0 -130
- package/src/components/product/Supervisory/SupervisoryList.vue +0 -349
- package/src/components/product/stopInfo/ApplyStopInfo.vue +0 -280
- package/src/plugins/commonService.js +0 -229
- package/yarn.lock +0 -8072
- /package/src/components/{product/VueUtils → apply/base}/ToolsPage.vue +0 -0
- /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/BuildFeeDetail2.vue +0 -0
- /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ChangeFeeDetail2.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/AllSelect.vue +0 -0
- /package/src/components/{product/Function → build/Install/InstallFee}/InstallInfoDown.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/PreparationFee.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/PrestoreFee.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/ReduceFee.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/StopInstall.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/InstallFee}/UpdateFee.vue +0 -0
- /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerBuildingMessage.vue +0 -0
- /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerEquipmentMessage.vue +0 -0
- /package/src/components/{product/Function/functions → build/Install/ProcessInfo}/ApplyRecordCancel.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillGZK.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillGZKMakeInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillGZKRecordInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillJLB.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillJLBMakeInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillJLBRecordInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillKTK.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillKTKMakeInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillKTKRecordInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillQRK.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillQRKMakeInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillQRKRecordInfo.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillSelect.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillXSD.vue +0 -0
- /package/src/components/{product/Bill → build/Install/bill}/BillXSDRecordInfo.vue +0 -0
- /package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryBaseInfo.vue +0 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="overflow: hidden">
|
|
3
|
+
<div class="panel panel-info">
|
|
4
|
+
<div class="panel-heading">
|
|
5
|
+
<h3 class="panel-title">施工报建</h3>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<validator name="v">
|
|
9
|
+
<form class="form-horizontal">
|
|
10
|
+
<div class="form-group col-sm-11">
|
|
11
|
+
<div class="form-group col-sm-4" >
|
|
12
|
+
<label for="f_designer" class=" col-sm-6 control-label">工程名称:</label>
|
|
13
|
+
<div class="col-sm-6" id="f_project_name">
|
|
14
|
+
<input class="form-control" type="text" v-model="model.f_project_name" disabled>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="form-group col-sm-4" >
|
|
18
|
+
<label for="f_designer" class=" col-sm-6 control-label">用户类型:</label>
|
|
19
|
+
<div class="col-sm-6" id="f_apply_type">
|
|
20
|
+
<input class="form-control" type="text" v-model="model.f_apply_type" disabled>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group col-sm-4" >
|
|
24
|
+
<label for="f_designer" class=" col-sm-6 control-label">客户联系人:</label>
|
|
25
|
+
<div class="col-sm-6" id="f_customer_contact">
|
|
26
|
+
<input class="form-control" type="text" v-model="model.f_customer_contact" disabled>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-group col-sm-11">
|
|
31
|
+
<div class="form-group col-sm-4" >
|
|
32
|
+
<label for="f_designer" class=" col-sm-6 control-label">联系电话:</label>
|
|
33
|
+
<div class="col-sm-6" id="f_contact">
|
|
34
|
+
<input class="form-control" type="text" v-model="model.f_contact" disabled>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="form-group col-sm-4">
|
|
38
|
+
<label class=" col-sm-6 control-label">签订合同时间:</label>
|
|
39
|
+
<div class="col-sm-6" id="f_contract_time">
|
|
40
|
+
<input class="form-control" type="text" v-model="model.f_contract_time" disabled>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-group col-sm-4">
|
|
44
|
+
<label class=" col-sm-6 control-label">合同总金额:</label>
|
|
45
|
+
<div class="col-sm-6" id="f_contract_time">
|
|
46
|
+
<input class="form-control" type="text" v-model="model.f_contract_money" disabled >
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="form-group col-sm-11">
|
|
51
|
+
<div class="form-group col-sm-4">
|
|
52
|
+
<label class=" col-sm-6 control-label">当前回款金额:</label>
|
|
53
|
+
<div class="col-sm-6" id="f_now_backamount">
|
|
54
|
+
<input class="form-control" type="number" v-model="model.f_now_backamount"
|
|
55
|
+
:readonly="edit ? false : 'readonly'">
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-group col-sm-4">
|
|
59
|
+
<label class=" col-sm-6 control-label">回款比例:</label>
|
|
60
|
+
<div class="col-sm-6" id="f_repayment_ratio">
|
|
61
|
+
<input class="form-control" type="text" v-model="backamount" readonly>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-4">
|
|
65
|
+
<label class=" col-sm-6 control-label">合同总户数:</label>
|
|
66
|
+
<div class="col-sm-6" id="f_contract_total_households" :class="[$v.f_contract_total_households.required ? 'formItem-required' : '' ]">
|
|
67
|
+
<input class="form-control col-sm-6" type="number" v-model="model.f_contract_total_households" :readonly="edit ? false : 'readonly'" v-validate:f_contract_total_households ='{required: true }'>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group col-sm-11">
|
|
72
|
+
<div class="form-group col-sm-4">
|
|
73
|
+
<label class=" col-sm-6 control-label">回款户数:</label>
|
|
74
|
+
<div class="col-sm-6" id="f_backamount_household" :class="[$v.f_backamount_household.required ? 'formItem-required' : '' ]">
|
|
75
|
+
<input class="form-control col-sm-6" type="number" v-model="model.f_backamount_household" :readonly="edit ? false : 'readonly'" v-validate:f_backamount_household ='{required: true }'>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="form-group col-sm-4">
|
|
79
|
+
<label class=" col-sm-6 control-label">用户详细地址:</label>
|
|
80
|
+
<div class="col-sm-6" id="f_usegasren_address">
|
|
81
|
+
<input class="form-control" type="text" v-model="model.f_usegasren_address" disabled>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="form-group col-sm-11">
|
|
86
|
+
<div class="form-group col-sm-6">
|
|
87
|
+
<label for="f_survey_departmen" class=" col-sm-4 control-label">经办部门:</label>
|
|
88
|
+
<div class="col-sm-6" id="f_survey_departmen">
|
|
89
|
+
<input class="form-control" type="text" v-model="model.f_apply_department" disabled>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="form-group col-sm-6">
|
|
93
|
+
<label for="f_survey_operator" class="col-sm-6 control-label">经办人:</label>
|
|
94
|
+
<div class="col-sm-6" id="f_survey_operator">
|
|
95
|
+
<input class="form-control" type="text" v-model="model.f_apply_operator" disabled>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</form>
|
|
100
|
+
</validator>
|
|
101
|
+
<div class="from-group col-sm-11" v-show="edit">
|
|
102
|
+
<center>
|
|
103
|
+
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
|
|
104
|
+
保存
|
|
105
|
+
</button>
|
|
106
|
+
<button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;" :disabled='!$v.valid'>
|
|
107
|
+
提交
|
|
108
|
+
</button>
|
|
109
|
+
<button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
|
|
110
|
+
取消
|
|
111
|
+
</button>
|
|
112
|
+
<button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
|
|
113
|
+
退回
|
|
114
|
+
</button>
|
|
115
|
+
|
|
116
|
+
</center>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
120
|
+
<script>
|
|
121
|
+
import co from 'co'
|
|
122
|
+
import {HttpResetClass} from 'vue-client'
|
|
123
|
+
import * as Util from '../../../../Util'
|
|
124
|
+
let gen = async function* (self, val) {
|
|
125
|
+
let http = new HttpResetClass()
|
|
126
|
+
val.f_survey_name = self.employeetemplate // 勘察人员保存
|
|
127
|
+
let data ={
|
|
128
|
+
tablename:'t_apply',
|
|
129
|
+
parameters:val
|
|
130
|
+
}
|
|
131
|
+
console.log('val::',val)
|
|
132
|
+
http.load('POST','rs/logic/save', {data:data}).then((res)=>{
|
|
133
|
+
let http2 = new HttpResetClass()
|
|
134
|
+
data = {
|
|
135
|
+
model: {
|
|
136
|
+
f_processid: self.selectdata.f_process_id,
|
|
137
|
+
},
|
|
138
|
+
loginUser: {
|
|
139
|
+
id: self.$login.f.id,
|
|
140
|
+
name: self.$login.f.name,
|
|
141
|
+
ename: self.$login.f.ename
|
|
142
|
+
},
|
|
143
|
+
employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
144
|
+
subdep: '提交'
|
|
145
|
+
}
|
|
146
|
+
http2.load('POST',`rs/logic/grantnext`,
|
|
147
|
+
{data: data})
|
|
148
|
+
.then(() => {
|
|
149
|
+
self.reset()
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
export default {
|
|
155
|
+
title: '施工报建',
|
|
156
|
+
data() {
|
|
157
|
+
return {
|
|
158
|
+
fgastype: this.$appdata.getParam('用气类型'),
|
|
159
|
+
fsurveyname : this.$appdata.getParam('勘查人员'),
|
|
160
|
+
employees: [], // 部门人员数组
|
|
161
|
+
employeetemplate: '', // 选定部门人员
|
|
162
|
+
model: {
|
|
163
|
+
f_now_backamount:0,
|
|
164
|
+
f_filiale: this.$login.f.f_filiale,
|
|
165
|
+
f_survey_date: Util.toStandardTimeString(),
|
|
166
|
+
f_survey_department: this.$login.f.f_parentname,
|
|
167
|
+
f_survey_operator: this.$login.f.name,
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
props: ['selectdata','edit'],
|
|
173
|
+
ready() {
|
|
174
|
+
|
|
175
|
+
this.selectdata.f_gas_type = this.selectdata.f_gas_type ? [this.selectdata.f_gas_type] : this.model.f_gas_type
|
|
176
|
+
this.selectdata.f_survey_name = this.selectdata.f_survey_name ? [this.selectdata.f_survey_name] : this.model.f_survey_name
|
|
177
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
178
|
+
},
|
|
179
|
+
watch:{
|
|
180
|
+
'model.f_repayment_ratio'(){
|
|
181
|
+
if(isNaN(this.model.f_repayment_ratio)){
|
|
182
|
+
this.$showMessage("请检查合同总金额和当前回款是否为数字!")
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
methods: {
|
|
187
|
+
// 保存,并跳转流程
|
|
188
|
+
saveorsetvar(self,val){
|
|
189
|
+
let http = new HttpResetClass()
|
|
190
|
+
val.f_survey_name = self.employeetemplate // 勘察人员保存
|
|
191
|
+
let data ={
|
|
192
|
+
tablename:'t_apply',
|
|
193
|
+
parameters:val
|
|
194
|
+
}
|
|
195
|
+
console.log('val::',val)
|
|
196
|
+
http.load('POST','rs/logic/save', {data:data}).then((res)=>{
|
|
197
|
+
let http2 = new HttpResetClass()
|
|
198
|
+
data = {
|
|
199
|
+
model: {
|
|
200
|
+
f_processid: self.selectdata.f_process_id,
|
|
201
|
+
},
|
|
202
|
+
loginUser: {
|
|
203
|
+
id: self.$login.f.id,
|
|
204
|
+
name: self.$login.f.name,
|
|
205
|
+
ename: self.$login.f.ename
|
|
206
|
+
},
|
|
207
|
+
employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
208
|
+
subdep: '提交'
|
|
209
|
+
}
|
|
210
|
+
http2.load('POST',`rs/logic/grantnext`,
|
|
211
|
+
{data: data})
|
|
212
|
+
.then(() => {
|
|
213
|
+
self.reset()
|
|
214
|
+
})
|
|
215
|
+
})
|
|
216
|
+
},
|
|
217
|
+
// 退回则默认值为已存储的人
|
|
218
|
+
toemployees() {
|
|
219
|
+
if (this.temploader == '技术组长' && this.model.f_survey_name) {
|
|
220
|
+
this.employeetemplate = this.model.f_survey_name
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
// 获取部门领导角色
|
|
224
|
+
async loademployees() {
|
|
225
|
+
let http = new HttpResetClass()
|
|
226
|
+
if (this.selectdata.actdefid != '1') {
|
|
227
|
+
await http.load('POST','rs/sql/singleTable', {
|
|
228
|
+
data: {
|
|
229
|
+
tablename: 't_actorperson',
|
|
230
|
+
condition: " userseq='" + this.$login.f.id + "' order by id desc"
|
|
231
|
+
}
|
|
232
|
+
}, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
|
|
233
|
+
.then((res) => {
|
|
234
|
+
console.log("取得部门领导的角色" + res.data[0].actorid)
|
|
235
|
+
if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
|
|
236
|
+
let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
|
|
237
|
+
this.temploader = loaderstr
|
|
238
|
+
// 如果是退回的就用已经保存的人员,保证下发的是同一个人
|
|
239
|
+
this.toemployees()
|
|
240
|
+
let loademployeestr = null
|
|
241
|
+
if (loaderstr.includes("部门")) {
|
|
242
|
+
loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
|
|
243
|
+
} else if (loaderstr.includes("部")) {
|
|
244
|
+
loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
|
|
245
|
+
} else if (loaderstr.includes("组长")) {
|
|
246
|
+
loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
|
|
247
|
+
}
|
|
248
|
+
console.log(loademployeestr)
|
|
249
|
+
let http2 = new HttpResetClass()
|
|
250
|
+
http2.load('POST','rs/sql/singleTable', {
|
|
251
|
+
data: {
|
|
252
|
+
tablename: 't_role',
|
|
253
|
+
condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
|
|
254
|
+
// condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
|
|
255
|
+
}
|
|
256
|
+
}, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
|
|
257
|
+
console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
|
|
258
|
+
let strid = res.data[0].id
|
|
259
|
+
let http3 = new HttpResetClass()
|
|
260
|
+
http3.load('POST','rs/sql/singleTable', {
|
|
261
|
+
data: {
|
|
262
|
+
tablename: 't_user',
|
|
263
|
+
condition: "roles like '%" + strid + "%'"
|
|
264
|
+
}
|
|
265
|
+
}, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
|
|
266
|
+
console.log("角色人员(部门人员)信息成功")
|
|
267
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
268
|
+
this.employees.push({lable: res.data[i].name, value: res.data[i].name})
|
|
269
|
+
}
|
|
270
|
+
})
|
|
271
|
+
})
|
|
272
|
+
}
|
|
273
|
+
})
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
//保存表单信息
|
|
277
|
+
confirm() {
|
|
278
|
+
let data ={
|
|
279
|
+
tablename:'t_apply',
|
|
280
|
+
parameters:this.model
|
|
281
|
+
}
|
|
282
|
+
if (this.verification()){
|
|
283
|
+
this.$resetpost('rs/logic/save', {data:data})
|
|
284
|
+
.then(() => {
|
|
285
|
+
this.reset()
|
|
286
|
+
})
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
//保存表单信息并下发到下个节点
|
|
290
|
+
commit() {
|
|
291
|
+
if(this.verification()){
|
|
292
|
+
|
|
293
|
+
if(Number(this.model.f_backamount_household) > Number(this.model.f_contract_total_households)){
|
|
294
|
+
this.$showMessage("回款户数不能大于儿合同总户数!")
|
|
295
|
+
this.model.f_backamount_household = null
|
|
296
|
+
}else{
|
|
297
|
+
this.saveorsetvar(this, this.model)
|
|
298
|
+
// let getGen = gen(this, this.model)
|
|
299
|
+
// co(getGen)
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
//数据校验
|
|
304
|
+
verification() {
|
|
305
|
+
var isNum = /^(([+]?\d*$)|(^[+]?\d+(\.\d+)?$))/ //非负纯数字
|
|
306
|
+
if(!this.model.f_now_backamount) {
|
|
307
|
+
this.$showMessage("当前回款金额不能为空!")
|
|
308
|
+
return false
|
|
309
|
+
}else if(!isNum.test(this.model.f_now_backamount)){
|
|
310
|
+
this.$showMessage("当前回款金额格式错误!")
|
|
311
|
+
return false
|
|
312
|
+
}
|
|
313
|
+
if(!this.model.f_contract_total_households) {
|
|
314
|
+
this.$showMessage("合同总户数不能为空!")
|
|
315
|
+
return false
|
|
316
|
+
}else if(!isNum.test(this.model.f_contract_total_households)){
|
|
317
|
+
this.$showMessage("合同总户数格式错误!")
|
|
318
|
+
return false
|
|
319
|
+
}else if(!this.model.f_backamount_household) {
|
|
320
|
+
this.$showMessage("回款户数不能为空!")
|
|
321
|
+
return false
|
|
322
|
+
}else if(!isNum.test(this.model.f_backamount_household)){
|
|
323
|
+
this.$showMessage("回款户数格式错误!")
|
|
324
|
+
return false
|
|
325
|
+
}
|
|
326
|
+
return true
|
|
327
|
+
},
|
|
328
|
+
//取消
|
|
329
|
+
reset() {
|
|
330
|
+
this.$dispatch('close')
|
|
331
|
+
this.$dispatch('selfsearch')
|
|
332
|
+
},
|
|
333
|
+
//退回上一个流程
|
|
334
|
+
back() {
|
|
335
|
+
// this.model.f_sub_state = '退回'
|
|
336
|
+
this.confirm()
|
|
337
|
+
let data = {
|
|
338
|
+
model: {
|
|
339
|
+
f_processid: this.selectdata.f_process_id,
|
|
340
|
+
},
|
|
341
|
+
loginUser: {
|
|
342
|
+
id: this.$login.f.id,
|
|
343
|
+
name: this.$login.f.name,
|
|
344
|
+
ename: this.$login.f.ename
|
|
345
|
+
},
|
|
346
|
+
subdep: '退回'
|
|
347
|
+
}
|
|
348
|
+
let http = new HttpResetClass()
|
|
349
|
+
http.load('POST',`rs/logic/ignitionnext`,
|
|
350
|
+
{data: data})
|
|
351
|
+
.then(() => {
|
|
352
|
+
this.reset()
|
|
353
|
+
})
|
|
354
|
+
},
|
|
355
|
+
setselect() {
|
|
356
|
+
this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
|
|
357
|
+
this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
|
|
358
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
359
|
+
this.model.f_survey_date = this.$login.toStandardDateString()
|
|
360
|
+
this.model.f_survey_department = this.$login.f.f_parentname
|
|
361
|
+
this.model.f_survey_operator = this.$login.f.name
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
computed: {
|
|
365
|
+
backamount(){
|
|
366
|
+
|
|
367
|
+
//回款比例 保留两位小数
|
|
368
|
+
if(this.model.f_now_backamount.trim() == '' || this.model.f_contract_money.trim == ''
|
|
369
|
+
|| this.model.f_now_backamount == null || this.model.f_contract_money == null){
|
|
370
|
+
this.model.f_repayment_ratio = '0'
|
|
371
|
+
}else{
|
|
372
|
+
this.model.f_repayment_ratio = (Number(this.model.f_now_backamount)/Number(this.model.f_contract_money)).toFixed(2)
|
|
373
|
+
}
|
|
374
|
+
return this.model.f_repayment_ratio
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
</script>
|
|
379
|
+
<style>
|
|
380
|
+
.formItem-required::after {
|
|
381
|
+
content: '*';
|
|
382
|
+
position: absolute;
|
|
383
|
+
font-size: 20px;
|
|
384
|
+
margin-top: 3.5%;
|
|
385
|
+
margin-left: 3%;
|
|
386
|
+
color: #d91118;
|
|
387
|
+
}
|
|
388
|
+
</style>
|