apply-clients 3.3.36 → 3.3.40
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 +130 -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 +84 -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/index.html +33 -33
- package/package.json +1 -1
- package/src/AndroidApp.vue +30 -30
- package/src/android.js +21 -21
- package/src/apply.js +1 -8
- package/src/applyAndroid.js +1 -8
- package/src/components/android/AppOnetomany.vue +305 -305
- package/src/components/android/AppServiceView.vue +1 -1
- package/src/components/android/AppTakePic.vue +143 -143
- package/src/components/android/Function/AppFunctionServiceControl.vue +344 -344
- package/src/components/android/Function/AppInstallFunction.vue +1 -1
- package/src/components/android/Process/AppExplorationUser.vue +1 -1
- package/src/components/android/Process/AppServiceControl.vue +1 -0
- package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +508 -508
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +471 -471
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +1 -1
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +59 -13
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
- package/src/components/product/Function/InstallFunction.vue +10 -0
- package/src/components/product/Function/InstallInfoSelect.vue +4 -0
- package/src/components/product/Function/Service/FunctionServiceControl.vue +4 -4
- package/src/components/product/Install/InstallProject.vue +194 -194
- package/src/components/product/Material/MaterialDetailed.vue +12 -1
- package/src/components/product/OldApply/Handle/HandleApply.vue +3 -0
- package/src/components/product/OldApply/Monitor/MonitorApply.vue +3 -0
- package/src/components/product/OldApply/OldApply.vue +2 -2
- package/src/components/product/OldApply/OldApplyMessage.vue +411 -411
- package/src/components/product/Onetomany.vue +381 -381
- package/src/components/product/Order/OrderApply.vue +47 -47
- package/src/components/product/Order/OrderApplyList.vue +263 -263
- package/src/components/product/Order/OrderMessage.vue +237 -237
- package/src/components/product/Process/ExplorationSelect.vue +4 -0
- package/src/components/product/Process/ExplorationUser.vue +10 -0
- package/src/components/product/Process/Processes/InstallationDetails.vue +17 -3
- package/src/components/product/Process/Processes/Print/printBuildOrder.vue +8 -29
- package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
- package/src/components/product/Process/Processes/Print/printRefund.vue +1 -1
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +19 -3
- package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
- package/src/components/product/Process/Processes/devicesManagement.vue +478 -478
- package/src/components/product/Process/Processes/selectApply.vue +250 -250
- package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +2 -1
- package/src/components/product/Process/ShowBackReason.vue +33 -33
- package/src/components/product/ServiceView.vue +1 -1
- package/src/components/product/Stop/StopApply.vue +101 -101
- package/src/components/product/Stop/StopApplyList.vue +271 -271
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +804 -804
- package/src/components/product/Supervisory/SupervisoryControl.vue +10 -0
- package/src/components/product/Supervisory/SupervisoryList.vue +4 -0
- package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
- package/src/main.js +23 -23
- package/dist-android/index.html +0 -3
- package/dist-android/static/.gitkeep +0 -0
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/100.js +0 -2
- package/dist-android/static/100.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/6.js +0 -2
- package/dist-android/static/6.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/77.js +0 -2
- package/dist-android/static/77.js.map +0 -1
- package/dist-android/static/78.js +0 -2
- package/dist-android/static/78.js.map +0 -1
- package/dist-android/static/79.js +0 -2
- package/dist-android/static/79.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/80.js +0 -2
- package/dist-android/static/80.js.map +0 -1
- package/dist-android/static/81.js +0 -2
- package/dist-android/static/81.js.map +0 -1
- package/dist-android/static/82.js +0 -2
- package/dist-android/static/82.js.map +0 -1
- package/dist-android/static/83.js +0 -2
- package/dist-android/static/83.js.map +0 -1
- package/dist-android/static/84.js +0 -2
- package/dist-android/static/84.js.map +0 -1
- package/dist-android/static/85.js +0 -2
- package/dist-android/static/85.js.map +0 -1
- package/dist-android/static/86.js +0 -2
- package/dist-android/static/86.js.map +0 -1
- package/dist-android/static/87.js +0 -2
- package/dist-android/static/87.js.map +0 -1
- package/dist-android/static/88.js +0 -2
- package/dist-android/static/88.js.map +0 -1
- package/dist-android/static/89.js +0 -2
- package/dist-android/static/89.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/90.js +0 -2
- package/dist-android/static/90.js.map +0 -1
- package/dist-android/static/91.js +0 -2
- package/dist-android/static/91.js.map +0 -1
- package/dist-android/static/92.js +0 -2
- package/dist-android/static/92.js.map +0 -1
- package/dist-android/static/93.js +0 -2
- package/dist-android/static/93.js.map +0 -1
- package/dist-android/static/94.js +0 -2
- package/dist-android/static/94.js.map +0 -1
- package/dist-android/static/95.js +0 -2
- package/dist-android/static/95.js.map +0 -1
- package/dist-android/static/96.js +0 -2
- package/dist-android/static/96.js.map +0 -1
- package/dist-android/static/97.js +0 -2
- package/dist-android/static/97.js.map +0 -1
- package/dist-android/static/98.js +0 -2
- package/dist-android/static/98.js.map +0 -1
- package/dist-android/static/99.js +0 -2
- package/dist-android/static/99.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- 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/config.json +0 -7
- package/dist-android/static/denglu.png +0 -0
- package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
- package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
- package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +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/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/filiale/wuan/android.js +0 -0
- package/src/filiale/wuan/pc.js +0 -4
- package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
- package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/android.js +0 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
- package/src/filiale/yuchuan/pc.js +0 -13
|
@@ -1,344 +1,344 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
-
<accordion one-at-a-time="true">
|
|
4
|
-
<panel :header="selectdata.title" :is-open="true" type="primary">
|
|
5
|
-
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
|
-
</panel>
|
|
7
|
-
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
8
|
-
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
9
|
-
</panel>
|
|
10
|
-
</accordion>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
<script>
|
|
14
|
-
import {HttpResetClass} from 'vue-client'
|
|
15
|
-
import Vue from 'vue'
|
|
16
|
-
export default {
|
|
17
|
-
title: '报建功能业务控制层',
|
|
18
|
-
props: ['selectdata', 'jsondata'],
|
|
19
|
-
data () {
|
|
20
|
-
return {
|
|
21
|
-
show_data: null, // 给通用页面显示的数据
|
|
22
|
-
showview: false // 控制通用页面
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
ready () {
|
|
26
|
-
this.refurbish()
|
|
27
|
-
},
|
|
28
|
-
methods: {
|
|
29
|
-
async refurbish () {
|
|
30
|
-
this.selectdata = Object.assign({}, this.selectdata, this.jsondata)
|
|
31
|
-
|
|
32
|
-
// fields 字段填充值
|
|
33
|
-
for (const item of this.selectdata.fields) {
|
|
34
|
-
if (!item.value) {
|
|
35
|
-
item.value = null
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
39
|
-
if (item.eval) {
|
|
40
|
-
let user = Vue.user
|
|
41
|
-
// 将PC用户信息 替换成 APP的
|
|
42
|
-
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
43
|
-
} else {
|
|
44
|
-
item.value = item.default
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (this.selectdata[item.field]) {
|
|
49
|
-
// 将json字符串格式化赋值给value
|
|
50
|
-
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
51
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
52
|
-
} else {
|
|
53
|
-
item.value = this.selectdata[item.field]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (this.selectdata[item.field] === 0) {
|
|
57
|
-
item.value = 0
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// datepicker
|
|
61
|
-
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
62
|
-
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
66
|
-
if (item.type === 'select' || item.type === 'checkbox') {
|
|
67
|
-
if (item.param) {
|
|
68
|
-
let temp = this.$appdata.getParam(item.label)
|
|
69
|
-
|
|
70
|
-
if (temp && temp.length > 0) {
|
|
71
|
-
item.options = temp
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (item.paramLabel) {
|
|
75
|
-
temp = this.$appdata.getParam(item.paramLabel)
|
|
76
|
-
if (temp && temp.length > 0) {
|
|
77
|
-
item.options = temp
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (item.ready) {
|
|
83
|
-
item.options = await this[item.ready]()
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (item.type === 'checkbox') {
|
|
89
|
-
if (this.selectdata[item.field]) {
|
|
90
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
91
|
-
} else {
|
|
92
|
-
item.value = []
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// 控制组件
|
|
98
|
-
if (this.selectdata.components) {
|
|
99
|
-
this.selectdata.components.forEach(item => {
|
|
100
|
-
item.mark = 2
|
|
101
|
-
})
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// 初始化onetomany
|
|
105
|
-
if (this.selectdata.onetomany) {
|
|
106
|
-
for (const item of this.selectdata.onetomany) {
|
|
107
|
-
let res = null
|
|
108
|
-
if (item.queryEvent) {
|
|
109
|
-
res = this[item.queryEvent]()
|
|
110
|
-
} else {
|
|
111
|
-
let data = {
|
|
112
|
-
tablename: item.tables[0],
|
|
113
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
114
|
-
}
|
|
115
|
-
res = await this.$resetpost(
|
|
116
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
117
|
-
{data: data},
|
|
118
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
119
|
-
)
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
item.rows = res.data
|
|
123
|
-
|
|
124
|
-
// 初始化onetomany中的fields
|
|
125
|
-
for (const field of item.fields) {
|
|
126
|
-
if (!field.value) {
|
|
127
|
-
if (field.value !== 0) {
|
|
128
|
-
field.value = null
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (field.default || field.default === 0) {
|
|
133
|
-
field.value = field.default
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// datepicker
|
|
137
|
-
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
138
|
-
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (field.type === 'select') {
|
|
142
|
-
let temp = this.$appdata.getParam(field.label)
|
|
143
|
-
|
|
144
|
-
if (temp && temp.length > 0) {
|
|
145
|
-
field.options = temp
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
if (field.paramLabel) {
|
|
149
|
-
temp = this.$appdata.getParam(field.paramLabel)
|
|
150
|
-
if (temp && temp.length > 0) {
|
|
151
|
-
item.options = temp
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
160
|
-
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
161
|
-
|
|
162
|
-
this.show_data = temp
|
|
163
|
-
this.$nextTick(() => {
|
|
164
|
-
this.showview = true
|
|
165
|
-
})
|
|
166
|
-
},
|
|
167
|
-
getLableValue(label) {
|
|
168
|
-
for (const item of this.show_data.fields) {
|
|
169
|
-
if (item.label === label && item.type !== 'number') {
|
|
170
|
-
return item.value || ''
|
|
171
|
-
}
|
|
172
|
-
if (item.label === label && item.type === 'number') {
|
|
173
|
-
return item.value || 0
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
getLableOptions(label) {
|
|
178
|
-
for (const item of this.show_data.fields) {
|
|
179
|
-
if (item.label === label) {
|
|
180
|
-
return item.options
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
setLabelValue(label, value) {
|
|
185
|
-
for (const item of this.show_data.fields) {
|
|
186
|
-
if (item.label === label) {
|
|
187
|
-
item.value = value
|
|
188
|
-
this.show_data[item.field] = value
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
setLabelOptions(label, options) {
|
|
193
|
-
for (const item of this.show_data.fields) {
|
|
194
|
-
if (item.label === label) {
|
|
195
|
-
item.options = options
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
async breakControl () {
|
|
200
|
-
if (this.show_data.id) {
|
|
201
|
-
let data = {
|
|
202
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
203
|
-
data: {
|
|
204
|
-
orgid: Vue.user.orgid
|
|
205
|
-
// id: '51953',
|
|
206
|
-
// orgid: '10101'
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
let res = await this.$resetpost(
|
|
210
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuserfunction`,
|
|
211
|
-
// `rs/sql/checkuserfunction`,
|
|
212
|
-
{data: data},
|
|
213
|
-
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
214
|
-
)
|
|
215
|
-
|
|
216
|
-
this.selectdata = res.data[0]
|
|
217
|
-
} else {
|
|
218
|
-
this.selectdata = servicedata
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
this.refurbish()
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
events: {
|
|
225
|
-
async 'stopApply' () {
|
|
226
|
-
|
|
227
|
-
let data = {
|
|
228
|
-
data: this.show_data,
|
|
229
|
-
user: Vue.user
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
let res = await this.$resetpost(
|
|
233
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/stopApply`,
|
|
234
|
-
{data: data},
|
|
235
|
-
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
236
|
-
)
|
|
237
|
-
|
|
238
|
-
// 返回上层
|
|
239
|
-
this.$dispatch('confirm')
|
|
240
|
-
},
|
|
241
|
-
async 'pauseApply' () {
|
|
242
|
-
|
|
243
|
-
let data = {
|
|
244
|
-
data: this.show_data,
|
|
245
|
-
user: Vue.user
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
let res = await this.$resetpost(
|
|
249
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/pauseApply`,
|
|
250
|
-
{data: data},
|
|
251
|
-
{resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
|
|
252
|
-
)
|
|
253
|
-
|
|
254
|
-
// 返回上层
|
|
255
|
-
this.$dispatch('confirm')
|
|
256
|
-
},
|
|
257
|
-
// 获取view层button事件
|
|
258
|
-
async 'button' (){
|
|
259
|
-
|
|
260
|
-
let res = await this.$resetpost(
|
|
261
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
262
|
-
this.show_data,
|
|
263
|
-
{resolveMsg: null, rejectMsg: '数据保存失败!!!'}
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
// 返回上层
|
|
267
|
-
this.$dispatch('confirm')
|
|
268
|
-
},
|
|
269
|
-
'breakControl' () {
|
|
270
|
-
this.breakControl()
|
|
271
|
-
},
|
|
272
|
-
// 失去焦点出触发事件
|
|
273
|
-
'onchange' (index) {
|
|
274
|
-
},
|
|
275
|
-
'onblur' (index) {},
|
|
276
|
-
'oninput' (index) {},
|
|
277
|
-
'initializtionView' () {},
|
|
278
|
-
async 'onchangeModal' (index, fieldIndex) {
|
|
279
|
-
},
|
|
280
|
-
async 'onblurModal' (index, fieldIndex) {
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
async 'oninputModal' (index, fieldIndex) {
|
|
284
|
-
|
|
285
|
-
},
|
|
286
|
-
async 'onetomanydelete' (index, rowIndex) {
|
|
287
|
-
|
|
288
|
-
let http = new HttpResetClass()
|
|
289
|
-
|
|
290
|
-
let res = await http.load(
|
|
291
|
-
'DELETE',
|
|
292
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
293
|
-
null,
|
|
294
|
-
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
295
|
-
)
|
|
296
|
-
res = await this.$resetpost(
|
|
297
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
298
|
-
this.show_data
|
|
299
|
-
)
|
|
300
|
-
this.breakControl()
|
|
301
|
-
},
|
|
302
|
-
async 'onetomanyupdate' (index, rowIndex) {
|
|
303
|
-
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
304
|
-
|
|
305
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
306
|
-
data[item.field] = item.value
|
|
307
|
-
})
|
|
308
|
-
let res = await this.$resetpost(
|
|
309
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
310
|
-
data
|
|
311
|
-
)
|
|
312
|
-
res = await this.$resetpost(
|
|
313
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
314
|
-
this.show_data
|
|
315
|
-
)
|
|
316
|
-
this.breakControl()
|
|
317
|
-
},
|
|
318
|
-
async 'onetomanyadd' (index) {
|
|
319
|
-
let data = {
|
|
320
|
-
f_process_id : this.show_data.f_process_id,
|
|
321
|
-
f_operator_id: Vue.user.id,
|
|
322
|
-
f_operator: Vue.user.name,
|
|
323
|
-
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
324
|
-
f_orgid: Vue.user.orgid,
|
|
325
|
-
f_orgname: Vue.user.orgs
|
|
326
|
-
}
|
|
327
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
328
|
-
data[item.field] = item.value
|
|
329
|
-
})
|
|
330
|
-
let res = await this.$resetpost(
|
|
331
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
332
|
-
data
|
|
333
|
-
)
|
|
334
|
-
res = await this.$resetpost(
|
|
335
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
336
|
-
this.show_data
|
|
337
|
-
)
|
|
338
|
-
this.breakControl()
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
watch:{
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
+
<accordion one-at-a-time="true">
|
|
4
|
+
<panel :header="selectdata.title" :is-open="true" type="primary">
|
|
5
|
+
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
|
+
</panel>
|
|
7
|
+
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
8
|
+
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
9
|
+
</panel>
|
|
10
|
+
</accordion>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<script>
|
|
14
|
+
import {HttpResetClass} from 'vue-client'
|
|
15
|
+
import Vue from 'vue'
|
|
16
|
+
export default {
|
|
17
|
+
title: '报建功能业务控制层',
|
|
18
|
+
props: ['selectdata', 'jsondata'],
|
|
19
|
+
data () {
|
|
20
|
+
return {
|
|
21
|
+
show_data: null, // 给通用页面显示的数据
|
|
22
|
+
showview: false // 控制通用页面
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
ready () {
|
|
26
|
+
this.refurbish()
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
async refurbish () {
|
|
30
|
+
this.selectdata = Object.assign({}, this.selectdata, this.jsondata)
|
|
31
|
+
|
|
32
|
+
// fields 字段填充值
|
|
33
|
+
for (const item of this.selectdata.fields) {
|
|
34
|
+
if (!item.value) {
|
|
35
|
+
item.value = null
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
39
|
+
if (item.eval) {
|
|
40
|
+
let user = Vue.user
|
|
41
|
+
// 将PC用户信息 替换成 APP的
|
|
42
|
+
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
43
|
+
} else {
|
|
44
|
+
item.value = item.default
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (this.selectdata[item.field]) {
|
|
49
|
+
// 将json字符串格式化赋值给value
|
|
50
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
51
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
52
|
+
} else {
|
|
53
|
+
item.value = this.selectdata[item.field]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (this.selectdata[item.field] === 0) {
|
|
57
|
+
item.value = 0
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// datepicker
|
|
61
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
62
|
+
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
66
|
+
if (item.type === 'select' || item.type === 'checkbox') {
|
|
67
|
+
if (item.param) {
|
|
68
|
+
let temp = this.$appdata.getParam(item.label)
|
|
69
|
+
|
|
70
|
+
if (temp && temp.length > 0) {
|
|
71
|
+
item.options = temp
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (item.paramLabel) {
|
|
75
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
76
|
+
if (temp && temp.length > 0) {
|
|
77
|
+
item.options = temp
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (item.ready) {
|
|
83
|
+
item.options = await this[item.ready]()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
if (item.type === 'checkbox') {
|
|
89
|
+
if (this.selectdata[item.field]) {
|
|
90
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
91
|
+
} else {
|
|
92
|
+
item.value = []
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 控制组件
|
|
98
|
+
if (this.selectdata.components) {
|
|
99
|
+
this.selectdata.components.forEach(item => {
|
|
100
|
+
item.mark = 2
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 初始化onetomany
|
|
105
|
+
if (this.selectdata.onetomany) {
|
|
106
|
+
for (const item of this.selectdata.onetomany) {
|
|
107
|
+
let res = null
|
|
108
|
+
if (item.queryEvent) {
|
|
109
|
+
res = this[item.queryEvent]()
|
|
110
|
+
} else {
|
|
111
|
+
let data = {
|
|
112
|
+
tablename: item.tables[0],
|
|
113
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
114
|
+
}
|
|
115
|
+
res = await this.$resetpost(
|
|
116
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
117
|
+
{data: data},
|
|
118
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
item.rows = res.data
|
|
123
|
+
|
|
124
|
+
// 初始化onetomany中的fields
|
|
125
|
+
for (const field of item.fields) {
|
|
126
|
+
if (!field.value) {
|
|
127
|
+
if (field.value !== 0) {
|
|
128
|
+
field.value = null
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (field.default || field.default === 0) {
|
|
133
|
+
field.value = field.default
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// datepicker
|
|
137
|
+
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
138
|
+
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (field.type === 'select') {
|
|
142
|
+
let temp = this.$appdata.getParam(field.label)
|
|
143
|
+
|
|
144
|
+
if (temp && temp.length > 0) {
|
|
145
|
+
field.options = temp
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (field.paramLabel) {
|
|
149
|
+
temp = this.$appdata.getParam(field.paramLabel)
|
|
150
|
+
if (temp && temp.length > 0) {
|
|
151
|
+
item.options = temp
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
160
|
+
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
161
|
+
|
|
162
|
+
this.show_data = temp
|
|
163
|
+
this.$nextTick(() => {
|
|
164
|
+
this.showview = true
|
|
165
|
+
})
|
|
166
|
+
},
|
|
167
|
+
getLableValue(label) {
|
|
168
|
+
for (const item of this.show_data.fields) {
|
|
169
|
+
if (item.label === label && item.type !== 'number') {
|
|
170
|
+
return item.value || ''
|
|
171
|
+
}
|
|
172
|
+
if (item.label === label && item.type === 'number') {
|
|
173
|
+
return item.value || 0
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
getLableOptions(label) {
|
|
178
|
+
for (const item of this.show_data.fields) {
|
|
179
|
+
if (item.label === label) {
|
|
180
|
+
return item.options
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
setLabelValue(label, value) {
|
|
185
|
+
for (const item of this.show_data.fields) {
|
|
186
|
+
if (item.label === label) {
|
|
187
|
+
item.value = value
|
|
188
|
+
this.show_data[item.field] = value
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
setLabelOptions(label, options) {
|
|
193
|
+
for (const item of this.show_data.fields) {
|
|
194
|
+
if (item.label === label) {
|
|
195
|
+
item.options = options
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
async breakControl () {
|
|
200
|
+
if (this.show_data.id) {
|
|
201
|
+
let data = {
|
|
202
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
203
|
+
data: {
|
|
204
|
+
orgid: Vue.user.orgid
|
|
205
|
+
// id: '51953',
|
|
206
|
+
// orgid: '10101'
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
let res = await this.$resetpost(
|
|
210
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuserfunction`,
|
|
211
|
+
// `rs/sql/checkuserfunction`,
|
|
212
|
+
{data: data},
|
|
213
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
this.selectdata = res.data[0]
|
|
217
|
+
} else {
|
|
218
|
+
this.selectdata = servicedata
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
this.refurbish()
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
events: {
|
|
225
|
+
async 'stopApply' () {
|
|
226
|
+
|
|
227
|
+
let data = {
|
|
228
|
+
data: this.show_data,
|
|
229
|
+
user: Vue.user
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
let res = await this.$resetpost(
|
|
233
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/stopApply`,
|
|
234
|
+
{data: data},
|
|
235
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
// 返回上层
|
|
239
|
+
this.$dispatch('confirm')
|
|
240
|
+
},
|
|
241
|
+
async 'pauseApply' () {
|
|
242
|
+
|
|
243
|
+
let data = {
|
|
244
|
+
data: this.show_data,
|
|
245
|
+
user: Vue.user
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
let res = await this.$resetpost(
|
|
249
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/pauseApply`,
|
|
250
|
+
{data: data},
|
|
251
|
+
{resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
// 返回上层
|
|
255
|
+
this.$dispatch('confirm')
|
|
256
|
+
},
|
|
257
|
+
// 获取view层button事件
|
|
258
|
+
async 'button' (){
|
|
259
|
+
|
|
260
|
+
let res = await this.$resetpost(
|
|
261
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
262
|
+
this.show_data,
|
|
263
|
+
{resolveMsg: null, rejectMsg: '数据保存失败!!!'}
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
// 返回上层
|
|
267
|
+
this.$dispatch('confirm')
|
|
268
|
+
},
|
|
269
|
+
'breakControl' () {
|
|
270
|
+
this.breakControl()
|
|
271
|
+
},
|
|
272
|
+
// 失去焦点出触发事件
|
|
273
|
+
'onchange' (index) {
|
|
274
|
+
},
|
|
275
|
+
'onblur' (index) {},
|
|
276
|
+
'oninput' (index) {},
|
|
277
|
+
'initializtionView' () {},
|
|
278
|
+
async 'onchangeModal' (index, fieldIndex) {
|
|
279
|
+
},
|
|
280
|
+
async 'onblurModal' (index, fieldIndex) {
|
|
281
|
+
|
|
282
|
+
},
|
|
283
|
+
async 'oninputModal' (index, fieldIndex) {
|
|
284
|
+
|
|
285
|
+
},
|
|
286
|
+
async 'onetomanydelete' (index, rowIndex) {
|
|
287
|
+
|
|
288
|
+
let http = new HttpResetClass()
|
|
289
|
+
|
|
290
|
+
let res = await http.load(
|
|
291
|
+
'DELETE',
|
|
292
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
293
|
+
null,
|
|
294
|
+
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
295
|
+
)
|
|
296
|
+
res = await this.$resetpost(
|
|
297
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
298
|
+
this.show_data
|
|
299
|
+
)
|
|
300
|
+
this.breakControl()
|
|
301
|
+
},
|
|
302
|
+
async 'onetomanyupdate' (index, rowIndex) {
|
|
303
|
+
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
304
|
+
|
|
305
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
306
|
+
data[item.field] = item.value
|
|
307
|
+
})
|
|
308
|
+
let res = await this.$resetpost(
|
|
309
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
310
|
+
data
|
|
311
|
+
)
|
|
312
|
+
res = await this.$resetpost(
|
|
313
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
314
|
+
this.show_data
|
|
315
|
+
)
|
|
316
|
+
this.breakControl()
|
|
317
|
+
},
|
|
318
|
+
async 'onetomanyadd' (index) {
|
|
319
|
+
let data = {
|
|
320
|
+
f_process_id : this.show_data.f_process_id,
|
|
321
|
+
f_operator_id: Vue.user.id,
|
|
322
|
+
f_operator: Vue.user.name,
|
|
323
|
+
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
324
|
+
f_orgid: Vue.user.orgid,
|
|
325
|
+
f_orgname: Vue.user.orgs
|
|
326
|
+
}
|
|
327
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
328
|
+
data[item.field] = item.value
|
|
329
|
+
})
|
|
330
|
+
let res = await this.$resetpost(
|
|
331
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
332
|
+
data
|
|
333
|
+
)
|
|
334
|
+
res = await this.$resetpost(
|
|
335
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
336
|
+
this.show_data
|
|
337
|
+
)
|
|
338
|
+
this.breakControl()
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
watch:{
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
</script>
|