apply-clients 3.2.50 → 3.2.53
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/package.json +4 -3
- package/src/AndroidApp.vue +2 -2
- package/src/apply.js +7 -0
- package/src/components/app_apply/Process/AppExplorationUser.vue +200 -200
- package/src/components/app_apply/Process/AppServiceControl.vue +620 -620
- package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +1 -1
- package/src/components/image/tubiao2.png +0 -0
- package/src/components/image//347/247/246/345/215/216.png +0 -0
- package/src/components/product/Apply/Supervisory/SupervisoryhCart.vue +1 -1
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +104 -7
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +7 -3
- package/src/components/product/Ledger/Function/InstallInfoSelect.vue +1 -1
- package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +11 -4
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +11 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +9 -1
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +56 -14
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +10 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +33 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +149 -2
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +17 -5
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +10 -8
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +13 -6
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +40 -9
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +10 -60
- package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +4 -4
- package/src/components/product/Ledger/Process/ProcessBusiness.vue +8 -0
- package/src/components/product/Ledger/Process/ProcessSelect.vue +39 -14
- package/src/components/product/Ledger/Process/Service/ServiceControl.vue +747 -639
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingAddingMaterial.vue +330 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +117 -25
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialDepot.vue +113 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialList.vue +143 -0
- package/src/components/product/Ledger/Supervisory/BatchProcessing.vue +79 -0
- package/src/components/product/Ledger/Supervisory/BathProcessinglist.vue +205 -0
- package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +8 -0
- package/src/components/product/Ledger/Supervisory/Service/PrepareContract.vue +393 -0
- package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +2 -7
- package/src/components/product/Ledger/Supervisory/SupervisoryCart.vue +1 -1
- package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +79 -16
- package/src/components/product/ServiceView.vue +1 -3
- 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
|
@@ -1,620 +1,620 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12 col-xs-12" style="padding: 10px">
|
|
3
|
-
<accordion one-at-a-time="true">
|
|
4
|
-
<panel :header="selectdata.defname" :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">
|
|
8
|
-
<app-progress-report :selectdata="selectdata" type="文明施工"></app-progress-report>
|
|
9
|
-
</panel>
|
|
10
|
-
<panel header="管沟开挖" :is-open="false" type="primary">
|
|
11
|
-
<app-progress-report :selectdata="selectdata" type="管沟开挖"></app-progress-report>
|
|
12
|
-
</panel>
|
|
13
|
-
<panel header="管道焊接" :is-open="false" type="primary">
|
|
14
|
-
<app-progress-report :selectdata="selectdata" type="管道焊接"></app-progress-report>
|
|
15
|
-
</panel>
|
|
16
|
-
<panel header="打压记录" :is-open="false" type="primary">
|
|
17
|
-
<app-progress-report :selectdata="selectdata" type="打压记录"></app-progress-report>
|
|
18
|
-
</panel>
|
|
19
|
-
<panel header="防腐记录" :is-open="false" type="primary">
|
|
20
|
-
<app-progress-report :selectdata="selectdata" type="防腐记录"></app-progress-report>
|
|
21
|
-
</panel>
|
|
22
|
-
<panel header="隐蔽回填" :is-open="false" type="primary">
|
|
23
|
-
<app-progress-report :selectdata="selectdata" type="隐蔽回填"></app-progress-report>
|
|
24
|
-
</panel>
|
|
25
|
-
<panel header="高空作业" :is-open="false" type="primary">
|
|
26
|
-
<app-progress-report :selectdata="selectdata" type="高空作业"></app-progress-report>
|
|
27
|
-
</panel>
|
|
28
|
-
<panel header="签证记录" :is-open="false" type="primary">
|
|
29
|
-
<app-progress-report :selectdata="selectdata" type="签证记录"></app-progress-report>
|
|
30
|
-
</panel>
|
|
31
|
-
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
32
|
-
<app-take-pic :blobid="selectdata.f_process_id" type="手机照片" :defname="selectdata.defname" :isdelete="true" :istakepic="true"></app-take-pic>
|
|
33
|
-
</panel>
|
|
34
|
-
</accordion>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<script>
|
|
38
|
-
import Vue from 'vue'
|
|
39
|
-
import {HttpResetClass} from 'vue-client'
|
|
40
|
-
import {isEmpty} from '../../Util'
|
|
41
|
-
// Date格式化
|
|
42
|
-
Date.prototype.Format = function (fmt) {
|
|
43
|
-
var o = {
|
|
44
|
-
'M+': this.getMonth() + 1, // 月份
|
|
45
|
-
'd+': this.getDate(), // 日
|
|
46
|
-
'H+': this.getHours(), // 小时
|
|
47
|
-
'm+': this.getMinutes(), // 分
|
|
48
|
-
's+': this.getSeconds(), // 秒
|
|
49
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
50
|
-
'S': this.getMilliseconds() // 毫秒
|
|
51
|
-
}
|
|
52
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
53
|
-
for (var k in o) {
|
|
54
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
55
|
-
}
|
|
56
|
-
return fmt
|
|
57
|
-
}
|
|
58
|
-
export default {
|
|
59
|
-
title: '报建流程业务控制层',
|
|
60
|
-
props: ['selectdata'],
|
|
61
|
-
data () {
|
|
62
|
-
return {
|
|
63
|
-
json_datas: null,
|
|
64
|
-
data: null,
|
|
65
|
-
show_data: null,
|
|
66
|
-
showview: false
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
ready () {
|
|
70
|
-
this.getApplyConfig()
|
|
71
|
-
},
|
|
72
|
-
methods: {
|
|
73
|
-
async getApplyConfig() {
|
|
74
|
-
let http = new HttpResetClass()
|
|
75
|
-
let xmldata = {
|
|
76
|
-
data: Vue.user,
|
|
77
|
-
// data: {"parentname":"生产经营部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-business","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"183299","name":"流程业务","templatename":"functionedit","id":"183298","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.流程业务","fullid":"3.17.21.183292.183298","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-supervisory","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"188532","name":"流程监控","templatename":"functionedit","id":"188531","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.流程监控","fullid":"3.17.21.183292.188531","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-install-function","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"196444","name":"功能业务","templatename":"functionedit","id":"196443","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.功能业务","fullid":"3.17.21.183292.196443","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"purchase-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188550","name":"采购合同","templatename":"functionedit","id":"188549","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.采购合同","fullid":"3.17.21.183292.188543.188549","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"repair-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188658","name":"维修合同","templatename":"functionedit","id":"188657","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.维修合同","fullid":"3.17.21.183292.188543.188657","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"other-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188664","name":"其他合同","templatename":"functionedit","id":"188663","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.其他合同","fullid":"3.17.21.183292.188543.188663","tablename":"t_function"}],"selfid":"188544","name":"合同管理","templatename":"functionedit","id":"188543","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理","fullid":"3.17.21.183292.188543","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"inventory-information","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188640","name":"材料库存","templatename":"functionedit","id":"188639","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.材料库存","fullid":"3.17.21.183292.188627.188639","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"warehousing-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188646","name":"入库记录","templatename":"functionedit","id":"188645","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.入库记录","fullid":"3.17.21.183292.188627.188645","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"delivery-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188652","name":"出库记录","templatename":"functionedit","id":"188651","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库记录","fullid":"3.17.21.183292.188627.188651","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"outbound-order","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"198662","name":"出库单记录","templatename":"functionedit","id":"198661","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库单记录","fullid":"3.17.21.183292.188627.198661","tablename":"t_function"}],"selfid":"188628","name":"材料管理","templatename":"functionedit","id":"188627","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理","fullid":"3.17.21.183292.188627","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"picking-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238284","name":"领料记录","templatename":"functionedit","id":"238283","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.领料记录","fullid":"3.17.21.183292.238277.238283","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"seasoning-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238290","name":"调料记录","templatename":"functionedit","id":"238289","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.调料记录","fullid":"3.17.21.183292.238277.238289","tablename":"t_function"}],"selfid":"238278","name":"秦华物料","templatename":"functionedit","id":"238277","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料","fullid":"3.17.21.183292.238277","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"facility-inventory","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189114","name":"设备库存","templatename":"functionedit","id":"189113","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.设备库存","fullid":"3.17.21.183292.188633.189113","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"employ-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"257321","name":"使用记录","templatename":"functionedit","id":"257320","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.使用记录","fullid":"3.17.21.183292.188633.257320","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"service-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189102","name":"维修记录","templatename":"functionedit","id":"189101","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.维修记录","fullid":"3.17.21.183292.188633.189101","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"scrap-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189108","name":"报废记录","templatename":"functionedit","id":"189107","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.报废记录","fullid":"3.17.21.183292.188633.189107","tablename":"t_function"}],"selfid":"188634","name":"设备管理","templatename":"functionedit","id":"188633","position":"7","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理","fullid":"3.17.21.183292.188633","tablename":"t_function"}],"selfid":"183293","name":"台账系统","templatename":"functionedit","id":"183292","position":"27","fullname":"资源管理.功能模块.客服系统.台账系统","fullid":"3.17.21.183292","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=1015-1622454565681-74540","rolesnames":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","roles":"178650,178656,178662,178668,178674,178680","f_sex":"男","f_icon":"tree_user","fullnames":"西安市天然气工程有限责任公司.生产经营部.台账测试","dir":"qinhuagongcheng","accesstime":"1625456996393","userid":"1015-1622454565681-74540","parentid":"178638","fullids":"178632.178638.178686.","selfid":"178687","templatename":"useredit","logindate":"2021-06-08 16:11:44.527","id":"178686","state":"在职","tablename":"t_user","deptype":"部门","depids":"178638","loginid":"11","initpassword":"1","rolestr":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","deps":"生产经营部","loginnum":"0","resourcetype":"user","orgid":"178632","f_department_name":"生产经营部","ename":"tzcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.243","name":"台账测试","position":"1","orgs":"西安市天然气工程有限责任公司","f_role_name":"结算组 预决算组 生产组 设备材料组 主体项目部 客户项目部 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
78
|
-
workname: this.selectdata.processname
|
|
79
|
-
}
|
|
80
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`, {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
81
|
-
// let res = await http.load('POST', `rs/logic/ApplyGetConfigs`, {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
82
|
-
|
|
83
|
-
if (res.data.code && res.data.code === 200) {
|
|
84
|
-
this.json_datas = res.data.workflow_vue
|
|
85
|
-
} else {
|
|
86
|
-
this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
|
|
87
|
-
return
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
let sum = 0
|
|
91
|
-
let jsonData = {}
|
|
92
|
-
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
93
|
-
this.$showMessage("网络故障,请刷新页面")
|
|
94
|
-
return
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
for (let i = 0; i < this.json_datas.activitys.length; i++) {
|
|
98
|
-
if (this.selectdata.defname === this.json_datas.activitys[i].title) {
|
|
99
|
-
jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
|
|
100
|
-
sum++ // 节点名一样的个数
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (sum === 1) {
|
|
104
|
-
this.data = null
|
|
105
|
-
this.data = jsonData
|
|
106
|
-
// selectdata 填充 data
|
|
107
|
-
this.data = Object.assign({}, this.data, this.selectdata)
|
|
108
|
-
this.initializeJSON()
|
|
109
|
-
} else if (sum === 0) {
|
|
110
|
-
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
111
|
-
} else {
|
|
112
|
-
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
// json配置数据处理
|
|
116
|
-
async initializeJSON() {
|
|
117
|
-
// 有默认值,value就给默认值,没有就是null
|
|
118
|
-
this.data.fields.forEach(item => {
|
|
119
|
-
if (!item.value) {
|
|
120
|
-
if (item.value === 0) {
|
|
121
|
-
item.value = 0
|
|
122
|
-
} else {
|
|
123
|
-
item.value = null
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (item.default || item.default === 0) {
|
|
127
|
-
item.value = item.default
|
|
128
|
-
}
|
|
129
|
-
if (this.selectdata[item.field]) {
|
|
130
|
-
// 将json字符串格式化赋值给value
|
|
131
|
-
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
132
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
133
|
-
this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
|
|
134
|
-
} else {
|
|
135
|
-
item.value = this.selectdata[item.field]
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
if (this.selectdata[item.field] === 0) {
|
|
139
|
-
item.value = 0
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// datepicker 没有值给当时值
|
|
144
|
-
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
145
|
-
item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
149
|
-
if (item.type === 'select') {
|
|
150
|
-
let temp = null
|
|
151
|
-
|
|
152
|
-
temp = this.$appdata.getParam(item.label)
|
|
153
|
-
|
|
154
|
-
if (temp && temp.length > 0 && item.label) {
|
|
155
|
-
item.options = temp
|
|
156
|
-
} else {
|
|
157
|
-
if (item.paramLabel) {
|
|
158
|
-
temp = this.$appdata.getParam(item.paramLabel)
|
|
159
|
-
if (temp && temp.length > 0) {
|
|
160
|
-
item.options = temp
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
})
|
|
166
|
-
|
|
167
|
-
// 控制组件
|
|
168
|
-
if (this.data.components) {
|
|
169
|
-
this.data.components.forEach(item => {
|
|
170
|
-
item.mark = 0
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// 初始化 buttons_fields
|
|
175
|
-
for (let i = 0; i < this.data.buttons.length; i++) {
|
|
176
|
-
// 下发按钮相关配置
|
|
177
|
-
if (this.data.buttons[i].button_name === '下发') {
|
|
178
|
-
if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
|
|
179
|
-
if (this.data.buttons[i].source){
|
|
180
|
-
let http = new HttpResetClass()
|
|
181
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {
|
|
182
|
-
source: this.data.buttons[i].source,
|
|
183
|
-
userid: Vue.user.id
|
|
184
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
185
|
-
|
|
186
|
-
let options = []
|
|
187
|
-
for (let i = 0; i < res.data.length; i++) {
|
|
188
|
-
options.push(
|
|
189
|
-
{
|
|
190
|
-
"label": res.data[i].name,
|
|
191
|
-
"value": res.data[i].id
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
}
|
|
195
|
-
this.data.buttons[i].button_fields[0]['options'] = options
|
|
196
|
-
} else {
|
|
197
|
-
this.$showMessage("请配置获取人员表达式")
|
|
198
|
-
}
|
|
199
|
-
} else {
|
|
200
|
-
this.$showMessage("下发按钮必须满足 当且仅当一个字段")
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (this.data.buttons[i].button_fields) {
|
|
204
|
-
this.data.buttons[i].button_fields.forEach(item => {
|
|
205
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
206
|
-
if (item.type === 'select' && this.$appdata.getParam(item.label)) {
|
|
207
|
-
item.options = this.$appdata.getParam(item.label)
|
|
208
|
-
}
|
|
209
|
-
})
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// onetomany 数据获取
|
|
214
|
-
if (this.data.onetomany) {
|
|
215
|
-
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
216
|
-
let res = null
|
|
217
|
-
if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
|
|
218
|
-
let http = new HttpResetClass()
|
|
219
|
-
let data = {
|
|
220
|
-
tablename: this.data.onetomany[index].tables[0],
|
|
221
|
-
condition: `${this.data.onetomany[index].condition ? this.data.onetomany[index].condition : '1=1'} and f_process_id = '${this.selectdata.f_process_id}'`
|
|
222
|
-
}
|
|
223
|
-
res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
224
|
-
resolveMsg: null,
|
|
225
|
-
rejectMsg: 'onetomany查询失败'
|
|
226
|
-
})
|
|
227
|
-
} else {
|
|
228
|
-
res = await this[this.data.onetomany[index].queryEvent]()
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// 初始化 onetomany
|
|
232
|
-
this.data.onetomany[index].rows = res.data
|
|
233
|
-
|
|
234
|
-
// 初始化onetomany中的fields
|
|
235
|
-
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
236
|
-
if (!this.data.onetomany[index].fields[j].value) {
|
|
237
|
-
if (this.data.onetomany[index].fields[j].value === 0) {
|
|
238
|
-
this.data.onetomany[index].fields[j].value = 0
|
|
239
|
-
} else {
|
|
240
|
-
this.data.onetomany[index].fields[j].value = null
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default === 0) {
|
|
244
|
-
this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
|
|
245
|
-
}
|
|
246
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
247
|
-
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
248
|
-
if (this.data.onetomany[index].fields[j].paramLabel) {
|
|
249
|
-
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].paramLabel)
|
|
250
|
-
} else {
|
|
251
|
-
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
259
|
-
let temp = JSON.parse(JSON.stringify(this.data))
|
|
260
|
-
|
|
261
|
-
this.show_data = temp
|
|
262
|
-
this.$nextTick(() => {
|
|
263
|
-
this.showview = true
|
|
264
|
-
})
|
|
265
|
-
},
|
|
266
|
-
async buttonBefore(model) {
|
|
267
|
-
return model
|
|
268
|
-
},
|
|
269
|
-
async checkDuplicate(index) {
|
|
270
|
-
let http = new HttpResetClass()
|
|
271
|
-
let data = {
|
|
272
|
-
tablename: 't_apply',
|
|
273
|
-
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
274
|
-
}
|
|
275
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
276
|
-
resolveMsg: null,
|
|
277
|
-
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
278
|
-
})
|
|
279
|
-
if (res.data.length > 0) {
|
|
280
|
-
this.show_data.fields[index].value = null
|
|
281
|
-
throw `${this.show_data.fields[index].label}已存在!!!`
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
// 获取管件
|
|
285
|
-
async getPipeFittings() {
|
|
286
|
-
let http = new HttpResetClass()
|
|
287
|
-
let data = {
|
|
288
|
-
tablename: 't_pipe_fittings',
|
|
289
|
-
condition: `f_process_id = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}'`
|
|
290
|
-
}
|
|
291
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
292
|
-
resolveMsg: null,
|
|
293
|
-
rejectMsg: 'onetomany查询失败'
|
|
294
|
-
})
|
|
295
|
-
return res
|
|
296
|
-
},
|
|
297
|
-
async breakControl() {
|
|
298
|
-
this.showview = false
|
|
299
|
-
|
|
300
|
-
if (this.show_data.id) {
|
|
301
|
-
let http = new HttpResetClass()
|
|
302
|
-
let data = {
|
|
303
|
-
condition: `u.id = ${this.show_data.id} and act.defname = '${this.show_data.defname}'`,
|
|
304
|
-
data: {
|
|
305
|
-
id: Vue.user.id,
|
|
306
|
-
orgid: Vue.user.orgid
|
|
307
|
-
// id: '438',
|
|
308
|
-
// orgid: '161'
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
312
|
-
// let res = await http.load('POST', `rs/sql/checkuser`, {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
313
|
-
|
|
314
|
-
this.selectdata = res.data[0]
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
this.getApplyConfig()
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
events: {
|
|
321
|
-
async 'addPEWelding'(index) {
|
|
322
|
-
let data = {
|
|
323
|
-
f_process_id : this.show_data.f_process_id,
|
|
324
|
-
f_type: 'PE焊接',
|
|
325
|
-
f_operator: Vue.user.name,
|
|
326
|
-
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
327
|
-
f_filiale: Vue.user.orgs,
|
|
328
|
-
f_filialeid: Vue.user.orgid,
|
|
329
|
-
f_orgid: Vue.user.orgid,
|
|
330
|
-
f_orgname: Vue.user.orgs
|
|
331
|
-
}
|
|
332
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
333
|
-
data[item.field] = item.value
|
|
334
|
-
})
|
|
335
|
-
let res = await this.$resetpost(
|
|
336
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
337
|
-
data
|
|
338
|
-
)
|
|
339
|
-
this.breakControl()
|
|
340
|
-
},
|
|
341
|
-
async 'addIndoorCheckpoint'(index) {
|
|
342
|
-
let data = {
|
|
343
|
-
f_process_id : this.show_data.f_process_id,
|
|
344
|
-
f_type: '户内验点',
|
|
345
|
-
f_operator: Vue.user.name,
|
|
346
|
-
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
347
|
-
f_filiale: Vue.user.orgs,
|
|
348
|
-
f_filialeid: Vue.user.orgid,
|
|
349
|
-
f_orgid: Vue.user.orgid,
|
|
350
|
-
f_orgname: Vue.user.orgs
|
|
351
|
-
}
|
|
352
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
353
|
-
data[item.field] = item.value
|
|
354
|
-
})
|
|
355
|
-
let res = await this.$resetpost(
|
|
356
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
357
|
-
data
|
|
358
|
-
)
|
|
359
|
-
this.breakControl()
|
|
360
|
-
},
|
|
361
|
-
async 'addCourtyardAcceptance'(index) {
|
|
362
|
-
let data = {
|
|
363
|
-
f_process_id : this.show_data.f_process_id,
|
|
364
|
-
f_type: '庭院验收',
|
|
365
|
-
f_operator: Vue.user.name,
|
|
366
|
-
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
367
|
-
f_filiale: Vue.user.orgs,
|
|
368
|
-
f_filialeid: Vue.user.orgid,
|
|
369
|
-
f_orgid: Vue.user.orgid,
|
|
370
|
-
f_orgname: Vue.user.orgs
|
|
371
|
-
}
|
|
372
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
373
|
-
data[item.field] = item.value
|
|
374
|
-
})
|
|
375
|
-
let res = await this.$resetpost(
|
|
376
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
377
|
-
data
|
|
378
|
-
)
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
async 'addPipeFittings'(index) {
|
|
382
|
-
let data = {
|
|
383
|
-
f_process_id : this.show_data.f_process_id,
|
|
384
|
-
defname: this.show_data.defname,
|
|
385
|
-
f_operator: Vue.user.name,
|
|
386
|
-
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
387
|
-
f_filiale: Vue.user.orgs,
|
|
388
|
-
f_filialeid: Vue.user.orgid,
|
|
389
|
-
f_orgid: Vue.user.orgid,
|
|
390
|
-
f_orgname: Vue.user.orgs
|
|
391
|
-
}
|
|
392
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
393
|
-
data[item.field] = item.value
|
|
394
|
-
})
|
|
395
|
-
let res = await this.$resetpost(
|
|
396
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_pipe_fittings`,
|
|
397
|
-
data
|
|
398
|
-
)
|
|
399
|
-
this.breakControl()
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
async 'initializtionView'() {
|
|
403
|
-
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '工程前期') {
|
|
404
|
-
if (this.show_data.f_project_type === '支线') {
|
|
405
|
-
for (const item of this.show_data.fields) {
|
|
406
|
-
if (
|
|
407
|
-
item.label === '会签完毕时间'
|
|
408
|
-
) {
|
|
409
|
-
item.hidden = true
|
|
410
|
-
item.required = false
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
} else {
|
|
414
|
-
for (const item of this.show_data.fields) {
|
|
415
|
-
if (
|
|
416
|
-
item.label === '领开挖证时间'
|
|
417
|
-
) {
|
|
418
|
-
item.hidden = true
|
|
419
|
-
item.required = false
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '结算') {
|
|
426
|
-
if (this.show_data.f_project_type === '支线') {
|
|
427
|
-
for (const item of this.show_data.fields) {
|
|
428
|
-
if (
|
|
429
|
-
item.label === '预付款' ||
|
|
430
|
-
item.label === '预付款占比' ||
|
|
431
|
-
item.label === '预付款时间'
|
|
432
|
-
) {
|
|
433
|
-
item.hidden = true
|
|
434
|
-
item.required = false
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
if (this.show_data.f_apply_type === '客户项目' && this.show_data.defname === '工程前期') {
|
|
441
|
-
if (this.show_data.f_project_type === '技改') {
|
|
442
|
-
for (const item of this.show_data.fields) {
|
|
443
|
-
if (
|
|
444
|
-
item.label === '区域'
|
|
445
|
-
) {
|
|
446
|
-
item.hidden = false
|
|
447
|
-
item.required = true
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
} else {
|
|
451
|
-
for (const item of this.show_data.fields) {
|
|
452
|
-
if (
|
|
453
|
-
item.label === '区域'
|
|
454
|
-
) {
|
|
455
|
-
item.hidden = true
|
|
456
|
-
item.required = false
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
// 失去焦点出触发事件
|
|
463
|
-
async 'onchange'(index) {
|
|
464
|
-
if (
|
|
465
|
-
this.show_data.fields[index].label === '合同编号' ||
|
|
466
|
-
this.show_data.fields[index].label === '工程编号' ||
|
|
467
|
-
this.show_data.fields[index].label === 'CEA号'
|
|
468
|
-
) {
|
|
469
|
-
try {
|
|
470
|
-
await this.checkDuplicate(index)
|
|
471
|
-
} catch (e) {
|
|
472
|
-
this.$showMessage(e)
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// 号码检测
|
|
477
|
-
if (this.show_data.fields[index].label === '电话号码') {
|
|
478
|
-
let phone = this.show_data.fields[index].value
|
|
479
|
-
// 电话号码效验
|
|
480
|
-
if (!(/^1[3456789]\d{9}$/.test(phone))) {
|
|
481
|
-
this.show_data.fields[index].value = ""
|
|
482
|
-
this.$showMessage("电话号码格式不正确,请重新输入!!!")
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
// 获取view层button事件/
|
|
487
|
-
async 'button'(model) {
|
|
488
|
-
// 修改提交数据
|
|
489
|
-
model = Object.assign({}, this.selectdata, model)
|
|
490
|
-
// 点击重置按钮就重置数据
|
|
491
|
-
if (model.button.button_name === '重置') {
|
|
492
|
-
this.breakControl()
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// 提交前置
|
|
497
|
-
try {
|
|
498
|
-
model = await this.buttonBefore(model)
|
|
499
|
-
} catch (e) {
|
|
500
|
-
this.$showMessage(e)
|
|
501
|
-
return
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
let http = new HttpResetClass()
|
|
505
|
-
let requestData = {
|
|
506
|
-
tables: this.data.tables,
|
|
507
|
-
start_activity: this.json_datas.start_activity,
|
|
508
|
-
model: model,
|
|
509
|
-
loginUser: Vue.user,
|
|
510
|
-
// loginUser: {"parentname":"生产经营部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-business","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"183299","name":"流程业务","templatename":"functionedit","id":"183298","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.流程业务","fullid":"3.17.21.183292.183298","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-supervisory","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"188532","name":"流程监控","templatename":"functionedit","id":"188531","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.流程监控","fullid":"3.17.21.183292.188531","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-install-function","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"196444","name":"功能业务","templatename":"functionedit","id":"196443","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.功能业务","fullid":"3.17.21.183292.196443","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"purchase-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188550","name":"采购合同","templatename":"functionedit","id":"188549","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.采购合同","fullid":"3.17.21.183292.188543.188549","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"repair-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188658","name":"维修合同","templatename":"functionedit","id":"188657","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.维修合同","fullid":"3.17.21.183292.188543.188657","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"other-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188664","name":"其他合同","templatename":"functionedit","id":"188663","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.其他合同","fullid":"3.17.21.183292.188543.188663","tablename":"t_function"}],"selfid":"188544","name":"合同管理","templatename":"functionedit","id":"188543","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理","fullid":"3.17.21.183292.188543","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"inventory-information","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188640","name":"材料库存","templatename":"functionedit","id":"188639","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.材料库存","fullid":"3.17.21.183292.188627.188639","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"warehousing-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188646","name":"入库记录","templatename":"functionedit","id":"188645","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.入库记录","fullid":"3.17.21.183292.188627.188645","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"delivery-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188652","name":"出库记录","templatename":"functionedit","id":"188651","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库记录","fullid":"3.17.21.183292.188627.188651","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"outbound-order","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"198662","name":"出库单记录","templatename":"functionedit","id":"198661","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库单记录","fullid":"3.17.21.183292.188627.198661","tablename":"t_function"}],"selfid":"188628","name":"材料管理","templatename":"functionedit","id":"188627","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理","fullid":"3.17.21.183292.188627","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"picking-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238284","name":"领料记录","templatename":"functionedit","id":"238283","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.领料记录","fullid":"3.17.21.183292.238277.238283","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"seasoning-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238290","name":"调料记录","templatename":"functionedit","id":"238289","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.调料记录","fullid":"3.17.21.183292.238277.238289","tablename":"t_function"}],"selfid":"238278","name":"秦华物料","templatename":"functionedit","id":"238277","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料","fullid":"3.17.21.183292.238277","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"facility-inventory","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189114","name":"设备库存","templatename":"functionedit","id":"189113","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.设备库存","fullid":"3.17.21.183292.188633.189113","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"employ-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"257321","name":"使用记录","templatename":"functionedit","id":"257320","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.使用记录","fullid":"3.17.21.183292.188633.257320","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"service-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189102","name":"维修记录","templatename":"functionedit","id":"189101","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.维修记录","fullid":"3.17.21.183292.188633.189101","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"scrap-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189108","name":"报废记录","templatename":"functionedit","id":"189107","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.报废记录","fullid":"3.17.21.183292.188633.189107","tablename":"t_function"}],"selfid":"188634","name":"设备管理","templatename":"functionedit","id":"188633","position":"7","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理","fullid":"3.17.21.183292.188633","tablename":"t_function"}],"selfid":"183293","name":"台账系统","templatename":"functionedit","id":"183292","position":"27","fullname":"资源管理.功能模块.客服系统.台账系统","fullid":"3.17.21.183292","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=1015-1622454565681-74540","rolesnames":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","roles":"178650,178656,178662,178668,178674,178680","f_sex":"男","f_icon":"tree_user","fullnames":"西安市天然气工程有限责任公司.生产经营部.台账测试","dir":"qinhuagongcheng","accesstime":"1625456996393","userid":"1015-1622454565681-74540","parentid":"178638","fullids":"178632.178638.178686.","selfid":"178687","templatename":"useredit","logindate":"2021-06-08 16:11:44.527","id":"178686","state":"在职","tablename":"t_user","deptype":"部门","depids":"178638","loginid":"11","initpassword":"1","rolestr":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","deps":"生产经营部","loginnum":"0","resourcetype":"user","orgid":"178632","f_department_name":"生产经营部","ename":"tzcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.243","name":"台账测试","position":"1","orgs":"西安市天然气工程有限责任公司","f_role_name":"结算组 预决算组 生产组 设备材料组 主体项目部 客户项目部 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
511
|
-
workflow_xmlfilename: this.json_datas.workflow_xmlfilename
|
|
512
|
-
}
|
|
513
|
-
// 下发,提交,保存,退回通用业务后台处理logic
|
|
514
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
515
|
-
// let res = await http.load('POST', `rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
516
|
-
|
|
517
|
-
if (res.data.code === 200) {
|
|
518
|
-
this.$dispatch('confirm')
|
|
519
|
-
} else {
|
|
520
|
-
if (res.data.msg) {
|
|
521
|
-
this.$showMessage(res.data.msg)
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
// onetomany模态框默认监听监听事件
|
|
527
|
-
async 'onetomanydelete'(i, j) {
|
|
528
|
-
console.log('默认删除')
|
|
529
|
-
let http = new HttpResetClass()
|
|
530
|
-
let data = {
|
|
531
|
-
table: this.show_data.onetomany[i].tables[0],
|
|
532
|
-
row: this.show_data.onetomany[i].rows[j]
|
|
533
|
-
}
|
|
534
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/onetomanyDefaultDeleteEvent`, {data: data}, {
|
|
535
|
-
resolveMsg: null,
|
|
536
|
-
rejectMsg: '删除失败'
|
|
537
|
-
})
|
|
538
|
-
|
|
539
|
-
if (res.data <= 0){
|
|
540
|
-
this.$showMessage('删除失败')
|
|
541
|
-
return
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
this.breakControl()
|
|
545
|
-
},
|
|
546
|
-
async 'onetomanyadd'(index) {
|
|
547
|
-
|
|
548
|
-
let data = {
|
|
549
|
-
f_process_id : this.show_data.f_process_id
|
|
550
|
-
}
|
|
551
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
552
|
-
data[item.field] = item.value
|
|
553
|
-
})
|
|
554
|
-
let res = await this.$resetpost(
|
|
555
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
556
|
-
data
|
|
557
|
-
)
|
|
558
|
-
|
|
559
|
-
this.breakControl()
|
|
560
|
-
},
|
|
561
|
-
async 'onetomanyupdate'(i, j) {
|
|
562
|
-
let onetomany = this.show_data.onetomany[i]
|
|
563
|
-
let data = onetomany.rows[j]
|
|
564
|
-
|
|
565
|
-
onetomany.fields.forEach(item => {
|
|
566
|
-
data[item.field] = item.value
|
|
567
|
-
})
|
|
568
|
-
let res = await this.$resetpost(
|
|
569
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[i].tables[0]}`,
|
|
570
|
-
data
|
|
571
|
-
)
|
|
572
|
-
|
|
573
|
-
this.breakControl()
|
|
574
|
-
},
|
|
575
|
-
// onetomany模态框监听事件
|
|
576
|
-
async 'onchange_modal'(index, i) {
|
|
577
|
-
},
|
|
578
|
-
async 'oninput_modal'(index, i) {
|
|
579
|
-
},
|
|
580
|
-
error_check(index) {
|
|
581
|
-
// 时间格式检测
|
|
582
|
-
if (this.show_data.fields[index].type === 'datepicker' && !isEmpty(this.show_data.fields[index].value)) {
|
|
583
|
-
|
|
584
|
-
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
585
|
-
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
586
|
-
let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
587
|
-
if (this.show_data.fields[index].format) {
|
|
588
|
-
if (this.show_data.fields[index].format === 'yyyy-MM-dd') {
|
|
589
|
-
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
590
|
-
this.show_data.fields[index].value = ''
|
|
591
|
-
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
if (this.show_data.fields[index].format === 'HH:mm:ss') {
|
|
595
|
-
if (!timeReg.test(this.show_data.fields[index].value)) {
|
|
596
|
-
this.show_data.fields[index].value = ''
|
|
597
|
-
this.$showMessage(this.show_data.fields[index].label + '格式错误如:00:00:00')
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
if (this.show_data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
601
|
-
if (!datetimeReg.test(this.show_data.fields[index].value)) {
|
|
602
|
-
this.show_data.fields[index].value = ''
|
|
603
|
-
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01 00:00:00')
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
} else {
|
|
607
|
-
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
608
|
-
this.show_data.fields[index].value = ''
|
|
609
|
-
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
watch: {
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
</script>
|
|
619
|
-
<style scoped>
|
|
620
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12 col-xs-12" style="padding: 10px">
|
|
3
|
+
<accordion one-at-a-time="true">
|
|
4
|
+
<panel :header="selectdata.defname" :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">
|
|
8
|
+
<app-progress-report :selectdata="selectdata" type="文明施工"></app-progress-report>
|
|
9
|
+
</panel>
|
|
10
|
+
<panel header="管沟开挖" :is-open="false" type="primary">
|
|
11
|
+
<app-progress-report :selectdata="selectdata" type="管沟开挖"></app-progress-report>
|
|
12
|
+
</panel>
|
|
13
|
+
<panel header="管道焊接" :is-open="false" type="primary">
|
|
14
|
+
<app-progress-report :selectdata="selectdata" type="管道焊接"></app-progress-report>
|
|
15
|
+
</panel>
|
|
16
|
+
<panel header="打压记录" :is-open="false" type="primary">
|
|
17
|
+
<app-progress-report :selectdata="selectdata" type="打压记录"></app-progress-report>
|
|
18
|
+
</panel>
|
|
19
|
+
<panel header="防腐记录" :is-open="false" type="primary">
|
|
20
|
+
<app-progress-report :selectdata="selectdata" type="防腐记录"></app-progress-report>
|
|
21
|
+
</panel>
|
|
22
|
+
<panel header="隐蔽回填" :is-open="false" type="primary">
|
|
23
|
+
<app-progress-report :selectdata="selectdata" type="隐蔽回填"></app-progress-report>
|
|
24
|
+
</panel>
|
|
25
|
+
<panel header="高空作业" :is-open="false" type="primary">
|
|
26
|
+
<app-progress-report :selectdata="selectdata" type="高空作业"></app-progress-report>
|
|
27
|
+
</panel>
|
|
28
|
+
<panel header="签证记录" :is-open="false" type="primary">
|
|
29
|
+
<app-progress-report :selectdata="selectdata" type="签证记录"></app-progress-report>
|
|
30
|
+
</panel>
|
|
31
|
+
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
32
|
+
<app-take-pic :blobid="selectdata.f_process_id" type="手机照片" :defname="selectdata.defname" :isdelete="true" :istakepic="true"></app-take-pic>
|
|
33
|
+
</panel>
|
|
34
|
+
</accordion>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<script>
|
|
38
|
+
import Vue from 'vue'
|
|
39
|
+
import {HttpResetClass} from 'vue-client'
|
|
40
|
+
import {isEmpty} from '../../Util'
|
|
41
|
+
// Date格式化
|
|
42
|
+
Date.prototype.Format = function (fmt) {
|
|
43
|
+
var o = {
|
|
44
|
+
'M+': this.getMonth() + 1, // 月份
|
|
45
|
+
'd+': this.getDate(), // 日
|
|
46
|
+
'H+': this.getHours(), // 小时
|
|
47
|
+
'm+': this.getMinutes(), // 分
|
|
48
|
+
's+': this.getSeconds(), // 秒
|
|
49
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
50
|
+
'S': this.getMilliseconds() // 毫秒
|
|
51
|
+
}
|
|
52
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
53
|
+
for (var k in o) {
|
|
54
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
55
|
+
}
|
|
56
|
+
return fmt
|
|
57
|
+
}
|
|
58
|
+
export default {
|
|
59
|
+
title: '报建流程业务控制层',
|
|
60
|
+
props: ['selectdata'],
|
|
61
|
+
data () {
|
|
62
|
+
return {
|
|
63
|
+
json_datas: null,
|
|
64
|
+
data: null,
|
|
65
|
+
show_data: null,
|
|
66
|
+
showview: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
ready () {
|
|
70
|
+
this.getApplyConfig()
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
async getApplyConfig() {
|
|
74
|
+
let http = new HttpResetClass()
|
|
75
|
+
let xmldata = {
|
|
76
|
+
data: Vue.user,
|
|
77
|
+
// data: {"parentname":"生产经营部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-business","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"183299","name":"流程业务","templatename":"functionedit","id":"183298","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.流程业务","fullid":"3.17.21.183292.183298","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-supervisory","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"188532","name":"流程监控","templatename":"functionedit","id":"188531","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.流程监控","fullid":"3.17.21.183292.188531","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-install-function","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"196444","name":"功能业务","templatename":"functionedit","id":"196443","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.功能业务","fullid":"3.17.21.183292.196443","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"purchase-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188550","name":"采购合同","templatename":"functionedit","id":"188549","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.采购合同","fullid":"3.17.21.183292.188543.188549","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"repair-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188658","name":"维修合同","templatename":"functionedit","id":"188657","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.维修合同","fullid":"3.17.21.183292.188543.188657","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"other-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188664","name":"其他合同","templatename":"functionedit","id":"188663","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.其他合同","fullid":"3.17.21.183292.188543.188663","tablename":"t_function"}],"selfid":"188544","name":"合同管理","templatename":"functionedit","id":"188543","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理","fullid":"3.17.21.183292.188543","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"inventory-information","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188640","name":"材料库存","templatename":"functionedit","id":"188639","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.材料库存","fullid":"3.17.21.183292.188627.188639","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"warehousing-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188646","name":"入库记录","templatename":"functionedit","id":"188645","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.入库记录","fullid":"3.17.21.183292.188627.188645","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"delivery-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188652","name":"出库记录","templatename":"functionedit","id":"188651","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库记录","fullid":"3.17.21.183292.188627.188651","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"outbound-order","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"198662","name":"出库单记录","templatename":"functionedit","id":"198661","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库单记录","fullid":"3.17.21.183292.188627.198661","tablename":"t_function"}],"selfid":"188628","name":"材料管理","templatename":"functionedit","id":"188627","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理","fullid":"3.17.21.183292.188627","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"picking-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238284","name":"领料记录","templatename":"functionedit","id":"238283","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.领料记录","fullid":"3.17.21.183292.238277.238283","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"seasoning-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238290","name":"调料记录","templatename":"functionedit","id":"238289","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.调料记录","fullid":"3.17.21.183292.238277.238289","tablename":"t_function"}],"selfid":"238278","name":"秦华物料","templatename":"functionedit","id":"238277","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料","fullid":"3.17.21.183292.238277","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"facility-inventory","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189114","name":"设备库存","templatename":"functionedit","id":"189113","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.设备库存","fullid":"3.17.21.183292.188633.189113","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"employ-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"257321","name":"使用记录","templatename":"functionedit","id":"257320","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.使用记录","fullid":"3.17.21.183292.188633.257320","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"service-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189102","name":"维修记录","templatename":"functionedit","id":"189101","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.维修记录","fullid":"3.17.21.183292.188633.189101","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"scrap-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189108","name":"报废记录","templatename":"functionedit","id":"189107","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.报废记录","fullid":"3.17.21.183292.188633.189107","tablename":"t_function"}],"selfid":"188634","name":"设备管理","templatename":"functionedit","id":"188633","position":"7","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理","fullid":"3.17.21.183292.188633","tablename":"t_function"}],"selfid":"183293","name":"台账系统","templatename":"functionedit","id":"183292","position":"27","fullname":"资源管理.功能模块.客服系统.台账系统","fullid":"3.17.21.183292","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=1015-1622454565681-74540","rolesnames":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","roles":"178650,178656,178662,178668,178674,178680","f_sex":"男","f_icon":"tree_user","fullnames":"西安市天然气工程有限责任公司.生产经营部.台账测试","dir":"qinhuagongcheng","accesstime":"1625456996393","userid":"1015-1622454565681-74540","parentid":"178638","fullids":"178632.178638.178686.","selfid":"178687","templatename":"useredit","logindate":"2021-06-08 16:11:44.527","id":"178686","state":"在职","tablename":"t_user","deptype":"部门","depids":"178638","loginid":"11","initpassword":"1","rolestr":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","deps":"生产经营部","loginnum":"0","resourcetype":"user","orgid":"178632","f_department_name":"生产经营部","ename":"tzcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.243","name":"台账测试","position":"1","orgs":"西安市天然气工程有限责任公司","f_role_name":"结算组 预决算组 生产组 设备材料组 主体项目部 客户项目部 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
78
|
+
workname: this.selectdata.processname
|
|
79
|
+
}
|
|
80
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`, {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
81
|
+
// let res = await http.load('POST', `rs/logic/ApplyGetConfigs`, {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
82
|
+
|
|
83
|
+
if (res.data.code && res.data.code === 200) {
|
|
84
|
+
this.json_datas = res.data.workflow_vue
|
|
85
|
+
} else {
|
|
86
|
+
this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
|
|
87
|
+
return
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
let sum = 0
|
|
91
|
+
let jsonData = {}
|
|
92
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
93
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
94
|
+
return
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
for (let i = 0; i < this.json_datas.activitys.length; i++) {
|
|
98
|
+
if (this.selectdata.defname === this.json_datas.activitys[i].title) {
|
|
99
|
+
jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
|
|
100
|
+
sum++ // 节点名一样的个数
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (sum === 1) {
|
|
104
|
+
this.data = null
|
|
105
|
+
this.data = jsonData
|
|
106
|
+
// selectdata 填充 data
|
|
107
|
+
this.data = Object.assign({}, this.data, this.selectdata)
|
|
108
|
+
this.initializeJSON()
|
|
109
|
+
} else if (sum === 0) {
|
|
110
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
111
|
+
} else {
|
|
112
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
// json配置数据处理
|
|
116
|
+
async initializeJSON() {
|
|
117
|
+
// 有默认值,value就给默认值,没有就是null
|
|
118
|
+
this.data.fields.forEach(item => {
|
|
119
|
+
if (!item.value) {
|
|
120
|
+
if (item.value === 0) {
|
|
121
|
+
item.value = 0
|
|
122
|
+
} else {
|
|
123
|
+
item.value = null
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (item.default || item.default === 0) {
|
|
127
|
+
item.value = item.default
|
|
128
|
+
}
|
|
129
|
+
if (this.selectdata[item.field]) {
|
|
130
|
+
// 将json字符串格式化赋值给value
|
|
131
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
132
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
133
|
+
this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
|
|
134
|
+
} else {
|
|
135
|
+
item.value = this.selectdata[item.field]
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
if (this.selectdata[item.field] === 0) {
|
|
139
|
+
item.value = 0
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// datepicker 没有值给当时值
|
|
144
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
145
|
+
item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
149
|
+
if (item.type === 'select') {
|
|
150
|
+
let temp = null
|
|
151
|
+
|
|
152
|
+
temp = this.$appdata.getParam(item.label)
|
|
153
|
+
|
|
154
|
+
if (temp && temp.length > 0 && item.label) {
|
|
155
|
+
item.options = temp
|
|
156
|
+
} else {
|
|
157
|
+
if (item.paramLabel) {
|
|
158
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
159
|
+
if (temp && temp.length > 0) {
|
|
160
|
+
item.options = temp
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
})
|
|
166
|
+
|
|
167
|
+
// 控制组件
|
|
168
|
+
if (this.data.components) {
|
|
169
|
+
this.data.components.forEach(item => {
|
|
170
|
+
item.mark = 0
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// 初始化 buttons_fields
|
|
175
|
+
for (let i = 0; i < this.data.buttons.length; i++) {
|
|
176
|
+
// 下发按钮相关配置
|
|
177
|
+
if (this.data.buttons[i].button_name === '下发') {
|
|
178
|
+
if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
|
|
179
|
+
if (this.data.buttons[i].source){
|
|
180
|
+
let http = new HttpResetClass()
|
|
181
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {
|
|
182
|
+
source: this.data.buttons[i].source,
|
|
183
|
+
userid: Vue.user.id
|
|
184
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
185
|
+
|
|
186
|
+
let options = []
|
|
187
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
188
|
+
options.push(
|
|
189
|
+
{
|
|
190
|
+
"label": res.data[i].name,
|
|
191
|
+
"value": res.data[i].id
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
this.data.buttons[i].button_fields[0]['options'] = options
|
|
196
|
+
} else {
|
|
197
|
+
this.$showMessage("请配置获取人员表达式")
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
this.$showMessage("下发按钮必须满足 当且仅当一个字段")
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (this.data.buttons[i].button_fields) {
|
|
204
|
+
this.data.buttons[i].button_fields.forEach(item => {
|
|
205
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
206
|
+
if (item.type === 'select' && this.$appdata.getParam(item.label)) {
|
|
207
|
+
item.options = this.$appdata.getParam(item.label)
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// onetomany 数据获取
|
|
214
|
+
if (this.data.onetomany) {
|
|
215
|
+
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
216
|
+
let res = null
|
|
217
|
+
if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
|
|
218
|
+
let http = new HttpResetClass()
|
|
219
|
+
let data = {
|
|
220
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
221
|
+
condition: `${this.data.onetomany[index].condition ? this.data.onetomany[index].condition : '1=1'} and f_process_id = '${this.selectdata.f_process_id}'`
|
|
222
|
+
}
|
|
223
|
+
res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
224
|
+
resolveMsg: null,
|
|
225
|
+
rejectMsg: 'onetomany查询失败'
|
|
226
|
+
})
|
|
227
|
+
} else {
|
|
228
|
+
res = await this[this.data.onetomany[index].queryEvent]()
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// 初始化 onetomany
|
|
232
|
+
this.data.onetomany[index].rows = res.data
|
|
233
|
+
|
|
234
|
+
// 初始化onetomany中的fields
|
|
235
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
236
|
+
if (!this.data.onetomany[index].fields[j].value) {
|
|
237
|
+
if (this.data.onetomany[index].fields[j].value === 0) {
|
|
238
|
+
this.data.onetomany[index].fields[j].value = 0
|
|
239
|
+
} else {
|
|
240
|
+
this.data.onetomany[index].fields[j].value = null
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default === 0) {
|
|
244
|
+
this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
|
|
245
|
+
}
|
|
246
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
247
|
+
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
248
|
+
if (this.data.onetomany[index].fields[j].paramLabel) {
|
|
249
|
+
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].paramLabel)
|
|
250
|
+
} else {
|
|
251
|
+
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
259
|
+
let temp = JSON.parse(JSON.stringify(this.data))
|
|
260
|
+
|
|
261
|
+
this.show_data = temp
|
|
262
|
+
this.$nextTick(() => {
|
|
263
|
+
this.showview = true
|
|
264
|
+
})
|
|
265
|
+
},
|
|
266
|
+
async buttonBefore(model) {
|
|
267
|
+
return model
|
|
268
|
+
},
|
|
269
|
+
async checkDuplicate(index) {
|
|
270
|
+
let http = new HttpResetClass()
|
|
271
|
+
let data = {
|
|
272
|
+
tablename: 't_apply',
|
|
273
|
+
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
274
|
+
}
|
|
275
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
276
|
+
resolveMsg: null,
|
|
277
|
+
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
278
|
+
})
|
|
279
|
+
if (res.data.length > 0) {
|
|
280
|
+
this.show_data.fields[index].value = null
|
|
281
|
+
throw `${this.show_data.fields[index].label}已存在!!!`
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
// 获取管件
|
|
285
|
+
async getPipeFittings() {
|
|
286
|
+
let http = new HttpResetClass()
|
|
287
|
+
let data = {
|
|
288
|
+
tablename: 't_pipe_fittings',
|
|
289
|
+
condition: `f_process_id = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}'`
|
|
290
|
+
}
|
|
291
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
292
|
+
resolveMsg: null,
|
|
293
|
+
rejectMsg: 'onetomany查询失败'
|
|
294
|
+
})
|
|
295
|
+
return res
|
|
296
|
+
},
|
|
297
|
+
async breakControl() {
|
|
298
|
+
this.showview = false
|
|
299
|
+
|
|
300
|
+
if (this.show_data.id) {
|
|
301
|
+
let http = new HttpResetClass()
|
|
302
|
+
let data = {
|
|
303
|
+
condition: `u.id = ${this.show_data.id} and act.defname = '${this.show_data.defname}'`,
|
|
304
|
+
data: {
|
|
305
|
+
id: Vue.user.id,
|
|
306
|
+
orgid: Vue.user.orgid
|
|
307
|
+
// id: '438',
|
|
308
|
+
// orgid: '161'
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
312
|
+
// let res = await http.load('POST', `rs/sql/checkuser`, {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
313
|
+
|
|
314
|
+
this.selectdata = res.data[0]
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
this.getApplyConfig()
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
events: {
|
|
321
|
+
async 'addPEWelding'(index) {
|
|
322
|
+
let data = {
|
|
323
|
+
f_process_id : this.show_data.f_process_id,
|
|
324
|
+
f_type: 'PE焊接',
|
|
325
|
+
f_operator: Vue.user.name,
|
|
326
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
327
|
+
f_filiale: Vue.user.orgs,
|
|
328
|
+
f_filialeid: Vue.user.orgid,
|
|
329
|
+
f_orgid: Vue.user.orgid,
|
|
330
|
+
f_orgname: Vue.user.orgs
|
|
331
|
+
}
|
|
332
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
333
|
+
data[item.field] = item.value
|
|
334
|
+
})
|
|
335
|
+
let res = await this.$resetpost(
|
|
336
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
337
|
+
data
|
|
338
|
+
)
|
|
339
|
+
// this.breakControl()
|
|
340
|
+
},
|
|
341
|
+
async 'addIndoorCheckpoint'(index) {
|
|
342
|
+
let data = {
|
|
343
|
+
f_process_id : this.show_data.f_process_id,
|
|
344
|
+
f_type: '户内验点',
|
|
345
|
+
f_operator: Vue.user.name,
|
|
346
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
347
|
+
f_filiale: Vue.user.orgs,
|
|
348
|
+
f_filialeid: Vue.user.orgid,
|
|
349
|
+
f_orgid: Vue.user.orgid,
|
|
350
|
+
f_orgname: Vue.user.orgs
|
|
351
|
+
}
|
|
352
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
353
|
+
data[item.field] = item.value
|
|
354
|
+
})
|
|
355
|
+
let res = await this.$resetpost(
|
|
356
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
357
|
+
data
|
|
358
|
+
)
|
|
359
|
+
// this.breakControl()
|
|
360
|
+
},
|
|
361
|
+
async 'addCourtyardAcceptance'(index) {
|
|
362
|
+
let data = {
|
|
363
|
+
f_process_id : this.show_data.f_process_id,
|
|
364
|
+
f_type: '庭院验收',
|
|
365
|
+
f_operator: Vue.user.name,
|
|
366
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
367
|
+
f_filiale: Vue.user.orgs,
|
|
368
|
+
f_filialeid: Vue.user.orgid,
|
|
369
|
+
f_orgid: Vue.user.orgid,
|
|
370
|
+
f_orgname: Vue.user.orgs
|
|
371
|
+
}
|
|
372
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
373
|
+
data[item.field] = item.value
|
|
374
|
+
})
|
|
375
|
+
let res = await this.$resetpost(
|
|
376
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_acceptance`,
|
|
377
|
+
data
|
|
378
|
+
)
|
|
379
|
+
// this.breakControl()
|
|
380
|
+
},
|
|
381
|
+
async 'addPipeFittings'(index) {
|
|
382
|
+
let data = {
|
|
383
|
+
f_process_id : this.show_data.f_process_id,
|
|
384
|
+
defname: this.show_data.defname,
|
|
385
|
+
f_operator: Vue.user.name,
|
|
386
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
387
|
+
f_filiale: Vue.user.orgs,
|
|
388
|
+
f_filialeid: Vue.user.orgid,
|
|
389
|
+
f_orgid: Vue.user.orgid,
|
|
390
|
+
f_orgname: Vue.user.orgs
|
|
391
|
+
}
|
|
392
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
393
|
+
data[item.field] = item.value
|
|
394
|
+
})
|
|
395
|
+
let res = await this.$resetpost(
|
|
396
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_pipe_fittings`,
|
|
397
|
+
data
|
|
398
|
+
)
|
|
399
|
+
//this.breakControl()
|
|
400
|
+
},
|
|
401
|
+
|
|
402
|
+
async 'initializtionView'() {
|
|
403
|
+
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '工程前期') {
|
|
404
|
+
if (this.show_data.f_project_type === '支线') {
|
|
405
|
+
for (const item of this.show_data.fields) {
|
|
406
|
+
if (
|
|
407
|
+
item.label === '会签完毕时间'
|
|
408
|
+
) {
|
|
409
|
+
item.hidden = true
|
|
410
|
+
item.required = false
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
} else {
|
|
414
|
+
for (const item of this.show_data.fields) {
|
|
415
|
+
if (
|
|
416
|
+
item.label === '领开挖证时间'
|
|
417
|
+
) {
|
|
418
|
+
item.hidden = true
|
|
419
|
+
item.required = false
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '结算') {
|
|
426
|
+
if (this.show_data.f_project_type === '支线') {
|
|
427
|
+
for (const item of this.show_data.fields) {
|
|
428
|
+
if (
|
|
429
|
+
item.label === '预付款' ||
|
|
430
|
+
item.label === '预付款占比' ||
|
|
431
|
+
item.label === '预付款时间'
|
|
432
|
+
) {
|
|
433
|
+
item.hidden = true
|
|
434
|
+
item.required = false
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (this.show_data.f_apply_type === '客户项目' && this.show_data.defname === '工程前期') {
|
|
441
|
+
if (this.show_data.f_project_type === '技改') {
|
|
442
|
+
for (const item of this.show_data.fields) {
|
|
443
|
+
if (
|
|
444
|
+
item.label === '区域'
|
|
445
|
+
) {
|
|
446
|
+
item.hidden = false
|
|
447
|
+
item.required = true
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
} else {
|
|
451
|
+
for (const item of this.show_data.fields) {
|
|
452
|
+
if (
|
|
453
|
+
item.label === '区域'
|
|
454
|
+
) {
|
|
455
|
+
item.hidden = true
|
|
456
|
+
item.required = false
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
// 失去焦点出触发事件
|
|
463
|
+
async 'onchange'(index) {
|
|
464
|
+
if (
|
|
465
|
+
this.show_data.fields[index].label === '合同编号' ||
|
|
466
|
+
this.show_data.fields[index].label === '工程编号' ||
|
|
467
|
+
this.show_data.fields[index].label === 'CEA号'
|
|
468
|
+
) {
|
|
469
|
+
try {
|
|
470
|
+
await this.checkDuplicate(index)
|
|
471
|
+
} catch (e) {
|
|
472
|
+
this.$showMessage(e)
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// 号码检测
|
|
477
|
+
if (this.show_data.fields[index].label === '电话号码') {
|
|
478
|
+
let phone = this.show_data.fields[index].value
|
|
479
|
+
// 电话号码效验
|
|
480
|
+
if (!(/^1[3456789]\d{9}$/.test(phone))) {
|
|
481
|
+
this.show_data.fields[index].value = ""
|
|
482
|
+
this.$showMessage("电话号码格式不正确,请重新输入!!!")
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
// 获取view层button事件/
|
|
487
|
+
async 'button'(model) {
|
|
488
|
+
// 修改提交数据
|
|
489
|
+
model = Object.assign({}, this.selectdata, model)
|
|
490
|
+
// 点击重置按钮就重置数据
|
|
491
|
+
if (model.button.button_name === '重置') {
|
|
492
|
+
this.breakControl()
|
|
493
|
+
return
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// 提交前置
|
|
497
|
+
try {
|
|
498
|
+
model = await this.buttonBefore(model)
|
|
499
|
+
} catch (e) {
|
|
500
|
+
this.$showMessage(e)
|
|
501
|
+
return
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
let http = new HttpResetClass()
|
|
505
|
+
let requestData = {
|
|
506
|
+
tables: this.data.tables,
|
|
507
|
+
start_activity: this.json_datas.start_activity,
|
|
508
|
+
model: model,
|
|
509
|
+
loginUser: Vue.user,
|
|
510
|
+
// loginUser: {"parentname":"生产经营部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-business","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"183299","name":"流程业务","templatename":"functionedit","id":"183298","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.流程业务","fullid":"3.17.21.183292.183298","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-supervisory","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"188532","name":"流程监控","templatename":"functionedit","id":"188531","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.流程监控","fullid":"3.17.21.183292.188531","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-install-function","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"196444","name":"功能业务","templatename":"functionedit","id":"196443","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.功能业务","fullid":"3.17.21.183292.196443","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"purchase-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188550","name":"采购合同","templatename":"functionedit","id":"188549","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.采购合同","fullid":"3.17.21.183292.188543.188549","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"repair-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188658","name":"维修合同","templatename":"functionedit","id":"188657","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.维修合同","fullid":"3.17.21.183292.188543.188657","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"other-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188664","name":"其他合同","templatename":"functionedit","id":"188663","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.其他合同","fullid":"3.17.21.183292.188543.188663","tablename":"t_function"}],"selfid":"188544","name":"合同管理","templatename":"functionedit","id":"188543","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理","fullid":"3.17.21.183292.188543","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"inventory-information","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188640","name":"材料库存","templatename":"functionedit","id":"188639","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.材料库存","fullid":"3.17.21.183292.188627.188639","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"warehousing-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188646","name":"入库记录","templatename":"functionedit","id":"188645","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.入库记录","fullid":"3.17.21.183292.188627.188645","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"delivery-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188652","name":"出库记录","templatename":"functionedit","id":"188651","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库记录","fullid":"3.17.21.183292.188627.188651","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"outbound-order","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"198662","name":"出库单记录","templatename":"functionedit","id":"198661","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库单记录","fullid":"3.17.21.183292.188627.198661","tablename":"t_function"}],"selfid":"188628","name":"材料管理","templatename":"functionedit","id":"188627","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理","fullid":"3.17.21.183292.188627","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"picking-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238284","name":"领料记录","templatename":"functionedit","id":"238283","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.领料记录","fullid":"3.17.21.183292.238277.238283","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"seasoning-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238290","name":"调料记录","templatename":"functionedit","id":"238289","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.调料记录","fullid":"3.17.21.183292.238277.238289","tablename":"t_function"}],"selfid":"238278","name":"秦华物料","templatename":"functionedit","id":"238277","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料","fullid":"3.17.21.183292.238277","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"facility-inventory","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189114","name":"设备库存","templatename":"functionedit","id":"189113","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.设备库存","fullid":"3.17.21.183292.188633.189113","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"employ-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"257321","name":"使用记录","templatename":"functionedit","id":"257320","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.使用记录","fullid":"3.17.21.183292.188633.257320","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"service-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189102","name":"维修记录","templatename":"functionedit","id":"189101","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.维修记录","fullid":"3.17.21.183292.188633.189101","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"scrap-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189108","name":"报废记录","templatename":"functionedit","id":"189107","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.报废记录","fullid":"3.17.21.183292.188633.189107","tablename":"t_function"}],"selfid":"188634","name":"设备管理","templatename":"functionedit","id":"188633","position":"7","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理","fullid":"3.17.21.183292.188633","tablename":"t_function"}],"selfid":"183293","name":"台账系统","templatename":"functionedit","id":"183292","position":"27","fullname":"资源管理.功能模块.客服系统.台账系统","fullid":"3.17.21.183292","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=1015-1622454565681-74540","rolesnames":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","roles":"178650,178656,178662,178668,178674,178680","f_sex":"男","f_icon":"tree_user","fullnames":"西安市天然气工程有限责任公司.生产经营部.台账测试","dir":"qinhuagongcheng","accesstime":"1625456996393","userid":"1015-1622454565681-74540","parentid":"178638","fullids":"178632.178638.178686.","selfid":"178687","templatename":"useredit","logindate":"2021-06-08 16:11:44.527","id":"178686","state":"在职","tablename":"t_user","deptype":"部门","depids":"178638","loginid":"11","initpassword":"1","rolestr":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","deps":"生产经营部","loginnum":"0","resourcetype":"user","orgid":"178632","f_department_name":"生产经营部","ename":"tzcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.243","name":"台账测试","position":"1","orgs":"西安市天然气工程有限责任公司","f_role_name":"结算组 预决算组 生产组 设备材料组 主体项目部 客户项目部 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
511
|
+
workflow_xmlfilename: this.json_datas.workflow_xmlfilename
|
|
512
|
+
}
|
|
513
|
+
// 下发,提交,保存,退回通用业务后台处理logic
|
|
514
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
515
|
+
// let res = await http.load('POST', `rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
516
|
+
|
|
517
|
+
if (res.data.code === 200) {
|
|
518
|
+
this.$dispatch('confirm')
|
|
519
|
+
} else {
|
|
520
|
+
if (res.data.msg) {
|
|
521
|
+
this.$showMessage(res.data.msg)
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
|
|
526
|
+
// onetomany模态框默认监听监听事件
|
|
527
|
+
async 'onetomanydelete'(i, j) {
|
|
528
|
+
console.log('默认删除')
|
|
529
|
+
let http = new HttpResetClass()
|
|
530
|
+
let data = {
|
|
531
|
+
table: this.show_data.onetomany[i].tables[0],
|
|
532
|
+
row: this.show_data.onetomany[i].rows[j]
|
|
533
|
+
}
|
|
534
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/onetomanyDefaultDeleteEvent`, {data: data}, {
|
|
535
|
+
resolveMsg: null,
|
|
536
|
+
rejectMsg: '删除失败'
|
|
537
|
+
})
|
|
538
|
+
|
|
539
|
+
if (res.data <= 0){
|
|
540
|
+
this.$showMessage('删除失败')
|
|
541
|
+
return
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
this.breakControl()
|
|
545
|
+
},
|
|
546
|
+
async 'onetomanyadd'(index) {
|
|
547
|
+
|
|
548
|
+
let data = {
|
|
549
|
+
f_process_id : this.show_data.f_process_id
|
|
550
|
+
}
|
|
551
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
552
|
+
data[item.field] = item.value
|
|
553
|
+
})
|
|
554
|
+
let res = await this.$resetpost(
|
|
555
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
556
|
+
data
|
|
557
|
+
)
|
|
558
|
+
|
|
559
|
+
this.breakControl()
|
|
560
|
+
},
|
|
561
|
+
async 'onetomanyupdate'(i, j) {
|
|
562
|
+
let onetomany = this.show_data.onetomany[i]
|
|
563
|
+
let data = onetomany.rows[j]
|
|
564
|
+
|
|
565
|
+
onetomany.fields.forEach(item => {
|
|
566
|
+
data[item.field] = item.value
|
|
567
|
+
})
|
|
568
|
+
let res = await this.$resetpost(
|
|
569
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[i].tables[0]}`,
|
|
570
|
+
data
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
this.breakControl()
|
|
574
|
+
},
|
|
575
|
+
// onetomany模态框监听事件
|
|
576
|
+
async 'onchange_modal'(index, i) {
|
|
577
|
+
},
|
|
578
|
+
async 'oninput_modal'(index, i) {
|
|
579
|
+
},
|
|
580
|
+
error_check(index) {
|
|
581
|
+
// 时间格式检测
|
|
582
|
+
if (this.show_data.fields[index].type === 'datepicker' && !isEmpty(this.show_data.fields[index].value)) {
|
|
583
|
+
|
|
584
|
+
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
585
|
+
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
586
|
+
let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
587
|
+
if (this.show_data.fields[index].format) {
|
|
588
|
+
if (this.show_data.fields[index].format === 'yyyy-MM-dd') {
|
|
589
|
+
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
590
|
+
this.show_data.fields[index].value = ''
|
|
591
|
+
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
if (this.show_data.fields[index].format === 'HH:mm:ss') {
|
|
595
|
+
if (!timeReg.test(this.show_data.fields[index].value)) {
|
|
596
|
+
this.show_data.fields[index].value = ''
|
|
597
|
+
this.$showMessage(this.show_data.fields[index].label + '格式错误如:00:00:00')
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (this.show_data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
601
|
+
if (!datetimeReg.test(this.show_data.fields[index].value)) {
|
|
602
|
+
this.show_data.fields[index].value = ''
|
|
603
|
+
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01 00:00:00')
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
} else {
|
|
607
|
+
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
608
|
+
this.show_data.fields[index].value = ''
|
|
609
|
+
this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
watch: {
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
</script>
|
|
619
|
+
<style scoped>
|
|
620
|
+
</style>
|