提交 e0881957 authored 作者: 邓文彬's avatar 邓文彬

fix(pad): 清除不需要的文件

上级 f61c28db
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}, },
onShow: function () { onShow: function () {
const now_user = uni.getStorageSync("now_user") || {}; const now_user = uni.getStorageSync("now_user") || {};
if (now_user.name) { if (now_use.user) {
this.$store.commit("SET_USER", now_user); this.$store.commit("SET_USER", now_user);
} }
this.init(); this.init();
...@@ -68,10 +68,6 @@ export default { ...@@ -68,10 +68,6 @@ export default {
uni.setStorageSync("now_user", this.$store.state.now_user); uni.setStorageSync("now_user", this.$store.state.now_user);
uni.setStorageSync("last_time", this.$store.state.now_user.LastSynchronizationTime); uni.setStorageSync("last_time", this.$store.state.now_user.LastSynchronizationTime);
// uni.redirectTo({
// url: "/pages/login/login",
// });
// uni.clearStorage(); //将所有缓存清除
console.log("---onHide", ) console.log("---onHide", )
}, },
......
...@@ -16,52 +16,16 @@ ...@@ -16,52 +16,16 @@
"path": "pages/synchronization/synchronization" "path": "pages/synchronization/synchronization"
}, },
//巡检管理 //巡检管理
{
"path": "pages/inspection/inspection"
},
{ {
"path": "pages/inspection/inspFirst" "path": "pages/inspection/inspFirst"
}, },
{ {
"path": "pages/inspection/inspDetail"
},
{
"path": "pages/inspection/sampleTable"
},
{
"path": "pages/inspection/lookInsp"
},
{
"path": "pages/inspection/inspProcess"
},
//报修管理
{
"path": "pages/repair/repair"
},
{
"path": "pages/repair/repairDetail"
},
{ //查看报修
"path": "pages/repair/showRapair"
},
{ //报告管理
"path": "pages/report/report"
},
{ //查看报告
"path": "pages/report/lookReport"
},
{ //新增报告
"path": "pages/report/reportInfo"
},
{ //报告样表
"path": "pages/report/sampleTable" "path": "pages/report/sampleTable"
}, },
{ //报修样表
"path": "pages/repair/sampleTable"
},
{ //报告管理1
"path": "pages/report/report-detail/deatil_first"
},
{ //修改密码 { //修改密码
"path": "pages/index/editPd" "path": "pages/index/editPd"
}, },
......
...@@ -180,6 +180,10 @@ export default { ...@@ -180,6 +180,10 @@ export default {
this.logOut(); this.logOut();
}); });
} else { } else {
this.formData = {
oldPd: "",
newPd: "",
};
uni.showToast({ uni.showToast({
title: "更新失败,原密码错误,请重新输入!", title: "更新失败,原密码错误,请重新输入!",
icon: "none", icon: "none",
......
差异被折叠。
差异被折叠。
<template>
<view class="container">
<!-- 导航栏 -->
<uni-nav-bar dark :fixed="true" background-color="#5474e8" status-bar title="杭州内网监管在线" left-icon="left"
left-text="返回" @clickLeft="back(baseFormData)" />
<view class="content">
<!-- 基本信息 -->
<view class="info-box box-shaow-box">
<view class="from-title">
<view class="from-title-item">
<span class="line-class"></span>例行巡检异常项处理
</view>
<view class="center-class" v-show="!isShow">
巡检区域: <span style="color: #f34545;">{{showRoomName(baseFormData.room)}}</span>
</view>
</view>
<view class="collapse-box-icon" @tap="collapseChange">
<image src="../../static/img/upArrow.png" mode="" v-show="!isShow"></image>
<image src="../../static/img/downArrow.png" mode="" v-show="isShow"></image>
</view>
<uni-forms v-show="isShow" ref="baseForm" :modelValue="baseFormData" label-width="100px"
label-align="right">
<uni-row class="demo-uni-row">
<uni-col :span="8">
<uni-forms-item label="巡检区域:">
<span style="color: #f34545;">{{showRoomName(baseFormData.room)}}</span>
</uni-forms-item>
</uni-col>
<uni-col :span="8" style="padding: 0 5px;">
<uni-forms-item label="编号:">
{{baseFormData.number}}
</uni-forms-item>
</uni-col>
<uni-col :span="8">
<uni-forms-item label="巡检日期:">
<span>{{baseFormData.time}}</span>
</uni-forms-item>
</uni-col>
</uni-row>
</uni-forms>
</view>
<!-- 巡检项目 -->
<view class="detail-box ">
<view class="from-title flex-title">
<view class="from-title-item">
<span class="line-class"></span>巡检项目异常项
<span class="num_class">{{num}}项异常</span>
</view>
<view class="submit-class">
<button size="mini" type="primary" class="submit-button" :disabled="isDisabled"
@tap="submit">提交</button>
</view>
</view>
<room :rdata='tableData' :isShow='isShow' ref="itemRoom" @retrunData='retrunData' @save='isSave'></room>
<view class="btn-box" >
<button type="primary" class="saveBtn" size="mini" @tap="saveInsp">保存草稿</button>
</view>
</view>
</view>
</view>
</template>
<script>
import allData from "../../components/inspDetail/data/allData.js"
import room from "../../components/inspAbnormal/room.vue"
import getDateTime from "@/common/getdateTime.js"
export default {
components: {
room
},
data() {
return {
isShow: false,
baseFormData: {
// room: '5',
// number: null,
// time: ''
},
tableData: {},
isDisabled: true,
allDisabled: false,
num: 0
}
},
created() {
if (JSON.stringify(this.$store.state.temp_data) !== '{}') {
this.baseFormData = this.$store.state.temp_data
this.$store.commit('SET_STARTTIME',this.baseFormData.time)
if (this.baseFormData.errorData) {
let obj = JSON.parse(JSON.stringify(this.baseFormData.errorData))
for(let key in obj){
if(obj[key].length == 0){
delete obj[key]
}
}
this.tableData = obj
for (let key in this.tableData) {
this.num += 1
}
}
}
},
methods: {
showRoomName(val) {
let res = "";
switch (val) {
case "1":
res = "核密机房";
break;
case "2":
res = "普密机房";
break;
case "3":
res = "传输机房";
break;
case "4":
res = "机要值班室";
break;
case "5":
res = "UPS机房";
break;
case "6":
res = "其他区域";
break;
case "7":
res = "省备份主机房";
break;
case "8":
res = "省备份传输机房";
break;
case "9":
res = "省备份UPS机房";
break;
}
return res;
},
isSave(val) {
this.isDisabled = !val
},
dialogInputConfirm() {
// uni.navigateBack()
uni.navigateBack()
},
back() {
uni.navigateBack()
},
// 点击保存草稿
saveInsp() {
// console.log(this.$refs.itemRoom,'this.$refs.itemRoom');
this.$refs.itemRoom.saveData()
},
// 子孙组件将编辑好的数据返回,进行保存
retrunData(val) {
console.log(val);
this.baseFormData.errorData = val
this.$store.state.all_data.map((item, index) => {
if (this.baseFormData.uid == item.uid) {
this.$store.state.all_data.splice(index, 1, this.baseFormData)
}
})
uni.showToast({
title: '保存成功',
icon: 'none',
duration: 2000
})
},
// 展开收起基本信息
collapseChange() {
this.isShow = !this.isShow
},
// 点击提交
submit() {
let timeStr = getDateTime.dateTimeStr('y-m-d h:i:s')
let obj = this.baseFormData.errorData
const isValueExist = (obj, value) => {
// 遍历对象的属性值(数组)
for (const arr of Object.values(obj)) {
// 使用some方法判断数组中是否包含目标值
if (arr.some(item => item.handlerState === value)) {
return true;
}
}
return false;
};
if(isValueExist(obj, '未处理')){
this.baseFormData.abnormality = '有异常'
this.baseFormData.status = '编辑中'
}else{
this.baseFormData.abnormality = '已处理'
if(this.baseFormData.isSub){
this.baseFormData.status = '待同步'
}
}
this.baseFormData.submissionTime = timeStr
this.$store.state.all_data.map((item, index) => {
if (this.baseFormData.uid == item.uid) {
this.$store.state.all_data.splice(index, 1, this.baseFormData)
}
})
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 2000,
success() {
uni.navigateBack()
}
})
},
}
}
</script>
<style lang="less" scoped>
.num_class {
display: inline-block;
padding: 2px 13px;
color: #ff6161;
background-color: rgba(255, 97, 97, 0.16);
margin-left: 4px;
}
.uni-forms-item {
align-items: center;
}
.popup-content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 15px;
height: 50px;
background-color: #fff;
}
.dialog-btn {
background-color: #5474e8;
}
.submit-class {
.submit-button {
background-color: #5474e8;
box-shadow: 0px 3px 6px 0px rgba(84, 116, 232, 0.16);
}
}
.container {
width: 100%;
height: 100%;
.content {
width: 100%;
height: calc(100% - 44px - var(--status-bar-height));
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%);
background-size: 100% 40rpx;
background-repeat: no-repeat;
padding: 20px;
padding-top: 0;
.from-title {
display: flex;
align-items: center;
// justify-content: space-between;
font-size: 18px !important;
margin-bottom: 10px;
.line-class {
display: inline-block;
width: 2px;
height: 18px;
background-color: #5474e8;
margin-right: 5px;
}
.from-title-item {
display: flex;
align-items: center;
}
.center-class {
position: absolute;
left: 50%;
transform: translate(-50%);
color: #778ca2;
}
}
.flex-title {
justify-content: space-between;
}
.info-box {
width: 100%;
// height: 112px;
padding: 10px;
padding-bottom: 2px;
background-color: #ffffff;
position: relative;
transition: height 0.5s;
.collapse-box-icon {
position: absolute;
right: 10px;
top: 10px;
width: 14px;
height: 14px;
// background-color: red;
image {
width: 100%;
height: 100%;
}
}
}
.detail-box {
width: 100%;
padding: 10px;
background-color: #ffffff;
margin-top: 20px;
position: relative;
background-color: #ffffff;
box-shadow: 0px 0px 6px 0px rgba(84, 116, 232, 0.16);
border-radius: 10px 10px 0 0;
.btn-box {
width: 984px;
height: 60px;
border-radius: 0 0 10px 10px;
position: fixed;
left: 20px;
bottom: 10px;
background-color: #ffffff;
// border: 1px solid red;
display: flex;
align-items: center;
.saveBtn {
// width: ;
width: 130px;
height: 40px;
line-height: 40px;
background-color: #5474e8;
box-shadow: 0px 3px 6px 0px rgba(84, 116, 232, 0.16);
// border-radius: 10px;
}
}
}
}
}
</style>
\ No newline at end of file
差异被折叠。
<template>
<view class="container">
<!-- 导航栏 -->
<uni-nav-bar dark :fixed="true" background-color="#5474e8" status-bar title="杭州内网监管在线" left-icon="left"
left-text="返回" right-text="查看样表" @clickLeft="back" @clickRight="lookTable(baseFormData.room)" />
<view class="content">
<!-- 基本信息 -->
<view class="info-box box-shaow-box">
<view class="from-title">
<view class="from-title-item">
<span class="line-class"></span>基本信息
</view>
<view class="center-class" v-show="!isShow">
巡检区域: <span style="color: #ff0000;">{{showRoomName(baseFormData.room)}}</span>
</view>
</view>
<view class="collapse-box-icon" @tap="collapseChange">
<image src="../../static/img/upArrow.png" mode="" v-show="!isShow"></image>
<image src="../../static/img/downArrow.png" mode="" v-show="isShow"></image>
</view>
<uni-forms v-show="isShow" ref="baseForm" :modelValue="baseFormData" label-width="100px"
label-align="right">
<uni-row class="demo-uni-row">
<uni-col :span="8">
<uni-forms-item label="选择区域:">
<uni-data-select :disabled="allDisabled" v-model="baseFormData.room"
:localdata="roomRange" :clear="false">
</uni-data-select>
</uni-forms-item>
</uni-col>
<uni-col :span="8" style="padding: 0 5px;">
<uni-forms-item label="编号:">
<uni-easyinput :disabled="allDisabled" maxlength="50" v-model="baseFormData.number" />
</uni-forms-item>
</uni-col>
<uni-col :span="8">
<uni-forms-item label="巡检日期:">
<uni-datetime-picker :disabled="allDisabled" type="date" :clear-icon="false"
v-model="baseFormData.time" />
</uni-forms-item>
</uni-col>
</uni-row>
</uni-forms>
</view>
<!-- 巡检项目 -->
<view class="detail-box ">
<view class="from-title flex-title">
<view class="from-title-item">
<span class="line-class"></span>巡检项目
</view>
</view>
<hm-table v-if="baseFormData.room == '1'" ref="hmTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></hm-table>
<pm-table v-if="baseFormData.room == '2'" ref="pmTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></pm-table>
<cs-table v-if="baseFormData.room == '3'" ref="csTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></cs-table>
<jy-table v-if="baseFormData.room == '4'" ref="jyTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></jy-table>
<ups-table v-if="baseFormData.room == '5'" ref="upsTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></ups-table>
<other-table v-if="baseFormData.room == '6'" ref="otherTable" :isShow='isShow'
@save="isSave" :listData="tableData" :disabled="allDisabled"></other-table>
</view>
</view>
</view>
</template>
<script>
import hmTable from "../../components/inspDetail/hmRoom/hmTable.vue"
import pmTable from "../../components/inspDetail/pmRoom/pmTable.vue"
import csTable from "../../components/inspDetail/csRoom/csTable.vue"
import jyTable from "../../components/inspDetail/jyRoom/jyTable.vue"
import upsTable from "../../components/inspDetail/upsRoom/upsTable.vue"
import otherTable from "../../components/inspDetail/otherRoom/otherTable.vue"
import allData from "../../components/inspDetail/data/allData.js"
export default {
components: {
hmTable,
pmTable,
csTable,
jyTable,
upsTable,
otherTable
},
data() {
return {
isShow: false,
baseFormData: {
// room: '5',
// number: null,
// time: ''
},
roomRange: [{
text: '核密机房',
value: '1'
}, {
text: '普密机房',
value: '2'
}, {
text: '传输机房',
value: '3'
}, {
text: '机要值班室',
value: '4'
}, {
text: 'UPS机房',
value: '5'
}, {
text: '其他区域',
value: '6'
}],
contentData: {},
tempData: {},
tableData: {},
allData: {},
flag: true,
isDisabled: true,
allDisabled: false
}
},
created() {
if (JSON.stringify(this.$store.state.temp_data) !== '{}') {
this.baseFormData = this.$store.state.temp_data
// console.log(this.baseFormData.tempData, '當前暫存的數據');
if (this.baseFormData.tempData) {
this.tableData = this.baseFormData.tempData
this.tempData = this.baseFormData.tempData
this.flag = false
}
}
if (this.$store.state.oper_type == '查看') {
this.allDisabled = true
}
this.allData = JSON.parse(JSON.stringify(allData))
},
methods: {
showRoomName(val) {
let res = "";
switch (val) {
case "1":
res = "核密机房";
break;
case "2":
res = "普密机房";
break;
case "3":
res = "传输机房";
break;
case "4":
res = "机要值班室";
break;
case "5":
res = "UPS机房";
break;
case "6":
res = "其他区域";
break;
}
return res;
},
isSave(val) {
this.isDisabled = !val
},
back() {
uni.navigateBack()
},
collapseChange() {
this.isShow = !this.isShow
},
lookTable(val) {
this.$store.commit('SET_ROOM',val)
uni.navigateTo({
url: "/pages/inspection/sampleTable"
})
}
}
}
</script>
<style lang="less" scoped>
.popup-content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 15px;
height: 50px;
background-color: #fff;
}
.submit-class {
.submit-button {
background-color: #5474e8;
box-shadow: 0px 3px 6px 0px rgba(84, 116, 232, 0.16);
}
}
.container {
width: 100%;
height: 100%;
.content {
width: 100%;
height: calc(100% - 44px - var(--status-bar-height));
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%);
background-size: 100% 40rpx;
background-repeat: no-repeat;
padding: 20px;
padding-top: 0;
.from-title {
display: flex;
align-items: center;
// justify-content: space-between;
font-size: 18px !important;
margin-bottom: 10px;
.line-class {
display: inline-block;
width: 2px;
height: 18px;
background-color: #5474e8;
margin-right: 5px;
}
.from-title-item {
display: flex;
align-items: center;
}
.center-class {
position: absolute;
left: 50%;
transform: translate(-50%);
color: #778ca2;
}
}
.flex-title {
justify-content: space-between;
}
.info-box {
width: 100%;
// height: 112px;
padding: 10px;
padding-bottom: 2px;
background-color: #ffffff;
position: relative;
.collapse-box-icon {
position: absolute;
right: 10px;
top: 10px;
width: 14px;
height: 14px;
// background-color: red;
image {
width: 100%;
height: 100%;
}
}
}
.detail-box {
width: 100%;
padding: 10px;
background-color: #ffffff;
margin-top: 20px;
position: relative;
background-color: #ffffff;
box-shadow: 0px 0px 6px 0px rgba(84, 116, 232, 0.16);
border-radius: 10px 10px 0 0;
.btn-box {
width: 984px;
height: 60px;
border-radius: 0 0 10px 10px;
position: fixed;
left: 20px;
bottom: 10px;
background-color: #ffffff;
// border: 1px solid red;
display: flex;
align-items: center;
.saveBtn {
background-color: #5474e8;
box-shadow: 0px 3px 6px 0px rgba(84, 116, 232, 0.16);
// border-radius: 10px;
}
}
}
}
}
</style>
\ No newline at end of file
<template>
<view class="content">
<uni-nav-bar dark :fixed="true" background-color="#5474e8" status-bar left-icon="left" left-text="返回"
@clickLeft="back" title="杭州内网监管在线" />
<view class="main">
<view class="container box-shaow-box">
<view class="image-item ">
<image src="../../static/img/insp-table/hm.png" mode="widthFix" v-if="room == '1'"></image>
<image src="../../static/img/insp-table/pm.png" mode="widthFix" v-if="room == '2'"></image>
<image src="../../static/img/insp-table/cs.png" mode="widthFix" v-if="room == '3'"></image>
<image src="../../static/img/insp-table/jy.png" mode="widthFix" v-if="room == '4'"></image>
<image src="../../static/img/insp-table/ups.png" mode="widthFix" v-if="room == '5'"></image>
<image src="../../static/img/insp-table/other.png" mode="widthFix" v-if="room == '6'"></image>
<image src="../../static/img/insp-table/sbf.png" mode="widthFix" v-if="room == '7'"></image>
<image src="../../static/img/insp-table/sbfcs.png" mode="widthFix" v-if="room == '8'"></image>
<image src="../../static/img/insp-table/sbfups.png" mode="widthFix" v-if="room == '9'"></image>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data(){
return{
room:null,
}
},
created() {
this.room = this.$store.state.roomNum
},
methods: {
back() {
uni.navigateBack()
}
}
}
</script>
<style lang="less" scoped>
.content {
width: 100%;
height: 100%;
.main {
width: 100%;
// background-color: red;
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%);
background-size: 100% 40rpx;
background-repeat: no-repeat;
.container {
margin: 0 auto;
width: 730rpx;
height: 400rpx;
padding: 17.65rpx;
padding-bottom: 0;
// width: 341.18rpx;
overflow: hidden;
overflow: auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.image-item {
width: 682rpx;
height: 930rpx;
background-color: #ffffff;
box-shadow: 0px 0px 9.41rpx 0px rgba(84, 116, 232, 0.2);
border-radius: 4px;
margin-bottom: 11.76rpx;
}
image {
width: 100%;
// object-fit: contain;
}
}
}
}
</style>
<template>
<view>
新巡检页
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
差异被折叠。
差异被折叠。
差异被折叠。
<template>
<view class="content">
<uni-nav-bar dark :fixed="true" background-color="#5474e8" status-bar left-icon="left" left-text="返回"
@clickLeft="back" title="杭州内网监管在线" />
<view class="main">
<view class="container box-shaow-box">
<view class="image-item ">
<image src="../../static/img/repair-table/repair1.png" mode="widthFix"></image>
</view>
<view class="image-item ">
<image src="../../static/img/repair-table/repair2.png" mode="widthFix"></image>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
onNavigationBarButtonTap(val) {
// console.log(val);
uni.navigateBack()
},
methods: {
back() {
uni.navigateBack()
}
}
}
</script>
<style lang="less" scoped>
.content {
width: 100%;
height: 100%;
.main {
width: 100%;
// background-color: red;
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%);
background-size: 100% 40rpx;
background-repeat: no-repeat;
.container {
margin: 0 auto;
width: 730rpx;
height: 400rpx;
padding: 17.65rpx;
padding-bottom: 0;
// width: 341.18rpx;
overflow: hidden;
overflow: auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.image-item {
width: 341.18rpx;
height: 464.71rpx;
background-color: #ffffff;
box-shadow: 0px 0px 9.41rpx 0px rgba(84, 116, 232, 0.2);
border-radius: 4px;
margin-bottom: 11.76rpx;
}
.top-image {
height: 288.24rpx;
}
image {
width: 100%;
// object-fit: contain;
}
}
}
}
</style>
<template>
<view class="container">
<uni-nav-bar left-icon="left" left-text="返回" dark :fixed="true" background-color="#5474e8" status-bar
title="杭州内网监管在线" rightText="查看样表" @clickLeft="back" @clickRight="lookTable" />
<view class="section">
<view class="content">
<view class="title">
<span>报修信息</span>
</view>
<view class="formConetnt">
<uni-forms :modelValue="repirForm" labelWidth="110px" :rules="rules" ref="forms">
<uni-row>
<uni-col :span="10">
<uni-forms-item label="CASE NO:" required name="caseNo">
<span>{{repirForm.caseNo}}</span>
<!-- <uni-easyinput v-model="repirForm.caseNo" placeholder="请输入" disabled></uni-easyinput> -->
</uni-forms-item>
</uni-col>
<uni-col :span="10" :offset="2">
<uni-forms-item label="编号:" required name="number">
<span>{{repirForm.number}}</span>
<!-- <uni-easyinput v-model="repirForm.number" placeholder="请输入" disabled></uni-easyinput> -->
</uni-forms-item>
</uni-col>
</uni-row>
<uni-row>
<uni-col :span="10">
<uni-forms-item label="用户姓名:" required name="userName">
<span>{{repirForm.userName}}</span>
<!-- <uni-easyinput v-model="repirForm.userName" placeholder="请输入" disabled></uni-easyinput> -->
</uni-forms-item>
</uni-col>
<uni-col :span="10" :offset="2">
<uni-forms-item label="工程师姓名:" name="engineerName" required>
<span>{{repirForm.engineerName}}</span>
<!-- <uni-easyinput v-model="repirForm.engineerName" placeholder="请输入" disabled></uni-easyinput> -->
</uni-forms-item>
</uni-col>
</uni-row>
<uni-row>
<uni-col :span="10">
<uni-forms-item label="到场时间:" required name="arriveTime">
<span>{{repirForm.arriveTime}}</span>
<!-- <uni-datetime-picker type='date' v-model="repirForm.arriveTime" disabled /> -->
</uni-forms-item>
</uni-col>
<uni-col :span="10" :offset="2">
<uni-forms-item label="离场时间:" required name="leaveTime">
<span>{{repirForm.leaveTime}}</span>
<!-- <uni-datetime-picker type='date' v-model="repirForm.leaveTime" disabled /> -->
</uni-forms-item>
</uni-col>
</uni-row>
<uni-row>
<uni-forms-item label="服务类型:" required name="type">
<!-- <span>{{repirForm.type}}</span> -->
<uni-data-checkbox disabled mode="tag" v-model="repirForm.type" :localdata="dateList"
multiple @change="typeChange">
</uni-data-checkbox>
</uni-forms-item>
</uni-row>
<uni-row>
<uni-forms-item label="服务内容:" required name="content">
<!-- <span>{{repirForm.content}}</span> -->
<uni-easyinput disabled type="textarea" v-model="repirForm.content"></uni-easyinput>
</uni-forms-item>
</uni-row>
<uni-row>
<uni-forms-item label="遗留问题及原因:" required name="problemAndReason">
<!-- <span>{{repirForm.problemAndReason}}</span> -->
<uni-easyinput disabled type="textarea"
v-model="repirForm.problemAndReason"></uni-easyinput>
</uni-forms-item>
</uni-row>
<uni-row>
<uni-forms-item label="工程师对用户建议:" required name="isOrNo">
<!-- <span v-if="repirForm.isOrNo == '无'">{{repirForm.isOrNo}}</span>
<span v-if="repirForm.isOrNo == '有'">{{repirForm.proposal}}</span> -->
<uni-data-checkbox disabled mode="tag" v-model="repirForm.isOrNo"
:localdata="typeList1">
</uni-data-checkbox>
<uni-easyinput type="textarea" v-model="repirForm.proposal" disabled
v-if="repirForm.isOrNo == '有'"></uni-easyinput>
</uni-forms-item>
</uni-row>
<uni-row>
<uni-forms-item label="用户对上述服务项及遗留问题:" required name="approvalOrPart">
<uni-data-checkbox disabled mode="tag" v-model="repirForm.approvalOrPart"
:localdata="typeList2">
</uni-data-checkbox>
<uni-easyinput disabled type="textarea" v-model="repirForm.view"
v-if="repirForm.approvalOrPart == '部分认可'"></uni-easyinput>
</uni-forms-item>
</uni-row>
</uni-forms>
<view class="saveBtn">
<button class="mini-btn" type="primary" size="mini" @click="back">返回</button>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import getDateTime from "@/common/getdateTime.js"
export default {
data() {
return {
rules: {
caseNo: {
rules: [{
required: true,
errorMessage: '请输入caseNo'
}]
},
number: {
rules: [{
required: true,
errorMessage: '请输入编号'
}]
},
userName: {
rules: [{
required: true,
errorMessage: '请输入用户姓名'
}]
},
engineerName: {
rules: [{
required: true,
errorMessage: '请输入工程师姓名'
}]
},
arriveTime: {
rules: [{
required: true,
errorMessage: '请选择到场时间'
}]
},
leaveTime: {
rules: [{
required: true,
errorMessage: '请选择离场时间'
}]
},
content: {
rules: [{
required: true,
errorMessage: '请输入服务内容'
}]
},
type: {
rules: [{
required: true,
errorMessage: '请选择类型'
}]
},
problemAndReason: {
rules: [{
required: true,
errorMessage: '请输入遗留问题'
}]
},
},
repirForm: {
isOrNo: '无',
approvalOrPart: '认可'
},
typeList1: [{
text: '无',
value: '无'
}, {
text: '有',
value: '有'
}],
typeList2: [{
text: '认可',
value: '认可'
}, {
text: '部分认可',
value: '部分认可'
}],
dateList: [{
text: '现场调研',
value: '现场调研'
}, {
text: '安装调试',
value: '安装调试'
}, {
text: '故障解决',
value: '故障解决'
}, {
text: '性能调整',
value: '性能调整'
}, {
text: '软件维护',
value: '软件维护'
}, {
text: '其他',
value: '其他'
}],
postData: {},
}
},
created() {
if (JSON.stringify(this.$store.state.temp_data) !== '{}') {
this.postData = this.$store.state.temp_data
this.repirForm = JSON.parse(this.postData.content)
}
},
methods: {
lookTable() {
uni.navigateTo({
url: "/pages/repair/sampleTable"
})
},
typeChange(e) {
console.log(e);
},
back() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="less">
/deep/.uni-forms-item {
align-items: center !important;
}
.container {
width: 100vw;
height: 100vh;
.section {
width: 100vw;
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%);
background-size: 100% 40rpx;
background-repeat: no-repeat;
.content {
background-color: #ffffff;
box-shadow: 0px 0px 6px 0px rgba(84, 116, 232, 0.16);
border-radius: 10px;
background-color: white;
width: 726.5rpx;
margin: 0 auto;
padding: 20px 30px 30px 30px;
height: 405rpx;
.title {
border-left: 2px solid #5474e8;
height: 18px;
display: flex;
align-items: center;
padding-left: 8px;
span {
line-height: 18px;
font-size: 18px;
}
}
.formConetnt {
height: calc(100% - 18px);
overflow: auto;
padding: 18px;
/deep/.uni-forms-item__label {
justify-content: flex-end !important;
uni-text {
text-align: right;
}
}
}
.saveBtn {
display: flex;
justify-content: center;
}
}
}
}
</style>
\ No newline at end of file
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论