|
@@ -110,6 +110,7 @@
|
|
<!-- 节点信息dialog -->
|
|
<!-- 节点信息dialog -->
|
|
<enginee-node
|
|
<enginee-node
|
|
@closeToSucceed="closeToSucceed"
|
|
@closeToSucceed="closeToSucceed"
|
|
|
|
+ @files="getFiles"
|
|
ref="childNode"
|
|
ref="childNode"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -163,8 +164,7 @@ export default {
|
|
enginCode: '', // 工程编码
|
|
enginCode: '', // 工程编码
|
|
constructQuality: '', // 施工质量
|
|
constructQuality: '', // 施工质量
|
|
constructSchedule: "", // 施工进度
|
|
constructSchedule: "", // 施工进度
|
|
- type: null, // 类型 01工业工程 02市政工程
|
|
|
|
- enginType: '', // 工程类型 民用工程 0 ,市政工程 1,工业工程 2 ,顶管工程 3,危险作业工程 4,基建工程 5
|
|
|
|
|
|
+ type: null, // 类型
|
|
remark: '', // 备注
|
|
remark: '', // 备注
|
|
constructUnit: null,
|
|
constructUnit: null,
|
|
zEngineeringNodeBo: {
|
|
zEngineeringNodeBo: {
|
|
@@ -228,6 +228,11 @@ export default {
|
|
remark: [
|
|
remark: [
|
|
{required: false, message: "备注不能为空", trigger: "blur"}
|
|
{required: false, message: "备注不能为空", trigger: "blur"}
|
|
],
|
|
],
|
|
|
|
+ files: [
|
|
|
|
+ { required: false, message: '必须上传文件!', trigger: 'change' },
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
currentType: null, // 组件类型 put修改 add新增
|
|
currentType: null, // 组件类型 put修改 add新增
|
|
};
|
|
};
|
|
@@ -257,7 +262,13 @@ export default {
|
|
this.open = false
|
|
this.open = false
|
|
this.nodeDetailVisible = false
|
|
this.nodeDetailVisible = false
|
|
},
|
|
},
|
|
- openDialog(data, type) {
|
|
|
|
|
|
+ getFiles(flag){
|
|
|
|
+ if (flag){
|
|
|
|
+ this.$refs.obsFileUpload.fileList=this.queryParams.files
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ async openDialog(data, type) {
|
|
|
|
+ await this.reset();
|
|
this.currentType = type
|
|
this.currentType = type
|
|
if (this.currentType == 'add') {
|
|
if (this.currentType == 'add') {
|
|
this.title = '新增顶管信息'
|
|
this.title = '新增顶管信息'
|
|
@@ -272,19 +283,27 @@ export default {
|
|
this.nodeDetailVisible = false
|
|
this.nodeDetailVisible = false
|
|
},
|
|
},
|
|
toNodeDetail() {
|
|
toNodeDetail() {
|
|
- getDictList({enginType:['pipe_jack']}).then(res => {
|
|
|
|
- this.nodeList = res.data
|
|
|
|
- this.nodeList.forEach(e => {
|
|
|
|
- e.name = e.value
|
|
|
|
- })
|
|
|
|
- if (this.currentType == 'put') {
|
|
|
|
- this.queryParams.files = this.$refs.obsFileUpload.fileList
|
|
|
|
- this.$refs.childNode.open(this.queryParams, 15,this.nodeList)
|
|
|
|
- } else if (this.currentType == 'add') {
|
|
|
|
- this.queryParams.files = this.$refs.obsFileUpload.fileList
|
|
|
|
- this.$refs.childNode.open(this.queryParams, 10,this.nodeList)
|
|
|
|
|
|
+ if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
|
|
+ this.$message.warning('必须上传文件!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ getDictList({enginType:['pipe_jack']}).then(res => {
|
|
|
|
+ this.nodeList = res.data
|
|
|
|
+ this.nodeList.forEach(e => {
|
|
|
|
+ e.name = e.value
|
|
|
|
+ })
|
|
|
|
+ if (this.currentType == 'put') {
|
|
|
|
+ this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
|
+ this.$refs.childNode.open(this.queryParams, 15,this.nodeList)
|
|
|
|
+ } else if (this.currentType == 'add') {
|
|
|
|
+ this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
|
+ this.$refs.childNode.open(this.queryParams, 10,this.nodeList)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 取消按钮
|
|
// 取消按钮
|
|
cancel() {
|
|
cancel() {
|
|
@@ -299,6 +318,7 @@ export default {
|
|
// })
|
|
// })
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
this.resetForm("nodeForm");
|
|
this.resetForm("nodeForm");
|
|
|
|
+ this.queryParams.files=[]
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|