Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
85972a8e
authored
2023-07-26 15:38:14 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
dcde6da8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
97 deletions
src/views/djbworkflow/components/zc.vue
src/views/djbworkflow/djbBook/components/blxxtabs/tdsyq.vue
src/views/djbworkflow/mixin/index.js
src/views/workflow/components/tdytTable.vue
src/views/djbworkflow/components/zc.vue
View file @
85972a8
...
...
@@ -20,6 +20,7 @@
此环节为流程最后环节,转出后流程将结束
</el-form-item>
</el-form>
<div
v-if=
"this.formData.showidea"
>
<div
class=
"invalid-reson"
>
审批意见:
</div>
<el-input
class=
"opinion"
...
...
@@ -28,6 +29,8 @@
type=
"textarea"
:rows=
"4"
></el-input>
</div>
<!--
<el-button
class=
"opinion_btn"
@
click=
"commonOpinion"
>
常用意见
</el-button>
-->
<el-button
style=
"float: right"
@
click=
"cancelBack"
>
取消转出
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
style=
"float: right"
...
...
src/views/djbworkflow/djbBook/components/blxxtabs/tdsyq.vue
View file @
85972a8
...
...
@@ -387,7 +387,6 @@ export default {
dname
:
"历史"
,
},
],
tdxz
:
null
,
isShow
:
false
,
disabled
:
true
,
czrOptions
:
[],
...
...
@@ -462,11 +461,11 @@ export default {
this
.
ssqlxxshow
=
false
;
}
this
.
$endLoading
();
if
(
this
.
ruleForm
.
tdytqxList
.
length
>
0
)
{
this
.
tdxz
=
this
.
ruleForm
.
tdytqxList
[
0
].
qlxzbm
;
}
else
{
this
.
tdxz
=
null
;
}
//
if (this.ruleForm.tdytqxList.length > 0) {
//
this.tdxz = this.ruleForm.tdytqxList[0].qlxzbm;
//
} else {
//
this.tdxz = null;
//
}
this
.
isShow
=
true
;
}
});
...
...
src/views/djbworkflow/mixin/index.js
View file @
85972a8
...
...
@@ -19,7 +19,7 @@ import {
}
from
"@/api/workFlow.js"
;
import
{
mapGetters
}
from
'vuex'
export
default
{
data
()
{
data
()
{
return
{
//是否开启材料分屏
splitScreen
:
false
,
...
...
@@ -35,10 +35,12 @@ export default {
batchButtonName
:
''
,
// 受理申请信息
slsq
:
{},
ableOperation
:
true
ableOperation
:
true
,
showidea
:
false
}
},
mounted
()
{
mounted
()
{
this
.
flowInitParam
();
},
methods
:
{
...
...
@@ -47,7 +49,7 @@ export default {
* @description: 加载流程初始参数
* @author: renchao
*/
flowInitParam
()
{
flowInitParam
()
{
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
this
.
bsmSlsq
);
...
...
@@ -58,6 +60,10 @@ export default {
stepExpandInfo
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
leftButtonList
=
res
.
result
.
button
;
if
(
res
.
result
.
properties
.
length
)
{
this
.
showidea
=
res
.
result
.
properties
[
0
].
value
}
this
.
rightButtonList
=
res
.
result
.
operation
;
let
arr
=
this
.
rightButtonList
.
filter
((
item
)
=>
{
return
item
.
name
==
"删除"
...
...
@@ -79,7 +85,7 @@ export default {
* @param {*} item
* @author: renchao
*/
operation
(
item
)
{
operation
(
item
)
{
//按钮 B0:选择不动产单元 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 B7:证书领取 B8:楼盘表 B9:登簿
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout
let
that
=
this
;
...
...
@@ -289,7 +295,7 @@ export default {
* @description: del
* @author: renchao
*/
del
()
{
del
()
{
let
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
this
.
bsmSlsq
);
this
.
$confirm
(
"确定要删除吗, 是否继续?"
,
"提示"
,
{
...
...
@@ -324,24 +330,27 @@ export default {
* @param {*} obj
* @author: renchao
*/
sendToNext
(
obj
)
{
sendToNext
(
obj
)
{
this
.
$popupDialog
(
"转出"
,
"djbworkflow/components/zc"
,
{
obj
:
obj
,
obj
:
obj
,
bsmSlsq
:
this
.
bsmSlsq
,
tabList
:
this
.
tabList
},
'800px'
,
true
)
tabList
:
this
.
tabList
,
tshowidea
:
this
.
showidea
},
'600px'
,
true
)
},
//转出最后一个流程
/**
* @description: 转出最后一个流程
* @author: renchao
*/
sendToEnd
()
{
sendToEnd
()
{
this
.
$popupDialog
(
"转出"
,
"djbworkflow/components/zc"
,
{
obj
:
""
,
obj
:
""
,
bsmSlsq
:
this
.
bsmSlsq
,
tabList
:
this
.
tabList
},
'800px'
,
true
)
tabList
:
this
.
tabList
,
showidea
:
this
.
showidea
},
'600px'
,
true
)
},
//批量操作
...
...
@@ -349,7 +358,7 @@ export default {
* @description: 批量操作
* @author: renchao
*/
handleBatchDel
()
{
handleBatchDel
()
{
this
.
$popupDialog
(
"批量删除"
,
"workflow/components/batchDel"
,
{
width
:
"50%"
,
btnShow
:
false
,
...
...
@@ -363,7 +372,7 @@ export default {
* @param {*} file
* @author: renchao
*/
handleChange
(
file
)
{
handleChange
(
file
)
{
var
formdata
=
new
FormData
();
formdata
.
append
(
"file"
,
file
.
raw
);
formdata
.
append
(
"bsmSldy"
,
this
.
currentSelectProps
.
bsmSldy
);
...
...
@@ -382,7 +391,7 @@ export default {
* @param {*} file
* @author: renchao
*/
beforeUpload
(
file
)
{
beforeUpload
(
file
)
{
return
true
;
}
}
...
...
src/views/workflow/components/tdytTable.vue
View file @
85972a8
...
...
@@ -14,31 +14,34 @@
:heightNumSetting="true"
:minHeight="150"
height="150"
style="width: 100%">
style="width: 100%"
>
<el-table-column
prop=
"index"
width=
"50"
:render-header=
"renderHeader"
>
<template
slot-scope=
"scope"
>
<i
class=
"el-icon-minus pointer"
@
click=
"deleClick(scope.$index, scope.row)"
v-if=
"ableOperation"
></i>
v-if=
"ableOperation"
></i>
<div
style=
"text-align: center"
v-else
>
{{
scope
.
$index
+
1
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"
td
yt"
label=
"土地用途"
min-width=
"100"
>
<el-table-column
prop=
"yt"
label=
"土地用途"
min-width=
"100"
>
<
template
slot-scope=
"scope"
>
<treeselect
v-model=
"
td
yt"
v-model=
"
scope.row.
yt"
:disabled=
"!ableOperation"
noOptionsText=
"暂无数据"
placeholder=
''
placeholder=
""
:show-count=
"true"
:options=
"dictData['tdyt']"
:normalizer=
"normalizer"
:appendToBody=
"true"
z-index=
"9999"
@
input=
"addrow(scope.row)"
/>
@
input=
"addrow(scope.$index)"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"qssj"
label=
"土地使用起始时间"
min-width=
"100"
>
...
...
@@ -51,7 +54,8 @@
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd"
@
input=
"startTime(scope.$index)"
>
@
input=
"startTime(scope.$index)"
>
</el-date-picker>
</
template
>
</el-table-column>
...
...
@@ -65,7 +69,8 @@
placeholder=
"选择日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd"
@
input=
"endTime(scope.$index)"
>
@
input=
"endTime(scope.$index)"
>
</el-date-picker>
</
template
>
</el-table-column>
...
...
@@ -74,18 +79,21 @@
<el-input
class=
"item"
:disabled=
"!ableOperation"
v-model=
"scope.row.syqx"
v-model=
"scope.row.tdsyqx"
oninput=
"value = (value.match(/^\d*(\.?\d
{0,2})/g)[0]) || null"
placeholder="请输入内容"
@
input=
"sumTime(scope.$index,scope.row.syqx)"
>
>
</el-input>
@input="sumTime(scope.$index, scope.row.tdsyqx)"
>
>
</el-input
>
</
template
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
import
{
mapGetters
}
from
"vuex"
;
export
default
{
import
{
mapGetters
}
from
"vuex"
;
export
default
{
computed
:
{
...
mapGetters
([
"dictData"
]),
},
...
...
@@ -101,64 +109,50 @@
default
:
true
,
},
},
data
()
{
data
()
{
return
{
// 键名转换,方法默认是label和children进行树状渲染
tdyt
:
null
,
key
:
0
,
newdata
:
{
yt
:
""
,
yt
:
null
,
qssj
:
""
,
jssj
:
""
,
syqx
:
""
,
td
syqx
:
""
,
},
tableDataList
:
[],
// 起始时间选择范围
pickerStart
:
{},
pickerEnd
:
{},
normalizer
(
node
)
{
normalizer
(
node
)
{
if
(
node
.
children
==
null
||
node
.
children
==
"null"
)
{
delete
node
.
children
;
}
return
{
id
:
node
.
dcode
,
label
:
node
.
dname
,
children
:
node
.
children
,
};
},
};
},
mounted
()
{
},
mounted
()
{},
watch
:
{
tableData
:
{
handler
:
function
(
val
,
oldVal
)
{
let
that
=
this
;
this
.
$nextTick
(()
=>
{
if
(
val
.
length
==
0
||
!
val
)
{
console
.
log
(
"进了"
);
that
.
tableDataList
=
_
.
cloneDeep
([
{
yt
:
""
,
yt
:
null
,
qssj
:
""
,
jssj
:
""
,
syqx
:
""
,
td
syqx
:
""
,
},
]);
if
(
that
.
tableDataList
.
length
>
0
)
{
this
.
tdyt
=
that
.
tableDataList
[
0
].
yt
?
that
.
tableDataList
[
0
].
yt
:
null
;
}
else
{
this
.
tdyt
=
null
;
}
}
else
{
that
.
tableDataList
=
_
.
cloneDeep
(
val
);
if
(
that
.
tableDataList
.
length
>
0
)
{
this
.
tdyt
=
that
.
tableDataList
[
0
].
yt
?
that
.
tableDataList
[
0
].
yt
:
null
;
}
else
{
this
.
tdyt
=
null
;
}
}
});
},
...
...
@@ -171,7 +165,7 @@
* @description: renderHeader
* @author: renchao
*/
renderHeader
()
{
renderHeader
()
{
return
(
<
div
>
{
" "
}
...
...
@@ -193,21 +187,23 @@
* @description: 修改事件
* @author: renchao
*/
addrow
()
{
this
.
tableDataList
=
this
.
tableDataList
.
map
((
item
)
=>
{
return
{
...
item
,
yt
:
this
.
tdyt
,
};
});
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
addrow
(
a
)
{
console
.
log
(
a
);
// this.tableDataList = this.tableDataList.map((item) => {
// return {
// ...item,
// yt: this.tdyt,
// };
// });
// this.$emit("upDateTdytxxList", this.tableDataList);
},
/**
* @description: startTime
* @param {*} index
* @author: renchao
*/
startTime
(
index
)
{
startTime
(
index
)
{
console
.
log
(
"index"
,
index
);
// let startTime = this.tableDataList[index].tdsyqssj;
let
endTime
=
this
.
tableDataList
[
index
].
jssj
;
let
startTime
=
this
.
tableDataList
[
index
].
qssj
;
...
...
@@ -220,21 +216,19 @@
}
},
};
if
(
Object
.
keys
(
startTime
).
length
>
0
&&
Object
.
keys
(
endTime
).
length
>
0
)
{
if
(
startTime
&&
endTime
)
{
let
startYear
=
new
Date
(
startTime
).
getFullYear
();
let
endYear
=
new
Date
(
endTime
).
getFullYear
();
this
.
tableDataList
[
index
].
syqx
=
endYear
-
startYear
;
this
.
tableDataList
[
index
].
td
syqx
=
endYear
-
startYear
;
}
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
},
/**
* @description: endTime
* @param {*} index
* @author: renchao
*/
endTime
(
index
)
{
endTime
(
index
)
{
// let startTime = this.tableDataList[index].tdsyqssj;
let
startTime
=
this
.
tableDataList
[
index
].
qssj
;
let
endTime
=
this
.
tableDataList
[
index
].
jssj
;
...
...
@@ -247,36 +241,33 @@
}
},
};
if
(
Object
.
keys
(
startTime
).
length
>
0
&&
Object
.
keys
(
endTime
).
length
>
0
)
{
if
(
startTime
&&
endTime
)
{
let
startYear
=
new
Date
(
startTime
).
getFullYear
();
let
endYear
=
new
Date
(
endTime
).
getFullYear
();
this
.
tableDataList
[
index
].
syqx
=
endYear
-
startYear
;
this
.
tableDataList
[
index
].
td
syqx
=
endYear
-
startYear
;
}
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
},
/**
* @description: sumTime
* @param {*} index
* @param {*}
syqx
* @param {*} td
syqx
* @author: renchao
*/
sumTime
(
index
,
syqx
)
{
sumTime
(
index
,
tdsyqx
)
{
let
startTime
=
this
.
tableDataList
[
index
].
qssj
;
this
.
tableDataList
[
index
].
jssj
=
Number
(
startTime
.
substring
(
0
,
4
))
+
Number
(
syqx
)
+
Number
(
td
syqx
)
+
startTime
.
slice
(
4
,
19
);
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
},
// 新增
/**
* @description: 新增
* @author: renchao
*/
addClick
()
{
addClick
()
{
this
.
tableDataList
[
this
.
tableDataList
.
length
]
=
_
.
cloneDeep
(
this
.
newdata
);
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
...
...
@@ -289,7 +280,7 @@
* @param {*} row
* @author: renchao
*/
deleClick
(
index
,
row
)
{
deleClick
(
index
,
row
)
{
this
.
$confirm
(
"确定要删除吗, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
...
...
@@ -298,22 +289,23 @@
.
then
(()
=>
{
this
.
tableData
.
splice
(
index
,
1
);
})
.
catch
(()
=>
{
});
.
catch
(()
=>
{});
this
.
$emit
(
"upDateTdytxxList"
,
this
.
tableDataList
);
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
.el-input
{
.el-input
{
border
:
none
!important
;
}
/
deep
/
.el-table__row
{
}
/
deep
/
.el-table__row
{
border
:
none
!important
;
}
.el-date-editor.el-input
{
}
.el-date-editor.el-input
{
width
:
100%
;
}
/
deep
/
.el-table
th
{
}
/
deep
/
.el-table
th
{
height
:
30px
!important
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment