qgb-process 0.1.90 → 0.1.91
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/lib/qgb-process.common.js +175 -126
- package/lib/qgb-process.umd.js +175 -126
- package/lib/qgb-process.umd.min.js +14 -14
- package/package.json +1 -1
- package/src/views/formBuilder/components/conditionConfig.js +22 -6
- package/src/views/formBuilder/components/nodeConditionConfig.vue +17 -3
- package/src/views/formBuilder/workflow/nodeWrap.vue +1 -1
package/package.json
CHANGED
|
@@ -106,13 +106,13 @@ export const trip = async() => { // ok
|
|
|
106
106
|
export const projectApproval = async() => {
|
|
107
107
|
const projectAddApply = [
|
|
108
108
|
{ name: "申请单位", variable: "accountSubject", ele: "checkbox", data: [] },
|
|
109
|
-
{ name: "工程类型", variable: "type", ele: "checkbox", data:
|
|
109
|
+
{ name: "工程类型", variable: "type", ele: "checkbox", data: engineeringTypes },
|
|
110
110
|
{ name: "资金来源", variable: "fundSource", ele: "checkbox", data: capitalSourceList },
|
|
111
111
|
{ name: "项目造价", variable: "price", ele: "input" },
|
|
112
112
|
{
|
|
113
113
|
name: "经营类型", variable: "businessType", ele: "checkbox", data: [
|
|
114
|
-
{ name: "合作管理", no: "
|
|
115
|
-
{ name: "组织经营", no: "
|
|
114
|
+
{ name: "合作管理", no: "合作管理" },
|
|
115
|
+
{ name: "组织经营", no: "组织经营" }
|
|
116
116
|
]
|
|
117
117
|
}
|
|
118
118
|
]
|
|
@@ -120,11 +120,27 @@ export const projectApproval = async() => {
|
|
|
120
120
|
const res = await getApplyCompanyList();
|
|
121
121
|
projectAddApply[0].data = [...res.data.data];
|
|
122
122
|
// 工程类型
|
|
123
|
-
const { data } = await req.get("/sysTeamCategory/findCategoryListTree");
|
|
124
|
-
projectAddApply[1].data = data.data;
|
|
123
|
+
// const { data } = await req.get("/sysTeamCategory/findCategoryListTree");
|
|
124
|
+
// projectAddApply[1].data = data.data;
|
|
125
125
|
return projectAddApply
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
const engineeringTypes = [
|
|
129
|
+
{ name: "房建工程",no:"房建工程" },
|
|
130
|
+
{ name: "水利工程",no:"水利工程" },
|
|
131
|
+
{ name: "市政工程",no:"市政工程" },
|
|
132
|
+
{ name: "冶炼工程",no:"冶炼工程" },
|
|
133
|
+
{ name: "矿山工程",no:"矿山工程" },
|
|
134
|
+
{ name: "化工石油工程",no:"化工石油工程" },
|
|
135
|
+
{ name: "电力工程",no:"电力工程" },
|
|
136
|
+
{ name: "农林工程",no:"农林工程" },
|
|
137
|
+
{ name: "铁路工程",no:"铁路工程" },
|
|
138
|
+
{ name: "公路工程",no:"公路工程" },
|
|
139
|
+
{ name: "港口与航道工程",no:"港口与航道工程" },
|
|
140
|
+
{ name: "航天航空工程",no:"航天航空工程" },
|
|
141
|
+
{ name: "通信工程" ,no:"通信工程" },
|
|
142
|
+
{ name: "机电安装工程",no:"机电安装工程" }
|
|
143
|
+
]
|
|
128
144
|
const capitalSourceList = [
|
|
129
145
|
{
|
|
130
146
|
name: "国拨资金",
|
|
@@ -304,7 +320,7 @@ export const officialDocument = async() => {
|
|
|
304
320
|
const documentObject = [
|
|
305
321
|
{
|
|
306
322
|
name: "公文类型",
|
|
307
|
-
variable: "
|
|
323
|
+
variable: "documentType",
|
|
308
324
|
ele: "checkbox",
|
|
309
325
|
data: []
|
|
310
326
|
}
|
|
@@ -29,8 +29,11 @@
|
|
|
29
29
|
<div v-for="(item, index) in formConfig" :key="index">
|
|
30
30
|
<template v-if="item.ele == 'checkbox'">
|
|
31
31
|
<el-form-item :label="item.name + ': '">
|
|
32
|
-
<el-checkbox-group v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
|
|
33
|
-
<el-checkbox :label="items.
|
|
32
|
+
<el-checkbox-group v-if="item.variable == 'accountSubject'" v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
|
|
33
|
+
<el-checkbox :label="items.id" v-for="(items, indexs) in item.data" :key="indexs">{{ items.name }}321</el-checkbox>
|
|
34
|
+
</el-checkbox-group>
|
|
35
|
+
<el-checkbox-group v-else v-model="form[item.variable].value" @change="(val) => handlerChange(val, item)">
|
|
36
|
+
<el-checkbox :label="items.no+''" v-for="(items, indexs) in item.data" :key="indexs">{{ items.name }}123</el-checkbox>
|
|
34
37
|
</el-checkbox-group>
|
|
35
38
|
</el-form-item>
|
|
36
39
|
</template>
|
|
@@ -319,7 +322,18 @@ export default {
|
|
|
319
322
|
const data = this.configList.filter(i => i.variable == name)[0].data;
|
|
320
323
|
let descArr;
|
|
321
324
|
if (data && Array.isArray(this.form[name].value)) {
|
|
322
|
-
|
|
325
|
+
if(this.form[name].name == '申请单位'){
|
|
326
|
+
descArr = [];
|
|
327
|
+
this.form[name].value.forEach(item=>{
|
|
328
|
+
data.forEach(j=>{
|
|
329
|
+
if(item == j.id){
|
|
330
|
+
descArr.push(j.name)
|
|
331
|
+
}
|
|
332
|
+
})
|
|
333
|
+
})
|
|
334
|
+
} else{
|
|
335
|
+
descArr = this.form[name].value.map(item => data.filter(j => j.no == item)[0].name)
|
|
336
|
+
}
|
|
323
337
|
} else if (data && !Array.isArray(this.form[name].value)) {
|
|
324
338
|
const satff = data.filter(j => j.value == this.form[name].value)[0].name;
|
|
325
339
|
descArr = [satff];
|
|
@@ -372,7 +372,7 @@ export default {
|
|
|
372
372
|
// todo: 暂时判断输入框与发起人类型
|
|
373
373
|
if(!['input','sponsor'].includes(item.ele)){
|
|
374
374
|
item.value = item.value.split(',')
|
|
375
|
-
item.value.map((items,key)=>item.value[key] = parseInt(items))
|
|
375
|
+
// item.value.map((items,key)=>item.value[key] = parseInt(items))
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
json[item.variable] = item;
|