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,232 @@
|
|
|
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 class="panel-body">
|
|
8
|
+
<validator name="v">
|
|
9
|
+
<form class="form-horizontal">
|
|
10
|
+
<div class="col-sm-4 form-group" :class="[$v.f_gas_name.required ? 'has-error' : '']">
|
|
11
|
+
<label class="control-label col-sm-6">通气人员</label>
|
|
12
|
+
<div class="col-sm-6">
|
|
13
|
+
<input type="text" class="form-control" v-model="model.f_gas_name"
|
|
14
|
+
v-validate:f_gas_name='{required: true}'/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-4 form-group" :class="[$v.f_gas_number.required ? 'has-error' : '']">
|
|
18
|
+
<label class="control-label col-sm-4">通气户数:</label>
|
|
19
|
+
<div class="col-sm-6">
|
|
20
|
+
<input type="text" class="form-control" v-model="model.f_gas_number"
|
|
21
|
+
v-validate:f_gas_number='{required: true}'/>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-4 form-group" :class="[$v.f_notgas_number.required ? 'has-error' : '']">
|
|
25
|
+
<label class="control-label col-sm-3">未通气户数:</label>
|
|
26
|
+
<div class="col-sm-6">
|
|
27
|
+
<input type="text" class="form-control" v-model="model.f_notgas_number"
|
|
28
|
+
v-validate:f_notgas_number='{required: true}'/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4 form-group" :class="[$v.f_regulatoruser.required ? 'has-error' : '']">
|
|
32
|
+
<label class="control-label col-sm-6">调压人员</label>
|
|
33
|
+
<div class="col-sm-6">
|
|
34
|
+
<input type="text" class="form-control" v-model="model.f_regulatoruser"
|
|
35
|
+
v-validate:f_regulatoruser='{required: true}'/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-4 form-group">
|
|
39
|
+
<div class="col-sm-3"></div>
|
|
40
|
+
<div class="col-sm-7">
|
|
41
|
+
<input type="checkbox" class="" id="checkbox" v-model="model.f_fee_state"
|
|
42
|
+
v-validate:f_fee_state='{required: true }'/>
|
|
43
|
+
<label for="checkbox" class="font-size"
|
|
44
|
+
:class="[$v.f_fee_state.required ? 'text-danger' : '']">费用是否结清</label>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-12 form-group">
|
|
48
|
+
<label class="control-label col-sm-2">通气前安检情况:</label>
|
|
49
|
+
<div class="col-sm-9">
|
|
50
|
+
<textarea class="form-control" rows="3" v-model="model.f_gas_security"></textarea>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-12 form-group">
|
|
54
|
+
<label class="control-label col-sm-2">通气备注:</label>
|
|
55
|
+
<div class="col-sm-9">
|
|
56
|
+
<textarea class="form-control" rows="3" v-model="model.f_gas_remarks"></textarea>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="form-group col-sm-6">
|
|
60
|
+
<label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
|
|
61
|
+
<div class="col-sm-5" id="f_filiale">
|
|
62
|
+
<input class="form-control" type="text" v-model="model.f_filiale" disabled>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-6 form-group">
|
|
66
|
+
<label class="control-label col-sm-4">操作日期:</label>
|
|
67
|
+
<div class="col-sm-5">
|
|
68
|
+
<input type="text" class="form-control" disabled v-model="model.f_gas_date"/>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="col-sm-6 form-group">
|
|
72
|
+
<label class="control-label col-sm-4">部门:</label>
|
|
73
|
+
<div class="col-sm-5">
|
|
74
|
+
<input type="text" class="form-control" disabled v-model="model.f_gas_department"/>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-sm-6 form-group">
|
|
78
|
+
<label class="control-label col-sm-4">操作人:</label>
|
|
79
|
+
<div class="col-sm-5">
|
|
80
|
+
<input type="text" class="form-control" disabled v-model="model.f_gas_operator"/>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</form>
|
|
84
|
+
</validator>
|
|
85
|
+
<div class="from-group col-sm-12">
|
|
86
|
+
<center>
|
|
87
|
+
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
|
|
88
|
+
保存
|
|
89
|
+
</button>
|
|
90
|
+
<button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;">
|
|
91
|
+
提交
|
|
92
|
+
</button>
|
|
93
|
+
<button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
|
|
94
|
+
退回
|
|
95
|
+
</button>
|
|
96
|
+
</center>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
<script>
|
|
103
|
+
import co from 'co'
|
|
104
|
+
import * as Util from '../../../Util'
|
|
105
|
+
import AppData from '../../../../stores/AppData'
|
|
106
|
+
|
|
107
|
+
let gen = function* (self, val) {
|
|
108
|
+
// val.f_sub_state = ''
|
|
109
|
+
val.f_temp_date = Util.toStandardTimeString()
|
|
110
|
+
if (self.selectdata.defname === '工程结算') {
|
|
111
|
+
if (!val.f_fee_state && self.selectdata.defname === '工程结算') {
|
|
112
|
+
self.$showMessage("请结清费用再提交")
|
|
113
|
+
return
|
|
114
|
+
}
|
|
115
|
+
val.f_fee_state = val.f_fee_state[0]
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let data = {
|
|
119
|
+
tablename: 't_apply',
|
|
120
|
+
parameters: val
|
|
121
|
+
}
|
|
122
|
+
yield self.$resetpost('rs/logic/save', {data: data})
|
|
123
|
+
if (self.selectdata.defname === '工程结算' && self.selectdata.actdefid === '16') {
|
|
124
|
+
let data = {
|
|
125
|
+
model: {
|
|
126
|
+
f_processid: self.selectdata.f_process_id,
|
|
127
|
+
},
|
|
128
|
+
loginUser: {
|
|
129
|
+
id: self.$login.f.id,
|
|
130
|
+
name: self.$login.f.name,
|
|
131
|
+
ename: self.$login.f.ename
|
|
132
|
+
},
|
|
133
|
+
employeetemplate: self.selectdata.f_survey_name,
|
|
134
|
+
subdep: '提交'
|
|
135
|
+
}
|
|
136
|
+
self.$resetpost(`rs/logic/grantnext`,
|
|
137
|
+
{data: data})
|
|
138
|
+
.then(() => {
|
|
139
|
+
self.reset()
|
|
140
|
+
})
|
|
141
|
+
} else {
|
|
142
|
+
let data = {
|
|
143
|
+
model: {
|
|
144
|
+
f_processid: self.selectdata.f_process_id,
|
|
145
|
+
},
|
|
146
|
+
loginUser: {
|
|
147
|
+
id: self.$login.f.id,
|
|
148
|
+
name: self.$login.f.name,
|
|
149
|
+
ename: self.$login.f.ename
|
|
150
|
+
},
|
|
151
|
+
subdep: '提交'
|
|
152
|
+
}
|
|
153
|
+
self.$resetpost(`rs/logic/ignitionnext`,
|
|
154
|
+
{data: data})
|
|
155
|
+
.then(() => {
|
|
156
|
+
self.reset()
|
|
157
|
+
})
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
export default {
|
|
161
|
+
title: '通气点火',
|
|
162
|
+
data() {
|
|
163
|
+
return {
|
|
164
|
+
ffeestate: this.$appdata.getParam('用气类型'),
|
|
165
|
+
model: {
|
|
166
|
+
actid: ''
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
props: ['selectdata'],
|
|
171
|
+
ready() {
|
|
172
|
+
this.$nextTick(() => {
|
|
173
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
174
|
+
this.model.f_gas_date = this.$login.toStandardDateString()
|
|
175
|
+
this.model.f_gas_department = this.$login.f.f_parentname
|
|
176
|
+
this.model.f_gas_operator = this.$login.f.name
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
back() {
|
|
181
|
+
let data = {
|
|
182
|
+
model: {
|
|
183
|
+
f_processid: this.selectdata.f_process_id,
|
|
184
|
+
},
|
|
185
|
+
loginUser: {
|
|
186
|
+
id: this.$login.f.id,
|
|
187
|
+
name: this.$login.f.name,
|
|
188
|
+
ename: this.$login.f.ename
|
|
189
|
+
},
|
|
190
|
+
subdep: '退回'
|
|
191
|
+
}
|
|
192
|
+
this.$resetpost(`rs/logic/ignitionnext`,
|
|
193
|
+
{data: data})
|
|
194
|
+
.then(() => {
|
|
195
|
+
this.reset()
|
|
196
|
+
})
|
|
197
|
+
},
|
|
198
|
+
confirm() {
|
|
199
|
+
// // this.model.f_sub_state = '完成'
|
|
200
|
+
let data = {
|
|
201
|
+
tablename: 't_apply',
|
|
202
|
+
parameters: this.model
|
|
203
|
+
}
|
|
204
|
+
this.$resetpost('rs/logic/save', {data: data})
|
|
205
|
+
.then(() => {
|
|
206
|
+
this.reset()
|
|
207
|
+
})
|
|
208
|
+
},
|
|
209
|
+
commit() {
|
|
210
|
+
if (this.selectdata.defname === '工程结算') {
|
|
211
|
+
// this.model.f_sub_state = '完成'
|
|
212
|
+
}
|
|
213
|
+
let getGen = gen(this, this.model)
|
|
214
|
+
co(getGen)
|
|
215
|
+
},
|
|
216
|
+
reset() {
|
|
217
|
+
this.$dispatch('close')
|
|
218
|
+
this.$dispatch('selfsearch')
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
watch: {
|
|
222
|
+
'selectdata'() {
|
|
223
|
+
this.$nextTick(() => {
|
|
224
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
225
|
+
this.model.f_gas_date = this.$login.toStandardDateString()
|
|
226
|
+
this.model.f_gas_department = this.$login.f.f_parentname
|
|
227
|
+
this.model.f_gas_operator = this.$login.f.name
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
</script>
|
|
@@ -0,0 +1,379 @@
|
|
|
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="form-group col-sm-4" :class="[$v.meterbrand.required ? 'has-error select-error': '']">
|
|
11
|
+
<label class="col-sm-6 control-label">气表品牌:</label>
|
|
12
|
+
<div class="col-sm-6">
|
|
13
|
+
<input type="text" v-show="false" v-model="$refs.meterbrand.value" v-validate:meterbrand='{required: true}'/>
|
|
14
|
+
<v-select :is-all-line="true" v-ref:meterbrand
|
|
15
|
+
v-model="model.f_meter_brand"
|
|
16
|
+
placeholder="请选择"
|
|
17
|
+
:value.sync="model.f_meter_brand"
|
|
18
|
+
:options='brand'
|
|
19
|
+
close-on-select>
|
|
20
|
+
</v-select>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group col-sm-4" :class="[$v.meterstyle.required ? 'has-error select-error': '']">
|
|
24
|
+
<label for="f_meter_style" class="col-sm-4 control-label">气表型号:</label>
|
|
25
|
+
<div class="col-sm-6" id="f_meter_style">
|
|
26
|
+
<input type="text" v-show="false" v-model="$refs.meterstyle.value" v-validate:meterstyle='{required: true}'/>
|
|
27
|
+
<v-select :is-all-line="true" v-ref:meterstyle
|
|
28
|
+
v-model="model.f_meter_style"
|
|
29
|
+
placeholder="请选择"
|
|
30
|
+
:value.sync="model.f_meter_style"
|
|
31
|
+
:options='styled'
|
|
32
|
+
close-on-select>
|
|
33
|
+
</v-select>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="form-group col-sm-4">
|
|
37
|
+
<label for="f_manufacturers" class=" col-sm-3 control-label">气表厂家:</label>
|
|
38
|
+
<div class="col-sm-6" id="f_manufacturers">
|
|
39
|
+
<input class="form-control" type="text" :value.sync="model.f_manufacturers" v-model="model.f_manufacturers"
|
|
40
|
+
disabled/>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-12">
|
|
44
|
+
<div class="form-group col-sm-4">
|
|
45
|
+
<label for="f_meter_type" class=" col-sm-6 control-label">气表类型:</label>
|
|
46
|
+
<div class="col-sm-6">
|
|
47
|
+
<input class="form-control" type="text" :value.sync="model.f_meter_type" v-model="model.f_meter_type"
|
|
48
|
+
disabled/>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="form-group col-sm-4">
|
|
52
|
+
<label for="f_surnom" class=" col-sm-4 control-label">别名:</label>
|
|
53
|
+
<div class="col-sm-6">
|
|
54
|
+
<input class="form-control" type="text" :value.sync="model.f_alias" v-model="model.f_alias" disabled/>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="form-group col-sm-4" :class="[$v.f_regulator.required ? 'has-error': '']">
|
|
58
|
+
<label for="f_price_name" class=" col-sm-3 control-label">调压装置:</label>
|
|
59
|
+
<div class="col-sm-6">
|
|
60
|
+
<input class="form-control" type="text" v-model="model.f_regulator" v-validate:f_regulator='{required: true }'/>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-4">
|
|
65
|
+
<div class="col-sm-3"></div>
|
|
66
|
+
<div class="col-sm-7">
|
|
67
|
+
<input type="checkbox" class="" id="checkbox" v-model="model.f_ismaterial" v-validate:f_ismaterial='{required: true }'>
|
|
68
|
+
<label for="checkbox" class="font-size">材料是否已开</label>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group col-sm-4" :class="[$v.f_material_bill.required ? 'has-error': '']">
|
|
72
|
+
<label class="col-sm-4 control-label">材料开据号:</label>
|
|
73
|
+
<div class="col-sm-6">
|
|
74
|
+
<input type="text" class="form-control" v-model="model.f_material_bill" v-validate:f_material_bill='{required: true }'/>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="form-group col-sm-12">
|
|
78
|
+
<label class="col-sm-2">开材料备注</label>
|
|
79
|
+
<div class="col-sm-9">
|
|
80
|
+
<textarea class="form-control" rows="3" v-model="model.f_material_remarks"></textarea>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="form-group col-sm-12">
|
|
84
|
+
<label class="col-sm-2">其他备注</label>
|
|
85
|
+
<div class="col-sm-9">
|
|
86
|
+
<textarea class="form-control" rows="3" v-model="model.f_rest_remarks"></textarea>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="form-group col-sm-6">
|
|
90
|
+
<label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
|
|
91
|
+
<div class="col-sm-5" id="f_filiale">
|
|
92
|
+
<input class="form-control" type="text" v-model="model.f_filiale" disabled>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-6 form-group">
|
|
96
|
+
<label class="control-label col-sm-4">操作日期:</label>
|
|
97
|
+
<div class="col-sm-5">
|
|
98
|
+
<input type="text" class="form-control" disabled v-model="model.f_meter_date"/>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-sm-6 form-group">
|
|
102
|
+
<label class="control-label col-sm-4">部门:</label>
|
|
103
|
+
<div class="col-sm-5">
|
|
104
|
+
<input type="text" class="form-control" disabled v-model="model.f_meter_department"/>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-6 form-group">
|
|
108
|
+
<label class="control-label col-sm-4">操作人:</label>
|
|
109
|
+
<div class="col-sm-5">
|
|
110
|
+
<input type="text" class="form-control" disabled v-model="model.f_meter_operator"/>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</form>
|
|
114
|
+
</validator>
|
|
115
|
+
<div class="from-group col-sm-12">
|
|
116
|
+
<center>
|
|
117
|
+
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
|
|
118
|
+
保存
|
|
119
|
+
</button>
|
|
120
|
+
<button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;">
|
|
121
|
+
提交
|
|
122
|
+
</button>
|
|
123
|
+
<button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
|
|
124
|
+
退回
|
|
125
|
+
</button>
|
|
126
|
+
</center>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</template>
|
|
130
|
+
<script>
|
|
131
|
+
import co from 'co'
|
|
132
|
+
import * as Util from '../../../Util'
|
|
133
|
+
import {HttpResetClass} from 'vue-client'
|
|
134
|
+
|
|
135
|
+
let gen = function * (self, val) {
|
|
136
|
+
val.f_sub_state = ''
|
|
137
|
+
val.f_temp_date = Util.toStandardTimeString()
|
|
138
|
+
val.f_meter_brand = typeof val.f_meter_brand === 'object' ? val.f_meter_brand[0] : ''
|
|
139
|
+
val.f_meter_style = typeof val.f_meter_style === 'object' ? val.f_meter_style[0] : ''
|
|
140
|
+
let data ={
|
|
141
|
+
tablename:'t_apply',
|
|
142
|
+
parameters:val
|
|
143
|
+
}
|
|
144
|
+
yield self.$resetpost('rs/logic/save', {data:data})
|
|
145
|
+
if(self.selectdata.defname==='方案审核'&&self.selectdata.actdefid === '5'){
|
|
146
|
+
let data = {
|
|
147
|
+
model: {
|
|
148
|
+
f_processid: self.selectdata.f_process_id,
|
|
149
|
+
},
|
|
150
|
+
loginUser: {
|
|
151
|
+
id: self.$login.f.id,
|
|
152
|
+
name: self.$login.f.name,
|
|
153
|
+
ename: self.$login.f.ename
|
|
154
|
+
},
|
|
155
|
+
employeetemplate : self.selectdata.f_survey_name,
|
|
156
|
+
subdep: '提交'
|
|
157
|
+
}
|
|
158
|
+
self.$resetpost(`rs/logic/grantnext`,
|
|
159
|
+
{data: data})
|
|
160
|
+
.then(() => {
|
|
161
|
+
self.reset()
|
|
162
|
+
})
|
|
163
|
+
}else {
|
|
164
|
+
let data = {
|
|
165
|
+
model: {
|
|
166
|
+
f_processid: self.selectdata.f_process_id,
|
|
167
|
+
},
|
|
168
|
+
loginUser: {
|
|
169
|
+
id: self.$login.f.id,
|
|
170
|
+
name: self.$login.f.name,
|
|
171
|
+
ename: self.$login.f.ename
|
|
172
|
+
},
|
|
173
|
+
subdep: '提交'
|
|
174
|
+
}
|
|
175
|
+
self.$resetpost(`rs/logic/metertypenext`,
|
|
176
|
+
{data: data})
|
|
177
|
+
.then(() => {
|
|
178
|
+
self.reset()
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
}
|
|
183
|
+
export default {
|
|
184
|
+
title: '定表型',
|
|
185
|
+
data () {
|
|
186
|
+
return {
|
|
187
|
+
flag:false,
|
|
188
|
+
model: {
|
|
189
|
+
actid: ''
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
props: ['selectdata'],
|
|
194
|
+
ready () {
|
|
195
|
+
this.load()
|
|
196
|
+
// this.flag = this.$ApplyLoadParams.loadParam()
|
|
197
|
+
// this.$nextTick(() => {
|
|
198
|
+
// this.setselect()
|
|
199
|
+
// })
|
|
200
|
+
},
|
|
201
|
+
methods: {
|
|
202
|
+
async load(){
|
|
203
|
+
await this.$ApplyLoadParams.loadParam()
|
|
204
|
+
this.flag = true
|
|
205
|
+
},
|
|
206
|
+
back() {
|
|
207
|
+
let data = {
|
|
208
|
+
model: {
|
|
209
|
+
f_processid: this.selectdata.f_process_id,
|
|
210
|
+
},
|
|
211
|
+
loginUser: {
|
|
212
|
+
id: this.$login.f.id,
|
|
213
|
+
name: this.$login.f.name,
|
|
214
|
+
ename: this.$login.f.ename
|
|
215
|
+
},
|
|
216
|
+
subdep: '退回'
|
|
217
|
+
}
|
|
218
|
+
this.$resetpost(`rs/logic/metertypenext`,
|
|
219
|
+
{data: data})
|
|
220
|
+
.then(() => {
|
|
221
|
+
this.reset()
|
|
222
|
+
})
|
|
223
|
+
},
|
|
224
|
+
confirm() {
|
|
225
|
+
this.model.f_meter_brand = typeof this.model.f_meter_brand ? this.model.f_meter_brand[0] : ''
|
|
226
|
+
this.model.f_meter_style = typeof this.model.f_meter_style ? this.model.f_meter_style[0] : ''
|
|
227
|
+
let data ={
|
|
228
|
+
tablename:'t_apply',
|
|
229
|
+
parameters:this.model
|
|
230
|
+
}
|
|
231
|
+
this.$resetpost('rs/logic/save', {data:data})
|
|
232
|
+
.then(() => {
|
|
233
|
+
this.reset()
|
|
234
|
+
})
|
|
235
|
+
},
|
|
236
|
+
async commit () {
|
|
237
|
+
let getGen = gen(this, this.model)
|
|
238
|
+
co(getGen)
|
|
239
|
+
|
|
240
|
+
// 与营收关联
|
|
241
|
+
let http = new HttpResetClass()
|
|
242
|
+
// 查户档案
|
|
243
|
+
let data = {
|
|
244
|
+
tablename: 't_userinfo',
|
|
245
|
+
condition: " f_process_id='" + this.selectdata.f_process_id + "'"
|
|
246
|
+
}
|
|
247
|
+
let res = await http.load('POST','rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取档案信息失败'})
|
|
248
|
+
let userinfos = []
|
|
249
|
+
userinfos = res.data
|
|
250
|
+
// 查品牌id
|
|
251
|
+
this.model.f_meter_brand = typeof this.model.f_meter_brand ==='object'?this.model.f_meter_brand[0]:this.model.f_meter_brand
|
|
252
|
+
this.model.f_manufacturers = typeof this.model.f_manufacturers ==='object'?this.model.f_manufacturers[0]:this.model.f_manufacturers
|
|
253
|
+
this.model.f_meter_type = typeof this.model.f_meter_type ==='object'?this.model.f_meter_type[0]:this.model.f_meter_type
|
|
254
|
+
data = {
|
|
255
|
+
tablename: 't_gasbrand',
|
|
256
|
+
condition: ` f_meter_brand='${this.model.f_meter_brand}' and f_manufacturers = '${this.model.f_manufacturers}' and f_meter_type = '${this.model.f_meter_type}'`
|
|
257
|
+
}
|
|
258
|
+
http = new HttpResetClass()
|
|
259
|
+
let t_gasbrand = await http.load('POST','rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取表品牌id失败'})
|
|
260
|
+
let f_gasbrand_id = t_gasbrand.data[0].id
|
|
261
|
+
// 查气表型号id
|
|
262
|
+
this.model.f_meter_style = typeof this.model.f_meter_style ==='object'?this.model.f_meter_style[0]:this.model.f_meter_style
|
|
263
|
+
data = {
|
|
264
|
+
tablename: 't_gasmodel',
|
|
265
|
+
condition: ` f_gasbrand_id='${f_gasbrand_id}'`
|
|
266
|
+
}
|
|
267
|
+
http = new HttpResetClass()
|
|
268
|
+
let t_gasmodel = await http.load('POST','rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取气表型号id失败'})
|
|
269
|
+
let f_gasmodel_id = 0
|
|
270
|
+
for(let i =0;i<t_gasmodel.data.length;i++){
|
|
271
|
+
if(this.model.f_meter_style==(t_gasmodel.data[i].f_meter_style+t_gasmodel.data[i].f_type)){
|
|
272
|
+
f_gasmodel_id = t_gasmodel.data[i].id
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// 户档案已经建好
|
|
276
|
+
if(userinfos.length){
|
|
277
|
+
data ={
|
|
278
|
+
userinfos:userinfos, // 户档案信息
|
|
279
|
+
f_whether_hairpin: '无卡',
|
|
280
|
+
f_meter_classify: this.model.f_meter_type,
|
|
281
|
+
f_gasbrand_id: f_gasbrand_id,
|
|
282
|
+
f_gasmodel_id: f_gasmodel_id,
|
|
283
|
+
f_table_state: '正常',
|
|
284
|
+
f_filiale: this.$login.f.f_fengongsi,
|
|
285
|
+
f_outlets: this.$login.f.f_parentname,
|
|
286
|
+
f_orgstr: this.$login.f.orgpathstr,
|
|
287
|
+
f_filialeids: this.$login.f.f_orgids,
|
|
288
|
+
f_filialeid: this.$login.f.f_orgids.split('.')[this.$login.f.f_orgids.split('.').length-2]+'.',
|
|
289
|
+
f_operator : this.$login.f.name
|
|
290
|
+
}
|
|
291
|
+
http = new HttpResetClass()
|
|
292
|
+
await http.load('POST','rs/logic/buildmeterfiles', {data: data}, {resolveMsg: null, rejectMsg: '建表档案失败'})
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
},
|
|
296
|
+
reset () {
|
|
297
|
+
this.$dispatch('close')
|
|
298
|
+
this.$dispatch('selfsearch')
|
|
299
|
+
},
|
|
300
|
+
setselect () {
|
|
301
|
+
this.selectdata.f_meter_brand = this.selectdata.f_meter_brand ? this.selectdata.f_meter_brand : this.model.f_meter_brand
|
|
302
|
+
this.selectdata.f_meter_style = this.selectdata.f_meter_style ? this.selectdata.f_meter_style : this.model.f_meter_style
|
|
303
|
+
let val = this.model.f_meter_brand[0]
|
|
304
|
+
this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
|
|
305
|
+
if (val === item.f_meter_brand) {
|
|
306
|
+
this.model.f_meter_type = item.f_meter_type
|
|
307
|
+
this.model.f_manufacturers = item.f_manufacturers
|
|
308
|
+
this.model.f_alias = item.f_alias
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
this.model = Object.assign({}, this.model, this.selectdata)
|
|
312
|
+
this.model.f_meter_date = this.$login.toStandardDateString()
|
|
313
|
+
this.model.f_meter_department = this.$login.f.f_parentname
|
|
314
|
+
this.model.f_meter_operator = this.$login.f.name
|
|
315
|
+
// this.model.f_meter_brand = [this.model.f_meter_brand]
|
|
316
|
+
// this.model.f_meter_style = [this.model.f_meter_style]
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
watch: {
|
|
320
|
+
// 'selectdata'() {
|
|
321
|
+
// this.$nextTick(() => {
|
|
322
|
+
// this.setselect()
|
|
323
|
+
// })
|
|
324
|
+
// },
|
|
325
|
+
'flag'(){
|
|
326
|
+
if(this.flag){
|
|
327
|
+
|
|
328
|
+
this.$nextTick(() => {
|
|
329
|
+
this.setselect()
|
|
330
|
+
})
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
'model.f_meter_brand[0]'() {
|
|
334
|
+
let val = this.model.f_meter_brand[0]
|
|
335
|
+
this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
|
|
336
|
+
if (val === item.label) {
|
|
337
|
+
this.model.f_meter_type = item.value.f_meter_type
|
|
338
|
+
this.model.f_manufacturers = item.value.f_manufacturers
|
|
339
|
+
this.model.f_alias = item.value.f_alias
|
|
340
|
+
}
|
|
341
|
+
})
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
computed: {
|
|
345
|
+
brand () {
|
|
346
|
+
let arr = []
|
|
347
|
+
let flag = this.flag
|
|
348
|
+
if(flag){
|
|
349
|
+
this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
|
|
350
|
+
let temp = {}
|
|
351
|
+
temp.label = item.label
|
|
352
|
+
temp.value = item.label
|
|
353
|
+
arr.push(temp)
|
|
354
|
+
})
|
|
355
|
+
}
|
|
356
|
+
return arr
|
|
357
|
+
},
|
|
358
|
+
styled() {
|
|
359
|
+
let arr = []
|
|
360
|
+
let temp = this.model.f_meter_brand
|
|
361
|
+
if (temp) {
|
|
362
|
+
this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
|
|
363
|
+
let temp2 = item.value
|
|
364
|
+
if (item.value.f_meter_brand == temp) {
|
|
365
|
+
let gasStyles = temp2.gasmodel
|
|
366
|
+
for (var i = 0; i < gasStyles.length; i++) {
|
|
367
|
+
let tempp = {}
|
|
368
|
+
tempp.label = gasStyles[i].label
|
|
369
|
+
tempp.value = gasStyles[i].label
|
|
370
|
+
arr.push(tempp)
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
return arr
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
</script>
|