|
@@ -17,17 +17,24 @@
|
|
|
</view>
|
|
|
<view class="uni-list">
|
|
|
<view class="container">
|
|
|
-
|
|
|
- <text>工程名称</text>
|
|
|
- <input class="uni-input" type="text" v-model="projectName" placeholder="请填写工程名称" maxlength="100"
|
|
|
- style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <view>
|
|
|
+ 工程名称
|
|
|
+ </view>
|
|
|
+ <view v-if="this.isEmpty(this.projectName.id)" style="margin-top: 10;"
|
|
|
+ @click="pickerShow('gcmc',0)">
|
|
|
+ <span style="color: darkgray;">请选择工程名称</span>
|
|
|
+ </view>
|
|
|
+ <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gcmc',0)">
|
|
|
+ <span style="color: black;">{{projectName.name}}</span>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="uni-list">
|
|
|
<view class="container">
|
|
|
|
|
|
<text>建设单位</text>
|
|
|
- <input class="uni-input" type="text" v-model="jsdwValue" placeholder="请填写建设单位" maxlength="100"
|
|
|
+ <input class="uni-input" type="text" v-model="jsdwValue" maxlength="100" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -35,7 +42,7 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>项目负责人</text>
|
|
|
- <input class="uni-input" type="text" v-model="xmfzrValue" placeholder="请填写项目负责人" maxlength="16"
|
|
|
+ <input class="uni-input" type="text" v-model="xmfzrValue" maxlength="16" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -43,7 +50,7 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>现场负责人</text>
|
|
|
- <input class="uni-input" type="text" v-model="xcfzrValue" placeholder="请填写现场负责人" maxlength="16"
|
|
|
+ <input class="uni-input" type="text" v-model="xcfzrValue" maxlength="16" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -51,7 +58,7 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>设计单位</text>
|
|
|
- <input class="uni-input" type="text" v-model="sjdwValue" placeholder="请填写设计单位" maxlength="100"
|
|
|
+ <input class="uni-input" type="text" v-model="sjdwValue" maxlength="100" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -59,7 +66,7 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>设计负责人</text>
|
|
|
- <input class="uni-input" type="text" v-model="sjfzrValue" placeholder="请填写设计负责人" maxlength="16"
|
|
|
+ <input class="uni-input" type="text" v-model="sjfzrValue" maxlength="16" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -67,15 +74,15 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>设计联系电话</text>
|
|
|
- <input class="uni-input" type="number" v-model="sjPhoneValue" placeholder="请填写设计联系电话"
|
|
|
- maxlength="11" style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <input class="uni-input" type="number" v-model="sjPhoneValue" disabled="true" maxlength="11"
|
|
|
+ style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="uni-list">
|
|
|
<view class="container">
|
|
|
|
|
|
<text>监理单位</text>
|
|
|
- <input class="uni-input" type="text" v-model="jldwValue" placeholder="请填写监理单位" maxlength="100"
|
|
|
+ <input class="uni-input" type="text" v-model="jldwValue" maxlength="100" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -83,7 +90,7 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>监理负责人</text>
|
|
|
- <input class="uni-input" type="text" v-model="jlfzrValue" placeholder="请填写监理负责人" maxlength="16"
|
|
|
+ <input class="uni-input" type="text" v-model="jlfzrValue" maxlength="16" disabled="true"
|
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -91,27 +98,29 @@
|
|
|
<view class="container">
|
|
|
|
|
|
<text>监理联系电话</text>
|
|
|
- <input class="uni-input" type="number" v-model="jlPhoneValue" placeholder="请填写监理联系电话"
|
|
|
- maxlength="11" style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <input class="uni-input" type="number" v-model="jlPhoneValue" disabled="true" maxlength="11"
|
|
|
+ style="margin-left: 10px;text-align: right;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="uni-list">
|
|
|
<view class="align-items" style="margin-bottom: 20px;">
|
|
|
- <view class="container" style="color: gainsboro;">*请上传文件</view>
|
|
|
+ <!-- <view class="container" style="color: gainsboro;">*请上传文件</view> -->
|
|
|
<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
- <image src="/static/images/chooseimg.png" mode=""
|
|
|
- style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="chooseFile()"></image>
|
|
|
+ <!-- <image src="/static/images/chooseimg.png" mode=""
|
|
|
+ style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="chooseFile()"></image> -->
|
|
|
<view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
|
|
|
- <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">{{item.name}}
|
|
|
+ <view style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
+ @click="chooseModel(item.picUrl,item.fileName)">
|
|
|
+ {{item.fileName}}
|
|
|
<!-- <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;">
|
|
|
</image> -->
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view @click="removeFile(index)"
|
|
|
+ <!-- <view @click="removeFile(index)"
|
|
|
style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
<uni-icons type="close" color="darkgray" size="18"></uni-icons>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -215,6 +224,11 @@
|
|
|
<bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
|
|
|
<yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
|
|
|
:time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
|
|
|
+ <!-- 下载提示页面 -->
|
|
|
+ <mypopup :show="show_loding" :popupText="popupText" :titleText="titleText" :cancelText="cancelText"
|
|
|
+ :confirmText="confirmText" @close="cancel_loding" @confirm="confirm_loding">
|
|
|
+ </mypopup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -222,9 +236,10 @@
|
|
|
|
|
|
<script>
|
|
|
import SelectPicker from '../../components/selectPicker/select_picker.vue'
|
|
|
- import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
|
|
|
-
|
|
|
+ import bottomSheet from '../../components/bottomSheet/bottomSheetMore.vue'
|
|
|
+ import mypopup from '../../components/mypopup/mypopup.vue'
|
|
|
import uniIcons from '../../uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
|
|
+
|
|
|
import {
|
|
|
getDicts
|
|
|
} from "@/api/system/dict/data";
|
|
@@ -234,6 +249,9 @@
|
|
|
getRoomProjectList,
|
|
|
getRoomProjectId,
|
|
|
Submitengineering,
|
|
|
+ getengineeringNameList,
|
|
|
+ getEngineeringDetails,
|
|
|
+ getEngineeringHistoryList,
|
|
|
} from '@/api/common'
|
|
|
import {
|
|
|
getToken
|
|
@@ -248,11 +266,19 @@
|
|
|
SelectPicker,
|
|
|
uniIcons,
|
|
|
bottomSheet,
|
|
|
+ mypopup
|
|
|
},
|
|
|
+
|
|
|
data() {
|
|
|
|
|
|
|
|
|
return {
|
|
|
+ historyList: {}, //历史数据
|
|
|
+ show_loding: false,
|
|
|
+ popupText: '', //对话框内容
|
|
|
+ titleText: '',
|
|
|
+ cancelText: '',
|
|
|
+ confirmText: '',
|
|
|
zEngineeringMaterialBo: [], //给后台传的值 用料列表
|
|
|
czggslList: [{
|
|
|
cz: {
|
|
@@ -302,6 +328,12 @@
|
|
|
jsdwValue: '', //建设单位
|
|
|
projectName: '', //工程名称
|
|
|
SelectIndex: '', //选择的索引值
|
|
|
+ fileUrl: '', //点击的文件地址
|
|
|
+ fileName: '', //点击的文件名称
|
|
|
+ enginList: {}, //工程信息
|
|
|
+ enginId: '', //工程id
|
|
|
+ createTime: '',
|
|
|
+ infonId: '', //info id
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -400,12 +432,27 @@
|
|
|
getDicts("industry_engin_type").then(response => {
|
|
|
this.dictOptions = response.data;
|
|
|
});
|
|
|
+ } else if (e == 'gcmc') { //工程名称
|
|
|
+ if (this.isEmpty(this.projectType.dictValue)) {
|
|
|
+
|
|
|
+ this.$modal.msg('请选择工程类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.open = true;
|
|
|
+ //请求
|
|
|
+ getengineeringNameList(this.projectType.dictValue, "1").then(response => {
|
|
|
+
|
|
|
+ this.selectList = response.data;
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
+
|
|
|
chooseFile() {
|
|
|
let _this = this;
|
|
|
console.log('文件')
|
|
@@ -657,6 +704,20 @@
|
|
|
changeSelectDict(item, index) {
|
|
|
this.openDict = false;
|
|
|
this.projectType = item
|
|
|
+ this.projectName = ''; //重置工程名称
|
|
|
+ this.jlPhoneValue = ''; //重置监理电话
|
|
|
+ this.jlfzrValue = ''; //重置监理负责人
|
|
|
+ this.jldwValue = ''; //重置监理单位
|
|
|
+ this.sjPhoneValue = ''; //重置设计电话
|
|
|
+ this.sjfzrValue = ''; //重置设计负责人
|
|
|
+ this.sjdwValue = ''; //重置设计单位
|
|
|
+ this.xcfzrValue = ''; //重置现场负责人
|
|
|
+ this.xmfzrValue = ''; //重置项目负责人
|
|
|
+ this.jsdwValue = ''; //重置建设单位
|
|
|
+ this.enginId = ''; //重置工程id
|
|
|
+ this.fileArr = ''
|
|
|
+ this.createTime = '';
|
|
|
+ this.infonId = '';
|
|
|
|
|
|
},
|
|
|
changeSelect(item, index) {
|
|
@@ -677,8 +738,28 @@
|
|
|
this.specificationValue = item;
|
|
|
this.czggslList[this.SelectIndex].gg.id = this.specificationValue.id
|
|
|
this.czggslList[this.SelectIndex].gg.name = this.specificationValue.name
|
|
|
- } else if (this.type == 'gclx') {
|
|
|
- this.projectType = item
|
|
|
+ } else if (this.type == 'gcmc') {
|
|
|
+ this.projectName = item
|
|
|
+ //根据工程id 获取工程信息
|
|
|
+
|
|
|
+ getEngineeringDetails(item.id).then(response => {
|
|
|
+
|
|
|
+ console.log("res", response)
|
|
|
+ // this.enginList = response.data
|
|
|
+ this.jlPhoneValue = response.data.supervisionPhone; //监理电话
|
|
|
+ this.jlfzrValue = response.data.supervisionHead; //监理负责人
|
|
|
+ this.jldwValue = response.data.supervisionUnit; //监理单位
|
|
|
+ this.sjPhoneValue = response.data.designPhone; //设计电话
|
|
|
+ this.sjfzrValue = response.data.designHead; //设计负责人
|
|
|
+ this.sjdwValue = response.data.designUnit; //设计单位
|
|
|
+ this.xcfzrValue = response.data.sceneHead; //现场负责人
|
|
|
+ this.xmfzrValue = response.data.projectHead; //项目负责人
|
|
|
+ this.jsdwValue = response.data.constructUnit; //建设单位
|
|
|
+ this.enginId = response.data.id; //工程id
|
|
|
+ this.fileArr = response.data.pics
|
|
|
+ this.createTime = response.data.createTime;
|
|
|
+ this.infonId = response.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList[0].id
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
//关闭弹窗
|
|
@@ -692,68 +773,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ chooseModel(url, name) {
|
|
|
+ this.cancelText = '复制';
|
|
|
+ this.confirmText = "下载";
|
|
|
+ this.titleText = "温馨提示"
|
|
|
+ this.popupText = "下载或者复制链接";
|
|
|
+ this.show_loding = true;
|
|
|
+ this.fileName = name;
|
|
|
+ this.fileUrl = url; //文件名称和下载地址赋值
|
|
|
|
|
|
- submit() {
|
|
|
+ },
|
|
|
+ //取消按钮
|
|
|
+ cancel_loding() {
|
|
|
+ let _this = this;
|
|
|
+ _this.show_loding = false;
|
|
|
+ console.log("复制")
|
|
|
+ if (!_this.isEmpty(_this.fileUrl)) {
|
|
|
+ console.log(_this.fileUrl)
|
|
|
+ console.log(_this.fileName)
|
|
|
+ uni.setClipboardData({
|
|
|
+ data: _this.fileUrl,
|
|
|
+ success() {
|
|
|
+ uni.showToast({
|
|
|
+ title: '已复制' + _this.fileName + '地址成功 请在浏览器打开',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ fail(e) {
|
|
|
+ console.log("失败", e)
|
|
|
+ uni.showToast({
|
|
|
+ title: '复制失败',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- console.log("文件", this.fileArr)
|
|
|
- if (this.isEmpty(this.projectType.dictValue)) {
|
|
|
- this.$modal.msg('请选择工程类型')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.projectName)) {
|
|
|
- this.$modal.msg('工程名称不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.jsdwValue)) {
|
|
|
- this.$modal.msg('建设单位不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.xmfzrValue)) {
|
|
|
- this.$modal.msg('项目负责人不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.xcfzrValue)) {
|
|
|
- this.$modal.msg('现场负责人不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.sjdwValue)) {
|
|
|
- this.$modal.msg('设计单位不能为空')
|
|
|
- return
|
|
|
}
|
|
|
- if (this.isEmpty(this.sjfzrValue)) {
|
|
|
- this.$modal.msg('设计负责人不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.isEmpty(this.sjPhoneValue)) {
|
|
|
- this.$modal.msg('设计联系电话不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.$validation.mobile(this.sjPhoneValue)) {
|
|
|
- this.$modal.msg('设计联系电话格式错误')
|
|
|
- return
|
|
|
+ },
|
|
|
+ //确定按钮
|
|
|
+ confirm_loding() {
|
|
|
+ this.show_loding = false;
|
|
|
+ console.log("下载")
|
|
|
+ this.download(this.fileUrl, this.fileName);
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ getDownLoadFilePath() {
|
|
|
+ let cachePath = `${uni.env.USER_DATA_PATH}/downloads`
|
|
|
+ let fm = uni.getFileSystemManager()
|
|
|
+ try {
|
|
|
+ // 访问成功则存在
|
|
|
+ fm.accessSync(cachePath)
|
|
|
+ } catch (error) {
|
|
|
+ // 不存在则新建
|
|
|
+ fm.mkdirSync(cachePath, true)
|
|
|
}
|
|
|
- if (this.isEmpty(this.jldwValue)) {
|
|
|
- this.$modal.msg('监理单位不能为空')
|
|
|
+ return cachePath
|
|
|
+ },
|
|
|
+ download(url, name) {
|
|
|
+
|
|
|
+ let savePath = this.getDownLoadFilePath();
|
|
|
+ console.log('点击下载', url);
|
|
|
+ console.log('点击下载333', savePath);
|
|
|
+ //var savePath = uni.env.USER_DATA_PATH + '/savePath'
|
|
|
+ uni.downloadFile({
|
|
|
+ url: url,
|
|
|
+ success: response => {
|
|
|
+ if (response.statusCode === 200) {
|
|
|
+ console.log("数据", response)
|
|
|
+ uni.getFileSystemManager().saveFile({
|
|
|
+ tempFilePath: response.tempFilePath,
|
|
|
+ filePath: `${savePath}/${name}`,
|
|
|
+ success: (resData) => {
|
|
|
+ console.log('保存路径', resData.savedFilePath)
|
|
|
+ console.log("dd", resData)
|
|
|
+ uni.showToast({
|
|
|
+ title: '下载成功' + resData.savedFilePath
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: error => {
|
|
|
+ console.log('error: ', error)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ //历史
|
|
|
+ history() {
|
|
|
+ if (this.isEmpty(this.projectType.dictValue)) {
|
|
|
+ this.$modal.msg('请选择工程类型')
|
|
|
return
|
|
|
}
|
|
|
- if (this.isEmpty(this.jlfzrValue)) {
|
|
|
- this.$modal.msg('监理负责人不能为空')
|
|
|
+ if (this.isEmpty(this.projectName.id)) {
|
|
|
+ this.$modal.msg('请选择工程名称')
|
|
|
return
|
|
|
}
|
|
|
- if (this.isEmpty(this.jlPhoneValue)) {
|
|
|
- this.$modal.msg('监理联系电话不能为空')
|
|
|
+ getEngineeringHistoryList(this.enginId, this.objValue.value).then(response => {
|
|
|
+
|
|
|
+ console.log("历史", response)
|
|
|
+ this.historyList = response.data
|
|
|
+ if (response.data.zEngineeringNodeBo != null) {
|
|
|
+ this.$refs.refShare.handleShowShare();
|
|
|
+ } else {
|
|
|
+ this.$modal.msg("暂无历史信息")
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ submit() {
|
|
|
+
|
|
|
+ console.log("文件", this.fileArr)
|
|
|
+
|
|
|
+ if (this.isEmpty(this.projectType.dictValue)) {
|
|
|
+ this.$modal.msg('请选择工程类型')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.$validation.mobile(this.jlPhoneValue)) {
|
|
|
- this.$modal.msg('监理联系电话格式错误')
|
|
|
+ if (this.isEmpty(this.projectName.id)) {
|
|
|
+ this.$modal.msg('请选择工程名称')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- if (this.fileArr.length <= 0) {
|
|
|
- this.$modal.msg('请上传文件')
|
|
|
- } else if (this.loadingFile == false) {
|
|
|
- this.$modal.msg('文件未上传完毕,无法提交!')
|
|
|
- }
|
|
|
+ // if (this.isEmpty(this.jsdwValue)) {
|
|
|
+ // this.$modal.msg('建设单位不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.xmfzrValue)) {
|
|
|
+ // this.$modal.msg('项目负责人不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.xcfzrValue)) {
|
|
|
+ // this.$modal.msg('现场负责人不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.sjdwValue)) {
|
|
|
+ // this.$modal.msg('设计单位不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.sjfzrValue)) {
|
|
|
+ // this.$modal.msg('设计负责人不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.sjPhoneValue)) {
|
|
|
+ // this.$modal.msg('设计联系电话不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.$validation.mobile(this.sjPhoneValue)) {
|
|
|
+ // this.$modal.msg('设计联系电话格式错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.jldwValue)) {
|
|
|
+ // this.$modal.msg('监理单位不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.jlfzrValue)) {
|
|
|
+ // this.$modal.msg('监理负责人不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.isEmpty(this.jlPhoneValue)) {
|
|
|
+ // this.$modal.msg('监理联系电话不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.$validation.mobile(this.jlPhoneValue)) {
|
|
|
+ // this.$modal.msg('监理联系电话格式错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (this.fileArr.length <= 0) {
|
|
|
+ // this.$modal.msg('请上传文件')
|
|
|
+ // } else if (this.loadingFile == false) {
|
|
|
+ // this.$modal.msg('文件未上传完毕,无法提交!')
|
|
|
+ // }
|
|
|
|
|
|
try {
|
|
|
//console.log("刚开始", this.czggslList);
|
|
@@ -792,7 +986,7 @@
|
|
|
this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ this.zEngineeringMaterialBo = [];
|
|
|
this.czggslList.forEach((list) => {
|
|
|
this.zEngineeringMaterialBo.push({
|
|
|
materialQuality: list.cz.id,
|
|
@@ -805,8 +999,10 @@
|
|
|
|
|
|
let param = {
|
|
|
files: this.fileArr, //文件
|
|
|
+ id: this.enginId, //工程id
|
|
|
type: '1', // 用来区分工业工程=1、市政工程=2
|
|
|
- enginName: this.projectName, //工程名称
|
|
|
+
|
|
|
+ enginName: this.projectName.name, //工程名称
|
|
|
enginType: this.projectType.dictValue, // 工程类型
|
|
|
constructUnit: this.jsdwValue, // 建筑单位
|
|
|
projectHead: this.xmfzrValue, // 项目负责人
|
|
@@ -819,8 +1015,11 @@
|
|
|
supervisionPhone: this.jlPhoneValue, // 监理联系电话
|
|
|
enginClassification: this.objValue.value, // 工程分类 上一页面传过来的
|
|
|
zEngineeringNodeBo: {
|
|
|
+ createTime: this.createTime,
|
|
|
type: '工业工程', // 写死
|
|
|
zEngineeringInfoBo: {
|
|
|
+ engInfoId: this.infonId,
|
|
|
+ constructTime: this.time, //施工时间
|
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
zEngineeringMaterialBo: this.zEngineeringMaterialBo // 用料对象
|
|
|
}
|