sale-client 3.5.5 → 3.5.7-dg
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/.babelrc +5 -5
- package/build/dev-server.js +7 -7
- package/package.json +4 -4
- package/src/components/FilesManage/FileUserFiles.vue +22 -9
- package/src/components/FilesManage/MeterinfoTest.vue +17 -6
- package/src/components/FilesManage/UserEssentialInfoTest.vue +13 -6
- package/src/components/FilesManage/UserGeneralInfoTest.vue +17 -5
- package/src/components/FilesManage/UserMeterInfoTest.vue +3 -2
- package/src/components/UserFiles/AdjustableBox/AddBox.vue +51 -49
- package/src/components/charge/ChargeList.vue +78 -57
- package/src/components/charge/ChargeManage.vue +13 -13
- package/src/components/charge/ChargeOper.vue +19 -2
- package/src/components/charge/business/CardMeterCenter.vue +0 -1
- package/src/components/charge/business/FilesComplete.vue +2 -1
- package/src/components/charge/business/NoCardMeterCenter.vue +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +3 -2
- package/src/components/chargeBatch/ChargeBatchList.vue +2 -2
- package/src/components/chargeBatch/ChargeManageBatch.vue +1 -1
- package/src/components/chargeBatch/ChargeManageGroup.vue +1 -1
- package/src/components/chargeNew/ChargeManageNew.vue +1 -1
- package/src/components/chargeNew/thirdSurplus.vue +1 -1
- package/src/components/common/userinfo_detail/TableUsageChart.vue +81 -0
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +25 -8
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +3 -0
- package/src/components/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +14 -14
- package/src/components/common/userinfo_detail/ic_detail/ChargeRecordQuery.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +3 -3
- package/src/components/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +4 -0
- package/src/components/common/userinfo_detail/ic_detail/MeterParam.vue +42 -3
- package/src/components/common/userinfo_detail/iot_detail/QueryInstruct.vue +24 -3
- package/src/components/revenue/Common/Movemeter.vue +1 -1
- package/src/components/revenue/Common/PrintBill.vue +5 -2
- package/src/components/revenue/HandManager/MbpeopleList.vue +9 -9
- package/src/components/revenue/HandManager/meterbookEntry.vue +7 -2
- package/src/components/revenue/HandManager/openEticket/HasOpenReceipt.vue +1 -0
- package/src/components/revenue/base/leftview/CheckGas.vue +55 -0
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +1 -1
- package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -1
- package/src/components/revenue/base/leftview/otherinfo.vue +10 -2
- package/src/components/revenue/base/rightview/CardList.vue +19 -17
- package/src/components/revenue/base/rightview/carddetail/GarbageDetail.vue +59 -0
- package/src/components/revenue/cardHandManage/cardDown.vue +1112 -0
- package/src/components/revenue/cardHandManage/cardHandManager.vue +6 -5
- package/src/components/revenue/cardHandManage/cardsHand.vue +643 -1364
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPaymentConstrast.vue +286 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPaymentnew.vue +52 -0
- package/src/components/revenue/comprehen/ComprehenOperation/FeeDeduction/feeDeduction.vue +11 -13
- package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +7 -1
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ResetMeter.vue +969 -0
- package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +31 -32
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +22 -22
- package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +16 -16
- package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +28 -0
- package/src/components/revenue/comprehen/StairPrice/GasPrice.vue +7 -3
- package/src/components/revenue/comprehen/StairPrice/GasPriceUser.vue +73 -40
- package/src/components/revenue/comprehen/batch/batchUserList.vue +2 -2
- package/src/components/revenue/comprehen/common/ImportExcel.vue +9 -6
- package/src/components/revenue/comprehen/common/JSONParse.vue +54 -0
- package/src/components/revenue/comprehen/gasbrand/AddGasBrand.vue +8 -5
- package/src/components/revenue/comprehen/gasbrand/AddUseringOrg.vue +76 -71
- package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +2 -0
- package/src/components/revenue/concentrator/ncArchivesList.vue +4 -4
- package/src/components/revenue/concentrator/ncUserfilesList2.vue +11 -0
- package/src/components/revenue/invoiceuse/{ChargeList.vue → InvoiceChargeList.vue} +0 -0
- package/src/components/revenue/invoiceuse/InvoiceEntry.vue +2 -3
- package/src/components/revenue/invoiceuse/InvoiceUse.vue +12 -0
- package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
- package/src/components/revenue/machineHandManage/machineHand.vue +143 -2
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +98 -2
- package/src/components/webMeter/paramSave/ParamSet.vue +78 -81
- package/src/components/webMeter/paramSave/ParamSetForm.vue +343 -344
- package/src/components/webMeter/paramSaveNew/ParamHistory.vue +115 -0
- package/src/components/webMeter/paramSaveNew/ParamSet.vue +594 -0
- package/src/components/webMeter/paramSaveNew/ParamSetDefault.vue +221 -0
- package/src/components/webMeter/paramSaveNew/ParamSetDefaultList.vue +68 -0
- package/src/components/webMeter/paramSaveNew/ParamSetForm.vue +437 -0
- package/src/components/webMeter/paramSaveNew/RadioBtn.vue +35 -0
- package/src/components/webMeter/webInfo/WebMeterList.vue +26 -13
- package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -0
- package/src/filiale/dongguan/components/HighMeterCard.vue +1068 -0
- package/src/filiale/dongguan/components/common/userinfo_detail/UserBaseInfoNew.vue +478 -0
- package/src/filiale/dongguan/components/comprehen/StairPrice/GasPrice.vue +518 -0
- package/src/filiale/dongguan/components/meterinfodetail.vue +243 -0
- package/src/filiale/dongguan/sale.js +15 -0
- package/src/filiale/fugu/MeterinfoTest.vue +2 -2
- package/src/filiale/gaomi/components/charge/ChargeManage.vue +5 -5
- package/src/filiale/gongyi/charge/ChargeManage.vue +1 -1
- package/src/filiale/gongyi/charge/business/machine/MachineCharge.vue +1 -1
- package/src/filiale/gongyi/charge/business/machine/MachineMeterCenter.vue +3 -3
- package/src/filiale/gongyi/charge/business/machine/OweDetailList.vue +3 -3
- package/src/filiale/gongyi/charge/business/machine/OweList.vue +2 -2
- package/src/filiale/gongyi/revenue/comprehen/StairPrice/GasPrice.vue +6 -0
- package/src/filiale/gongyi/revenue/comprehen/ovdue/Overduetax.vue +8 -8
- package/src/filiale/gongyi/revenue/comprehen/ovdue/OverduetaxPrintBill.vue +1 -1
- package/src/filiale/gongyi/sale.js +1 -1
- package/src/filiale/guangxi/CardChangeFill.vue +595 -0
- package/src/filiale/guangxi/CardMeterCenter.vue +893 -0
- package/src/filiale/{WEINAN → guangxi}/CardMeterChargeCancel.vue +22 -29
- package/src/filiale/guangxi/CardService.js +1039 -0
- package/src/filiale/guangxi/ChangeSendCard.vue +23 -0
- package/src/filiale/guangxi/OtherGas.vue +409 -0
- package/src/filiale/guangxi/ShowCardSellGas.vue +899 -0
- package/src/filiale/guangxi/UnWriteCardCenter.vue +112 -0
- package/src/filiale/guangxi/sale.js +15 -0
- package/src/filiale/jinjiang/ChargeManage.vue +1 -1
- package/src/filiale/jinjiang/MachineMeterCenter.vue +1 -1
- package/src/filiale/kelai/CardMeterCenter.vue +919 -0
- package/src/filiale/kelai/GarbageCharge.vue +205 -0
- package/src/filiale/{WEINAN → kelai}/IOTMeterCenter.vue +323 -315
- package/src/filiale/kelai/MachineMeterCenter.vue +705 -0
- package/src/filiale/kelai/MeterinfoTest.vue +952 -0
- package/src/filiale/kelai/UserEssentialInfoTest.vue +341 -0
- package/src/filiale/kelai/UserfilesList.vue +293 -0
- package/src/filiale/kelai/sale.js +17 -0
- package/src/filiale/konggang/ChargeList.vue +897 -0
- package/src/filiale/konggang/FileUserFiles.vue +990 -0
- package/src/filiale/konggang/StockListmain.vue +479 -0
- package/src/filiale/{WEINAN → konggang}/UserEssentialInfoTest.vue +59 -116
- package/src/filiale/{WEINAN → konggang}/UserGeneralInfoTest.vue +277 -140
- package/src/filiale/konggang/sale.js +11 -1
- package/src/filiale/liaoyuan/ChargeManage.vue +13 -13
- package/src/filiale/liaoyuan/Overduetax.vue +5 -5
- package/src/filiale/liaoyuan/PriceAdjustment.vue +6 -5
- package/src/filiale/liaoyuan/sale.js +1 -1
- package/src/filiale/macheng/ChargeManage.vue +1 -1
- package/src/filiale/macheng/FilesManageNew/MeterinfoTest.vue +35 -18
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +2 -2
- package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +1 -1
- package/src/filiale/macheng/MachineMeterCenter.vue +1 -1
- package/src/filiale/macheng/MeterinfoTest.vue +33 -17
- package/src/filiale/meihekou/CardHand.vue +18 -18
- package/src/filiale/meihekou/ChargeManage.vue +2 -2
- package/src/filiale/meihekou/MachineCharge.vue +1 -1
- package/src/filiale/meihekou/MeterinfoTest.vue +3 -3
- package/src/filiale/meihekou/sale.js +1 -0
- package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +9 -9
- package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +2 -2
- package/src/filiale/qianneng/FilesManageNew/UserGeneralInfoTest.vue +5 -1
- package/src/filiale/qianneng/GasPrice.vue +12 -6
- package/src/filiale/qianneng/HandManager.vue +8 -8
- package/src/filiale/qianneng/HighMeterIdCard.vue +25 -17
- package/src/filiale/qianneng/MachineCharge.vue +1 -1
- package/src/filiale/qianneng/js/WsUtil.js +191 -180
- package/src/filiale/qianneng/js/hignmeter.js +11 -1
- package/src/filiale/qianneng/machine/ArrearsQuery.vue +3 -3
- package/src/filiale/qianneng/machine/MachineMeterCenter.vue +3 -3
- package/src/filiale/qianneng/revenue/ChargeManage.vue +1 -1
- package/src/filiale/qianneng/revenue/machineHandManage/machineHand.vue +1 -1
- package/src/filiale/qingtongxia/HandManager/HandManager.vue +2 -2
- package/src/filiale/rizhao/ChargeQueryUser.vue +1 -1
- package/src/filiale/rizhao/MeterinfoTest.vue +2 -2
- package/src/filiale/rizhao/UserBaseInfoNew.vue +440 -0
- package/src/filiale/rizhao/sale.js +2 -1
- package/src/filiale/rongcheng/ChargeManage.vue +2 -2
- package/src/filiale/rongchuang/handListMaintain.vue +639 -0
- package/src/filiale/rongchuang/handOperate.vue +454 -0
- package/src/filiale/rongchuang/sale.js +10 -9
- package/src/filiale/shanggao/MeterinfoTest.vue +2 -2
- package/src/filiale/shaoguan/FilesManageNew/UserGeneralInfoTest.vue +3 -1
- package/src/filiale/shaoguan/MachineMeterCenter.vue +3 -3
- package/src/filiale/shaoguan/UserEssentialInfoTest.vue +3 -2
- package/src/filiale/shaoguan/charge/ChargeManage.vue +1 -1
- package/src/filiale/shaoguan/handListMaintain.vue +11 -11
- package/src/filiale/shaoguan/sale.js +2 -1
- package/src/filiale/tongchuan/CardMeterCenter.vue +915 -0
- package/src/filiale/tongchuan/ChargeManage.vue +3 -4
- package/src/filiale/tongchuan/HandManager.vue +13 -1
- package/src/filiale/tongchuan/StairPrice/GasPrice.vue +6 -0
- package/src/filiale/tongchuan/StairPrice/GasPriceUser.vue +71 -38
- package/src/filiale/tongchuan/UserBaseInfoNew.vue +14 -5
- package/src/filiale/tongchuan/base/otherinfo.vue +7 -1
- package/src/filiale/tongchuan/common/userinfo_detail/UserInfoDetailManageNew.vue +3 -0
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MeterParam.vue +24 -4
- package/src/filiale/tongchuan/common/userinfo_detail/iot_detail/WatchCollection.vue +4 -4
- package/src/filiale/tongchuan/sale.js +2 -1
- package/src/filiale/wuan/charge/ChargeManage.vue +2 -2
- package/src/filiale/wuhai/MeterinfoTest.vue +2 -2
- package/src/filiale/xinkang/MeterinfoTest.vue +952 -0
- package/src/filiale/xinkang/sale.js +3 -1
- package/src/filiale/zhongyi/FileUserFiles.vue +16 -19
- package/src/filiale/zhongyi/MeterinfoTest.vue +2 -2
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +3 -1
- package/src/plugins/CommonService.js +2 -0
- package/src/plugins/FileManageService.js +2 -2
- package/src/plugins/LogicService.js +8 -2
- package/src/plugins/MachineChargeService.js +2 -0
- package/src/sale.js +30 -6
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/src/filiale/WEINAN/AutomaticPurse.vue +0 -304
- package/src/filiale/WEINAN/CardList.vue +0 -497
- package/src/filiale/WEINAN/CardMeterCenter.vue +0 -819
- package/src/filiale/WEINAN/ChangeMeter.vue +0 -737
- package/src/filiale/WEINAN/ChargeList.vue +0 -1006
- package/src/filiale/WEINAN/ChargeManageNew.vue +0 -232
- package/src/filiale/WEINAN/ChargeQueryUser.vue +0 -331
- package/src/filiale/WEINAN/ChargeRecordQuery.vue +0 -73
- package/src/filiale/WEINAN/DisableManage.vue +0 -63
- package/src/filiale/WEINAN/EnableManage.vue +0 -142
- package/src/filiale/WEINAN/FileAddressManage.vue +0 -112
- package/src/filiale/WEINAN/FileUserAddress.vue +0 -785
- package/src/filiale/WEINAN/HighMeter.vue +0 -1090
- package/src/filiale/WEINAN/MachineMeterCenter.vue +0 -595
- package/src/filiale/WEINAN/MeterMessage.vue +0 -131
- package/src/filiale/WEINAN/MeterinfoTest.vue +0 -584
- package/src/filiale/WEINAN/OffGasAddGas.vue +0 -213
- package/src/filiale/WEINAN/OtherGas.vue +0 -351
- package/src/filiale/WEINAN/OverUseCharge.vue +0 -412
- package/src/filiale/WEINAN/RecordCancel.vue +0 -302
- package/src/filiale/WEINAN/RecordQueryUser.vue +0 -253
- package/src/filiale/WEINAN/ReplaceCardManage.vue +0 -408
- package/src/filiale/WEINAN/ShowCardSellGas.vue +0 -842
- package/src/filiale/WEINAN/Stairinfo.vue +0 -157
- package/src/filiale/WEINAN/TransferManage.vue +0 -370
- package/src/filiale/WEINAN/UserBaseInfoNew.vue +0 -325
- package/src/filiale/WEINAN/UserInfoDetailManageNew.vue +0 -150
- package/src/filiale/WEINAN/Userinfo.vue +0 -82
- package/src/filiale/WEINAN/gasmove.vue +0 -243
- package/src/filiale/WEINAN/meterinfodetail.vue +0 -104
- package/src/filiale/WEINAN/plugins/FileManageService.js +0 -362
- package/src/filiale/WEINAN/plugins/getTimeService.js +0 -87
- package/src/filiale/WEINAN/sale.js +0 -55
- package/src/filiale/WEINAN/sale.js~Stashed changes +0 -29
- package/src/filiale/WEINAN/static/mainicon//347/237/251/345/275/2421828.png +0 -0
- package/yarn-error.log +0 -9224
package/.babelrc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": ["es2015", "stage-2"],
|
|
3
|
-
"plugins": ["transform-runtime"],
|
|
4
|
-
"comments": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": ["es2015", "stage-2"],
|
|
3
|
+
"plugins": ["transform-runtime"],
|
|
4
|
+
"comments": false
|
|
5
|
+
}
|
package/build/dev-server.js
CHANGED
|
@@ -10,16 +10,16 @@ var compiler = webpack(config)
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
13
|
+
var bendi = 'http://192.168.50.4:8400/', bendi1 = 'http://121.36.106.17:8400/'
|
|
14
14
|
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://192.168.50.4:8400'
|
|
15
|
+
var fuwu = 'http://192.168.50.4:8400/'
|
|
16
16
|
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
|
-
|
|
17
|
+
// 铜川正式
|
|
18
18
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
19
|
-
|
|
19
|
+
// 铜川测试
|
|
20
20
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
21
21
|
// var fuwu = 'http://60.222.250.39:8300/'
|
|
22
|
-
|
|
22
|
+
// 韶关
|
|
23
23
|
// var fuwu = 'http://119.146.1.106:8300/'
|
|
24
24
|
// 巩义测试服务
|
|
25
25
|
// var fuwu = 'http://192.168.0.227:8400'
|
|
@@ -54,7 +54,7 @@ var proxyTable = {
|
|
|
54
54
|
'/rs/logic/getSaleInitData': {
|
|
55
55
|
target: fuwu
|
|
56
56
|
},
|
|
57
|
-
'/invoice':{
|
|
57
|
+
'/invoice': {
|
|
58
58
|
target: fuwu
|
|
59
59
|
},
|
|
60
60
|
// 用户登录服务地址
|
|
@@ -95,7 +95,7 @@ var proxyTable = {
|
|
|
95
95
|
target: fuwu
|
|
96
96
|
},
|
|
97
97
|
'/webmeter': {
|
|
98
|
-
target:
|
|
98
|
+
target: fuwu
|
|
99
99
|
},
|
|
100
100
|
'/rs': {
|
|
101
101
|
// target: 'http://192.168.30.63:8081/'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sale-client",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7-dg",
|
|
4
4
|
"description": "收费模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"yarn": "^1.22.10"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"address-client": "3.2.
|
|
28
|
+
"address-client": "3.2.29",
|
|
29
29
|
"axios": "0.15.3",
|
|
30
30
|
"babel-core": "^6.0.0",
|
|
31
31
|
"babel-loader": "^6.0.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"sinon-chai": "^2.8.0",
|
|
87
87
|
"style": "0.0.3",
|
|
88
88
|
"style-loader": "^0.20.3",
|
|
89
|
-
"system-clients": "3.2.
|
|
89
|
+
"system-clients": "3.2.25",
|
|
90
90
|
"url-loader": "^0.5.7",
|
|
91
|
-
"vue-client": "1.24.
|
|
91
|
+
"vue-client": "1.24.67",
|
|
92
92
|
"vue-clipboard2": "0.3.1",
|
|
93
93
|
"vue-hot-reload-api": "^1.2.0",
|
|
94
94
|
"vue-html-loader": "^1.0.0",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
class="form-group button-range">
|
|
43
43
|
<!--<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.showFileInfo()">查看批量状态-->
|
|
44
44
|
<!--</button>-->
|
|
45
|
+
<button class="button_search button_spacing" type="button" @click="$parent.$parent.goChargeManage()">去收费</button>
|
|
45
46
|
|
|
46
47
|
<button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
|
|
47
48
|
style="float: right">查询
|
|
@@ -57,8 +58,6 @@
|
|
|
57
58
|
<button @click="$parent.$parent.importFile" class="button_export button_spacing"
|
|
58
59
|
style="float: right" v-if="false">导入
|
|
59
60
|
</button>
|
|
60
|
-
<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
|
|
61
|
-
</button>
|
|
62
61
|
<!-- <button class="button_search" style="width: 90px" @click=" $parent.$parent.selectaddress()">选择地址</button>-->
|
|
63
62
|
<button @click="$parent.$parent.xiaohu()"
|
|
64
63
|
class="button_delete button_spacing"
|
|
@@ -66,6 +65,7 @@
|
|
|
66
65
|
v-if="$parent.$parent.rows && $parent.$parent.rows.length > 1 && this.$login.r.includes('批量销户')">
|
|
67
66
|
批量销户
|
|
68
67
|
</button>
|
|
68
|
+
<import-excel v-if="$parent.$parent.bacthPin === '销户导入'" template-btn-name= "销户模板" template-name= "销户模板" btn-name="导入销户" logic-name="batchpinusers" import-json="pinuser.json"></import-excel>
|
|
69
69
|
<button @click="$parent.$parent.bulkOperations('批量销户', 'batch-cancellation')"
|
|
70
70
|
class="button_delete button_spacing"
|
|
71
71
|
style="float: right"
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
<div
|
|
230
230
|
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
231
|
-
class="form-group"
|
|
231
|
+
class="form-group" >
|
|
232
232
|
<label class="font_normal_body">使用类型</label>
|
|
233
233
|
<v-select :options='$parent.$parent.useoptions' :search='true'
|
|
234
234
|
:value.sync="model.f_usetype"
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
</div>
|
|
239
239
|
<div
|
|
240
240
|
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
241
|
-
class="form-group"
|
|
241
|
+
class="form-group" >
|
|
242
242
|
<label class="font_normal_body">用户等级</label>
|
|
243
243
|
<v-select :options='$parent.$parent.userlevel' :search='true'
|
|
244
244
|
:value.sync="model.userlevel"
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
</div>
|
|
249
249
|
<div
|
|
250
250
|
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
251
|
-
class="form-group"
|
|
251
|
+
class="form-group" >
|
|
252
252
|
<label class="font_normal_body">工业备注</label>
|
|
253
253
|
<v-select :options='$parent.$parent.industrycomments' :value.sync="model.f_gongye_type"
|
|
254
254
|
close-on-select condition="f_gongye_type='{}'"
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
<th v-if="!$parent.$parent.$parent.createFile">
|
|
332
332
|
<nobr>状态</nobr>
|
|
333
333
|
</th>
|
|
334
|
-
<th
|
|
334
|
+
<th >
|
|
335
335
|
<nobr>用户等级</nobr>
|
|
336
336
|
</th>
|
|
337
337
|
<!--<th>-->
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
<td style="text-align: center;">{{row.f_whether_hairpin}}</td>
|
|
363
363
|
<td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_userfiles_address}}</td>
|
|
364
364
|
<td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_state}}</td>
|
|
365
|
-
<td style="text-align: center;"
|
|
365
|
+
<td style="text-align: center;" >{{row.f_user_level}}</td>
|
|
366
366
|
<td style="text-align: center;">
|
|
367
367
|
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
368
368
|
v-if="row.f_user_state === '正常' || row.f_user_state==='预备'"
|
|
@@ -405,9 +405,11 @@
|
|
|
405
405
|
<footer slot="modal-footer" class="modal-footer">
|
|
406
406
|
</footer>
|
|
407
407
|
</modal>
|
|
408
|
-
<modal :show.sync="batchMeterShow" width="
|
|
408
|
+
<modal :show.sync="batchMeterShow" width="570px" title="文件导入" v-ref:modal large backdrop="false">
|
|
409
409
|
<article slot="modal-body" class="modal-body">
|
|
410
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
410
|
+
<file-upload class="my-file-uploader col-sm-9" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
411
|
+
<button class="button_clear btn-gn" style="margin-top: 10px;background-color: #6aa6e2;" @click="downloadFiles()">模板下载
|
|
412
|
+
</button>
|
|
411
413
|
</article>
|
|
412
414
|
<footer slot="modal-footer" class="modal-footer">
|
|
413
415
|
</footer>
|
|
@@ -503,6 +505,7 @@ let loadParamGem = async function (self) {
|
|
|
503
505
|
createType: ['address', 'area'], // 建档方式: address-地址建档 area-小区建档
|
|
504
506
|
hasLimit: true
|
|
505
507
|
},
|
|
508
|
+
bacthPin: '',
|
|
506
509
|
model: new PagedList('rs/sql/filemanage_getUserfies', 30, {orderitem: '"f_userinfo_id DESC"'}),
|
|
507
510
|
row: null, // 选择一条客户信息,对其进行修改
|
|
508
511
|
areainfo: null, // 小区批量建档使用的数据
|
|
@@ -581,6 +584,7 @@ let loadParamGem = async function (self) {
|
|
|
581
584
|
newdata: {},
|
|
582
585
|
resdata: '',
|
|
583
586
|
resshow: false,
|
|
587
|
+
batchpinshow: false, // 导入销户
|
|
584
588
|
titleShow: true, //是否显示部分档案信息类的筛选框
|
|
585
589
|
useoptions: this.$appdata.getParam('使用类型'),
|
|
586
590
|
|
|
@@ -590,6 +594,7 @@ let loadParamGem = async function (self) {
|
|
|
590
594
|
ready () {
|
|
591
595
|
loadParamGem(this)
|
|
592
596
|
this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
|
|
597
|
+
this.getAuthority()
|
|
593
598
|
},
|
|
594
599
|
compiled () {
|
|
595
600
|
window.onresize = () => {
|
|
@@ -599,6 +604,11 @@ let loadParamGem = async function (self) {
|
|
|
599
604
|
}
|
|
600
605
|
},
|
|
601
606
|
methods: {
|
|
607
|
+
getAuthority () {
|
|
608
|
+
if (this.$login.r.find(value => value == '销户导入')) {
|
|
609
|
+
this.bacthPin = '销户导入'
|
|
610
|
+
}
|
|
611
|
+
},
|
|
602
612
|
getRes (obj) {
|
|
603
613
|
console.log("-----------------")
|
|
604
614
|
this.orgcondition = obj
|
|
@@ -848,6 +858,9 @@ let loadParamGem = async function (self) {
|
|
|
848
858
|
importFile () {
|
|
849
859
|
this.show = true
|
|
850
860
|
},
|
|
861
|
+
pin () {
|
|
862
|
+
this.batchpinshow = true
|
|
863
|
+
},
|
|
851
864
|
clear () {
|
|
852
865
|
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
853
866
|
this.$refs.paged.$refs.criteria.model[key] = []
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
44
44
|
v-validate:brand='{required: true }'>
|
|
45
45
|
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
46
|
-
search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
|
|
46
|
+
search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
|
|
47
47
|
</div>
|
|
48
48
|
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
49
49
|
<label for="gasmodel" class="font_normal_body">气表型号</label>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
v-validate:model='{required: true }'>
|
|
52
52
|
<v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
|
|
53
53
|
close-on-select
|
|
54
|
-
v-model='row.gasmodel' :disabled=
|
|
54
|
+
v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
|
|
55
55
|
</div>
|
|
56
56
|
<div class="col-sm-4 form-group">
|
|
57
57
|
<label for="f_meter_base" class="font_normal_body"> 累购气量</label>
|
|
@@ -185,7 +185,8 @@
|
|
|
185
185
|
</div>
|
|
186
186
|
<div class="col-sm-4 form-group">
|
|
187
187
|
<label class="font_normal_body">表具使用年限</label>
|
|
188
|
-
<input type="number" class="input_search" style="width:60%" v-model="
|
|
188
|
+
<input type="number" class="input_search" style="width:60%" v-model="row.f_use_limit"
|
|
189
|
+
:value.sync="row.f_use_limit"
|
|
189
190
|
placeholder='表具使用年限' >
|
|
190
191
|
</div>
|
|
191
192
|
<div class="col-sm-4 form-group">
|
|
@@ -202,6 +203,7 @@
|
|
|
202
203
|
<datepicker style="width:60%" placeholder="通气日期"
|
|
203
204
|
v-model="row.f_gas_date"
|
|
204
205
|
v-ref:f_gas_date
|
|
206
|
+
@change="gasDateChange"
|
|
205
207
|
:value.sync="row.f_gas_date"
|
|
206
208
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
207
209
|
></datepicker>
|
|
@@ -565,10 +567,10 @@
|
|
|
565
567
|
templat: '' // 临时纬度
|
|
566
568
|
}
|
|
567
569
|
},
|
|
568
|
-
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id','overdueset'],
|
|
570
|
+
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
|
|
569
571
|
async ready () {
|
|
570
572
|
console.log('看看meter里面的数据', this.meter, this.row)
|
|
571
|
-
this.row = Object.assign(this.row, this.meter, {})
|
|
573
|
+
this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
|
|
572
574
|
if(this.row.f_meter_classify){
|
|
573
575
|
if(this.row.f_meter_classify==='物联网表'){
|
|
574
576
|
this.isiot=true
|
|
@@ -586,6 +588,16 @@
|
|
|
586
588
|
co(meterBookGen(this))
|
|
587
589
|
},
|
|
588
590
|
methods: {
|
|
591
|
+
gasDateChange () {
|
|
592
|
+
if (!this.row.f_scrap_date && this.row.f_gas_date) {
|
|
593
|
+
if (this.row.f_use_limit) {
|
|
594
|
+
let date = new Date(this.row.f_gas_date)
|
|
595
|
+
let year = date.getFullYear() + (this.row.f_use_limit / 1)
|
|
596
|
+
this.$set('row.f_scrap_date', year + this.row.f_gas_date.slice(4))
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
},
|
|
589
601
|
// 获取集中器下拉框
|
|
590
602
|
async getConcentrators () {
|
|
591
603
|
let condition = {
|
|
@@ -795,7 +807,6 @@
|
|
|
795
807
|
this.ratioshow = false
|
|
796
808
|
}
|
|
797
809
|
}
|
|
798
|
-
|
|
799
810
|
},
|
|
800
811
|
computed: {
|
|
801
812
|
|
|
@@ -106,6 +106,13 @@
|
|
|
106
106
|
<input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
|
|
107
107
|
placeholder="租户电话">
|
|
108
108
|
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="row">
|
|
111
|
+
<div style="" class="col-sm-8 form-group">
|
|
112
|
+
<label for="f_zuhu_idnumber" class="font_normal_body">租户身份证</label>
|
|
113
|
+
<input type="text" v-model="baseinfo.base.f_zuhu_idnumber" class="input_search" style="width:80%"
|
|
114
|
+
placeholder="租户身份证">
|
|
115
|
+
</div>
|
|
109
116
|
<div style="" class="col-sm-4 form-group">
|
|
110
117
|
<label for="f_is_mgq" class="font_normal_body "> 付款类型</label>
|
|
111
118
|
<v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
|
|
@@ -127,12 +134,12 @@
|
|
|
127
134
|
</div>
|
|
128
135
|
</div>
|
|
129
136
|
<div class="row">
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
<div style="" class="col-sm-4 form-group">
|
|
138
|
+
<label for="f_user_level" class="font_normal_body "> 用户等级</label>
|
|
139
|
+
<v-select :value.sync="baseinfo.base.f_user_level" :search="false" :value-single="true"
|
|
140
|
+
:options='userlevel' placeholder='用户等级' close-on-select>
|
|
141
|
+
</v-select>
|
|
142
|
+
</div>
|
|
136
143
|
<div class="col-sm-4 form-group">
|
|
137
144
|
<label for="f_user_nature" class="font_normal_body" title="用户性质"> 用气类型</label>
|
|
138
145
|
<input type="text" v-show="false" v-model="baseinfo.base.f_user_nature">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<div style="height: auto;width: 100%">
|
|
20
|
-
<file-user-meter-info :meterinfo.sync="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo" :overdueset="overdueset"
|
|
20
|
+
<file-user-meter-info :meterinfo.sync="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo" :overdueset="overdueset" :curuser="row"
|
|
21
21
|
:f_userinfo_id="data.baseinfo.base.f_userinfo_id" :addressinfo="data.addressinfo" :baseinfo.sync="data.baseinfo.base" v-ref:meter></file-user-meter-info>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</div>
|
|
94
94
|
<div class="row">
|
|
95
95
|
<div class="col-sm-2"></div>
|
|
96
|
-
<input v-if="fileSaveData.reason
|
|
96
|
+
<input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
97
97
|
</div>
|
|
98
98
|
</article>
|
|
99
99
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
</footer>
|
|
103
103
|
</modal>
|
|
104
104
|
</div>
|
|
105
|
+
<work-busy :is-busy="seaching"></work-busy>
|
|
105
106
|
</template>
|
|
106
107
|
|
|
107
108
|
<script>
|
|
@@ -150,6 +151,7 @@ export default {
|
|
|
150
151
|
data: {
|
|
151
152
|
baseinfo: {
|
|
152
153
|
base: {
|
|
154
|
+
f_user_name: '',
|
|
153
155
|
f_user_state: '',
|
|
154
156
|
f_credentials: '',
|
|
155
157
|
f_cost_type: '',
|
|
@@ -209,7 +211,8 @@ export default {
|
|
|
209
211
|
},
|
|
210
212
|
// 档案变更明细
|
|
211
213
|
filechangeDetails: {rows: []},
|
|
212
|
-
filechangeDetailsShow: false
|
|
214
|
+
filechangeDetailsShow: false,
|
|
215
|
+
seaching: false // 保存中
|
|
213
216
|
}
|
|
214
217
|
},
|
|
215
218
|
async ready () {
|
|
@@ -299,6 +302,7 @@ export default {
|
|
|
299
302
|
if (this.row) {
|
|
300
303
|
this.data.baseinfo.base.version = this.row.version
|
|
301
304
|
}
|
|
305
|
+
this.seaching = true
|
|
302
306
|
console.log('档案保存之前,。。。', this.data)
|
|
303
307
|
if (this.data.meterinfo[0].f_gas_date != null) {
|
|
304
308
|
this.data.addressinfo.f_address_state = '已通气'
|
|
@@ -314,6 +318,7 @@ export default {
|
|
|
314
318
|
this.fileSaveData.modifyReason = ''
|
|
315
319
|
}
|
|
316
320
|
let details = await this.$resetpost('rs/logic/filechangeDetails', {data: this.fileSaveData}, {resolveMsg: null, rejectMsg: '获取修改明细出错!'})
|
|
321
|
+
this.seaching = false
|
|
317
322
|
this.filechangeDetails.rows = details.data.changeDetails
|
|
318
323
|
this.filechangeDetailsShow = details.data.isChange
|
|
319
324
|
}
|
|
@@ -342,6 +347,7 @@ export default {
|
|
|
342
347
|
this.$error('重复提交')
|
|
343
348
|
return
|
|
344
349
|
}
|
|
350
|
+
this.seaching = false
|
|
345
351
|
this.$dispatch('error', '档案保存', this.data, error)
|
|
346
352
|
})
|
|
347
353
|
},
|
|
@@ -439,7 +445,7 @@ export default {
|
|
|
439
445
|
} else if (row.f_fire_state === '0') {
|
|
440
446
|
row.f_fire_state1 = false
|
|
441
447
|
}
|
|
442
|
-
row.f_install_date = row.f_install_date ? row.f_install_date :
|
|
448
|
+
row.f_install_date = row.f_install_date ? row.f_install_date : null
|
|
443
449
|
row.f_gas_date = row.f_gas_date ? row.f_gas_date : null
|
|
444
450
|
row.f_changetube_date = row.f_changetube_date ? row.f_changetube_date : null
|
|
445
451
|
row.f_aroundmeter = row.f_aroundmeter ? row.f_aroundmeter : ''
|
|
@@ -581,7 +587,10 @@ export default {
|
|
|
581
587
|
devicesinfo: [], // 设备信息
|
|
582
588
|
f_hand_month: '', // 抄表月份
|
|
583
589
|
fireinfo: {}, // 用气信息
|
|
584
|
-
f_meter_book_num: ''
|
|
590
|
+
f_meter_book_num: '',
|
|
591
|
+
f_use_limit: '',
|
|
592
|
+
f_gas_date: this.$login.toStandardDateString(),
|
|
593
|
+
f_install_date: this.$login.toStandardDateString()
|
|
585
594
|
}],
|
|
586
595
|
devicesinfo: []
|
|
587
596
|
}
|
|
@@ -642,6 +651,9 @@ export default {
|
|
|
642
651
|
f_hand_month: row.f_hand_month,
|
|
643
652
|
f_usetype: ''
|
|
644
653
|
}
|
|
654
|
+
if (!temp.f_install_date) {
|
|
655
|
+
delete temp.f_install_date
|
|
656
|
+
}
|
|
645
657
|
Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
|
|
646
658
|
console.log('====1.=====', temp, row)
|
|
647
659
|
this.checkout('area')
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
|
|
10
10
|
<button class="button_search" style="width: max-content" @click="showFire($index, row)">点火信息</button>
|
|
11
11
|
</div>
|
|
12
|
-
<file-meter-info :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
12
|
+
<file-meter-info :curuser="curuser" :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
13
13
|
@delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
|
|
14
14
|
<file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo" :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
|
|
15
15
|
:userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
baseinfo:{},
|
|
56
56
|
f_filialeid: {},
|
|
57
57
|
f_userinfo_id: {},
|
|
58
|
-
overdueset:{}
|
|
58
|
+
overdueset:{},
|
|
59
|
+
curuser: {}
|
|
59
60
|
},
|
|
60
61
|
ready () {
|
|
61
62
|
console.log('表具信息,,,,', this.meterinfo)
|
|
@@ -140,18 +140,18 @@
|
|
|
140
140
|
</template>
|
|
141
141
|
<script>
|
|
142
142
|
|
|
143
|
-
import {HttpResetClass} from
|
|
143
|
+
import {HttpResetClass} from 'vue-client'
|
|
144
144
|
|
|
145
145
|
export default {
|
|
146
146
|
data () {
|
|
147
147
|
return {
|
|
148
148
|
isshow: false,
|
|
149
149
|
tempPosition: {
|
|
150
|
-
position: {
|
|
151
|
-
lng: 0,
|
|
152
|
-
lat: 0
|
|
150
|
+
position: { // 经纬度信息
|
|
151
|
+
lng: 0, // 经度
|
|
152
|
+
lat: 0 // 纬度
|
|
153
153
|
},
|
|
154
|
-
formattedAddress: ''
|
|
154
|
+
formattedAddress: '' // 地址信息
|
|
155
155
|
},
|
|
156
156
|
model: {
|
|
157
157
|
f_adjustable_id: '',
|
|
@@ -165,11 +165,11 @@ export default {
|
|
|
165
165
|
f_open_date: '',
|
|
166
166
|
f_manufacturer: '',
|
|
167
167
|
f_remark: '',
|
|
168
|
-
f_adjustable_lng: '',
|
|
169
|
-
f_adjustable_lat: ''
|
|
168
|
+
f_adjustable_lng: '', // 经度
|
|
169
|
+
f_adjustable_lat: '' // 纬度
|
|
170
170
|
},
|
|
171
|
-
riser:[{}],
|
|
172
|
-
delrow:[],
|
|
171
|
+
riser: [{}],
|
|
172
|
+
delrow: [],
|
|
173
173
|
haveid: false,
|
|
174
174
|
havename: false,
|
|
175
175
|
changedate: true,
|
|
@@ -206,44 +206,46 @@ export default {
|
|
|
206
206
|
this.model.f_depid = this.$login.f.depids
|
|
207
207
|
this.model.f_depname = this.$login.f.deps
|
|
208
208
|
let http = new HttpResetClass()
|
|
209
|
-
let res=await http.load('post', `rs/entity/t_adjustablebox`, this.model,{resolveMsg:'调压箱保存成功', rejectMsg: '保存失败!!!'})
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
if(this.riser[i].f_value){
|
|
227
|
-
await http.load('post', `rs/entity/t_attribute`, params, {resolveMsg: null, rejectMsg: null})
|
|
228
|
-
}else{
|
|
229
|
-
await this.$resetdelete('rs/entity/t_attribute', {id: this.riser[i].id}, {warnMsg:null,resolveMsg: null, rejectMsg: null})
|
|
230
|
-
}
|
|
231
|
-
}
|
|
209
|
+
let res = await http.load('post', `rs/entity/t_adjustablebox`, this.model, {resolveMsg: '调压箱保存成功', rejectMsg: '保存失败!!!'})
|
|
210
|
+
if (this.riser[0]) {
|
|
211
|
+
for (var i = 0; i < this.riser.length; i++) {
|
|
212
|
+
var params = {
|
|
213
|
+
id: this.riser[i].id,
|
|
214
|
+
f_table_name: `t_adjustablebox`,
|
|
215
|
+
f_field_name: 'id',
|
|
216
|
+
f_parent_id: res.data.id,
|
|
217
|
+
f_value: this.riser[i].f_value,
|
|
218
|
+
f_chinese_name: '立管编号',
|
|
219
|
+
f_operator: this.$login.f.name,
|
|
220
|
+
f_operatorid: this.$login.f.id,
|
|
221
|
+
f_orgid: this.$login.f.orgid,
|
|
222
|
+
f_orgname: this.$login.f.orgs,
|
|
223
|
+
f_depid: this.$login.f.depids,
|
|
224
|
+
f_depname: this.$login.f.deps
|
|
232
225
|
}
|
|
233
|
-
if(this.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
226
|
+
if (this.riser[i].f_value) {
|
|
227
|
+
await http.load('post', `rs/entity/t_attribute`, params, {resolveMsg: null, rejectMsg: null})
|
|
228
|
+
} else {
|
|
229
|
+
await this.$resetdelete('rs/entity/t_attribute', {id: this.riser[i].id}, {warnMsg: null, resolveMsg: null, rejectMsg: null})
|
|
237
230
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (this.delrow.length > 0) {
|
|
234
|
+
for (var i = 0; i < this.delrow.length; i++) {
|
|
235
|
+
await this.$resetdelete('rs/entity/t_attribute', {id: this.delrow[i]}, {warnMsg: null, resolveMsg: null, rejectMsg: null})
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
// 操作了调压箱 清空分公司initdata缓存
|
|
239
|
+
await http.load('POST', 'rs/logic/delSaleInitData', {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
241
240
|
|
|
241
|
+
this.$dispatch('success', '调压箱保存成功', this.model, res)
|
|
242
|
+
this.riser = [{}]
|
|
243
|
+
this.delrow = []
|
|
242
244
|
},
|
|
243
|
-
delriser (index,row) {
|
|
245
|
+
delriser (index, row) {
|
|
244
246
|
if (this.riser.length > 1) {
|
|
245
247
|
this.riser.splice(index, 1)
|
|
246
|
-
if(row.id){
|
|
248
|
+
if (row.id) {
|
|
247
249
|
this.delrow.push(row.id)
|
|
248
250
|
}
|
|
249
251
|
}
|
|
@@ -252,7 +254,7 @@ export default {
|
|
|
252
254
|
this.riser.push({})
|
|
253
255
|
},
|
|
254
256
|
async datatomodel () {
|
|
255
|
-
this.delrow=[]
|
|
257
|
+
this.delrow = []
|
|
256
258
|
this.$nextTick(() => {
|
|
257
259
|
if (JSON.stringify(this.data) === '{}') {
|
|
258
260
|
Object.assign(this.$data.model, this.$options.data().model)
|
|
@@ -270,13 +272,13 @@ export default {
|
|
|
270
272
|
this.model.f_operate_date ? this.changedate = false : this.changedate = true
|
|
271
273
|
}
|
|
272
274
|
})
|
|
273
|
-
if(this.data.id){
|
|
274
|
-
var data=await this.$resetpost('rs/sql/saleSingleTable', {data: {tablename: 't_attribute', condition: `f_table_name = 't_adjustablebox' and f_parent_id = '${this.data.id}' and f_chinese_name ='立管编号'`}}, {resolveMsg: null, rejectMsg: '获取调压箱失败'})
|
|
275
|
-
this.riser=data.data
|
|
275
|
+
if (this.data.id) {
|
|
276
|
+
var data = await this.$resetpost('rs/sql/saleSingleTable', {data: {tablename: 't_attribute', condition: `f_table_name = 't_adjustablebox' and f_parent_id = '${this.data.id}' and f_chinese_name ='立管编号'`}}, {resolveMsg: null, rejectMsg: '获取调压箱失败'})
|
|
277
|
+
this.riser = data.data
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
if (this.riser.length===0){
|
|
279
|
-
this.riser=[{}]
|
|
280
|
+
if (this.riser.length === 0) {
|
|
281
|
+
this.riser = [{}]
|
|
280
282
|
}
|
|
281
283
|
},
|
|
282
284
|
cancel () {
|
|
@@ -305,7 +307,7 @@ export default {
|
|
|
305
307
|
this.isshow = true
|
|
306
308
|
},
|
|
307
309
|
closeModal () {
|
|
308
|
-
this.isshow = false
|
|
310
|
+
this.isshow = false
|
|
309
311
|
},
|
|
310
312
|
getmylocation (res) {
|
|
311
313
|
this.tempPosition = res
|
|
@@ -314,7 +316,7 @@ export default {
|
|
|
314
316
|
this.model.f_adjustable_address = this.tempPosition.formattedAddress
|
|
315
317
|
this.model.f_adjustable_lng = this.tempPosition.position.lng
|
|
316
318
|
this.model.f_adjustable_lat = this.tempPosition.position.lat
|
|
317
|
-
this.isshow = false
|
|
319
|
+
this.isshow = false
|
|
318
320
|
}
|
|
319
321
|
}
|
|
320
322
|
}
|