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
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12" style="height: auto" v-if="refresh">
|
|
3
|
-
<div class="auto select-overspread">
|
|
4
|
-
<div class="panel panel-info">
|
|
5
|
-
<div class="panel-heading auto">
|
|
6
|
-
<h3 class="panel-title">补充协议</h3>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="col-sm-12" style="height: auto">
|
|
11
|
-
<span class="col-sm-1"></span>
|
|
12
|
-
<span class="col-sm-3">总个数:{{contract_datas.length}}</span>
|
|
13
|
-
<span class="col-sm-2"></span>
|
|
14
|
-
<span class="col-sm-3" v-if="!$login.f.f_fengongsi.includes('彩虹')">总金额:{{sum}}元</span>
|
|
15
|
-
<button class="col-sm-offset-2 btn btn-warning" type="button" @click="add()">补充协议</button>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-12" style="height: auto;border:1px solid #000;padding-top: 10px;" v-for="row in contract_datas">
|
|
18
|
-
<div class="col-sm-12">
|
|
19
|
-
<div class="form-group col-sm-3 form-input-group">
|
|
20
|
-
<label class="control-label">合同编号:</label>
|
|
21
|
-
<div class="col-sm-6">
|
|
22
|
-
<input class="form-control" type="text" v-model="row.f_contract_number" readonly>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<!--<div class="form-group col-sm-3 form-input-group">-->
|
|
26
|
-
<!--<label class="control-label">类型(合同/协议):</label>-->
|
|
27
|
-
<!--<div class="col-sm-6">-->
|
|
28
|
-
<!--<input class="form-control" type="text" v-model="row.f_contract_type" readonly>-->
|
|
29
|
-
<!--</div>-->
|
|
30
|
-
<!--</div>-->
|
|
31
|
-
<div class="form-group col-sm-3 form-input-group">
|
|
32
|
-
<label class="control-label">签订日期:</label>
|
|
33
|
-
<div class="col-sm-6">
|
|
34
|
-
<input class="form-control" type="text" v-model="row.f_contract_time" readonly>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="form-group col-sm-3 form-input-group">
|
|
38
|
-
<label class="control-label">合同金额(元):</label>
|
|
39
|
-
<div class="col-sm-6">
|
|
40
|
-
<input class="form-control" type="text" v-model="row.f_contract_money" readonly>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<!--<div class="form-group col-sm-3 form-input-group">-->
|
|
44
|
-
<!--<label class="control-label">金额大写:</label>-->
|
|
45
|
-
<!--<div class="col-sm-6">-->
|
|
46
|
-
<!--<input class="form-control" type="text" v-model="row.f_capital" readonly>-->
|
|
47
|
-
<!--</div>-->
|
|
48
|
-
<!--</div>-->
|
|
49
|
-
<div class="form-group col-sm-3 form-input-group">
|
|
50
|
-
<label class="control-label">合同价格类型:</label>
|
|
51
|
-
<div class="col-sm-6">
|
|
52
|
-
<input class="form-control" type="text" v-model="row.f_contract_nature" readonly>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="form-group col-sm-3 form-input-group">
|
|
57
|
-
<label class="control-label">付款方式:</label>
|
|
58
|
-
<div class="col-sm-6">
|
|
59
|
-
<input class="form-control" type="text" v-model="row.f_pay_type" readonly>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="form-group col-sm-12 form-input-group">
|
|
64
|
-
<label class="control-label">备注:</label>
|
|
65
|
-
<div class="col-sm-5">
|
|
66
|
-
<textarea class="form-control" v-model="row.t_remarks" rows="2" readonly></textarea>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
71
|
-
<header slot="modal-header" class="modal-header">
|
|
72
|
-
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
73
|
-
<h4 class="modal-title">新增合同</h4>
|
|
74
|
-
</header>
|
|
75
|
-
<article slot="modal-body" class="modal-body">
|
|
76
|
-
<div class="from-group">
|
|
77
|
-
<label>合同编号</label>
|
|
78
|
-
<input type="text" class="form-control" v-model="addcontract.f_contract_number" readonly>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="from-group">
|
|
81
|
-
<label>签订日期</label>
|
|
82
|
-
<div>
|
|
83
|
-
<datepicker width="600.76px;"
|
|
84
|
-
:value.sync="addItem.f_contract_time"
|
|
85
|
-
:format="'yyyy-MM-dd'"
|
|
86
|
-
v-model="addItem.f_contract_time" readonly="readonly"
|
|
87
|
-
:show-reset-button="reset">
|
|
88
|
-
</datepicker>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
<div class="from-group">
|
|
92
|
-
<label>合同金额(元)</label>
|
|
93
|
-
<input type="text" class="form-control" v-model="addItem.f_contract_money">
|
|
94
|
-
</div>
|
|
95
|
-
<!--<div class="form-group">-->
|
|
96
|
-
<!--<label class="control-label">金额大写:</label>-->
|
|
97
|
-
<!--<input class="form-control" type="text" v-model="getCapital" readonly>-->
|
|
98
|
-
<!--</div>-->
|
|
99
|
-
|
|
100
|
-
<div class="from-group">
|
|
101
|
-
<label>付款方式</label>
|
|
102
|
-
<v-select :options="jiaofei"
|
|
103
|
-
v-model="addItem.f_pay_type" :value.sync="addItem.f_pay_type" close-on-select>
|
|
104
|
-
</v-select>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="from-group">
|
|
107
|
-
<label>备注</label>
|
|
108
|
-
<textarea class="form-control" v-model="addItem.t_remarks" rows="3"></textarea>
|
|
109
|
-
</div>
|
|
110
|
-
</article>
|
|
111
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
112
|
-
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
113
|
-
<button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
114
|
-
</footer>
|
|
115
|
-
</modal>
|
|
116
|
-
</div>
|
|
117
|
-
</template>
|
|
118
|
-
|
|
119
|
-
<script>
|
|
120
|
-
import {HttpResetClass} from 'vue-client'
|
|
121
|
-
|
|
122
|
-
// Date格式化
|
|
123
|
-
Date.prototype.Format = function (fmt) {
|
|
124
|
-
var o = {
|
|
125
|
-
"M+": this.getMonth() + 1, //月份
|
|
126
|
-
"d+": this.getDate(), //日
|
|
127
|
-
"H+": this.getHours(), //小时
|
|
128
|
-
"m+": this.getMinutes(), //分
|
|
129
|
-
"s+": this.getSeconds(), //秒
|
|
130
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
131
|
-
"S": this.getMilliseconds() //毫秒
|
|
132
|
-
};
|
|
133
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
134
|
-
for (var k in o)
|
|
135
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
136
|
-
return fmt;
|
|
137
|
-
}
|
|
138
|
-
export default {
|
|
139
|
-
|
|
140
|
-
title: "追加合同",
|
|
141
|
-
props: ['addcontract'],
|
|
142
|
-
data() {
|
|
143
|
-
return {
|
|
144
|
-
contract_datas: [], // 合同信息数组
|
|
145
|
-
refresh: true,
|
|
146
|
-
show: false, // 新增合同模态框控制
|
|
147
|
-
addItem: {}, // 模态框零时对象
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
ready() {
|
|
151
|
-
// this.contract_datas = {
|
|
152
|
-
// f_contract_number: 1,
|
|
153
|
-
// f_contract_time: 2,
|
|
154
|
-
// f_contract_money: 9,
|
|
155
|
-
// f_pay_type: 3,
|
|
156
|
-
// t_remarks: 5
|
|
157
|
-
// }, //测试数据
|
|
158
|
-
// {f_contract_number: 1, f_contract_money: 9, f_contract_time: 2, f_pay_type: 3, t_remarks: 5}
|
|
159
|
-
this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
|
|
160
|
-
this.load();
|
|
161
|
-
},
|
|
162
|
-
methods: {
|
|
163
|
-
// 小写转换大写
|
|
164
|
-
smalltoBIG(n) {
|
|
165
|
-
let fraction = ['角', '分'];
|
|
166
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
167
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
168
|
-
let head = n < 0 ? '欠' : '';
|
|
169
|
-
n = Math.abs(n);
|
|
170
|
-
|
|
171
|
-
let s = '';
|
|
172
|
-
|
|
173
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
174
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
175
|
-
}
|
|
176
|
-
s = s || '整';
|
|
177
|
-
n = Math.floor(n);
|
|
178
|
-
|
|
179
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
180
|
-
let p = '';
|
|
181
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
182
|
-
p = digit[n % 10] + unit[1][j] + p;
|
|
183
|
-
n = Math.floor(n / 10);
|
|
184
|
-
}
|
|
185
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
186
|
-
}
|
|
187
|
-
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
188
|
-
},
|
|
189
|
-
// 获取数据库数据
|
|
190
|
-
async load() {
|
|
191
|
-
let http = new HttpResetClass();
|
|
192
|
-
let data = {
|
|
193
|
-
tablename: 't_contract',
|
|
194
|
-
condition: `f_process_id = '${this.addcontract.f_process_id}'`
|
|
195
|
-
}
|
|
196
|
-
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取合同表失败'})
|
|
197
|
-
this.contract_datas = []
|
|
198
|
-
res.data.forEach((item, index) => {
|
|
199
|
-
if (item.f_contract_nature.includes("\"")) {
|
|
200
|
-
item.f_contract_nature = item.f_contract_nature.split("\"")[1]
|
|
201
|
-
}
|
|
202
|
-
if (item.f_pay_type.includes("\"")) {
|
|
203
|
-
item.f_pay_type = item.f_pay_type.split("\"")[1]
|
|
204
|
-
}
|
|
205
|
-
})
|
|
206
|
-
this.contract_datas = res.data
|
|
207
|
-
},
|
|
208
|
-
// 新增按钮触发事件
|
|
209
|
-
add() {
|
|
210
|
-
if (this.contract_datas) {
|
|
211
|
-
this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
|
|
212
|
-
this.show = true
|
|
213
|
-
} else {
|
|
214
|
-
this.$showMessage("请先在主流程中签订合同")
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
// 模态框确定按钮触发
|
|
218
|
-
async confirm() {
|
|
219
|
-
if (this.addItem.f_contract_money) {
|
|
220
|
-
let http = new HttpResetClass();
|
|
221
|
-
this.addItem.f_contract_nature = this.addcontract.f_contract_nature
|
|
222
|
-
this.addItem.f_contract_number = this.addcontract.f_contract_number
|
|
223
|
-
this.addItem.f_process_id = this.addcontract.f_process_id
|
|
224
|
-
this.addItem.f_contract_type = '补充协议'
|
|
225
|
-
this.addItem.applyid = this.addcontract.f_apply_num
|
|
226
|
-
this.addItem.f_operator = this.$login.f.name
|
|
227
|
-
this.addItem.f_department = this.$login.f.f_parentname
|
|
228
|
-
this.addItem.f_filiale = this.$login.f.f_fengongsi
|
|
229
|
-
this.contract_datas.push(this.addItem)
|
|
230
|
-
|
|
231
|
-
this.applyparam = {
|
|
232
|
-
id: this.addcontract.id,
|
|
233
|
-
f_contract_money: Number(this.addcontract.f_contract_money) + Number(this.addItem.f_contract_money),
|
|
234
|
-
f_budget_money: Number(this.addcontract.f_budget_money) + Number(this.addItem.f_contract_money),
|
|
235
|
-
f_unaccounts_money: Number(this.addcontract.f_unaccounts_money) + Number(this.addItem.f_contract_money),
|
|
236
|
-
f_residual_invoicing: Number(this.addcontract.f_residual_invoicing) + Number(this.addItem.f_contract_money),
|
|
237
|
-
f_additional_payment: Number(this.addcontract.f_additional_payment) + Number(this.addItem.f_contract_money)
|
|
238
|
-
}
|
|
239
|
-
await http.load('POST', 'rs/logic/saveentity', {
|
|
240
|
-
data: {
|
|
241
|
-
tablename: 't_contract',
|
|
242
|
-
parameters: this.addItem
|
|
243
|
-
}
|
|
244
|
-
}, {resolveMsg: null, rejectMsg: "添加失败"})
|
|
245
|
-
.then((res) => {
|
|
246
|
-
this.$resetpost('rs/logic/saveentity', {
|
|
247
|
-
data: {
|
|
248
|
-
tablename: 't_apply',
|
|
249
|
-
parameters: this.applyparam
|
|
250
|
-
}
|
|
251
|
-
}).then((res) => {
|
|
252
|
-
this.close()
|
|
253
|
-
})
|
|
254
|
-
})
|
|
255
|
-
}else{
|
|
256
|
-
this.$showMessage("请输入金额")
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
},
|
|
261
|
-
// 模态框关闭按钮触发
|
|
262
|
-
close() {
|
|
263
|
-
this.show = false
|
|
264
|
-
this.addItem = {}
|
|
265
|
-
this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
},
|
|
269
|
-
watch: {
|
|
270
|
-
'addcontract.f_process_id'() {
|
|
271
|
-
this.load()
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
computed: {
|
|
275
|
-
// 计算大写
|
|
276
|
-
getCapital() {
|
|
277
|
-
if (this.addItem.f_contract_money) {合同价格类型
|
|
278
|
-
this.addItem.f_capital = this.smalltoBIG(Number(this.addItem.f_contract_money))
|
|
279
|
-
}
|
|
280
|
-
return this.addItem.f_capital
|
|
281
|
-
},
|
|
282
|
-
// 总金额计算
|
|
283
|
-
sum() {
|
|
284
|
-
let num = 0;
|
|
285
|
-
for (var i = 0; i < this.contract_datas.length; i++) {
|
|
286
|
-
num += Number(this.contract_datas[i].f_contract_money)
|
|
287
|
-
}
|
|
288
|
-
return num
|
|
289
|
-
},
|
|
290
|
-
jiaofei() {
|
|
291
|
-
return this.$appdata.getParam('付款方式')
|
|
292
|
-
// return [{label: '全部', value: ''}, ...AppData.getParam('付款方式')]
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
</script>
|
|
297
|
-
<style scoped>
|
|
298
|
-
textarea {
|
|
299
|
-
width: 74.5%;
|
|
300
|
-
}
|
|
301
|
-
</style>
|