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,496 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto select-overspread">
|
|
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="col-sm-11 form-group">
|
|
11
|
+
<div class="col-sm-4 form-group">
|
|
12
|
+
<label class="control-label col-sm-6">是否签订协议</label>
|
|
13
|
+
<div class="col-sm-6">
|
|
14
|
+
<input type="checkbox" class="" id="checkbox" v-model="model.f_issign"
|
|
15
|
+
:disabled="edit ? false : 'disabled'">
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
19
|
+
<label class="control-label col-sm-6">合同编号:</label>
|
|
20
|
+
<div class="col-sm-6" id="f_contract_number"
|
|
21
|
+
:class="[$v.f_contract_number.required ? 'formItem-required' : '' ]">
|
|
22
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_contract_number"
|
|
23
|
+
:readonly="edit ? false : 'readonly'" v-validate:f_contract_number='{required:true}'>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
27
|
+
<label class="control-label col-sm-6">合同业务办理人:</label>
|
|
28
|
+
<div class="col-sm-6" id="f_salesman" :class="[$v.f_salesman.required ? 'formItem-required' : '' ]">
|
|
29
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_salesman"
|
|
30
|
+
:readonly="edit ? false : 'readonly'" v-validate:f_salesman='{required:true}'>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="col-sm-11 form-group" v-if="issign">
|
|
36
|
+
<div class="col-sm-4 form-group">
|
|
37
|
+
<label class="control-label col-sm-6">合同金额:</label>
|
|
38
|
+
<div class="col-sm-6">
|
|
39
|
+
<input type="number" class="form-control col-sm-6" v-model="model.f_contract_money"
|
|
40
|
+
:readonly="edit ? false : 'readonly'">
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
44
|
+
<label class="control-label col-sm-6">减免费用:</label>
|
|
45
|
+
<div class="col-sm-6">
|
|
46
|
+
<input type="number" class="form-control col-sm-6" v-model="model.f_jmhj_cost"
|
|
47
|
+
:readonly="edit ? false : 'readonly'">
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
51
|
+
<label class="control-label col-sm-6">减免百分比:</label>
|
|
52
|
+
<div class="col-sm-6">
|
|
53
|
+
<input :readonly="true" type="text" class="form-control col-sm-6" v-model="getCost"
|
|
54
|
+
:readonly="edit ? false : 'readonly'">
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-11 form-group" v-if="issign">
|
|
59
|
+
<div class="col-sm-4 form-group">
|
|
60
|
+
<label class="control-label col-sm-6">应收金额:</label>
|
|
61
|
+
<div class="col-sm-6">
|
|
62
|
+
<input type="number" class="form-control col-sm-6" v-model="model.f_budget_money" disabled>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
67
|
+
<label class="control-label col-sm-6 ">付款方式:</label>
|
|
68
|
+
<!--<div class="col-sm-6">-->
|
|
69
|
+
<!--<input type="text" class="form-control col-sm-6" v-model="model.f_pay_type" :readonly="edit ? false : 'readonly'">-->
|
|
70
|
+
<!--</div>-->
|
|
71
|
+
<div class="col-sm-6">
|
|
72
|
+
<v-select :options="fpaytype" :valueSingle="true"
|
|
73
|
+
v-model="model.f_apply_type" :value.sync="model.f_pay_type" close-on-select>
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-sm-4 form-group" v-if="issign">
|
|
78
|
+
<label class="control-label col-sm-6">合同签订日期:</label>
|
|
79
|
+
<div class="col-sm-6" id="f_contract_time"
|
|
80
|
+
:class="[$v.f_contract_time.required ? 'formItem-required' : '' ]">
|
|
81
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_contract_time"
|
|
82
|
+
v-if="selectdata.f_contract_time" readonly="readonly">
|
|
83
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_contract_time"
|
|
84
|
+
v-show="false" v-validate:f_contract_time='{required:true}'>
|
|
85
|
+
<datepicker v-else width="600.76px;"
|
|
86
|
+
:readonly="true"
|
|
87
|
+
:value.sync="model.f_contract_time"
|
|
88
|
+
:format="'yyyy-MM-dd'"
|
|
89
|
+
class="col-sm-6"
|
|
90
|
+
v-model="model.f_contract_time"
|
|
91
|
+
:show-reset-button="reset">
|
|
92
|
+
</datepicker>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div class="col-sm-11 form-group" v-if="issign">
|
|
98
|
+
<div class="col-sm-8 form-group">
|
|
99
|
+
<label class="control-label col-sm-3">用气人:</label>
|
|
100
|
+
<div class="col-sm-8">
|
|
101
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_usegasren" disabled/>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-4 form-group">
|
|
105
|
+
<label class="control-label col-sm-6">电话:</label>
|
|
106
|
+
<div class="col-sm-6">
|
|
107
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_usegasren_phone" disabled/>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-11 form-group" v-if="issign">
|
|
112
|
+
<div class="col-sm-8 form-group">
|
|
113
|
+
<label class="control-label col-sm-3">用气地址:</label>
|
|
114
|
+
<div class="col-sm-8">
|
|
115
|
+
<input type="text" class="form-control col-sm-6" v-model="model.f_usegasren_address" disabled/>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-11 form-group" v-if="issign">
|
|
120
|
+
<div class="col-sm-12 form-group">
|
|
121
|
+
<label class="control-label col-sm-2">合同签订备注:</label>
|
|
122
|
+
<div class="col-sm-10">
|
|
123
|
+
<textarea class="form-control" rows="3" v-model="model.f_contract_remarks"
|
|
124
|
+
:readonly="edit ? false : 'readonly'">
|
|
125
|
+
</textarea>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="col-sm-11 form-group">
|
|
130
|
+
<div class="form-group col-sm-6">
|
|
131
|
+
<label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
|
|
132
|
+
<div class="col-sm-5" id="f_filiale">
|
|
133
|
+
<input class="form-control" type="text" v-model="model.f_filiale" disabled>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="col-sm-6 form-group">
|
|
137
|
+
<label class="control-label col-sm-6">操作日期:</label>
|
|
138
|
+
<div class="col-sm-5">
|
|
139
|
+
<input type="text" class="form-control" disabled v-model="model.f_contract_date"/>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-11 form-group">
|
|
144
|
+
<div class="col-sm-6 form-group">
|
|
145
|
+
<label class="control-label col-sm-4">部门:</label>
|
|
146
|
+
<div class="col-sm-5">
|
|
147
|
+
<input type="text" class="form-control" disabled v-model="model.f_contract_department"/>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-6 form-group">
|
|
151
|
+
<label class="control-label col-sm-6">操作人:</label>
|
|
152
|
+
<div class="col-sm-5">
|
|
153
|
+
<input type="text" class="form-control" disabled v-model="model.f_contract_operator"/>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</form>
|
|
158
|
+
</validator>
|
|
159
|
+
<div class="from-group col-sm-12" v-show="edit">
|
|
160
|
+
<center>
|
|
161
|
+
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
|
|
162
|
+
保存
|
|
163
|
+
</button>
|
|
164
|
+
<button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;"
|
|
165
|
+
:disabled='!$v.valid'>
|
|
166
|
+
提交
|
|
167
|
+
</button>
|
|
168
|
+
<button v-if="selectdata.defname==='项目报价并录入合同价格'&&selectdata.actdefid === '6'" type="button" @click="again()"
|
|
169
|
+
class="btn btn-warning" style="width:80px; margin-left:50px;">
|
|
170
|
+
重设
|
|
171
|
+
</button>
|
|
172
|
+
<button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
|
|
173
|
+
退回
|
|
174
|
+
</button>
|
|
175
|
+
</center>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
<script>
|
|
180
|
+
import co from 'co'
|
|
181
|
+
import {HttpResetClass} from 'vue-client'
|
|
182
|
+
import * as Util from '../../../../Util'
|
|
183
|
+
|
|
184
|
+
let gen = function* (self, val) {
|
|
185
|
+
val.f_sub_state = ''
|
|
186
|
+
val.f_temp_date = Util.toStandardTimeString()
|
|
187
|
+
let data = {
|
|
188
|
+
tablename: 't_apply',
|
|
189
|
+
parameters: val
|
|
190
|
+
}
|
|
191
|
+
yield self.$resetpost('rs/logic/save', {data: data})
|
|
192
|
+
data = {
|
|
193
|
+
model: {
|
|
194
|
+
f_processid: self.selectdata.f_process_id,
|
|
195
|
+
},
|
|
196
|
+
loginUser: {
|
|
197
|
+
id: self.$login.f.id,
|
|
198
|
+
name: self.$login.f.name,
|
|
199
|
+
ename: self.$login.f.ename
|
|
200
|
+
},
|
|
201
|
+
subdep: '提交'
|
|
202
|
+
}
|
|
203
|
+
self.$resetpost(`rs/logic/grantnext`,
|
|
204
|
+
{data: data})
|
|
205
|
+
.then(() => {
|
|
206
|
+
self.reset()
|
|
207
|
+
})
|
|
208
|
+
}
|
|
209
|
+
export default {
|
|
210
|
+
title: '合同签订',
|
|
211
|
+
data() {
|
|
212
|
+
return {
|
|
213
|
+
model: {
|
|
214
|
+
f_contract_money: '',
|
|
215
|
+
actid: '',
|
|
216
|
+
f_jmhj_per: 0,
|
|
217
|
+
falg: true,
|
|
218
|
+
},
|
|
219
|
+
fpaytype: this.$appdata.getParam('付款方式'),
|
|
220
|
+
issign: false
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
props: ['selectdata', 'edit'],
|
|
224
|
+
ready() {
|
|
225
|
+
this.$nextTick(() => {
|
|
226
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
227
|
+
//this.model.f_contract_money = this.selectdata.f_budget_money
|
|
228
|
+
this.model.f_usegasren = this.selectdata.f_user_name
|
|
229
|
+
this.model.f_usegasren_phone = this.selectdata.f_phone
|
|
230
|
+
this.model.f_usegasren_address = this.selectdata.f_address
|
|
231
|
+
this.model.f_givegasfund = 'GD-120天然气'
|
|
232
|
+
this.model.f_contract_date = this.$login.toStandardDateString()
|
|
233
|
+
this.model.f_contract_department = this.$login.f.f_parentname
|
|
234
|
+
this.model.f_contract_operator = this.$login.f.name
|
|
235
|
+
this.model.processid = this.selectdata.f_process_id
|
|
236
|
+
this.model.f_contract_number = this.model.f_contract_money
|
|
237
|
+
})
|
|
238
|
+
if (this.model.f_issign == true) {
|
|
239
|
+
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
methods: {
|
|
243
|
+
again() {
|
|
244
|
+
this.model.f_sub_state = '重设'
|
|
245
|
+
this.confirm()
|
|
246
|
+
let data = {
|
|
247
|
+
model: {
|
|
248
|
+
f_processid: this.selectdata.f_process_id,
|
|
249
|
+
},
|
|
250
|
+
loginUser: {
|
|
251
|
+
id: this.$login.f.id,
|
|
252
|
+
name: this.$login.f.name,
|
|
253
|
+
ename: this.$login.f.ename
|
|
254
|
+
},
|
|
255
|
+
subdep: '重设'
|
|
256
|
+
}
|
|
257
|
+
this.$resetpost(`rs/logic/contractnext`,
|
|
258
|
+
{data: data})
|
|
259
|
+
.then(() => {
|
|
260
|
+
this.reset()
|
|
261
|
+
})
|
|
262
|
+
},
|
|
263
|
+
back() {
|
|
264
|
+
this.model.f_sub_state = '退回'
|
|
265
|
+
|
|
266
|
+
//判断当前节点的状态(开始活动/完工)
|
|
267
|
+
this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
|
|
268
|
+
resolveMsg: null,
|
|
269
|
+
rejectMsg: '提交错误!'
|
|
270
|
+
}).then((res) => {
|
|
271
|
+
console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
|
|
272
|
+
if (res.data[0].state != '开始活动') {
|
|
273
|
+
this.$showMessage("该节点信息已在别处提交,请刷新!")
|
|
274
|
+
this.reset()
|
|
275
|
+
} else {
|
|
276
|
+
//通过数据校验再进行下一步判断
|
|
277
|
+
|
|
278
|
+
let data = {
|
|
279
|
+
tablename: 't_apply',
|
|
280
|
+
parameters: this.model
|
|
281
|
+
}
|
|
282
|
+
this.$resetpost('rs/logic/save', {data: data})
|
|
283
|
+
.then(() => {
|
|
284
|
+
this.reset()
|
|
285
|
+
})
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
let data1 = {
|
|
289
|
+
model: {
|
|
290
|
+
f_processid: this.selectdata.f_process_id,
|
|
291
|
+
},
|
|
292
|
+
loginUser: {
|
|
293
|
+
id: this.$login.f.id,
|
|
294
|
+
name: this.$login.f.name,
|
|
295
|
+
ename: this.$login.f.ename
|
|
296
|
+
},
|
|
297
|
+
subdep: '退回'
|
|
298
|
+
}
|
|
299
|
+
this.$resetpost(`rs/logic/contractnext`,
|
|
300
|
+
{data: data1})
|
|
301
|
+
.then(() => {
|
|
302
|
+
this.reset()
|
|
303
|
+
})
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
}
|
|
307
|
+
})
|
|
308
|
+
|
|
309
|
+
let data = {
|
|
310
|
+
model: {
|
|
311
|
+
f_processid: this.selectdata.f_process_id,
|
|
312
|
+
},
|
|
313
|
+
loginUser: {
|
|
314
|
+
id: this.$login.f.id,
|
|
315
|
+
name: this.$login.f.name,
|
|
316
|
+
ename: this.$login.f.ename
|
|
317
|
+
},
|
|
318
|
+
subdep: '退回'
|
|
319
|
+
}
|
|
320
|
+
this.$resetpost(`rs/logic/contractnext`,
|
|
321
|
+
{data: data})
|
|
322
|
+
.then(() => {
|
|
323
|
+
this.reset()
|
|
324
|
+
})
|
|
325
|
+
},
|
|
326
|
+
async confirm() {
|
|
327
|
+
//判断当前节点的状态(开始活动/完工)
|
|
328
|
+
this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
|
|
329
|
+
resolveMsg: null,
|
|
330
|
+
rejectMsg: '提交错误!'
|
|
331
|
+
}).then((res) => {
|
|
332
|
+
console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
|
|
333
|
+
if (res.data[0].state != '开始活动') {
|
|
334
|
+
this.$showMessage("该节点信息已在别处提交,请刷新!")
|
|
335
|
+
this.reset()
|
|
336
|
+
} else {
|
|
337
|
+
//通过数据校验再进行下一步判断
|
|
338
|
+
if (this.verification()) {
|
|
339
|
+
let data = {
|
|
340
|
+
tablename: 't_apply',
|
|
341
|
+
parameters: this.model
|
|
342
|
+
}
|
|
343
|
+
this.$resetpost('rs/logic/save', {data: data})
|
|
344
|
+
.then(() => {
|
|
345
|
+
this.reset()
|
|
346
|
+
})
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
}
|
|
350
|
+
})
|
|
351
|
+
},
|
|
352
|
+
async commit() {
|
|
353
|
+
//判断当前节点的状态(开始活动/完工)
|
|
354
|
+
this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
|
|
355
|
+
resolveMsg: null,
|
|
356
|
+
rejectMsg: '提交错误!'
|
|
357
|
+
}).then((res) => {
|
|
358
|
+
console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
|
|
359
|
+
if (res.data[0].state != '开始活动') {
|
|
360
|
+
this.$showMessage("该节点信息已在别处提交,请刷新!")
|
|
361
|
+
this.reset()
|
|
362
|
+
} else {
|
|
363
|
+
//通过数据校验再进行下一步判断
|
|
364
|
+
if (this.verification()) {
|
|
365
|
+
if (this.model.f_issign == true) {
|
|
366
|
+
|
|
367
|
+
let http = new HttpResetClass()
|
|
368
|
+
let getGen = gen(this, this.model)
|
|
369
|
+
co(getGen)
|
|
370
|
+
let data = {
|
|
371
|
+
tablename: 't_contract',
|
|
372
|
+
parameters: this.model
|
|
373
|
+
}
|
|
374
|
+
delete data.parameters.id
|
|
375
|
+
http.load('POST', 'rs/logic/saveentity', {data: data})
|
|
376
|
+
} else {
|
|
377
|
+
let data = {
|
|
378
|
+
model: {
|
|
379
|
+
f_processid: this.selectdata.f_process_id,
|
|
380
|
+
},
|
|
381
|
+
loginUser: {
|
|
382
|
+
id: this.$login.f.id,
|
|
383
|
+
name: this.$login.f.name,
|
|
384
|
+
ename: this.$login.f.ename
|
|
385
|
+
},
|
|
386
|
+
subdep: '提交'
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
this.$resetpost(`rs/logic/standardnext`,
|
|
390
|
+
{data: data})
|
|
391
|
+
.then(() => {
|
|
392
|
+
this.reset()
|
|
393
|
+
})
|
|
394
|
+
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
|
|
401
|
+
},
|
|
402
|
+
//数据校验
|
|
403
|
+
verification() {
|
|
404
|
+
var regex = /.*?[\u4e00-\u9fa5].*?[\u4e00-\u9fa5].*/ //至少两个汉字
|
|
405
|
+
if (!this.model.f_contract_number) {
|
|
406
|
+
this.$showMessage("合同编号不能为空!")
|
|
407
|
+
return false
|
|
408
|
+
}
|
|
409
|
+
if (!this.model.f_contract_time) {
|
|
410
|
+
this.$showMessage("合同签订日期不能为空!")
|
|
411
|
+
return false
|
|
412
|
+
}
|
|
413
|
+
if (!this.model.f_salesman) {
|
|
414
|
+
this.$showMessage("合同业务办理人不能为空!")
|
|
415
|
+
return false
|
|
416
|
+
} else if (!regex.test(this.model.f_salesman.trim())) {
|
|
417
|
+
this.$showMessage("合同业务办理人请至少输入两个汉字!")
|
|
418
|
+
return false
|
|
419
|
+
}
|
|
420
|
+
return true
|
|
421
|
+
},
|
|
422
|
+
reset() {
|
|
423
|
+
this.$dispatch('close')
|
|
424
|
+
this.$dispatch('selfsearch')
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
watch: {
|
|
428
|
+
'model.f_issign'(val) {
|
|
429
|
+
if (val == true) {
|
|
430
|
+
this.issign = true
|
|
431
|
+
} else {
|
|
432
|
+
this.issign = false
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
'selectdata'() {
|
|
436
|
+
this.$nextTick(() => {
|
|
437
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
438
|
+
this.model.f_usegasren = this.selectdata.f_user_name
|
|
439
|
+
this.model.f_usegasren_phone = this.selectdata.f_phone
|
|
440
|
+
this.model.f_usegasren_address = this.selectdata.f_address
|
|
441
|
+
this.model.f_givegasfund = 'GD-120天然气'
|
|
442
|
+
this.model.f_contract_date = this.$login.toStandardDateString()
|
|
443
|
+
this.model.f_contract_department = this.$login.f.f_parentname
|
|
444
|
+
this.model.f_contract_operator = this.$login.f.name
|
|
445
|
+
})
|
|
446
|
+
},
|
|
447
|
+
'model.f_jmhj_cost'(val) {
|
|
448
|
+
|
|
449
|
+
let budget_money = Number(this.model.f_budget_money)
|
|
450
|
+
let contract_money = Number(this.model.f_contract_money)
|
|
451
|
+
budget_money = contract_money - val
|
|
452
|
+
this.model.f_budget_money = budget_money
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
computed: {
|
|
456
|
+
// 获取减免费用
|
|
457
|
+
getCost: {
|
|
458
|
+
get() {
|
|
459
|
+
if (this.model.f_contract_money == null || this.model.f_contract_money == '') {
|
|
460
|
+
this.model.f_jmhj_per = 0 + '%'
|
|
461
|
+
} else {
|
|
462
|
+
let temp = Number(this.model.f_jmhj_cost)
|
|
463
|
+
let temp1 = Number(this.model.f_contract_money)
|
|
464
|
+
this.model.f_jmhj_per = ((temp / temp1) * 100).toFixed(2) + '%'
|
|
465
|
+
}
|
|
466
|
+
return this.model.f_jmhj_per
|
|
467
|
+
},
|
|
468
|
+
set(newValue) {
|
|
469
|
+
this.model.flag = false
|
|
470
|
+
let temp = Number(newValue)
|
|
471
|
+
let temp1 = Number(this.model.f_contract_money)
|
|
472
|
+
this.model.f_jmhj_per = ((temp / temp1).toFixed(4)) * 100
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
//获取建议金额
|
|
476
|
+
/* getAdvice() {
|
|
477
|
+
let temp = Number(this.model.f_jmhj_cost)
|
|
478
|
+
let temp1 = Number(this.model.f_contract_money)
|
|
479
|
+
let temp2 = Number(this.model.f_budget_money)
|
|
480
|
+
temp2 = temp1 - temp
|
|
481
|
+
return temp2
|
|
482
|
+
}*/
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
}
|
|
486
|
+
</script>
|
|
487
|
+
<style>
|
|
488
|
+
.formItem-required::after {
|
|
489
|
+
content: '*';
|
|
490
|
+
position: absolute;
|
|
491
|
+
font-size: 20px;
|
|
492
|
+
margin-top: 3.5%;
|
|
493
|
+
margin-left: 3%;
|
|
494
|
+
color: #d91118;
|
|
495
|
+
}
|
|
496
|
+
</style>
|