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,383 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex" style="height: auto">
|
|
3
|
-
<div style="height: auto" class="flex">
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">最终材料表
|
|
5
|
-
</p>
|
|
6
|
-
<div class="form-inline auto" style="margin-bottom: 5px;">
|
|
7
|
-
<criteria-paged :model="model" :pager="true" v-ref:paged >
|
|
8
|
-
<data-grid :model="model" v-ref:grid partial='list'>
|
|
9
|
-
<template partial='head'>
|
|
10
|
-
<tr>
|
|
11
|
-
<th><nobr>序号</nobr></th>
|
|
12
|
-
<th><nobr>材料名称</nobr></th>
|
|
13
|
-
<th><nobr>使用数量</nobr></th>
|
|
14
|
-
<th><nobr>单位</nobr></th>
|
|
15
|
-
<th><nobr>单价</nobr></th>
|
|
16
|
-
<th><nobr>合计金额</nobr></th>
|
|
17
|
-
<th style="padding: 0px"><button class="btn btn-success" @click="$parent.$parent.$parent.impexcel()">+</button></th>
|
|
18
|
-
</tr>
|
|
19
|
-
</template>
|
|
20
|
-
<template partial='body'>
|
|
21
|
-
<td style="text-align: center;">{{$index + 1}}</td>
|
|
22
|
-
<td style="text-align: center;">{{row.f_name}}</td>
|
|
23
|
-
<td style="text-align: center;">{{row.f_number}}</td>
|
|
24
|
-
<td style="text-align: center;">{{row.f_company}}</td>
|
|
25
|
-
<td style="text-align: center;">{{row.f_price}}</td>
|
|
26
|
-
<td style="text-align: center;">{{row.f_cost}}</td>
|
|
27
|
-
<td style="text-align: center;">
|
|
28
|
-
<button type="button" name="button" class="btn btn-link"
|
|
29
|
-
@click="$parent.$parent.$parent.deletematerial(row)">删除
|
|
30
|
-
</button>
|
|
31
|
-
</td>
|
|
32
|
-
</template>
|
|
33
|
-
</data-grid>
|
|
34
|
-
</criteria-paged>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div style="height: auto" class="flex">
|
|
39
|
-
<div class="bg-info text-center" style="padding: 8px;font-size: 20px">其他成本
|
|
40
|
-
</div>
|
|
41
|
-
<div class="form-inline auto" style="margin-bottom: 5px;">
|
|
42
|
-
<criteria-paged :model="othermodel" :pager="true" v-ref:paged1 >
|
|
43
|
-
<data-grid :model="$parent.othermodel" v-ref:grid1 partial='list'>
|
|
44
|
-
<template partial='head'>
|
|
45
|
-
<tr>
|
|
46
|
-
<th><nobr>序号</nobr></th>
|
|
47
|
-
<th><nobr>成本项</nobr></th>
|
|
48
|
-
<th><nobr>成本金额</nobr></th>
|
|
49
|
-
<th><nobr>备注</nobr></th>
|
|
50
|
-
<th><nobr>操作人</nobr></th>
|
|
51
|
-
<th style="padding: 0px"><button class="btn btn-success" @click="$parent.$parent.$parent.modify()">+</button></th>
|
|
52
|
-
</tr>
|
|
53
|
-
</template>
|
|
54
|
-
<template partial='body'>
|
|
55
|
-
<td style="text-align: center;">{{$index + 1}}</td>
|
|
56
|
-
<td style="text-align: center;">{{row.f_cost_name}}</td>
|
|
57
|
-
<td style="text-align: center;">{{row.f_cost_money}}</td>
|
|
58
|
-
<td style="text-align: center;">{{row.f_remarks}}</td>
|
|
59
|
-
<td style="text-align: center;">{{row.f_material_operator}}</td>
|
|
60
|
-
<td style="text-align: center;">
|
|
61
|
-
<button type="button" name="button" class="btn btn-link"
|
|
62
|
-
@click="$parent.$parent.$parent.update(row)">修正
|
|
63
|
-
</button>
|
|
64
|
-
<button type="button" name="button" class="btn btn-link"
|
|
65
|
-
@click="$parent.$parent.$parent.delete(row)">移除
|
|
66
|
-
</button>
|
|
67
|
-
</td>
|
|
68
|
-
</template>
|
|
69
|
-
</data-grid>
|
|
70
|
-
</criteria-paged>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<modal :show.sync="modifyshow" backdrop="false">
|
|
74
|
-
<header slot="modal-header" class="modal-header">
|
|
75
|
-
<h4 class="modal-title">新增成本项</h4>
|
|
76
|
-
</header>
|
|
77
|
-
<article slot="modal-body" class="modal-body">
|
|
78
|
-
<form class="form-horizontal">
|
|
79
|
-
<div class="form-group" >
|
|
80
|
-
<label for="f_cost_name" class="control-label">成本项</label>
|
|
81
|
-
<!--<input type="" class="form-control col-sm-2" v-model="model.f_cost_name"-->
|
|
82
|
-
<!--placeholder='成本项'>-->
|
|
83
|
-
<input-select
|
|
84
|
-
readonly="readonly" :value.sync="model.f_cost_name"
|
|
85
|
-
v-model="model.f_cost_name"
|
|
86
|
-
:options='cost_name_options' :valueSingle="true"></input-select>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="form-group">
|
|
89
|
-
<label for="f_cost_money" class="control-label">成本金额</label>
|
|
90
|
-
<input type="number" class="form-control" v-model="model.f_cost_money"
|
|
91
|
-
placeholder='成本金额'>
|
|
92
|
-
</div>
|
|
93
|
-
<div class="form-group">
|
|
94
|
-
<label for="f_remarks" class="control-label">备注</label>
|
|
95
|
-
<input type="text" class="form-control" v-model="model.f_remarks"
|
|
96
|
-
placeholder='备注'>
|
|
97
|
-
</div>
|
|
98
|
-
</form>
|
|
99
|
-
</article>
|
|
100
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
101
|
-
<button type="button" class="btn btn-success" @click='modifyConfirm'>确认</button>
|
|
102
|
-
<button type="button" class="btn btn-default" @click='modifyclose'>取消</button>
|
|
103
|
-
</footer>
|
|
104
|
-
</modal>
|
|
105
|
-
<modal :show.sync="updateshow" backdrop="false">
|
|
106
|
-
<header slot="modal-header" class="modal-header">
|
|
107
|
-
<h4 class="modal-title">修改成本项</h4>
|
|
108
|
-
</header>
|
|
109
|
-
<article slot="modal-body" class="modal-body">
|
|
110
|
-
<form class="form-horizontal">
|
|
111
|
-
<div class="form-group" >
|
|
112
|
-
<label for="f_cost_name" class="control-label">成本项</label>
|
|
113
|
-
<input type="text" class="form-control col-sm-2" v-model="updaterow.f_cost_name"
|
|
114
|
-
placeholder='成本项'>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="form-group">
|
|
117
|
-
<label for="f_cost_money" class="control-label">成本金额</label>
|
|
118
|
-
<input type="number" class="form-control" v-model="updaterow.f_cost_money"
|
|
119
|
-
placeholder='成本金额'>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="form-group">
|
|
122
|
-
<label for="f_remarks" class="control-label">备注</label>
|
|
123
|
-
<input type="text" class="form-control" v-model="updaterow.f_remarks"
|
|
124
|
-
placeholder='备注'>
|
|
125
|
-
</div>
|
|
126
|
-
</form>
|
|
127
|
-
</article>
|
|
128
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
129
|
-
<button type="button" class="btn btn-success" @click='updateConfirm'>确认</button>
|
|
130
|
-
<button type="button" class="btn btn-default" @click='updateclose'>取消</button>
|
|
131
|
-
</footer>
|
|
132
|
-
</modal>
|
|
133
|
-
<modal :show.sync="isShow" v-ref:modal backdrop="false">
|
|
134
|
-
<header slot="modal-header" class="modal-header">
|
|
135
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
136
|
-
<h4 class="modal-title">材料导入</h4>
|
|
137
|
-
</header>
|
|
138
|
-
<article slot="modal-body" class="modal-body">
|
|
139
|
-
<div class="form-group">
|
|
140
|
-
<file-upload class="my-file-uploader" name="materialExcel"
|
|
141
|
-
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
|
|
142
|
-
</div>
|
|
143
|
-
</article>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
147
|
-
</modal>
|
|
148
|
-
</div>
|
|
149
|
-
</template>
|
|
150
|
-
<script>
|
|
151
|
-
import { PagedList } from 'vue-client'
|
|
152
|
-
let insert = async function (self) {
|
|
153
|
-
let param = {
|
|
154
|
-
f_cost_name: self.model.f_cost_name,
|
|
155
|
-
f_cost_money: self.model.f_cost_money,
|
|
156
|
-
f_processid: self.selectdata.f_process_id,
|
|
157
|
-
f_remarks:self.model.f_remarks,
|
|
158
|
-
f_state: '1',
|
|
159
|
-
f_material_operator: self.$login.f.name
|
|
160
|
-
}
|
|
161
|
-
console.log('新增成本项', param)
|
|
162
|
-
self.$resetpost('rs/logic/insertcost', param).then(() => {
|
|
163
|
-
// this.params.rows.splice(index, 1)
|
|
164
|
-
console.log('更新成功!')
|
|
165
|
-
self.model.f_cost_name=''
|
|
166
|
-
self.model.f_cost_money=''
|
|
167
|
-
self.model.f_remarks=''
|
|
168
|
-
self.search()
|
|
169
|
-
})
|
|
170
|
-
self.search()
|
|
171
|
-
self.modifyshow = false
|
|
172
|
-
}
|
|
173
|
-
let deletecost = async function (self) {
|
|
174
|
-
let param = {
|
|
175
|
-
id: self.updaterow.id,
|
|
176
|
-
f_state: '0'
|
|
177
|
-
}
|
|
178
|
-
console.log('移除成本项', param)
|
|
179
|
-
self.$resetpost('rs/logic/insertcost', param).then(() => {
|
|
180
|
-
// this.params.rows.splice(index, 1)
|
|
181
|
-
console.log('更新成功!')
|
|
182
|
-
self.search()
|
|
183
|
-
})
|
|
184
|
-
self.search()
|
|
185
|
-
self.modifyshow = false
|
|
186
|
-
}
|
|
187
|
-
let deletematerial = async function (self) {
|
|
188
|
-
let param = {
|
|
189
|
-
id: self.updaterow.id
|
|
190
|
-
}
|
|
191
|
-
console.log('删除此项材料', param)
|
|
192
|
-
self.$resetpost('rs/logic/deletematerial', param).then(() => {
|
|
193
|
-
// this.params.rows.splice(index, 1)
|
|
194
|
-
console.log('删除成功!')
|
|
195
|
-
self.search()
|
|
196
|
-
})
|
|
197
|
-
self.search()
|
|
198
|
-
}
|
|
199
|
-
let update = async function (self) {
|
|
200
|
-
let param = {
|
|
201
|
-
id: self.updaterow.id,
|
|
202
|
-
f_cost_name: self.updaterow.f_cost_name,
|
|
203
|
-
f_remarks:self.updaterow.f_remarks,
|
|
204
|
-
f_cost_money: self.updaterow.f_cost_money
|
|
205
|
-
}
|
|
206
|
-
console.log('修改成本项', param)
|
|
207
|
-
self.$resetpost('rs/logic/insertcost', param).then(() => {
|
|
208
|
-
// this.params.rows.splice(index, 1)
|
|
209
|
-
console.log('更新成功!')
|
|
210
|
-
self.search()
|
|
211
|
-
})
|
|
212
|
-
self.search()
|
|
213
|
-
self.updateshow = false
|
|
214
|
-
}
|
|
215
|
-
export default {
|
|
216
|
-
title: '工程结算',
|
|
217
|
-
props: ['selectdata','edit'],
|
|
218
|
-
data () {
|
|
219
|
-
return {
|
|
220
|
-
model: new PagedList('rs/sql/getMaterialFinal', 8, { orderitem: '`id`'}),
|
|
221
|
-
othermodel: new PagedList('rs/sql/getCost', 8, { orderitem: '`id`'}),
|
|
222
|
-
number:0,
|
|
223
|
-
cost:0,
|
|
224
|
-
all:0,
|
|
225
|
-
modifyshow:false,
|
|
226
|
-
updateshow:false,
|
|
227
|
-
updaterow:null,
|
|
228
|
-
isShow:false,
|
|
229
|
-
cost_name_options:this.$appdata.getParam('成本项')
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
ready () {
|
|
233
|
-
this.search()
|
|
234
|
-
},
|
|
235
|
-
methods: {
|
|
236
|
-
search () {
|
|
237
|
-
console.log('执行查询',this.$login)
|
|
238
|
-
let condition = ` processid = '${this.selectdata.f_process_id}'`
|
|
239
|
-
let othercondition = ` f_processid = '${this.selectdata.f_process_id}'`
|
|
240
|
-
this.model.search(condition)
|
|
241
|
-
this.othermodel.search(othercondition)
|
|
242
|
-
console.log('查询结果',this.model)
|
|
243
|
-
console.log('错误信息',this.model.error)
|
|
244
|
-
this.model.error=""
|
|
245
|
-
this.othermodel.error=""
|
|
246
|
-
this.getnumber(condition)
|
|
247
|
-
},
|
|
248
|
-
getcost(){
|
|
249
|
-
let othercondition = ` f_processid = '${this.selectdata.f_process_id}'`
|
|
250
|
-
this.$resetpost('rs/sql/getCostAll', {data:{condition: othercondition,orderitem: `f_cost desc`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
251
|
-
|
|
252
|
-
if (res.data.length>0){
|
|
253
|
-
this.cost =res.data[0].f_cost
|
|
254
|
-
}else{
|
|
255
|
-
this.cost = 0
|
|
256
|
-
}
|
|
257
|
-
console.log('2222222222222222')
|
|
258
|
-
})
|
|
259
|
-
},
|
|
260
|
-
getnumber(condition){
|
|
261
|
-
this.$resetpost('rs/sql/getMaterialPrice', {data:{condition: condition,orderitem: `f_price desc`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
262
|
-
console.log('res',res)
|
|
263
|
-
if (res.data.length>0){
|
|
264
|
-
this.number =res.data[0].f_price
|
|
265
|
-
}else{
|
|
266
|
-
this.number = 0
|
|
267
|
-
}
|
|
268
|
-
this.getcost()
|
|
269
|
-
console.log('11111111111')
|
|
270
|
-
})
|
|
271
|
-
},
|
|
272
|
-
impexcel() {
|
|
273
|
-
this.isShow = true
|
|
274
|
-
},
|
|
275
|
-
closeFile() {
|
|
276
|
-
this.isShow = false
|
|
277
|
-
// 将选的文件清空
|
|
278
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
279
|
-
},
|
|
280
|
-
modify(){
|
|
281
|
-
this.modifyshow = true
|
|
282
|
-
},
|
|
283
|
-
modifyclose(){
|
|
284
|
-
this.modifyshow = false
|
|
285
|
-
},
|
|
286
|
-
async modifyConfirm(){
|
|
287
|
-
if(!this.model.f_cost_name){
|
|
288
|
-
this.$showAlert("请输入成本项","warning", 1500)
|
|
289
|
-
return
|
|
290
|
-
}
|
|
291
|
-
if(!this.model.f_cost_money){
|
|
292
|
-
this.$showAlert("请输入成本金额","warning", 1500)
|
|
293
|
-
return
|
|
294
|
-
}
|
|
295
|
-
await this.$showMessage(`是否确认添加新的成本项`, ['confirm', 'cancel']).then((res) => {
|
|
296
|
-
if (res === 'confirm') {
|
|
297
|
-
insert(this)
|
|
298
|
-
}
|
|
299
|
-
})
|
|
300
|
-
},
|
|
301
|
-
update(row){
|
|
302
|
-
this.updaterow = row
|
|
303
|
-
this.updateshow = true
|
|
304
|
-
},
|
|
305
|
-
updateclose(){
|
|
306
|
-
this.search()
|
|
307
|
-
this.updateshow = false
|
|
308
|
-
},
|
|
309
|
-
async updateConfirm(){
|
|
310
|
-
if(!this.updaterow.f_cost_name){
|
|
311
|
-
this.$showAlert("请输入成本项","warning", 1500)
|
|
312
|
-
return
|
|
313
|
-
}
|
|
314
|
-
if(!this.updaterow.f_cost_money){
|
|
315
|
-
this.$showAlert("请输入成本金额","warning", 1500)
|
|
316
|
-
return
|
|
317
|
-
}
|
|
318
|
-
await this.$showMessage(`是否确认修改此成本项`, ['confirm', 'cancel']).then((res) => {
|
|
319
|
-
if (res === 'confirm') {
|
|
320
|
-
update(this)
|
|
321
|
-
}
|
|
322
|
-
})
|
|
323
|
-
},
|
|
324
|
-
delete(row){
|
|
325
|
-
this.updaterow = row
|
|
326
|
-
this.$showMessage(`是否确认删除此成本项`, ['confirm', 'cancel']).then((res) => {
|
|
327
|
-
if (res === 'confirm') {
|
|
328
|
-
deletecost (this)
|
|
329
|
-
}
|
|
330
|
-
})
|
|
331
|
-
},
|
|
332
|
-
deletematerial(row){
|
|
333
|
-
this.updaterow = row
|
|
334
|
-
this.$showMessage(`是否确认删除此条记录`, ['confirm', 'cancel']).then((res) => {
|
|
335
|
-
if (res === 'confirm') {
|
|
336
|
-
deletematerial (this)
|
|
337
|
-
}
|
|
338
|
-
})
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
computed: {
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
events: {
|
|
346
|
-
onFileUpload: function (file, res) {
|
|
347
|
-
console.log('上传成功')
|
|
348
|
-
if (!this.selectdata.f_process_id) {
|
|
349
|
-
this.$showMessage("数据异常,导入失败")
|
|
350
|
-
return
|
|
351
|
-
}
|
|
352
|
-
let data = {
|
|
353
|
-
tablename: 'f_material',
|
|
354
|
-
filepath: res.f_downloadpath,
|
|
355
|
-
f_batch_importdate:this.$login.toStandardTimeString(),
|
|
356
|
-
processid: this.selectdata.f_process_id,
|
|
357
|
-
f_apply_num: this.selectdata.f_apply_num,
|
|
358
|
-
f_filiale:this.selectdata.f_filiale,
|
|
359
|
-
f_parentname:this.$login.f.f_parentname,
|
|
360
|
-
f_material_operator:this.$login.f.name
|
|
361
|
-
/* processid:this.selectdata.f_processid*/
|
|
362
|
-
}
|
|
363
|
-
console.log('即将上传的数据,',data)
|
|
364
|
-
this.$resetpost('rs/logic/materialfinalimport', data, {resolveMsg: '上传成功', rejectMsg: '上传失败'}).then((res) => {
|
|
365
|
-
console.log('logic返回数据',res)
|
|
366
|
-
this.search()
|
|
367
|
-
this.closeFile()
|
|
368
|
-
})
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
watch: {
|
|
372
|
-
'number' (){
|
|
373
|
-
this.$dispatch('get-number', this.number)
|
|
374
|
-
},
|
|
375
|
-
'cost' (){
|
|
376
|
-
this.$dispatch('get-cost', this.cost)
|
|
377
|
-
},
|
|
378
|
-
'selectdata.f_process_id' (){
|
|
379
|
-
this.search()
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
</script>
|