Merge branch 'bjxz-dev' into bjxz-wz
This commit is contained in:
commit
1f096408d1
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ yarn-error.log*
|
|||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
|
uni_modules
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
html
|
html
|
||||||
|
|||||||
@ -67,10 +67,19 @@
|
|||||||
<view class="uni-form-label">
|
<view class="uni-form-label">
|
||||||
司机姓名
|
司机姓名
|
||||||
</view>
|
</view>
|
||||||
<view class="uni-form-input">
|
<picker @change="bindPickerChange3" :value="driverNameIndex" :range="colorList"
|
||||||
|
range-key="locationName">
|
||||||
|
<view class="uni-input uni-select cl" v-if="driverNameIndex==null">
|
||||||
|
请选择 <image class="icon-down" src="/static/icon-down-black.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="uni-input uni-select" v-else>{{colorList[driverNameIndex]}}
|
||||||
|
<image class="icon-down" src="/static/icon-down-black.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<!-- <view class="uni-form-input">
|
||||||
<input class="uni-input" placeholder-class="cl" name="driverName" :value="form.driverName"
|
<input class="uni-input" placeholder-class="cl" name="driverName" :value="form.driverName"
|
||||||
placeholder="请输入" />
|
placeholder="请输入" />
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="uni-form-item">
|
<view class="uni-form-item">
|
||||||
<view class="uni-form-label">
|
<view class="uni-form-label">
|
||||||
@ -112,6 +121,8 @@
|
|||||||
colorList: ['蓝色', '绿色', '黄色', '白色', '黑色'],
|
colorList: ['蓝色', '绿色', '黄色', '白色', '黑色'],
|
||||||
carTypeList: [],
|
carTypeList: [],
|
||||||
carTypeIndex: null,
|
carTypeIndex: null,
|
||||||
|
driverNameList: [],
|
||||||
|
driverNameIndex: null,
|
||||||
form: {
|
form: {
|
||||||
carColor: "",
|
carColor: "",
|
||||||
carNumber: "",
|
carNumber: "",
|
||||||
@ -198,6 +209,28 @@
|
|||||||
radioChange(e) {
|
radioChange(e) {
|
||||||
this.form.isBlack = e.target.value
|
this.form.isBlack = e.target.value
|
||||||
},
|
},
|
||||||
|
//获取司机姓名
|
||||||
|
getDriverNameList() {
|
||||||
|
var that = this
|
||||||
|
this.sendRequest({
|
||||||
|
url: 'xmgl/carType/list',
|
||||||
|
data: {
|
||||||
|
projectSn: this.projectDetail.projectSn
|
||||||
|
},
|
||||||
|
method: "POST",
|
||||||
|
success(res) {
|
||||||
|
that.carTypeList = res.result
|
||||||
|
if (!that.isAdd) {
|
||||||
|
for (var i = 0; i < res.result.length; i++) {
|
||||||
|
if (that.form.carType == res.result[i].id) {
|
||||||
|
that.carTypeIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//获取车种
|
//获取车种
|
||||||
getCarTypeList() {
|
getCarTypeList() {
|
||||||
var that = this
|
var that = this
|
||||||
@ -251,6 +284,9 @@
|
|||||||
bindPickerChange2: function(e) {
|
bindPickerChange2: function(e) {
|
||||||
this.carTypeIndex = e.target.value
|
this.carTypeIndex = e.target.value
|
||||||
},
|
},
|
||||||
|
bindPickerChange3: function(e) {
|
||||||
|
this.carTypeIndex = e.target.value
|
||||||
|
},
|
||||||
bindDateChange: function(e) {
|
bindDateChange: function(e) {
|
||||||
this.form.eduTime = e.target.value
|
this.form.eduTime = e.target.value
|
||||||
},
|
},
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
<view class="form-item f-column">
|
<view class="form-item f-column">
|
||||||
<view class="form-lable">现场照片</view>
|
<view class="form-lable">现场照片</view>
|
||||||
<view class="uni-form-input imgBox_wrap">
|
<view class="uni-form-input imgBox_wrap">
|
||||||
<view class="addImgBox" @click="uploadImg">
|
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
||||||
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
<view class="form-item f-column a-none">
|
<view class="form-item f-column a-none">
|
||||||
<view class="form-lable">现场照片</view>
|
<view class="form-lable">现场照片</view>
|
||||||
<view class="uni-form-input imgBox_wrap">
|
<view class="uni-form-input imgBox_wrap">
|
||||||
<view class="addImgBox" @click="uploadImg">
|
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
||||||
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<view class="plan-form">
|
<view class="plan-form">
|
||||||
<view class="form-item b-bottom">
|
<view class="form-item b-bottom">
|
||||||
<view class="form-lable"><text class="tag">*</text>责任区域</view>
|
<view class="form-lable"><text class="tag">*</text>责任区域</view>
|
||||||
<input class="from-input" type="text" :value="formData.dutyRegion" @blur="bindInputBlur" placeholder="请输入责任区域" />
|
<input class="from-input" :maxlength="22" type="text" :value="formData.dutyRegion" @blur="bindInputBlur" placeholder="请输入责任区域" />
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item f-column b-bottom">
|
<view class="form-item f-column b-bottom">
|
||||||
<view class="form-lable">进度描述</view>
|
<view class="form-lable">进度描述</view>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<view class="form-item f-column">
|
<view class="form-item f-column">
|
||||||
<view class="form-lable">现场照片</view>
|
<view class="form-lable">现场照片</view>
|
||||||
<view class="uni-form-input imgBox_wrap">
|
<view class="uni-form-input imgBox_wrap">
|
||||||
<view class="addImgBox" @click="uploadImg">
|
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
||||||
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
<view class="imgBox" v-show="formData.imgFileList.length>0" v-for="(item,index) in formData.imgFileList" :key="index">
|
||||||
@ -276,6 +276,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.from-input{
|
.from-input{
|
||||||
|
width: 57%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,6 +155,19 @@
|
|||||||
// this.listData = res.result.records
|
// this.listData = res.result.records
|
||||||
// }
|
// }
|
||||||
this.detailData = res.result
|
this.detailData = res.result
|
||||||
|
let str = '';
|
||||||
|
if(res.result.chooseTypeDescribeList){
|
||||||
|
this.detailData.describeName
|
||||||
|
res.result.chooseTypeDescribeList.map((item,index) => {
|
||||||
|
if(index == res.result.chooseTypeDescribeList.length - 1){
|
||||||
|
str = str + item.describeName
|
||||||
|
} else {
|
||||||
|
str = str + item.describeName + ','
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log(str,123456789)
|
||||||
|
this.detailData.describeName = str;
|
||||||
|
}
|
||||||
console.log(this.detailData)
|
console.log(this.detailData)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -198,7 +211,7 @@
|
|||||||
uni.removeStorageSync('detailData');
|
uni.removeStorageSync('detailData');
|
||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'../safeManage/addExamine?type=1&engineeringId='+this.detailId
|
url:'../safeManage/addExamine?type=1&engineeringId='+this.detailId + '&moduleType=safeCheck'
|
||||||
})
|
})
|
||||||
} else if(this.activeIndex == 6){
|
} else if(this.activeIndex == 6){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -97,27 +97,28 @@
|
|||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [url]
|
urls: [url]
|
||||||
})
|
})
|
||||||
}
|
} else{
|
||||||
//#ifdef H5
|
uni.downloadFile({
|
||||||
uni.showToast({
|
url: url,
|
||||||
title: '暂不支持预览!',
|
success: function (res) {
|
||||||
icon: "none",
|
var filePath = res.tempFilePath;
|
||||||
duration: 2000
|
uni.openDocument({
|
||||||
|
filePath: filePath,
|
||||||
|
success: function (res) {
|
||||||
|
console.log('打开文档成功');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return;
|
}
|
||||||
//#endif
|
// //#ifdef H5
|
||||||
uni.downloadFile({
|
// uni.showToast({
|
||||||
url: url,
|
// title: '暂不支持预览!',
|
||||||
success: function (res) {
|
// icon: "none",
|
||||||
var filePath = res.tempFilePath;
|
// duration: 2000
|
||||||
uni.openDocument({
|
// });
|
||||||
filePath: filePath,
|
// return;
|
||||||
success: function (res) {
|
// //#endif
|
||||||
console.log('打开文档成功');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -348,6 +348,7 @@
|
|||||||
taskId: "",
|
taskId: "",
|
||||||
itemId: "",
|
itemId: "",
|
||||||
base64Image: '',
|
base64Image: '',
|
||||||
|
moduleType: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -465,6 +466,9 @@
|
|||||||
this.taskId = val.taskId
|
this.taskId = val.taskId
|
||||||
this.itemId = val.itemId
|
this.itemId = val.itemId
|
||||||
}
|
}
|
||||||
|
if(val.moduleType){
|
||||||
|
this.moduleType = val.moduleType;
|
||||||
|
}
|
||||||
console.log(val, '----页面类型')
|
console.log(val, '----页面类型')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -689,7 +693,7 @@
|
|||||||
// uni.removeStorageSync('dangerData');
|
// uni.removeStorageSync('dangerData');
|
||||||
// }
|
// }
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: './dangerLibrary?type=1&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId
|
url: './dangerLibrary?type=1&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId + '&moduleType=safeCheck'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -947,9 +951,15 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '保存成功'
|
title: '保存成功'
|
||||||
})
|
})
|
||||||
uni.navigateTo({
|
if(this.moduleType == 'safeCheck'){
|
||||||
url: "./safeIndex"
|
uni.navigateBack({
|
||||||
})
|
delta: 3
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "./safeIndex"
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log(res.result)
|
console.log(res.result)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -130,6 +130,7 @@
|
|||||||
taskId:"",
|
taskId:"",
|
||||||
itemId:"",
|
itemId:"",
|
||||||
engineeringId: "",
|
engineeringId: "",
|
||||||
|
moduleType: "",
|
||||||
statusBarHeight: 0,
|
statusBarHeight: 0,
|
||||||
navList: [],
|
navList: [],
|
||||||
leftIndex: 0,
|
leftIndex: 0,
|
||||||
@ -174,6 +175,7 @@
|
|||||||
this.taskId = val.taskId
|
this.taskId = val.taskId
|
||||||
this.itemId = val.itemId
|
this.itemId = val.itemId
|
||||||
this.engineeringId = val.engineeringId
|
this.engineeringId = val.engineeringId
|
||||||
|
this.moduleType = val.moduleType
|
||||||
},
|
},
|
||||||
onShow(val){
|
onShow(val){
|
||||||
|
|
||||||
@ -248,7 +250,7 @@
|
|||||||
val.title = this.navList[this.leftIndex].hiddenDangerName
|
val.title = this.navList[this.leftIndex].hiddenDangerName
|
||||||
uni.setStorageSync('dangerData', val);
|
uni.setStorageSync('dangerData', val);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: './addExamine?type='+this.type+'&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId
|
url: './addExamine?type='+this.type+'&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId + '&moduleType=' + this.moduleType
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
previewRule(e){
|
previewRule(e){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user