baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+635
@@ -0,0 +1,635 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="header-row-class-organzie" v-if="isShowOrg">
|
||||
<view class="header-row-title-class-organzie">当前组织:</view>
|
||||
<picker @change="orgChange" :value="index" :range="orgArry" range-key="FNAME">
|
||||
<view class="head-row-content-class-organzie">{{orgArry[index].FNAME}}</view>
|
||||
</picker>
|
||||
<image class="img-organzie" src="../../../static/img/changearrow.svg"></image>
|
||||
</view>
|
||||
<view class="detail-top-tab-class" @touchmove.stop.prevent="moveHandle">
|
||||
<view class="detail-top-tab-col-class" @tap="pageFlagClick(1)">
|
||||
<text :class="[pageFlag==1?'detail-top-tab-text-blue-class':'detail-top-tab-text-class']">待点检</text>
|
||||
<view class="detail-top-tab-line-class" v-show="pageFlag == 1"></view>
|
||||
</view>
|
||||
<view class="detail-top-tab-col-line-class"></view>
|
||||
<view class="detail-top-tab-col-class" @tap="pageFlagClick(2)">
|
||||
<text :class="[pageFlag==2?'detail-top-tab-text-blue-class':'detail-top-tab-text-class']">完工</text>
|
||||
<view class="detail-top-tab-line-class" v-show="pageFlag == 2"></view>
|
||||
</view>
|
||||
<view class="detail-top-tab-col-line-class"></view>
|
||||
<view class="detail-top-tab-col-class" @tap="pageFlagClick(3)">
|
||||
<text :class="[pageFlag==3?'detail-top-tab-text-blue-class':'detail-top-tab-text-class']">过期任务</text>
|
||||
<view class="detail-top-tab-line-class" v-show="pageFlag == 3"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="height: 24rpx;" @touchmove.stop.prevent="moveHandle"></view>
|
||||
|
||||
<view class="search" v-show="searchShow">
|
||||
<view class="search-title">
|
||||
<picker @change="bindPickerChange" :value="selConditionIndex" :range="selCondition">
|
||||
<view class="uni-input">
|
||||
<view class="uni-input-text">{{selCondition[selConditionIndex]}}</view>
|
||||
<image src="../../../static/login/icon-pull.png" style="height: 32rpx;width: 32rpx;"></image>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<input class="search-input" placeholder="搜索" v-model="searchData" focus="focus"
|
||||
placeholder-style="font-size: 28rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: rgba(160,160,160,0.60);"
|
||||
@confirm="searchTask(searchData)"></input>
|
||||
<image class="search-img" src="../../../static/emapp/scan.png" @click="scanClick()"></image>
|
||||
</view>
|
||||
<view style="height: 32rpx;width: 100%;"></view>
|
||||
<view v-if="taskList.length==0" >
|
||||
<view v-if="pageFlag==1" style="color: red;margin-left: 56rpx;">待点检列表为空</view>
|
||||
<view v-if="pageFlag==2" style="color: red;margin-left: 56rpx;">完工列表为空</view>
|
||||
<view v-if="pageFlag==3" style="color: red;margin-left: 56rpx;">过期任务列表为空</view>
|
||||
</view>
|
||||
<view class="card-list" v-for="(item,index) in taskList" @tap="itemClick(item)" :key="index" v-else>
|
||||
<view class="card-info">
|
||||
<view class="card-info-title">
|
||||
<view class="card-info-item" style="margin-top: 0;">
|
||||
<text class="card-info-title-text-left">点检单号:</text>
|
||||
<text class="card-info-title-text-detail-left">{{item.FBILLNO}}</text>
|
||||
</view>
|
||||
<view class="card-info-title-text-right">
|
||||
<text class="status-red-text" v-show="item.FFType=='0'">待检</text>
|
||||
<!-- <view class="status-red" v-show="item.FFType=='0'"></view> -->
|
||||
<text class="status-yellow-text" v-show="item.FFType=='1'">进行中</text>
|
||||
<!-- <view class="status-yellow" v-show="item.FFType=='1'"></view> -->
|
||||
<text class="status-green-text" v-show="item.FFType=='2'">已完成</text>
|
||||
<!-- <view class="status-green" v-show="item.FFType=='2'"></view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">点检名称:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FNAME}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">工单时间:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FEFFECTIVEDATE}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">异动时间:</text>
|
||||
<text class="card-info-item-text-detail">{{item.M_YMD}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">执行人:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FEXECTOR}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">执行部门:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FDEPTNAME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="height: 10rpx;"></view>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import navigationTitle from '@/components/navigation-title/navigation-title.vue';
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
|
||||
var commonUtil = require('../../../common/util.js');
|
||||
var _self;
|
||||
|
||||
export default {
|
||||
components: {
|
||||
navigationTitle,
|
||||
opsoftDialogNotice
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
|
||||
focus:true,
|
||||
searchShow:true,
|
||||
searchData:'',
|
||||
selCondition:['全部','部门','单据名称','设备'],
|
||||
selConditionIndex:0,
|
||||
searchType:0,
|
||||
scrollTop: 0,
|
||||
isShowOrg:true,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
taskList:[],
|
||||
pageIndex:1,
|
||||
pageSize:6,
|
||||
pageFlag:1,
|
||||
showTips:false,
|
||||
prgKey:"MESQS19",
|
||||
nextPage:"EQUM01",
|
||||
deptInfoArray:[],
|
||||
deptID:"",
|
||||
sourcesID:"",
|
||||
status:0,
|
||||
isHistory:0,
|
||||
curDate:''
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
let date = new Date();
|
||||
this.curDate = date.getFullYear()+'/'+(date.getMonth()+1)+'/'+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
|
||||
this.pageIndex = 1;
|
||||
this.pageFlagClick(1);
|
||||
// this.getDeptInfoRequest(1);
|
||||
|
||||
console.log(commonUtil);
|
||||
_self = this;
|
||||
this.getOrgList()
|
||||
},
|
||||
|
||||
onPullDownRefresh:function(){
|
||||
_self.showTips = false;
|
||||
|
||||
this.getTaskList(1, this.pageSize);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
|
||||
onReachBottom:function(){
|
||||
if(!_self.showTips) {
|
||||
this.getTaskList(this.pageIndex, this.pageSize);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['userInfo', 'sysParameters'])
|
||||
},
|
||||
onBackPress(options) {
|
||||
if(options.from === 'navigateBack'){
|
||||
return false;
|
||||
}
|
||||
this.back();
|
||||
return true;
|
||||
},
|
||||
methods: {
|
||||
dialogNoticeConfirmClick(){
|
||||
this.showDialog = false;
|
||||
},
|
||||
dialogNoticeProps(err,type){
|
||||
err = errorStrUntil.handle(err);
|
||||
this.showDialog = true;
|
||||
this.dialogNoticeType = 'error';
|
||||
this.dialogNoticeTitle = '异常提示';
|
||||
if(type=='success'){
|
||||
this.dialogNoticeType = 'success';
|
||||
this.dialogNoticeTitle = '执行成功';
|
||||
}
|
||||
this.dialogNoticeContent = err;
|
||||
},
|
||||
getOrgList:function(){
|
||||
let _self = this;
|
||||
let orgInfo = uni.getStorageSync('orgInfo');
|
||||
|
||||
if(orgInfo && orgInfo.length > 0) {
|
||||
let defaultOrgInfo = uni.getStorageSync('defaultOrgInfo');
|
||||
let isOpenDefaultOrg = uni.getStorageSync('isOpenDefaultOrg');
|
||||
if(!isOpenDefaultOrg){
|
||||
this.orgFItemID = orgInfo[0].FINTERID;
|
||||
}else{
|
||||
if(defaultOrgInfo){
|
||||
this.orgFItemID = defaultOrgInfo.FINTERID;
|
||||
}else{
|
||||
this.orgFItemID = orgInfo[0].FINTERID;
|
||||
}
|
||||
}
|
||||
|
||||
this.orgArry = orgInfo;
|
||||
this.orgArry.forEach(
|
||||
function(el,index){
|
||||
let currentOrgid = el.FINTERID;
|
||||
let result = (currentOrgid == _self.orgFItemID);
|
||||
if(result){
|
||||
_self.index = index;
|
||||
}
|
||||
}
|
||||
);
|
||||
}else{
|
||||
this.orgArry = [{name:"请选择组织", key:"", FNAME:"当前无组织"}];
|
||||
this.index = 0;
|
||||
}
|
||||
},
|
||||
orgChange:function(e){
|
||||
console.log(this.orgArry)
|
||||
this.index = e.target.value;
|
||||
let isOpenDefaultOrg = uni.getStorageSync('isOpenDefaultOrg');
|
||||
if(!this.orgArry[this.index].FItemID){
|
||||
this.orgFItemID = "";
|
||||
}else{
|
||||
this.orgFItemID = this.orgArry[this.index].FItemID;
|
||||
if(isOpenDefaultOrg){
|
||||
uni.setStorageSync('defaultOrgInfo',this.orgArry[this.index]);
|
||||
}
|
||||
}
|
||||
|
||||
console.log(this.orgFItemID);
|
||||
this.orgChangedClear();
|
||||
},
|
||||
|
||||
showOrg:function(){},
|
||||
|
||||
orgChangedClear:function(){
|
||||
this.currentBarCodeInfo = new Object();
|
||||
this.FInvenPlanNO = "";
|
||||
this.FInvenPlanName = "";
|
||||
this.currentBarCodeInfo.FBarcodeNumber = "";
|
||||
this.currentBarCodeInfo.FItemNumber = "";
|
||||
this.currentBarCodeInfo.FItemName = "";
|
||||
this.currentBarCodeInfo.FAuxPropName = "";
|
||||
this.currentBarCodeInfo.FQty = "";
|
||||
this.currentBarCodeInfo.FLocation = "";
|
||||
this.currentBarCodeInfo.FSCStockNumber = "";
|
||||
this.currentBarCodeInfo.FSCSPNumber = "";
|
||||
this.fQtyDisabled = true;
|
||||
this.showResult = true;
|
||||
this.fSCSPNumberDisabled = true;
|
||||
this.scannedDataList = [];
|
||||
this.totalData = [];
|
||||
this.barcodeList = [];
|
||||
this.commitList = [];
|
||||
this.judgeCash();
|
||||
this.$forceUpdate();
|
||||
},
|
||||
judgeCash:function(){
|
||||
const cashValue = uni.getStorageSync('pageCash'+this.currentTranType+this.orgFItemID);
|
||||
if(cashValue) {
|
||||
if(cashValue.otherInfo.dbAlise == this.userInfo.dbAlise &&
|
||||
cashValue.otherInfo.UserID == this.userInfo.UserID){
|
||||
// this.showCashTips = true;
|
||||
this.loadByCash();
|
||||
}
|
||||
}
|
||||
},
|
||||
back(){
|
||||
uni.redirectTo({
|
||||
url:'../../tabbar/apply/apply'
|
||||
})
|
||||
},
|
||||
bindPickerChange:function(e){
|
||||
this.selConditionIndex = e.target.value;
|
||||
this.searchType = e.target.value;
|
||||
this.getTaskList(1, this.pageSize,'');
|
||||
},
|
||||
scanClick:function(){
|
||||
let _self = this;
|
||||
let count = '';
|
||||
uni.scanCode({
|
||||
success:function(res){
|
||||
_self.searchData = res.result;
|
||||
_self.getTaskList(1, _self.pageSize,count);
|
||||
}
|
||||
})
|
||||
},
|
||||
searchTask:function(item){
|
||||
this.searchData = item;
|
||||
let count = '';
|
||||
this.getTaskList(1, this.pageSize,count);
|
||||
},
|
||||
itemClick: function(item){
|
||||
let sysParameter = uni.getStorageSync('getSysParameter');
|
||||
let ExceedTimeCanEdit = sysParameter;
|
||||
// let ExceedTimeCanEdit = 1;
|
||||
if (ExceedTimeCanEdit == 1) {
|
||||
let begTime = new Date(item.FBegTime).getTime();
|
||||
let endTime = new Date(item.FEndTime).getTime();
|
||||
let currentTime = new Date().getTime();
|
||||
if (currentTime < begTime) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '当前点检单未到工单时间!',
|
||||
showCancel:false,
|
||||
success: function (res) {
|
||||
|
||||
}
|
||||
});
|
||||
return ;
|
||||
}
|
||||
|
||||
// if (currentTime > endTime) {
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
// content: '当前点检单超过异动时间!',
|
||||
// showCancel:false,
|
||||
// success: function (res) {
|
||||
|
||||
// }
|
||||
// });
|
||||
// return ;
|
||||
// }
|
||||
}
|
||||
|
||||
// if (ExceedTimeCanEdit == 2) {
|
||||
// let begTime = new Date(item.FBegTime).getTime();
|
||||
// let currentTime = new Date().getTime();
|
||||
// if (currentTime < begTime) {
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
// content: '当前点检单未到开始时间!',
|
||||
// showCancel:false,
|
||||
// success: function (res) {
|
||||
|
||||
// }
|
||||
// });
|
||||
// return ;
|
||||
// }
|
||||
// }
|
||||
|
||||
item.isHistory = this.isHistory;
|
||||
item.isEditable = true;
|
||||
if((item.isHistory == 1) || (item.FFType == 2)||(this.pageFlag==2)) {
|
||||
item.isEditable = false;
|
||||
}
|
||||
|
||||
let newItem;
|
||||
if(item.FInterID) {
|
||||
newItem = uni.getStorageSync(item.FInterID);
|
||||
}
|
||||
if(newItem && newItem.length>0) {
|
||||
newItem.isHistory = item.isHistory;
|
||||
newItem.isEditable = item.isEditable;
|
||||
item = newItem;
|
||||
}
|
||||
|
||||
let itemString = JSON.stringify(item);
|
||||
|
||||
let navigateUrl = '../../views/'+this.nextPage+'/'+'EQUM01Item?item='+itemString;
|
||||
uni.navigateTo({
|
||||
url: navigateUrl,
|
||||
});
|
||||
},
|
||||
|
||||
getDeptInfoRequest: function(count) {},
|
||||
|
||||
getTaskList: function(index,size,count) {
|
||||
uni.showLoading({
|
||||
title:"加载中",
|
||||
mask:true
|
||||
})
|
||||
|
||||
let userInfoLocal = uni.getStorageSync("userInfo");
|
||||
let userID = this.userInfo.UserID;
|
||||
this.orgid = uni.getStorageSync('orgid');
|
||||
if (userInfoLocal && userInfoLocal.UserID) {
|
||||
if(userInfoLocal.UserID.length > 0) {
|
||||
if((!userID) || (userID.length <= 0)) {
|
||||
userID = userInfoLocal.UserID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.pageIndex = index;
|
||||
let requestParams = {
|
||||
"type":this.pageFlag,
|
||||
"pageIndex": this.pageIndex,
|
||||
"pageSize": size,
|
||||
"searchType":this.searchType,
|
||||
"searchData":this.searchData
|
||||
};
|
||||
this.$request.get('/SpotCheck/SpotTaskSearch',{params:requestParams}).then(res => {
|
||||
res.length ? res.forEach(
|
||||
function(el){
|
||||
if (el.FEFFECTIVEDATE) {
|
||||
let FBegTime = commonUtil.removeLetter(el.FEFFECTIVEDATE);
|
||||
el.FBegTime = FBegTime.substr(0,10) + " " + FBegTime.substr(10 ,8);
|
||||
}
|
||||
if (el.M_YMD) {
|
||||
let FEndTime = commonUtil.removeLetter(el.M_YMD);
|
||||
el.FEndTime = FEndTime.substr(0,10) + " " + FEndTime.substr(10 ,8);
|
||||
}
|
||||
}
|
||||
) : ''
|
||||
|
||||
if (_self.pageIndex == 1) {
|
||||
_self.taskList = res;
|
||||
_self.pageIndex = _self.pageIndex+1;
|
||||
}
|
||||
else {
|
||||
if(res.length != 0) {
|
||||
let newArray = _self.taskList.concat(res);
|
||||
_self.taskList = newArray;
|
||||
_self.pageIndex = _self.pageIndex+1;
|
||||
if(res.length < 6) {
|
||||
_self.showTips = true;
|
||||
}
|
||||
} else {
|
||||
_self.showTips = true;
|
||||
}
|
||||
}
|
||||
|
||||
uni.hideLoading();
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogNoticeProps(err,'error')
|
||||
});
|
||||
},
|
||||
|
||||
pageFlagClick: function(type){
|
||||
this.pageFlag = type;
|
||||
let count = 1;
|
||||
if (type == 1){
|
||||
this.status = 0;
|
||||
this.isHistory = 0;
|
||||
this.searchShow = true;
|
||||
}
|
||||
else if (type == 2){
|
||||
this.status = 1;
|
||||
this.isHistory = 0;
|
||||
this.searchShow = false;
|
||||
}
|
||||
else if (type == 3){
|
||||
this.status = 0;
|
||||
this.isHistory = 1;
|
||||
this.searchShow = false;
|
||||
}
|
||||
this.getTaskList(1, this.pageSize,count);
|
||||
},
|
||||
|
||||
moveHandle: function(){
|
||||
return false;
|
||||
},
|
||||
|
||||
navigateBackClick: function(){
|
||||
uni.redirectTo({
|
||||
url:'../../tabbar/apply/apply'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page{background-color: #F0F0F0;}
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
background-color: #F0F0F0;
|
||||
}
|
||||
|
||||
.detail-top-tab-class{
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
flex-wrap: nowrap;
|
||||
ustify-content: center;
|
||||
align-items: center;
|
||||
height: 84rpx;
|
||||
margin: 0 0rpx;
|
||||
}
|
||||
|
||||
.detail-top-tab-col-class{
|
||||
width: 100rpx;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
// padding-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.detail-top-tab-col-class image{
|
||||
height: 45rpx;
|
||||
width: 45rpx;
|
||||
background:yell;
|
||||
}
|
||||
|
||||
.detail-top-tab-col-line-class{
|
||||
width: 1px;
|
||||
height: 30rpx;
|
||||
background-color: #D0D0D0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.detail-top-tab-text-class{
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #626262;
|
||||
}
|
||||
|
||||
.detail-top-tab-text-blue-class{
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
font-size: 32rpx;
|
||||
font-family: PingFangSC, PingFangSC-Semibold;
|
||||
font-weight: 600;
|
||||
color: #262626;
|
||||
}
|
||||
|
||||
.detail-top-tab-line-class{
|
||||
width: 60rpx;
|
||||
height:4rpx;
|
||||
background-color:#3860F3;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
.search{padding: 0 0;background-color: #F0F0F0;margin: 0 32rpx;display: flex;flex-direction: row;}
|
||||
.search-title{
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
// border: 1px solid #D8D8D8;
|
||||
border-radius: 10rpx;
|
||||
font-size: 30rpx;
|
||||
font-style: auto;
|
||||
color: #666666;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.uni-input{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
// border: 1px solid #D8D8D8;
|
||||
color: #666666;
|
||||
padding: 5rpx 24rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
.uni-input-text{text-align: left;width: 100%;font-size: 28rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: rgba(60,60,67,0.60);}
|
||||
.search-input{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 30rpx;
|
||||
color: #6B6B6B;
|
||||
padding-left: 15rpx;
|
||||
padding-right: 15rpx;
|
||||
border-radius: 10rpx;
|
||||
// border: 1px solid #D8D8D8;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.search-img{height: 32rpx;width: 32rpx;position: absolute;right: 15rpx;top: 14rpx;}
|
||||
.header-row-class-organzie{
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
// padding-right: 50rpx;
|
||||
}
|
||||
|
||||
.header-row-title-class-organzie{
|
||||
font-size: 32rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.head-row-content-class-organzie{
|
||||
font-size: 32rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.img-organzie{
|
||||
height: 32rpx;
|
||||
width: 32rpx;
|
||||
margin-left: 24rpx;
|
||||
}
|
||||
</style>
|
||||
+821
@@ -0,0 +1,821 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="detail-top-class">
|
||||
<view class="detail-top-title-class">点检项目</view>
|
||||
<view :class="[currentIndex==0?'view-next-disable-class':'view-next-class']" @tap="preBtnClick()">上一项</view>
|
||||
<view style="flex-grow: 0; flex-shrink: 0; width: 20px; text-align: center; color: #E5E5E5;">|</view>
|
||||
<view :class="[currentIndex==(taskItem.SubItem.length-1)?'view-next-disable-class':'view-next-class']" @tap="nextBtnClick()">下一项</view>
|
||||
</view>
|
||||
<view class="info-body">
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">单据编号:</text>
|
||||
<text class="detail-row-context-class">{{taskItem.FBILLNO}}</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">设备名称:</text>
|
||||
<text class="detail-row-context-class">{{taskItem.SubItem[currentIndex].FEQUIPNAME}}</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">部件名称:</text>
|
||||
<text class="detail-row-context-class">{{taskItem.SubItem[currentIndex].FPARTNAME}}</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">点检内容:</text>
|
||||
<text class="detail-row-context-class">{{taskItem.SubItem[currentIndex].FCONTENT}}</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">参数范围:</text>
|
||||
<text class="detail-row-context-class">{{taskItem.SubItem[currentIndex].FRANGE}}</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class" style="margin-bottom: 0;">
|
||||
<text class="detail-row-title-class">分析方法:</text>
|
||||
<!-- <xfl-select :list="analysisArray" :clearable="false" :isCanInput="false" v-if="taskItem.isEditable"
|
||||
@change="analysisChange" :defaultSelectText="FAnalysisWayNameDefaultSelectText"
|
||||
class="detail-row-xfl-class" ref="analysisArrayRef" :style_Container="xlfStyleContainer"/> -->
|
||||
<text class="detail-row-context-class">
|
||||
{{taskItem.SubItem[currentIndex].FANALYSISWAY==1?'定性分析':'定量分析'}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-title">检测结果</view>
|
||||
<view class="info-body">
|
||||
<view class="detail-row-class" v-if="taskItem.SubItem[currentIndex].FANALYSISWAY==1">
|
||||
<text class="detail-row-title-class">检验值</text>
|
||||
<input class="detail-row-input-class" type="number" v-if="taskItem.isEditable"
|
||||
v-model="taskItem.SubItem[currentIndex].FTESTVALUE" @input="onKeyInput"/>
|
||||
<text class="detail-row-context-class" v-if="!taskItem.isEditable">
|
||||
{{taskItem.SubItem[currentIndex].FTESTVALUE}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class" v-if="taskItem.SubItem[currentIndex].FANALYSISWAY==2">
|
||||
<text class="detail-row-title-class">检验值</text>
|
||||
<input class="detail-row-input-class" type="number" v-if="taskItem.isEditable"
|
||||
v-model="taskItem.SubItem[currentIndex].FTESTVALUE" @input="onKeyInput"/>
|
||||
<text class="detail-row-context-class" v-if="!taskItem.isEditable">
|
||||
{{taskItem.SubItem[currentIndex].FTESTVALUE}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class" v-if="taskItem.SubItem[currentIndex].FANALYSISWAY==2">
|
||||
<text class="detail-row-title-class">目 标 值:</text>
|
||||
<!-- <input class="detail-row-input-class" type="number" v-if="taskItem.isEditable"
|
||||
v-model="taskItem.SubItem[currentIndex].FValue" @input="onKeyInput"/> -->
|
||||
<text class="detail-row-context-class">
|
||||
{{taskItem.SubItem[currentIndex].FVALUE}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class" v-if="taskItem.SubItem[currentIndex].FANALYSISWAY==2 && taskItem.FISSHOWLIMIT">
|
||||
<text class="detail-row-title-class">下 限 值:</text>
|
||||
<!-- <input class="detail-row-input-class" type="number" v-if="taskItem.isEditable"
|
||||
v-model="taskItem.SubItem[currentIndex].FLwerLimit" @input="onKeyInput"/> -->
|
||||
<text class="detail-row-context-class">
|
||||
{{taskItem.SubItem[currentIndex].FLWERLIMIT}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-row-class" v-if="taskItem.SubItem[currentIndex].FANALYSISWAY==2 && taskItem.FISSHOWLIMIT">
|
||||
<text class="detail-row-title-class">上 限 值:</text>
|
||||
<!-- <input class="detail-row-input-class" type="number" v-if="taskItem.isEditable"
|
||||
v-model="taskItem.SubItem[currentIndex].FUpperLimit" @input="onKeyInput"/> -->
|
||||
<text class="detail-row-context-class">
|
||||
{{taskItem.SubItem[currentIndex].FUPPERLIMIT}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">是否停机</text>
|
||||
<view class="detail-row-check-class">
|
||||
<checkbox value="cb" :disabled="!taskItem.isEditable" :checked="taskItem.SubItem[currentIndex].FISSTOPMACHINE" @click="cbStopMachine"
|
||||
style="transform:scale(0.7);"/>是
|
||||
<checkbox value="cb" :disabled="!taskItem.isEditable" :checked="!taskItem.SubItem[currentIndex].FISSTOPMACHINE" @click="cbNoneStopMachine"
|
||||
style="margin-left: 160rpx;transform:scale(0.7);"/>否
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">检测结果</text>
|
||||
<view class="detail-row-check-class">
|
||||
<checkbox value="cb" :disabled="!taskItem.isEditable" :checked="taskItem.SubItem[currentIndex].FTESTRESULT == 1" @click="cbClickQualified"
|
||||
style="transform:scale(0.7);"/>合格
|
||||
<checkbox value="cb" :disabled="!taskItem.isEditable" :checked="taskItem.SubItem[currentIndex].FTESTRESULT == 2" @click="cbClickUnqualified"
|
||||
style="margin-left: 132rpx;transform:scale(0.7);"/>不合格
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-title">异常信息</view>
|
||||
<view class="info-body" style="padding: 0 0;">
|
||||
<textarea placeholder="输入异常信息" placeholder-class="text-area-holder" class="text-area"
|
||||
v-model="taskItem.SubItem[currentIndex].FNOTE" @input="onKeyInput" :disabled="!taskItem.isEditable"></textarea>
|
||||
</view>
|
||||
<view class="info-title">图片上传<span>仅限jpg、png格式</span></view>
|
||||
<view class="info-body">
|
||||
|
||||
<view class="detail-row-class">
|
||||
<imgUpload :imgArr="imgArray" imgCount="1" ref="imgUpload" :clickEnable="clickEnable" @del="updateImag" :controlCarmalFlag="cameraType"></imgUpload>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="height: 80rpx; flex-shrink: 0; flex-grow: 0;"></view>
|
||||
<view class="detail-btn-row-class">
|
||||
<button @tap="saveBtnClick()" v-show="taskItem.isEditable">保存</button>
|
||||
</view>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
<opsoft-dialog
|
||||
@dialogCancelClick="dialogCancelClick"
|
||||
@dialogConfirmClick="dialogConfirmClick"
|
||||
:dialogContent="dialogContent"
|
||||
:dialogTitle="dialogTitle"
|
||||
:dialogShow="dialogShow"
|
||||
></opsoft-dialog>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import xflSelect from '../../../components/xfl-select/xfl-select.vue';
|
||||
import imgUpload from '@/components/poiuy-uImgUpload/imgUpload.vue';
|
||||
import { pathToBase64, base64ToPath } from '@/js_sdk/mmmm-image-tools/index.js';
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import opsoftDialog from '@/components/opsoft-dialog/opsoft-dialog.vue'
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
var _self;
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
|
||||
dialogShow:false,
|
||||
dialogTitle:'',
|
||||
dialogContent:'',
|
||||
dialogType:'',
|
||||
dialogParams:new Object,
|
||||
|
||||
FIsShowLimit:false,
|
||||
imgArray:new Array(),
|
||||
defultInfo:'',
|
||||
scrollTop: 0,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
|
||||
taskItem: new Object(),
|
||||
currentIndex:0,
|
||||
backFlag:true,
|
||||
analysisArray:[{value:"定性分析", key:1}, {value:"定量分析", key:2}],
|
||||
checkArray:[{value:"合格", key:1}, {value:"不合格", key:2}],
|
||||
defaultKey:"defaultKey",
|
||||
FAnalysisWayNameDefaultSelectText:"",
|
||||
FTestResultNameDefaultSelectText:"",
|
||||
xlfStyleContainer:"height: 60rpx; line-height: 60rpx",
|
||||
clickEnable:false,
|
||||
cameraType:0
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
xflSelect,
|
||||
imgUpload,
|
||||
opsoftDialogNotice,
|
||||
opsoftDialog
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
_self = this;
|
||||
if (options.item) {
|
||||
let item = JSON.parse(options.item);
|
||||
_self.taskItem = item;
|
||||
_self.taskItem.saveFlag = false;
|
||||
_self.clickEnable = _self.taskItem.isEditable;
|
||||
_self.currentIndex = _self.taskItem.currentdIndex;
|
||||
_self.FIsShowLimit = _self.taskItem.FISSHOWLIMIT;
|
||||
let dataKey = _self.defaultKey;
|
||||
if (_self.taskItem.FINTERID) {
|
||||
dataKey = _self.taskItem.FINTERID;
|
||||
}
|
||||
if (!_self.taskItem.SubItem) {
|
||||
_self.taskItem.SubItem = new Array();
|
||||
}
|
||||
if (_self.taskItem.isEditable) {
|
||||
uni.setStorage({
|
||||
key: dataKey,
|
||||
data: _self.taskItem,
|
||||
success: function (res) {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
_self.updataPage();
|
||||
}
|
||||
|
||||
let sysParameterCameraType = uni.getStorageSync('getSysParameterCameraType');
|
||||
_self.cameraType = parseInt(sysParameterCameraType);
|
||||
},
|
||||
|
||||
onReady() {
|
||||
if (!this.taskItem.SubItem[this.currentIndex].FTestResultName || this.taskItem.SubItem[this.currentIndex].FTestResultName.length==0) {
|
||||
if(this.$refs.checkArrayRef) {
|
||||
this.$refs.checkArrayRef.selectText = "请选择";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (this.$refs.checkArrayRef) {
|
||||
this.$refs.checkArrayRef.selectText = this.taskItem.SubItem[this.currentIndex].FTestResultName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.taskItem.SubItem[this.currentIndex].FAnalysisWayName || this.taskItem.SubItem[this.currentIndex].FAnalysisWayName.length==0) {
|
||||
if (this.$refs.analysisArrayRef) {
|
||||
this.$refs.analysisArrayRef.selectText = "请选择";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (this.$refs.analysisArrayRef) {
|
||||
this.$refs.analysisArrayRef.selectText = this.taskItem.SubItem[this.currentIndex].FAnalysisWayName;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onBackPress() {
|
||||
if (!_self.taskItem.isEditable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_self.backFlag) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_self.taskItem.saveFlag) {
|
||||
this.dialogProps("请确认是否暂存检验项目数据","tempStorage",'none');
|
||||
} else {
|
||||
this.backFlag = this.uploadImageCurrent();
|
||||
}
|
||||
|
||||
return this.backFlag;
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
...mapState(['userInfo']),
|
||||
},
|
||||
|
||||
methods: {
|
||||
dialogProps(dialogContent,type,params){
|
||||
this.dialogShow = true;
|
||||
this.dialogTitle = '提示';
|
||||
this.dialogContent = dialogContent;
|
||||
this.dialogType = type
|
||||
this.dialogParams.params = params
|
||||
},
|
||||
dialogConfirmClick:function() {
|
||||
let _self = this;
|
||||
console.log("dialogConfirmClick");
|
||||
if(this.dialogType=='tempStorage'){
|
||||
_self.backFlag = false;
|
||||
_self.taskItem.saveFlag = false;
|
||||
|
||||
let dataKey = _self.defaultKey;
|
||||
if (_self.taskItem.FINTERID) {
|
||||
dataKey = _self.taskItem.FINTERID;
|
||||
}
|
||||
|
||||
uni.setStorage({
|
||||
key: dataKey,
|
||||
data: _self.taskItem,
|
||||
success: function (res) {
|
||||
uni.showToast({
|
||||
title:"保存成功",
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
uni.navigateBack({
|
||||
delta:1
|
||||
});
|
||||
}, 2000);
|
||||
}
|
||||
},
|
||||
dialogCancelClick:function() {
|
||||
console.log("dialogCancelClick");
|
||||
this.dialogShow=false
|
||||
if(this.dialogType=='tempStorage'){
|
||||
_self.backFlag = false;
|
||||
|
||||
let dataKey = _self.defaultKey;
|
||||
if (_self.taskItem.FINTERID) {
|
||||
dataKey = _self.taskItem.FINTERID;
|
||||
}
|
||||
|
||||
uni.removeStorage({
|
||||
key:dataKey
|
||||
});
|
||||
|
||||
uni.navigateBack({
|
||||
delta:1
|
||||
});
|
||||
}
|
||||
},
|
||||
upper: function(e) {
|
||||
console.log(e)
|
||||
},
|
||||
|
||||
lower: function(e) {
|
||||
console.log(e)
|
||||
},
|
||||
|
||||
scroll: function(e) {
|
||||
console.log(e)
|
||||
this.old.scrollTop = e.detail.scrollTop
|
||||
},
|
||||
|
||||
goTop: function(e) {
|
||||
// 解决view层不同步的问题
|
||||
this.scrollTop = this.old.scrollTop
|
||||
this.$nextTick(function() {
|
||||
this.scrollTop = 0
|
||||
});
|
||||
|
||||
uni.showToast({
|
||||
icon:"none",
|
||||
title:"纵向滚动 scrollTop 值已被修改为 0"
|
||||
});
|
||||
},
|
||||
|
||||
updataPage: function(){
|
||||
if(!this.taskItem.SubItem[this.currentIndex]) {
|
||||
this.taskItem.SubItem[this.currentIndex] = new Object();
|
||||
}
|
||||
if(!this.taskItem.SubItem[this.currentIndex].FTESTRESULT ||
|
||||
this.taskItem.SubItem[this.currentIndex].FTESTRESULT == 0){
|
||||
this.taskItem.SubItem[this.currentIndex].FTESTRESULT = 0;
|
||||
this.taskItem.SubItem[this.currentIndex].FTestResultName = "";
|
||||
this.FTestResultNameDefaultSelectText = "请选择";
|
||||
if(this.$refs.checkArrayRef) {
|
||||
this.$refs.checkArrayRef.selectText = "请选择";
|
||||
}
|
||||
}
|
||||
if(this.taskItem.SubItem[this.currentIndex].FTESTRESULT == 1){
|
||||
this.taskItem.SubItem[this.currentIndex].FTestResultName = "合格";
|
||||
this.FTestResultNameDefaultSelectText = "合格";
|
||||
if(this.$refs.checkArrayRef) {
|
||||
this.$refs.checkArrayRef.selectText = "合格";
|
||||
}
|
||||
}
|
||||
if(this.taskItem.SubItem[this.currentIndex].FTESTRESULT == 2){
|
||||
this.taskItem.SubItem[this.currentIndex].FTestResultName = "不合格";
|
||||
this.FTestResultNameDefaultSelectText = "不合格";
|
||||
if(this.$refs.checkArrayRef) {
|
||||
this.$refs.checkArrayRef.selectText = "不合格";
|
||||
}
|
||||
}
|
||||
|
||||
if(!this.taskItem.SubItem[this.currentIndex].FAnalysisWay ||
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWay == 0) {
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWay = 0;
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWayName = "";
|
||||
this.FAnalysisWayNameDefaultSelectText = "请选择";
|
||||
if(this.$refs.analysisArrayRef) {
|
||||
this.$refs.analysisArrayRef.selectText = "请选择";
|
||||
}
|
||||
}
|
||||
if(this.taskItem.SubItem[this.currentIndex].FAnalysisWay == 1) {
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWay = 1;
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWayName = "定性分析";
|
||||
this.FAnalysisWayNameDefaultSelectText = "定性分析";
|
||||
if(this.$refs.analysisArrayRef) {
|
||||
this.$refs.analysisArrayRef.selectText = "定性分析";
|
||||
}
|
||||
}
|
||||
if(this.taskItem.SubItem[this.currentIndex].FAnalysisWay == 2) {
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWay = 2;
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWayName = "定量分析";
|
||||
this.FAnalysisWayNameDefaultSelectText = "定量分析";
|
||||
if(this.$refs.analysisArrayRef) {
|
||||
this.$refs.analysisArrayRef.selectText = "定量分析";
|
||||
}
|
||||
}
|
||||
|
||||
this.imgArray = new Array();
|
||||
if (this.taskItem.SubItem[this.currentIndex].FIMAGE) {
|
||||
this.imgArray.push(this.taskItem.SubItem[this.currentIndex].FIMAGE);
|
||||
}
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
nextBtnClick: function(){
|
||||
if(this.currentIndex==(this.taskItem.SubItem.length-1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let imagecheck = _self.uploadImageCurrent();
|
||||
if(imagecheck) {
|
||||
return ;
|
||||
}
|
||||
_self.currentIndex++;
|
||||
_self.updataPage();
|
||||
},
|
||||
|
||||
preBtnClick: function(){
|
||||
if(this.currentIndex==0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let imagecheck = _self.uploadImageCurrent();
|
||||
if(imagecheck) {
|
||||
return ;
|
||||
}
|
||||
_self.currentIndex--;
|
||||
_self.updataPage();
|
||||
},
|
||||
|
||||
analysisChange:function({newVal, oldVal, index, orignItem}) {
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWay = orignItem.key;
|
||||
this.taskItem.SubItem[this.currentIndex].FAnalysisWayName = orignItem.value;
|
||||
this.FAnalysisWayNameDefaultSelectText = orignItem.value;
|
||||
this.$refs.analysisArrayRef.selectText = orignItem.value;
|
||||
this.taskItem.SubItem[this.currentIndex].updateFlag = "Y";
|
||||
this.taskItem.saveFlag = true;
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
checkChange: function({newVal, oldVal, index, orignItem}) {
|
||||
this.taskItem.SubItem[this.currentIndex].FTestResultName = orignItem.value;
|
||||
this.taskItem.SubItem[this.currentIndex].FTESTRESULT = orignItem.key;
|
||||
this.FTestResultNameDefaultSelectText = orignItem.value;
|
||||
this.$refs.checkArrayRef.selectText = orignItem.value;
|
||||
this.taskItem.SubItem[this.currentIndex].updateFlag = "Y";
|
||||
this.taskItem.saveFlag = true;
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
onKeyInput: function(e){
|
||||
if(!_self.taskItem.isEditable) {
|
||||
return;
|
||||
}
|
||||
console.log(e.target.value);
|
||||
let checkValue = e.target.value;
|
||||
let upperLimit = this.taskItem.SubItem[this.currentIndex].FUpperLimit;
|
||||
let lowerLimit = this.taskItem.SubItem[this.currentIndex].FLwerLimit;
|
||||
let check = parseFloat(parseFloat(checkValue).toFixed(6));
|
||||
let upper = parseFloat(parseFloat(upperLimit).toFixed(6));
|
||||
let lower = parseFloat(parseFloat(lowerLimit).toFixed(6));
|
||||
if(this.taskItem.SubItem[this.currentIndex].FAnalysisWay==2){
|
||||
if((check>=lower) && (check<=upper)){
|
||||
_self.taskItem.SubItem[this.currentIndex].FTESTRESULT = "1";
|
||||
|
||||
}else{
|
||||
_self.taskItem.SubItem[this.currentIndex].FTESTRESULT = "2";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.taskItem.SubItem[this.currentIndex].updateFlag = "Y";
|
||||
this.taskItem.saveFlag = true;
|
||||
},
|
||||
|
||||
saveBtnClick: function(){
|
||||
_self = this;
|
||||
|
||||
let dataKey = _self.defaultKey;
|
||||
if (_self.taskItem.FINTERID) {
|
||||
dataKey = _self.taskItem.FINTERID;
|
||||
}
|
||||
let imagecheck = _self.uploadImageCurrent();
|
||||
|
||||
if (imagecheck) {
|
||||
return ;
|
||||
}
|
||||
|
||||
_self.taskItem.saveFlag = false;
|
||||
|
||||
uni.setStorage({
|
||||
key: dataKey,
|
||||
data: _self.taskItem,
|
||||
success: function (res) {
|
||||
uni.showToast({
|
||||
title:"保存成功",
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
uploadImageCurrent() {
|
||||
let imgCheck = false;
|
||||
if (_self.$refs.imgUpload.imgArray.length > 0) {
|
||||
let imgIndex = _self.$refs.imgUpload.imgArray[0].indexOf("blob:http");
|
||||
if(imgIndex > -1) {
|
||||
imgCheck = true;
|
||||
}
|
||||
}
|
||||
if (imgCheck) {
|
||||
console.log(_self.$global.globalData,'')
|
||||
let url = _self.$global.globalData.requestUrl;
|
||||
let fileName = _self.taskItem.SubItem[_self.currentIndex].FDETAILID +"-"+ Date.parse(new Date());
|
||||
_self.taskItem.SubItem[_self.currentIndex].imgArray = _self.$refs.imgUpload.imgArray;
|
||||
_self.$refs.imgUpload.upload(
|
||||
res=>{
|
||||
let data = res[0];
|
||||
if(data.StatusCode == "200") {
|
||||
let imageUrl = data.Data;
|
||||
// imageUrl = imageUrl + data.data;
|
||||
// imageUrl = imageUrl.replace('"', '');
|
||||
// imageUrl = imageUrl.replace('"', '');
|
||||
// imageUrl = imageUrl.replace('\\', '');
|
||||
// imageUrl = imageUrl.replace('\\', '/');
|
||||
this.handleSubmit(imageUrl);
|
||||
_self.taskItem.SubItem[_self.currentIndex].imgArray[0] = imageUrl;
|
||||
_self.taskItem.SubItem[_self.currentIndex].FPicture = imageUrl;
|
||||
_self.taskItem.SubItem[_self.currentIndex].FIMAGE = imageUrl;
|
||||
|
||||
uni.showToast({
|
||||
icon: 'success',
|
||||
title: "图片上传成功"
|
||||
});
|
||||
|
||||
_self.taskItem.saveFlag = false;
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
uni.setStorage({
|
||||
key: _self.taskItem.FINTERID,
|
||||
data: _self.taskItem,
|
||||
success: function (res) {
|
||||
},
|
||||
});
|
||||
_self.imgArray = _self.taskItem.SubItem[_self.currentIndex].imgArray;
|
||||
_self.updataPage();
|
||||
}
|
||||
else {
|
||||
//用户没有上传图片的返回 code码为400
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: "图片上传失败"
|
||||
});
|
||||
}
|
||||
},
|
||||
_self.userInfo, fileName, url);
|
||||
}
|
||||
return imgCheck;
|
||||
},
|
||||
|
||||
updateImag(imageArray){
|
||||
_self.taskItem.SubItem[_self.currentIndex].FPicture = imageArray[0];
|
||||
_self.taskItem.SubItem[_self.currentIndex].FIMAGE = imageArray[0];
|
||||
_self.taskItem.SubItem[_self.currentIndex].imgArray = imageArray;
|
||||
_self.taskItem.saveFlag = true;
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
},
|
||||
|
||||
cbClickUnqualified(){
|
||||
if(!_self.taskItem.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
_self.taskItem.SubItem[_self.currentIndex].FTESTRESULT = "2";
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
_self.taskItem.saveFlag = true;
|
||||
_self.$forceUpdate();
|
||||
},
|
||||
|
||||
cbClickQualified(){
|
||||
if(!_self.taskItem.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
_self.taskItem.SubItem[_self.currentIndex].FTESTRESULT = "1";
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
|
||||
_self.taskItem.saveFlag = true;
|
||||
_self.$forceUpdate();
|
||||
},
|
||||
cbStopMachine(){
|
||||
if(!_self.taskItem.isEditable) {
|
||||
return;
|
||||
}
|
||||
_self.taskItem.SubItem[_self.currentIndex].FISSTOPMACHINE = true;
|
||||
if(_self.taskItem.SubItem[_self.currentIndex].FISSTOPMACHINE){
|
||||
_self.taskItem.SubItem[_self.currentIndex].FTESTRESULT = "1"
|
||||
}
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
_self.taskItem.saveFlag = true;
|
||||
_self.$forceUpdate();
|
||||
},
|
||||
|
||||
cbNoneStopMachine(){
|
||||
if(!_self.taskItem.isEditable) {
|
||||
return;
|
||||
}
|
||||
_self.taskItem.SubItem[_self.currentIndex].FISSTOPMACHINE = false;
|
||||
_self.taskItem.SubItem[_self.currentIndex].updateFlag = "Y";
|
||||
_self.taskItem.saveFlag = true;
|
||||
_self.$forceUpdate();
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page{background-color: #F9F9F9;}
|
||||
.page{
|
||||
width: 100%;
|
||||
// background-color: #FFFFFF;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.content{
|
||||
width: 100%;
|
||||
height: 60%;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.info-title{padding: 20rpx 32rpx;font-size: 28rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: #59595f;}
|
||||
span{font-size: 24rpx;font-family: PingFangSC, PingFangSC-Regular;font-weight: 400;color: #cacaca;margin-left: 16rpx;}
|
||||
.info-body{margin: 0 32rpx;padding: 32rpx 32rpx;background-color: #FFFFFF;}
|
||||
.detail-row-class{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.detail-row-title-class{
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
opacity: 1;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: rgba(60,60,67,0.60);
|
||||
line-height: 40rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.detail-row-title-class-img{
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
opacity: 1;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #59595f;
|
||||
line-height: 40rpx;
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
.detail-row-context-class{
|
||||
height: 40rpx;
|
||||
opacity: 1;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: rgba(60,60,67,0.85);
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.detail-item-row-title-class{
|
||||
font-size: 26rpx;
|
||||
font-style: auto;
|
||||
color: #707070;
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
color: #28282B;
|
||||
line-height: 70rpx;
|
||||
width: 100%;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
|
||||
.text-area{
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
color: #666666;
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx 32rpx;
|
||||
}
|
||||
.text-area-holder{
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
color: #cacaca;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
|
||||
.detail-row-xfl-class{
|
||||
height: 60rpx; line-height: 60rpx; font-size: 26rpx;
|
||||
color: #333333;
|
||||
margin-top: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.detail-row-input-class{
|
||||
font-size: 26rpx;
|
||||
color: #6B6B6B;
|
||||
line-height: 50rpx;
|
||||
height: 50rpx;
|
||||
width: 100%;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
margin-top: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
padding: 5rpx 20rpx;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #D8D8D8;
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
button{
|
||||
bottom: 0px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
background-color: #5778FF;
|
||||
font-size: 35rpx;
|
||||
font-style: auto;
|
||||
color: #FFFFFF;
|
||||
border-radius: 0px
|
||||
}
|
||||
|
||||
button::after{
|
||||
border: 0px;
|
||||
border-radius: 0px
|
||||
}
|
||||
|
||||
.detail-placeholder-class{
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
width: 5rem;
|
||||
}
|
||||
|
||||
.detail-top-title-class {
|
||||
width: 140rpx;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
font-size: 32rpx;
|
||||
font-family: PingFangSC, PingFangSC-Semibold;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.detail-top-class {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin: 32rpx 32rpx;
|
||||
}
|
||||
|
||||
.view-next-class{
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
text-align: right;
|
||||
color: #0184ff;
|
||||
}
|
||||
|
||||
.view-next-disable-class{
|
||||
font-size: 28rpx;
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
text-align: right;
|
||||
color: #8a8a8e;
|
||||
}
|
||||
|
||||
.detail-row-check-class{
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
margin-left: -10rpx;
|
||||
|
||||
font-family: PingFangSC, PingFangSC-Regular;
|
||||
color: rgba(60,60,67,0.85);
|
||||
}
|
||||
</style>
|
||||
Executable
+596
@@ -0,0 +1,596 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="detail-subtitle-class">工单信息</view>
|
||||
<view class="head">
|
||||
<view class="card-info-item" style="margin-top: 0;">
|
||||
<text class="card-info-item-text">点检单号:</text>
|
||||
<text class="card-info-item-text-detail">{{taskItem.FBILLNO}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">点检任务:</text>
|
||||
<text class="card-info-item-text-detail">{{taskItem.FNAME}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">部门:</text>
|
||||
<text class="card-info-item-text-detail">{{taskItem.FDEPTNAME}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">工单时间:</text>
|
||||
<text class="card-info-item-text-detail">{{taskItem.FBegTime}}</text>
|
||||
</view>
|
||||
<view class="card-info-item" style="padding-bottom: 0;">
|
||||
<text class="card-info-item-text">异动时间:</text>
|
||||
<text class="card-info-item-text-detail">{{taskItem.FEndTime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-subtitle-class">首检项目</view>
|
||||
<view class="card-list" v-for="(item,index) in this.taskItem.SubItem" @tap="itemClick(index)">
|
||||
<image class="card-img" src="../../../static/img/FCheckIteam.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
<view class="card-info">
|
||||
<!-- <view class="card-info-item" style="padding: 10rpx 0;">
|
||||
<text class="card-info-title-text-left">项目序号:</text>
|
||||
<text class="card-info-title-text-detail-left">{{item.FEntryID}}</text>
|
||||
</view>
|
||||
<view class="card-info-item" style="padding: 10rpx 0;">
|
||||
<text class="card-info-title-text-left">项目名称:</text>
|
||||
<text class="card-info-title-text-detail-left">{{item.FTestProjectName}}</text>
|
||||
</view> -->
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">部位:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FPARTNAME}}</text>
|
||||
</view>
|
||||
<view class="card-info-item">
|
||||
<text class="card-info-item-text">设备:</text>
|
||||
<text class="card-info-item-text-detail">{{item.FEQUIPNAME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-right">
|
||||
<text class="detail-row-content-yellow-class" v-if="item.FTESTRESULT == 0">未完成</text>
|
||||
<image class="my-image" src="../../../static/img/rightarrowyellow.png" v-if="item.FTESTRESULT == 0"></image>
|
||||
<text class="detail-row-content-green-class" v-if="item.FTESTRESULT == 1">合格</text>
|
||||
<image class="my-image" src="../../../static/img/rightarrowgreen.png" v-if="item.FTESTRESULT == 1"></image>
|
||||
<text class="detail-row-content-red-class" v-if="item.FTESTRESULT == 2">不合格</text>
|
||||
<image class="my-image" src="../../../static/img/rightarrowred.png" v-if="item.FTESTRESULT == 2"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 80rpx; flex-shrink: 0; flex-grow: 0;"></view>
|
||||
<view class="bottom-row-class">
|
||||
<!-- <view @tap="saveBtnClick()" class="saveBtnClass" v-if="taskItem.FStatus!=40">保存</view> -->
|
||||
<view @tap="saveBtnClick()" class="sumbitBtnClass" v-if="taskItem.isEditable">提交</view>
|
||||
<!-- <view @tap="cancelBtnClick()" class="cancelBtnClass" v-if="taskItem.FStatus==40">取消提交</view> -->
|
||||
</view>
|
||||
<view class="gray-layer" v-show="showGrayLayer" @click="hiddenClick"></view>
|
||||
<view class="alter-window-center" v-show="showAlterWin">
|
||||
<view class="alter-title">提示</view>
|
||||
<view class="alter-content">
|
||||
<view class="alter-content-detail">点检完成,存在不良,是否创建维修单?</view>
|
||||
<view class="alter-content-note" style="margin-top: 40rpx;">
|
||||
<input class="alter-content-input" v-model="creatNote" placeholder="输入备注信息" placeholder-style="color:3D3D3D;font-size:26rpx" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="alter-btn">
|
||||
<view class="alter-btn-cancel" @click="creatCancenClick">否</view>
|
||||
<view class="alter-btn-cnfirm" @click="creatConfirmClick">是</view>
|
||||
</view>
|
||||
</view>
|
||||
<opsoft-dialog-notice
|
||||
:dialogNoticeShow="showDialog"
|
||||
:dialogNoticeType="dialogNoticeType"
|
||||
:dialogNoticeTitle="dialogNoticeTitle"
|
||||
:dialogNoticeContent="dialogNoticeContent"
|
||||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||||
>
|
||||
</opsoft-dialog-notice>
|
||||
<opsoft-dialog
|
||||
@dialogCancelClick="dialogCancelClick"
|
||||
@dialogConfirmClick="dialogConfirmClick"
|
||||
:dialogContent="dialogContent"
|
||||
:dialogTitle="dialogTitle"
|
||||
:dialogShow="dialogShow"
|
||||
></opsoft-dialog>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import xflSelect from '../../../components/xfl-select/xfl-select.vue';
|
||||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||||
import opsoftDialog from '@/components/opsoft-dialog/opsoft-dialog.vue'
|
||||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
|
||||
var commonUtil = require('../../../common/util.js');
|
||||
|
||||
var _self;
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
dialogNoticeContent:'',
|
||||
dialogNoticeTitle:'',
|
||||
dialogNoticeType:'',
|
||||
showDialog:false,
|
||||
|
||||
dialogShow:false,
|
||||
dialogTitle:'',
|
||||
dialogContent:'',
|
||||
dialogType:'',
|
||||
dialogParams:new Object,
|
||||
|
||||
showGrayLayer:false,
|
||||
showAlterWin:false,
|
||||
creatNote:'',
|
||||
IsCreateRepair:0,
|
||||
layerClick:false,
|
||||
scrollTop: 0,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
|
||||
taskItem: new Object(),
|
||||
backFlag:true,
|
||||
checkWayArray:[{value:"全检", key:1}, {value:"抽检", key:2}],
|
||||
checkResultArray:[{value:"合格", key:0}, {value:"不合格", key:1}, {value:"点检中", key:1}],
|
||||
nextPage:"EQUM01",
|
||||
defaultKey:"defaultKey",
|
||||
loadFlag: true
|
||||
}
|
||||
},
|
||||
|
||||
onBackPress() {
|
||||
// uni.removeStorage({
|
||||
// key:this.taskItem.FInterID
|
||||
// });
|
||||
if (!_self.taskItem.isEditable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_self.backFlag) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let checkFlag = false;
|
||||
_self.taskItem.SubItem.forEach(
|
||||
function(el){
|
||||
if(el.updateFlag == "Y") {
|
||||
checkFlag = true;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
if (checkFlag) {
|
||||
this.dialogProps("请确认是否上传数据","upLoadData",'none');
|
||||
}
|
||||
else {
|
||||
_self.backFlag = false;
|
||||
}
|
||||
|
||||
return _self.backFlag;
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
_self = this;
|
||||
|
||||
if(options.item) {
|
||||
this.taskItem = JSON.parse(options.item);
|
||||
if(!this.taskItem.SubItem) {
|
||||
this.getDetail(this.taskItem.FINTERID);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
if(!this.loadFlag) {
|
||||
let newItem = new Object();
|
||||
if(this.taskItem.FINTERID) {
|
||||
newItem = uni.getStorageSync(this.taskItem.FINTERID);
|
||||
} else {
|
||||
newItem = uni.getStorageSync(this.defaultKey);
|
||||
}
|
||||
if(newItem){
|
||||
this.taskItem = newItem;
|
||||
}
|
||||
}
|
||||
this.loadFlag = false;
|
||||
if(this.taskItem.SubItem){
|
||||
this.isCreateRepairOrderAlter();
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['userInfo']),
|
||||
},
|
||||
|
||||
methods: {
|
||||
dialogProps(dialogContent,type,params){
|
||||
this.dialogShow = true;
|
||||
this.dialogTitle = '提示';
|
||||
this.dialogContent = dialogContent;
|
||||
this.dialogType = type
|
||||
this.dialogParams.params = params
|
||||
},
|
||||
dialogConfirmClick:function() {
|
||||
let _self = this;
|
||||
console.log("dialogConfirmClick");
|
||||
if(this.dialogType=='upLoadData'){
|
||||
_self.backFlag = false;
|
||||
_self.saveData();
|
||||
}
|
||||
|
||||
if(this.dialogType=='checkRepair'){
|
||||
uni.navigateTo({
|
||||
url: '../EQUM03/EQUM03Item?FBillNO=' + data.FBillNO,
|
||||
});
|
||||
}
|
||||
},
|
||||
dialogCancelClick:function() {
|
||||
console.log("dialogCancelClick");
|
||||
this.dialogShow=false
|
||||
if(this.dialogType=='upLoadData'){
|
||||
_self.backFlag = false;
|
||||
uni.navigateBack({
|
||||
delta:1
|
||||
});
|
||||
}
|
||||
},
|
||||
dialogNoticeConfirmClick(){
|
||||
this.showDialog = false;
|
||||
},
|
||||
dialogNoticeProps(err,type){
|
||||
err = errorStrUntil.handle(err);
|
||||
this.showDialog = true;
|
||||
this.dialogNoticeType = 'error';
|
||||
this.dialogNoticeTitle = '异常提示';
|
||||
if(type=='success'){
|
||||
this.dialogNoticeType = 'success';
|
||||
this.dialogNoticeTitle = '执行成功';
|
||||
}
|
||||
this.dialogNoticeContent = err;
|
||||
},
|
||||
upper: function(e) {
|
||||
console.log(e)
|
||||
},
|
||||
|
||||
scroll: function(e) {
|
||||
console.log(e)
|
||||
this.old.scrollTop = e.detail.scrollTop
|
||||
},
|
||||
|
||||
goTop: function(e) {
|
||||
// 解决view层不同步的问题
|
||||
this.scrollTop = this.old.scrollTop
|
||||
this.$nextTick(function() {
|
||||
this.scrollTop = 0
|
||||
});
|
||||
uni.showToast({
|
||||
icon:"none",
|
||||
title:"纵向滚动 scrollTop 值已被修改为 0"
|
||||
})
|
||||
},
|
||||
|
||||
// checkWayChange: function({
|
||||
// newVal,
|
||||
// oldVal,
|
||||
// index,
|
||||
// orignItem
|
||||
// }) {
|
||||
// this.taskItem.FTestTypeName = orignItem.value;
|
||||
// this.taskItem.FTestType = orignItem.key;
|
||||
// this.taskItem.updateFlag = "Y";
|
||||
// this.$forceUpdate();
|
||||
// },
|
||||
|
||||
itemClick: function(index){
|
||||
this.taskItem.currentdIndex = index;
|
||||
let itemString = JSON.stringify(this.taskItem);
|
||||
uni.navigateTo({
|
||||
// ? 后面加要传的参数, 多个参数用 & 隔开
|
||||
url: '../../views/' + this.nextPage + '/' + 'EQUM01Detail?item=' + itemString,
|
||||
});
|
||||
},
|
||||
|
||||
hiddenClick(){
|
||||
this.showGrayLayer = false;
|
||||
this.showAlterWin = false;
|
||||
this.layerClick = true;
|
||||
console.log(">>>>>>>"+this.IsCreateRepair+this.creatNote)
|
||||
},
|
||||
|
||||
creatCancenClick(){
|
||||
this.showGrayLayer = false;
|
||||
this.showAlterWin = false;
|
||||
this.layerClick = false;
|
||||
this.IsCreateRepair = 0;
|
||||
console.log("------"+this.IsCreateRepair+this.creatNote)
|
||||
},
|
||||
|
||||
creatConfirmClick(){
|
||||
this.showGrayLayer = false;
|
||||
this.showAlterWin = false;
|
||||
this.layerClick = false;
|
||||
this.IsCreateRepair = 1;
|
||||
console.log("++++++"+this.IsCreateRepair+this.creatNote)
|
||||
},
|
||||
|
||||
saveBtnClick: function(){
|
||||
this.saveData();
|
||||
},
|
||||
|
||||
isCreateRepairOrderAlter(){
|
||||
let paramData = new Array();
|
||||
_self.taskItem.SubItem.forEach(
|
||||
function(el){
|
||||
if (!el.FTESTRESULT) {
|
||||
if(el.FTESTRESULT != 0) {
|
||||
el.FTESTRESULT = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (!el.FTESTVALUE) {
|
||||
if(el.FTESTVALUE != 0) {
|
||||
el.FTESTVALUE = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (el.updateFlag == "Y") {
|
||||
let data = {
|
||||
FINTERID: el.FINTERID,
|
||||
FDetailID: el.FDetailID,
|
||||
FTESTRESULT: el.FTESTRESULT,
|
||||
FNote: el.FNote? el.FNote: '',
|
||||
FTESTVALUE: el.FTESTVALUE,
|
||||
FPartID: el.FPartID,
|
||||
FEquipID: el.FEquipmentID,
|
||||
FPartID: el.FPartID,
|
||||
FPicture: el.FPicture? el.FPicture: '',
|
||||
FIsStopMachine:el.FIsStopMachine
|
||||
}
|
||||
paramData.push(data);
|
||||
}
|
||||
|
||||
// el.updateFlag = "N";
|
||||
}
|
||||
);
|
||||
if(paramData.length == _self.taskItem.SubItem.length){
|
||||
let defultCount = 0;
|
||||
_self.taskItem.SubItem.forEach(
|
||||
function(el){
|
||||
if(el.FTESTRESULT == 2){
|
||||
defultCount = defultCount+1
|
||||
}
|
||||
}
|
||||
)
|
||||
if(defultCount>0 && _self.taskItem.FISCREATEREPAIR){
|
||||
this.showGrayLayer = true;
|
||||
this.showAlterWin = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
saveData:function(count){
|
||||
uni.showLoading({
|
||||
title:"数据上传中",
|
||||
mask:true
|
||||
})
|
||||
|
||||
let paramData = new Array();
|
||||
_self.taskItem.SubItem.forEach(
|
||||
function(el){
|
||||
if (!el.FTESTRESULT) {
|
||||
if(el.FTESTRESULT != 0) {
|
||||
el.FTESTRESULT = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (!el.FTESTVALUE) {
|
||||
if(el.FTESTVALUE != 0) {
|
||||
el.FTESTVALUE = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (el.updateFlag == "Y") {
|
||||
let data = {
|
||||
FInterID: el.FINTERID,
|
||||
FDetailID: el.FDETAILID,
|
||||
FTestResult: el.FTESTRESULT,
|
||||
FNote: el.FNOTE? el.FNOTE: '',
|
||||
FTestValue: el.FTESTVALUE,
|
||||
FPartID: el.FPARTID,
|
||||
FEquipID: el.FEQUIPMENTID,
|
||||
FPartID: el.FPARTID,
|
||||
FPicture: el.FPicture? el.FPicture: '',
|
||||
FIsStopMachine:el.FISSTOPMACHINE
|
||||
}
|
||||
paramData.push(data);
|
||||
}
|
||||
|
||||
el.updateFlag = "N";
|
||||
}
|
||||
);
|
||||
|
||||
if (paramData.length == 0) {
|
||||
uni.hideLoading();
|
||||
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: "页面无数据需要上传",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
let requestParams = {
|
||||
"IsCreateRepair":this.IsCreateRepair,
|
||||
"RepairNote":this.creatNote,
|
||||
"SData": paramData
|
||||
};
|
||||
|
||||
this.$request.post('/SpotCheck/SpotTaskSubmit',requestParams).then(res => {
|
||||
uni.hideLoading();
|
||||
uni.removeStorage({
|
||||
key:_self.taskItem.FINTERID
|
||||
});
|
||||
_self.getDetail(_self.taskItem.FINTERID);
|
||||
let data = res;
|
||||
if (_self.taskItem.FISCREATEREPAIR && _self.FISCREATEREPAIR == 1) {
|
||||
this.dialogProps("有检查项不合格,已创建维修工单,是否需要查看!","checkRepair",'none');
|
||||
}
|
||||
else {
|
||||
_self.backFlag = false;
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '上传数据成功'
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.dialogNoticeProps(err,'error')
|
||||
});
|
||||
},
|
||||
|
||||
getDetail(interID){
|
||||
uni.showLoading({
|
||||
title:"加载中",
|
||||
mask:true
|
||||
})
|
||||
|
||||
let requestParams = {
|
||||
"finterid":interID
|
||||
};
|
||||
|
||||
this.$request.get('/SpotCheck/SpotTaskSearchDetail',{params:requestParams}).then(res => {
|
||||
res.length ?res.forEach(
|
||||
function(el){
|
||||
if (el.FEFFECTIVEDATE) {
|
||||
let FBegTime = commonUtil.removeLetter(el.FEFFECTIVEDATE);
|
||||
el.FBegTime = FBegTime.substr(0,10) + " " + FBegTime.substr(10 ,8);
|
||||
}
|
||||
if (el.M_YMD) {
|
||||
let FEndTime = commonUtil.removeLetter(el.M_YMD);
|
||||
el.FEndTime = FEndTime.substr(0,10) + " " + FEndTime.substr(10 ,8);
|
||||
}
|
||||
}
|
||||
): ''
|
||||
|
||||
res[0].isHistory = _self.taskItem.isHistory;
|
||||
res[0].isEditable = _self.taskItem.isEditable;
|
||||
_self.taskItem = res[0];
|
||||
uni.hideLoading();
|
||||
_self.$forceUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
// onKeyInput: function(){
|
||||
// this.taskItem.updateFlag = "Y";
|
||||
// }
|
||||
},
|
||||
|
||||
components: {
|
||||
xflSelect,
|
||||
opsoftDialogNotice,
|
||||
opsoftDialog
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.page{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
background-color: #F9F9F9;
|
||||
}
|
||||
.head{margin: 0rpx 32rpx;background-color: #FFFFFF;padding: 32rpx 32rpx;border-radius: 10rpx;}
|
||||
.card-info-item{}
|
||||
.card-info-title-text-detail-left{color: #8F8F8F;}
|
||||
.card-list{margin: 0rpx 32rpx 32rpx 32rpx;}
|
||||
.card-img{height: 70rpx;width: 70rpx;flex-grow: 0;flex-shrink: 0;}
|
||||
.item-right{flex-grow: 0;flex-shrink: 0;display: flex;flex-direction: row;align-items: center;}
|
||||
|
||||
.detail-row-content-green-class{
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
font-size: 28rpx;
|
||||
font-style: auto;
|
||||
color: #32CD32;
|
||||
}
|
||||
|
||||
.detail-row-content-red-class{
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
font-size: 28rpx;
|
||||
font-style: auto;
|
||||
color: #FF0000;
|
||||
}
|
||||
.detail-row-content-yellow-class{
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
font-size: 28rpx;
|
||||
font-style: auto;
|
||||
color: #FAAE12;
|
||||
}
|
||||
.my-image{
|
||||
height: 20rpx;
|
||||
width: 20rpx;
|
||||
margin-left: 16rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
.bottom-row-class{
|
||||
width: 100%;
|
||||
bottom: 0px;
|
||||
position: fixed;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
|
||||
.detail-subtitle-class {
|
||||
opacity: 1;
|
||||
font-size: 32rpx;
|
||||
font-family: PingFangSC, PingFangSC-Semibold;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
padding: 32rpx 32rpx 24rpx 32rpx;
|
||||
}
|
||||
|
||||
.saveBtnClass {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
text-align: center;
|
||||
background: #F5F5F4;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.sumbitBtnClass {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
text-align: center;
|
||||
background: #5778FF;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.cancelBtnClass {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
text-align: center;
|
||||
background: #5778FF;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
</style>
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
<template>
|
||||
<view class="report">
|
||||
<view class="gray-title">
|
||||
实际执行时间<text>*</text>
|
||||
</view>
|
||||
<view class="line-wrapper">
|
||||
<view class="line-title">
|
||||
实际开始时间
|
||||
</view>
|
||||
<view @click="clickChangeTime('showStartTime')" class="line-child">
|
||||
{{validate.workStartTime}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="line-wrapper">
|
||||
<view class="line-title">
|
||||
实际结束时间
|
||||
</view>
|
||||
<view @click="clickChangeTime('showEndTime')" class="line-child">
|
||||
{{validate.workEndTime}}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="ticketData.downStatus == 1" class="gray-title">
|
||||
停机时间<text>*</text>
|
||||
</view>
|
||||
<view v-if="ticketData.downStatus == 1" class="line-wrapper">
|
||||
<view class="line-title">
|
||||
停机开始时间
|
||||
</view>
|
||||
<view @click="clickChangeTime('showStopStart')" class="line-child">
|
||||
{{validate.stopTimeStart}}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="ticketData.downStatus == 1" class="line-wrapper">
|
||||
<view class="line-title">
|
||||
停机结束时间
|
||||
</view>
|
||||
<view @click="clickChangeTime('showStopEnd')" class="line-child">
|
||||
{{validate.stopTimeEnd}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="gray-title">
|
||||
工单执行结果<text>*</text>
|
||||
</view>
|
||||
<view class="line-wrapper" style="padding-right: 2%;">
|
||||
<view class="line-title">
|
||||
点检结果
|
||||
</view>
|
||||
<view class="line-child">
|
||||
<u-radio-group width="160rpx" v-model="validate.checkResult" @change="handleCheckResultGroupChange">
|
||||
<u-radio v-for="(item, index) in checkResultList" :key="index" :name="item.key" :active-color="item.color">
|
||||
{{item.value}}
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line-wrapper" style="padding-right: 2%;">
|
||||
<view class="line-title">
|
||||
执行结果
|
||||
</view>
|
||||
<view class="line-child">
|
||||
<u-radio-group width="160rpx" v-model="validate.executionResult" @change="handleExecResultGroupChange">
|
||||
<u-radio v-for="(item, index) in execResultList" :key="index" :name="item.key" :active-color="item.color">
|
||||
{{item.value}}
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="gray-title">
|
||||
描述
|
||||
</view>
|
||||
<view class="textarea-wrapper" style="margin-bottom: 24rpx;">
|
||||
<u-input type="textarea" v-model="validate.content" placeholder="填写汇报内容" />
|
||||
</view>
|
||||
<u-upload max-count="9" :multiple="false" @on-uploaded="handleAllUploaded" @on-list-change="handleFileListChange"
|
||||
@on-change="uploadFinish" ref="uploader" :auto-upload="false" :action="uploadUrl" :header="uploadHeader"></u-upload>
|
||||
<view @click="handleSubmit" class="fixed-bottom">提交</view>
|
||||
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStartTime" @confirm="handleStartTimeConfirm"></u-picker>
|
||||
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showEndTime" @confirm="handleEndTimeConfirm"></u-picker>
|
||||
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStopStart" @confirm="handleStopStartTimeConfirm"></u-picker>
|
||||
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStopEnd" @confirm="handleStopEndTimeConfirm"></u-picker>
|
||||
<u-toast ref="uToast" />
|
||||
<u-toast ref="uToast2" />
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
// import moment from 'moment'
|
||||
// import baseUrl from '@/common/js/baseUrl.js';
|
||||
export default {
|
||||
computed: {
|
||||
getSpareList: {
|
||||
get() {},
|
||||
set(newVal) {}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
ticketData: {
|
||||
downStatus: 0
|
||||
},
|
||||
fileList: [],
|
||||
validate: {
|
||||
content: '',
|
||||
workStartTime: '请选择开始时间',
|
||||
workEndTime: '请选择结束时间',
|
||||
stopTimeStart: '请选择停机开始时间',
|
||||
stopTimeEnd: '请选择停机结束时间',
|
||||
executionResult: 0,
|
||||
checkResult: 0
|
||||
},
|
||||
time: {
|
||||
showStartTime: false,
|
||||
showEndTime: false,
|
||||
showStopStart: false,
|
||||
showStopEnd: false
|
||||
},
|
||||
timeParams: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
hour: true,
|
||||
minute: true,
|
||||
second: true
|
||||
},
|
||||
execResultList: [{
|
||||
key: 0,
|
||||
value: '执行中',
|
||||
color: 'green'
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
value: '已完成',
|
||||
color: '#4686f4'
|
||||
}
|
||||
],
|
||||
checkResultList: [{
|
||||
key: 0,
|
||||
value: '正常',
|
||||
color: 'green'
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
value: '异常',
|
||||
color: 'red'
|
||||
}
|
||||
],
|
||||
uploadHeader: {},
|
||||
uploadUrl: '',
|
||||
fdfsIdList: [],
|
||||
successCount: 0
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F7F7F7;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
@import './style.scss';
|
||||
|
||||
.minus-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 12rpx 0;
|
||||
border-bottom: 1px solid #F5F5F5;
|
||||
}
|
||||
|
||||
.add-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 12rpx 0;
|
||||
}
|
||||
</style>
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<template>
|
||||
<view class="report">
|
||||
<view class="tips">设备点检异常,已创建维修工单</view>
|
||||
<view class="btn">
|
||||
<view class="btn-back" @click="firstPageClick">返回首页</view>
|
||||
<view class="btn-detail" @click="repairOrderClick">查看工单</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
// import moment from 'moment'
|
||||
// import baseUrl from '@/common/js/baseUrl.js';
|
||||
export default {
|
||||
computed: {
|
||||
|
||||
},
|
||||
components: {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
firstPageClick(){
|
||||
uni.redirectTo({
|
||||
url:'../../tabbar/home/home'
|
||||
})
|
||||
},
|
||||
repairOrderClick(){
|
||||
uni.redirectTo({
|
||||
url:'../MESQS44/MESQS44Item'
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F7F7F7;
|
||||
}
|
||||
.report{
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.tips{
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.btn{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.btn-back{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 300rpx;
|
||||
border: 1px solid #0A98D5;
|
||||
border-radius: 40rpx;
|
||||
background-color: #FFAA7F;
|
||||
color: #0A98D5;
|
||||
font-size: 32rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.btn-detail{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 300rpx;
|
||||
border: 1px solid #0A98D5;
|
||||
border-radius: 40rpx;
|
||||
background-color: #0A98D5;
|
||||
color: #FFFFFF;
|
||||
font-size: 32rpx;
|
||||
text-align: center;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
</style>
|
||||
Executable
+156
@@ -0,0 +1,156 @@
|
||||
.search-wrapper {
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
padding: 12rpx 1% 12rpx 5%;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
background-color: white;
|
||||
|
||||
.search-selector {
|
||||
position: relative;
|
||||
top: 1rpx;
|
||||
height: 64rpx;
|
||||
width: 25%;
|
||||
background-color: #f5f5f5;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
line-height: 64rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.card-wrapper {
|
||||
padding-top: 92rpx;
|
||||
.accurate-wrapper{
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
padding-left: 37rpx;
|
||||
padding-bottom: 2%;
|
||||
.accurate-title{
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #454545;
|
||||
|
||||
}
|
||||
.accurate-inner{
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #2c2c2c;
|
||||
text-align: right;
|
||||
|
||||
}
|
||||
.accurate-input{
|
||||
margin-left: 24rpx;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
|
||||
.card-item {
|
||||
width: 100%;
|
||||
height: 128px;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #efefef;
|
||||
display: flex;
|
||||
|
||||
.icon-wrapper{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
line-height: 85px;
|
||||
width: 15%;
|
||||
height: 100%;
|
||||
padding-left: 5%;
|
||||
}
|
||||
.text-wrapper{
|
||||
width: 80%;
|
||||
padding-left: 6%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
.text-title{
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #474747;
|
||||
}
|
||||
text{
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #474747;
|
||||
}
|
||||
}
|
||||
.arrow-wrapper{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
line-height: 85px;
|
||||
width: 10%;
|
||||
padding-right: 5%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.report{
|
||||
padding-bottom: 120rpx;
|
||||
.gray-title{
|
||||
padding: 0 5%;
|
||||
height: 80rpx;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #797979;
|
||||
line-height: 80rpx;
|
||||
text{
|
||||
position: relative;
|
||||
top: 3px;
|
||||
margin-left: 8rpx;
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
.line-wrapper{
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
background-color: white;
|
||||
padding: 0 5%;
|
||||
border-bottom: 1px solid #F5F5F5;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
|
||||
|
||||
.line-title{
|
||||
line-height: 80rpx;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #2c2c2c;
|
||||
}
|
||||
.line-child{
|
||||
line-height: 80rpx;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #7d7d7d;
|
||||
}
|
||||
|
||||
}
|
||||
.textarea-wrapper{
|
||||
background-color: white;
|
||||
padding: 0 5%;
|
||||
border-bottom: 1px solid #F5F5F5;
|
||||
}
|
||||
}
|
||||
|
||||
.fixed-bottom {
|
||||
height: 80rpx;
|
||||
background-color: #2f7fe3;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
color: #fff;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
z-index: 20;
|
||||
width: 100%;
|
||||
}
|
||||
Reference in new issue
Block a user