|
@@ -344,7 +344,6 @@
|
|
|
|
|
|
created() {
|
|
|
this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
|
|
|
- console.log(this.time)
|
|
|
},
|
|
|
|
|
|
onLoad(options) {
|
|
@@ -438,7 +437,6 @@
|
|
|
}
|
|
|
this.open = true;
|
|
|
//请求
|
|
|
- console.log("sss", this.objValue.value)
|
|
|
getengineeringNameList(this.projectType.dictValue, "1", this.objValue.value).then(response => {
|
|
|
|
|
|
this.selectList = response.data;
|
|
@@ -474,7 +472,6 @@
|
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
this.imgArr.splice(index, 1)
|
|
|
- console.log('this.imgarr', this.imgArr)
|
|
|
// if (this.imgArr.length <= 0) {
|
|
|
// this.photo = true;
|
|
|
// }
|
|
@@ -488,7 +485,6 @@
|
|
|
title: '上传',
|
|
|
itemList: ['图片', '视频'],
|
|
|
success: (res) => {
|
|
|
- console.log(res)
|
|
|
if (res.tapIndex == 0) {
|
|
|
this.chooseimage()
|
|
|
} else {
|
|
@@ -500,7 +496,6 @@
|
|
|
chooseimage() {
|
|
|
|
|
|
let _this = this;
|
|
|
- console.log('图片', _this.headers)
|
|
|
uni.chooseImage({
|
|
|
sizeType: ['album', 'camera'],
|
|
|
success(resp) {
|
|
@@ -514,7 +509,6 @@
|
|
|
|
|
|
success: res => {
|
|
|
// 判断是否json字符串,将其转为json格式
|
|
|
- console.log("结果", res)
|
|
|
// let data = _this.$u.test.jsonString(res
|
|
|
// .data) ? JSON.parse(res.data) : res.data;
|
|
|
let data = JSON.parse(res.data);
|
|
@@ -523,18 +517,13 @@
|
|
|
_this.$modal.msg(data.msg)
|
|
|
} else {
|
|
|
if (_this.progress === 100) {
|
|
|
- console.log('_this.progress', _this.progress)
|
|
|
- //console.log('data----', data)data
|
|
|
- console.log('res--', res)
|
|
|
_this.imgArr.push(data.data.url)
|
|
|
- console.log('imgArr', _this.imgArr)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
//_this.photo = false;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
fail: e => {
|
|
|
- console.log(e)
|
|
|
_this.$modal.msg('上传失败!')
|
|
|
//_this.uploadError(index, e);
|
|
|
},
|
|
@@ -546,17 +535,13 @@
|
|
|
});
|
|
|
task.onProgressUpdate(res => {
|
|
|
_this.progress = res.progress;
|
|
|
- console.log('onProgressUpdate', res)
|
|
|
- console.log('task.onProgressUpdate', _this.progress)
|
|
|
uni.showLoading({
|
|
|
title: '上传中'
|
|
|
})
|
|
|
if (_this.progress != 100) {
|
|
|
_this.loading = false
|
|
|
- console.log('_this.loading false', _this.loading)
|
|
|
} else {
|
|
|
_this.loading = true
|
|
|
- console.log('_this.loading true', _this.loading)
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -568,7 +553,6 @@
|
|
|
|
|
|
choosevideo() {
|
|
|
let _this = this;
|
|
|
- console.log('视频')
|
|
|
uni.chooseVideo({
|
|
|
sourceType: ['album', 'camera'],
|
|
|
maxDuration: 30,
|
|
@@ -587,9 +571,7 @@
|
|
|
} else {
|
|
|
//上传成功
|
|
|
if (_this.progress === 100) {
|
|
|
- console.log('_this.progress', _this.progress)
|
|
|
_this.imgArr.push(data.data.url)
|
|
|
- console.log('imgArr', _this.imgArr)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
//_this.photo = false;
|
|
|
}
|
|
@@ -606,16 +588,13 @@
|
|
|
});
|
|
|
task.onProgressUpdate(res => {
|
|
|
_this.progress = res.progress;
|
|
|
- console.log('onProgressUpdate', res)
|
|
|
uni.showLoading({
|
|
|
title: '上传中'
|
|
|
})
|
|
|
if (_this.progress != 100) {
|
|
|
_this.loadingFile = false
|
|
|
- console.log('_this.loading false', _this.loading)
|
|
|
} else {
|
|
|
_this.loadingFile = true
|
|
|
- console.log('_this.loading true', _this.loading)
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -669,7 +648,6 @@
|
|
|
})
|
|
|
getEngineeringDetails(item.id).then(response => {
|
|
|
uni.hideLoading();
|
|
|
- console.log("res", response)
|
|
|
// this.enginList = response.data
|
|
|
this.jlPhoneValue = response.data.supervisionPhone; //监理电话
|
|
|
this.jlfzrValue = response.data.supervisionHead; //监理负责人
|
|
@@ -688,7 +666,6 @@
|
|
|
if (list.picUrl.substring(list.picUrl.length - 3) == 'png' || list.picUrl
|
|
|
.substring(list.picUrl.length - 3) == 'jpg' || list.picUrl.substring(list
|
|
|
.picUrl.length - 4) == 'jpeg') {
|
|
|
- console.log("ressss", list.picUrl)
|
|
|
this.fileImageArr.push(list.picUrl)
|
|
|
}
|
|
|
|
|
@@ -722,10 +699,7 @@
|
|
|
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() {
|
|
@@ -735,7 +709,6 @@
|
|
|
});
|
|
|
},
|
|
|
fail(e) {
|
|
|
- console.log("失败", e)
|
|
|
uni.showToast({
|
|
|
title: '复制失败',
|
|
|
icon: 'none'
|
|
@@ -748,7 +721,6 @@
|
|
|
//确定按钮
|
|
|
confirm_loding() {
|
|
|
this.show_loding = false;
|
|
|
- console.log("下载")
|
|
|
this.download(this.fileUrl, this.fileName);
|
|
|
|
|
|
|
|
@@ -769,26 +741,20 @@
|
|
|
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: '下载成功'
|
|
|
})
|
|
|
},
|
|
|
fail: error => {
|
|
|
- console.log('error: ', error)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -810,7 +776,6 @@
|
|
|
}
|
|
|
getEngineeringHistoryList(this.enginId, this.objValue.value).then(response => {
|
|
|
|
|
|
- console.log("历史", response)
|
|
|
this.historyList = response.data
|
|
|
if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList != null) {
|
|
|
this.$refs.refShare.handleShowShare();
|
|
@@ -823,7 +788,6 @@
|
|
|
|
|
|
submit() {
|
|
|
|
|
|
- console.log("文件", this.fileArr)
|
|
|
|
|
|
if (this.isEmpty(this.projectType.dictValue)) {
|
|
|
this.$modal.msg('请选择工程类型')
|
|
@@ -836,7 +800,6 @@
|
|
|
|
|
|
|
|
|
try {
|
|
|
- //console.log("刚开始", this.czggslList);
|
|
|
this.czggslList.forEach((list) => {
|
|
|
if (this.isEmpty(list.cz.id)) {
|
|
|
this.$modal.msg('材质不能为空')
|
|
@@ -879,9 +842,8 @@
|
|
|
specifications: list.gg.id,
|
|
|
number: list.sl
|
|
|
})
|
|
|
- }),
|
|
|
+ })
|
|
|
|
|
|
- console.log("数据", this.zEngineeringMaterialBo)
|
|
|
|
|
|
let param = {
|
|
|
//files: this.fileArr, //文件
|
|
@@ -1007,6 +969,7 @@
|
|
|
line-height: 20px;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
.tj-btn {
|
|
|
height: 69rpx;
|
|
|
background: #3184f0;
|