baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)

This commit is contained in:
Gaussian committed 2026-11-06 18:38:38 +08:00
commit c2b0e7be0d
6522 files changed
+3530643

No files matched your search

+810
View File
@@ -0,0 +1,810 @@
<template>
<view class="content">
<opsoft-dialog-notice
:dialogNoticeShow="showDialog"
:dialogNoticeType="dialogNoticeType"
:dialogNoticeTitle="dialogNoticeTitle"
:dialogNoticeContent="dialogNoticeContent"
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
>
</opsoft-dialog-notice>
<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="search">
<!-- <text class="search-title">设备搜索:</text> -->
<input class="search-input" placeholder="输入设备代码" v-model="searchEquipment" focus="focus"
@confirm="search(pageSize, searchEquipment)"></input>
<image class="search-img" style="height: 40rpx;width: 40rpx;position: absolute;top: 20rpx;"
src="../../../static/emapp/scan.png" @click="scanClick()"></image>
</view>
<view style="height: 10rpx;"></view>
<text class="detail-row-content-class" v-if="taskList.length==0">您当前没有任务</text>
<view class="work-center-item" v-for="(item,index) in taskList" :key="index">
<view class="container" @touchstart="touchS($event,index)"
@touchmove="touchM($event,index)" @touchend="touchE($event,index)"
:style="{'left': (currIndex==index?leftStyle + 'rpx':'')}">
<view class="card-list">
<view class="card-info" @tap="itemClick(item)">
<view class="card-info-title">
<view class="card-info-item">
<text class="card-info-title-text-left">设备名称:</text>
<text class="card-info-title-text-detail-left" style="font-size: 24rpx;">{{item.FMACHINENAME}}</text>
</view>
<view class="card-info-title-text-right">
<text class="status-red-text" v-show="item.FISFINISHED==false">未验收</text>
<!-- <view class="status-red" v-show="item.FIsFinished==false"></view> -->
<text class="status-green-text" v-show="item.FISFINISHED==true">已验收</text>
<!-- <view class="status-green" v-show="item.FIsFinished==true"></view> -->
</view>
</view>
<view class="card-info-item">
<text class="card-info-item-text">设备代码:</text>
<text class="card-info-item-text-detail">{{item.FMACHINENUMBER}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text">工单编号:</text>
<text class="card-info-item-text-detail">{{item.FBILLNO}}</text>
</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.FDATE}}</text>
</view>
</view>
</view>
<view class="delete-icon" @click="delItem(index)">
删除
</view>
</view>
</view>
<view style="height: 10rpx;"></view>
</view>
</template>
<script>
import DateTimePicker from '@/components/bory-dateTimePicker/bory-dateTimePicker.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 errorStrUntil from '@/common/errorStrUntil.js';
import Vue from 'vue';
import {
mapState,
mapMutations
} from 'vuex';
export default {
data() {
return {
dialogNoticeContent:'',
dialogNoticeTitle:'',
dialogNoticeType:'',
showDialog:false,
focus:true,
leftStyle: 0,
startX: 0,
hiddenFlag: true,
delBtnWidth: 220,
currIndex:'',
scrollTop: 0,
isShowOrg:true,
old: {
scrollTop: 0
},
taskList:[],
pageIndex:1,
pageSize:6,
showTips:false,
searchEquipment:'',
}
},
onShow(){
let count = 0;
let searchEquipment = '';
this.pageIndex = 1;
this.getTaskList(1, this.pageSize, searchEquipment);
this.getOrgList()
},
onPullDownRefresh:function(){
let _self = this;
_self.showTips = false;
this.getTaskList(1, this.pageSize, this.searchEquipment);
setTimeout(()=>{
//停止下拉样式
uni.stopPullDownRefresh();
//隐藏标题读取
uni.hideNavigationBarLoading();
},
500);
},
onReachBottom:function(){
let _self = this;
if(!_self.showTips) {
this.getTaskList(this.pageIndex, this.pageSize, this.searchEquipment);
}
else {
uni.showToast({
icon: 'none',
title: '已经到底了'
});
}
},
onNavigationBarButtonTap:function(e){
this.addShow = true;
this.otherShow = true;
},
computed: {
indicatorStyle() {
return {
background: 'rgba(255,0,0,.2)',
height: '40px',
};
},
...mapState(['userInfo'])
},
components: {
opsoftDialogNotice
},
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(){
let userID = this.userInfo.token;
let currentPage = "MESMT05";
let requestParams = {
"id": userID,
"prgkey": currentPage
};
this.$request.post(
{
data: {
action: 'QueryIsEnableOr',
params: requestParams
}
}
).then(res => {
uni.hideLoading();
this.isShowOrg = JSON.parse(res);
if(!this.isShowOrg){
this.orgFItemID = "";
}
});
},
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();
}
}
},
scanClick:function(){
let _self = this;
let count = '';
uni.scanCode({
success:function(res){
_self.searchEquipment = res.result;
_self.getTaskList(1, _self.pageSize, _self.searchEquipment);
}
})
},
search:function(pageSize, searchEquipment){
this.getTaskList(1, pageSize, searchEquipment);
},
back() {
uni.redirectTo({
url:'../../tabbar/apply/apply'
})
},
getTaskList: function(index, size, searchEquipment) {
let _self = this;
let userID = this.userInfo.UserID;
this.orgid = uni.getStorageSync('orgid')
this.pageIndex = index;
let requestParams = {
"fNO":searchEquipment?searchEquipment:'',
"PageNumber": this.pageIndex,
"BarNumber": size,
"basicType":1,
"statusType":2
};
this.$request.get('/RepairOreder/RepairOrder',{
params:requestParams
}).then(res => {
let data = res;
if(_self.pageIndex == 1) {
_self.taskList = data;
_self.pageIndex = _self.pageIndex+1;
}
else {
if(data.length != 0) {
let newArray = _self.taskList.concat(data);
_self.taskList = newArray;
_self.pageIndex = _self.pageIndex+1;
if(data.length < 6) {
_self.showTips = true;
}
} else {
_self.showTips = true;
}
}
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
itemClick: function(item){
uni.setStorageSync('firstPageAcceptenceCurItemInfoRepair',item);
uni.navigateTo({
url: '../../views/EQUM06/EQUM06Item?FIsFinished='+item.FISFINISHED+"&FBillNO="+item.FBILLNO
});
},
delItem:function(index){
let userID = this.userInfo.UserID;
let requestParams = {
"id": userID,
"basicType":1,
"repair":1,
"fID":this.taskList[index].FInterID,
};
this.$request.post({
data: {
action: 'DelOrder',
params: requestParams
}
}).then(res => {
// let data = JSON.parse(res);
this.taskList.splice(index,1);
this.leftStyle = 0;
uni.showToast({
title:"删除成功",
icon:'none'
})
this.$forceUpdate();
});
},
// 开始移动时
touchS($event,index) {
// startX记录开始移动的位置
console.log($event);
console.log(index);
this.currIndex = index;
if($event.touches.length === 1) {
this.startX = $event.touches[0].clientX;
}
// hiddenFlag为true则是从右向左,为false则是从左向右
if(this.leftStyle === 0) {
this.hiddenFlag = true;
} else {
this.hiddenFlag = false;
}
},
touchM($event,index) {
if($event.touches.length === 1) {
//手指移动时水平方向位置
const moveX = $event.touches[0].clientX;
this.moveFunc(moveX);
}
},
touchE($event,index) {
const { leftStyle } = this;
const { delBtnWidth } = this;
// 如果停止滑动的距离大于二分之一则直接弹出删除按钮,不然则left为0
if(-leftStyle > delBtnWidth/2) {
this.leftStyle = -delBtnWidth;
} else {
this.leftStyle = 0;
}
},
moveFunc(moveX) {
// 原始位置向左,leftStyle为小于0;原始位置向右,leftStyle为大于0
// disX为相对最初位置的左右距离
// 大于0为向右,小于0为向左
const disX = moveX - this.startX;
const delBtnWidth = this.delBtnWidth;
let offsetNum = 0;
if(-disX >= delBtnWidth && this.leftStyle === -delBtnWidth) {
return;
}
console.log(disX, this.hiddenFlag);
// this.hiddenFlag为true则是从左到右,则应该将container向左移动
// this.hiddenFlag为false则是从右向左,则应该将container向右移动
if(this.hiddenFlag) {
// 此时container为最右边,则应该将container向左移动
// disX大于0为相对原始位置的向右移动,则直接将offsetNum置为0
// 否则为向左移动,offsetNum为disX相反的值,判断是否超过设置的最大位置
if(disX == 0 || disX > 0) {
offsetNum = 0;
} else {
offsetNum = disX;
if (disX <= -delBtnWidth) {
//控制手指移动距离最大值为删除按钮的宽度
offsetNum = -delBtnWidth;
}
}
} else {
// 此时container为最左边,应该向右移动
// disX小于0为相对原始位置的向左移动,则直接将offsetNum置为-this.delBtnWidth
// 否则为相对原始位置的向右移动,此时应该将最大位置与向右位置的差值为此刻位置,判断是否为大于0
if(disX < 0) {
offsetNum = -this.delBtnWidth;
} else {
offsetNum = -this.delBtnWidth + disX;
if(offsetNum > 0) {
offsetNum = 0;
}
}
}
this.leftStyle = offsetNum;
},
}
}
</script>
<style lang="scss">
.content {
// height: 100%;
background-color: #F5F5F5;
// display: flex;
// flex-direction:column;
// flex-wrap: nowrap;
// justify-content: flex-start;
overflow-x: hidden;
}
.top-row-title-class{
text-align: end;
font-size: 30rpx;
font-style: auto;
color: #666666;
flex-shrink: 0;
flex-grow: 0;
line-height: 50rpx;
height: 50rpx;
width: 150rpx;
}
.top-row-title-class-add{
font-size: 30rpx;
font-style: auto;
color: #666666;
flex-shrink: 0;
flex-grow: 0;
line-height: 50rpx;
height: 50rpx;
}
.selCondition{
width: 100%;
}
.selCondition-date{
width: 100%;
color: #666666;
padding: 5rpx 10rpx;
font-size:28rpx;
border: 1px solid #D8D8D8;
border-radius: 10rpx;
}
.selCondition-alter{
width: 100%;
color: #666666;
border: 1px solid #D8D8D8;
height: 60rpx; line-height: 60rpx;
border-radius: 10rpx;
padding: 5rpx 10rpx;
white-space:pre-wrap;
word-wrap:break-word;
}
.top-row-input-class{
position: relative;
font-size: 30rpx;
color: #6B6B6B;
width: 100%;
padding-left: 15rpx;
padding-right: 15rpx;
border-radius: 10rpx;
border: 1px solid #D8D8D8;
height: 60rpx; line-height: 60rpx;
}
.scanImg{
height: 40rpx;
width: 40rpx;
position: absolute;
right: 80rpx;
}
.img-arrow{
height: 40rpx;
width: 40rpx;
// position: fixed;
// right: 56rpx;
}
.detail-table-class{
margin-top: 10rpx;
margin-left: 32rpx;
margin-right: 32rpx;
margin-bottom: 34rpx;
background-color: #FFFFFF;
border-radius:10rpx;
padding-left: 24rpx;
// padding-right: 24rpx;
padding-bottom: 16rpx;
display: flex;
flex-direction:row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
flex-shrink: 0;
flex-grow: 0;
position: relative;
}
.detail-row0-class{
height: 64rpx;
line-height: 64rpx;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
}
.detail-row-title0-class{
// width: auto;
flex-shrink: 1;
flex-grow: 1;
height: 34rpx;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #3D3D3D;
line-height: 34rpx;
}
.detail-line-class{
background-color: #F8F8F8;
height: 1px;
}
.detail-row-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #505050;
height: 48rpx;
}
.detail-row-title-class{
color: #8F8F8F;
width: 120rpx;
text-align: end;
flex-shrink: 0;
flex-grow: 0;
}
.detail-row-content-class{
color: #505050;
flex-shrink: 1;
flex-grow: 1;
}
.detail-row-content-green-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 28rpx;
font-style: auto;
color: #5EC02D;
font-weight: 1000;
width: 90rpx;
margin-left: 5rpx;
}
.detail-row-content-yellow-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 28rpx;
font-style: auto;
color: #FAAE12;
font-weight: 1000;
width: 90rpx;
margin-left: 5rpx;
}
.detail-row-content-red-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 28rpx;
font-style: auto;
color: #FF2E2E;
font-weight: 1000;
width: 90rpx;
}
.detail-row-status-green-class{
width: 2px;
height: 15px;
background: #5EC02D;
border-radius: 2px;
margin-left: 10rpx;
}
.detail-row-status-red-class{
width: 2px;
height: 15px;
background: #FF2E2E;
border-radius: 2px;
margin-left: 10rpx;
}
.detail-row-status-yellow-class{
width: 2px;
height: 15px;
background: #FAAE12;
border-radius: 2px;
margin-left: 10rpx;
}
.alter{
position: fixed;
left: 0;
right: 0;
top:0;
bottom: 0;
background-color: #333333;
opacity: 0.5;
}
.uni-input{
display: flex;
border: 1px solid #D8D8D8;
color: #666666;
padding: 5rpx 10rpx;
border-radius: 10rpx;
flex-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.confirmBtn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
background-color: #2560C9;
position: fixed;
bottom: 0;
}
.sparePart{
// height: 80%;
position: fixed;
left: 0;
right: 0;
bottom: 0;
background-color: #FFFFFF;
}
.container {
position: relative;
/* margin-top: 26rpx; */
}
.delete-icon {
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
right: -175rpx;
width: 130rpx;
height: 62rpx;
line-height: 62rpx;
border-radius: 31rpx;
font-weight: 500;
font-size: 32rpx;
text-align: center;
color: #FFFFFF;
background: #FF1C1C;
}
.alter-inner{
position: fixed;
left: 0;
right: 0;
top:0;
bottom: 0;
background-color: #333333;
opacity: 0.5;
}
.err{
position: fixed;
left: 100rpx;
right: 100rpx;
top: 400rpx;
background-color: #FFFFFF;
border-radius: 20rpx;
opacity: 1;
z-index: 5;
}
.alter-head{
display: flex;
flex-wrap: nowrap;
}
.errTitle{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
text-align: center;
border-bottom: 2rpx solid #3D3D3D;
}
.errTitle-search{
height: 80rpx;
line-height: 80rpx;
width: 100%;
color: #C0C0C0;
font-size: 28rpx;
text-align: center;
border-bottom: 2rpx solid #3D3D3D;
}
.errList{
width: 100%;
margin-left: 30%;
display: flex;
}
.errDetails{
/* width: 90%; */
font-size: 26rpx;
color: #3D3D3D;
}
.errConfirm{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
text-align: center;
color: #007AFF;
border-top: 2rpx solid #3D3D3D;
}
.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>
+448
View File
@@ -0,0 +1,448 @@
<template>
<view class="page">
<opsoft-dialog-notice
:dialogNoticeShow="showDialog"
:dialogNoticeType="dialogNoticeType"
:dialogNoticeTitle="dialogNoticeTitle"
:dialogNoticeContent="dialogNoticeContent"
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
>
</opsoft-dialog-notice>
<view class="order-title">工单信息</view>
<view class="head">
<view class="card-info-item">
<text class="card-info-item-text">工单代码:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FBILLNO}}</text>
</view>
<view class="card-info-item" v-if="ticketData.length>0">
<text class="card-info-item-text">工单来源:</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERFROM == 1" style="color: #007AFF;">申请故障维修</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERFROM == 2" style="color: #007AFF;">申请事故维修</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERFROM == 3" style="color: #007AFF;">事后事故维修</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERFROM == 4" style="color: #007AFF;">事后故障维修</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERFROM == 5" style="color: #007AFF;">其它</text>
</view>
<view class="card-info-item" v-if="ticketData.length>0">
<text class="card-info-item-text">工单日期:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FDATE}}</text>
</view>
<view class="card-info-item" v-if="ticketData.length>0">
<text class="card-info-item-text">工单状态:</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERSTATUS == 0">未安排</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERSTATUS == 1" style="color: green;">已安排</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERSTATUS == 2" style="color: #007AFF;">完工</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FORDERSTATUS == 3" style="color: #007AFF;">验收</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text">工单内容:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FNAME}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text">负责人:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FEMPNAME}}</text>
</view>
<view class="card-info-item" v-if="ticketData.length>0">
<text class="card-info-item-text">是否停机:</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FISSTOPMACHINE==false" style="color: #007AFF;">否</text>
<text class="card-info-item-text-detail" v-if="ticketData[0].FISSTOPMACHINE==true" style="color: red;">是</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text">停机开始时间:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FMACHINESTOPSTART}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text">停机结束时间:</text>
<text class="card-info-item-text-detail" v-if="ticketData.length>0">{{ticketData[0].FMACHINESTOPEND}}</text>
</view>
</view>
<view class="head" style="margin-top: 24rpx;">
<view class="card-info-item" style="border-bottom: 1px solid #f9f9f9;">
<text class="card-info-item-text">总体评分:</text>
<!-- <text class="card-info-item-text-detail">{{FTotalScore}}</text> -->
<input v-model="FTotalScore"
placeholder="输入评分" placeholder-style="color: #8F8F8F;font-size:26rpx"/>
</view>
<view class="card-info-item" v-if="ticketData.length>0" style="border-bottom: 1px solid #f9f9f9;">
<text class="card-info-item-text">故障是否消除:</text>
<checkbox value="cb" :checked="FFaultClearance==1" @click="faultClearance" style="transform:scale(0.7)"/>是
<checkbox value="cb" :checked="FFaultClearance==0" @click="faultUnclearance" style="margin-left: 100rpx;transform:scale(0.7)"/>否
</view>
<view class="card-info-item" v-if="ticketData.length>0">
<text class="card-info-item-text">维护后状态:</text>
<checkbox value="cb" :checked="FStatusAfterMaint==0" @click="normal" style="transform:scale(0.7)"/>正常
<checkbox value="cb" :checked="FStatusAfterMaint==1" @click="underRepair" style="margin-left: 72rpx;transform:scale(0.7)"/>维修中
<!-- <checkbox value="cb" :checked="FStatusAfterMaint==2" @click="underUphold" style="margin-left: 72rpx;transform:scale(0.7)"/>维护中 -->
</view>
</view>
<view class="lable-change">
<view class="lable-change-item" @click="spanClick(1)">
<text :class="[spanFlag==1?'lable-change-text':'lable-change-text-gray']">维修记录</text>
<view class="lable-change-line" v-show="spanFlag == 1"></view>
</view>
<view class="lable-change-item" @click="spanClick(2)">
<text :class="[spanFlag==2?'lable-change-text':'lable-change-text-gray']">备件领用</text>
<view class="lable-change-line" v-show="spanFlag == 2"></view>
</view>
<view class="lable-change-item" @click="spanClick(3)">
<text :class="[spanFlag==3?'lable-change-text':'lable-change-text-gray']">维修人</text>
<view class="lable-change-line" v-show="spanFlag == 3"></view>
</view>
</view>
<view v-show="spanFlag==1">
<view class="card-list" @click="reportClick(item)" v-for="(item,index) in recordList" :key="index">
<image class="img-left-large" src="../../../static/emapp/repair.png"></image>
<view class="card-info">
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">部件名称:</text>
<text class="card-info-item-text-detail">{{item.FPARTNAME}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">维修内容:</text>
<text class="card-info-item-text-detail">{{item.FCONTENTSANDREQUIREMENTS}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">执行结果:</text>
<text class="card-info-item-text-detail" v-if="item.FORDERSTATUS == 0" style="color: red;">未执行</text>
<text class="card-info-item-text-detail" v-if="item.FORDERSTATUS == 1" style="color: #FAAE12;">执行中</text>
<text class="card-info-item-text-detail" v-if="item.FORDERSTATUS == 2" style="color: green;">完成</text>
<!-- <text class="card-info-item-text-detail" v-else style="color: rgba(0,0,0,0.6);">-</text> -->
</view>
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">维修人:</text>
<text class="card-info-item-text-detail">{{item.FEMPNAME}}</text>
</view>
</view>
<image class="img-arrow" src="../../../static/myinfo/right-arrow.png" style="width: 30rpx;height: 30rpx;"></image>
</view>
</view>
<view v-show="spanFlag==2">
<view class="card-list" v-for="(item,index) in sparePartList">
<image class="img-left-large" src="../../../static/emapp/part.png"></image>
<view class="card-info">
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">备件名称:</text>
<text class="card-info-item-text-detail">{{item.FSPAREPARTNAME}}</text>
</view>
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">领用数量:</text>
<text class="card-info-item-text-detail">{{item.FQTY}} {{item.FUNITNAME}}</text>
</view>
</view>
</view>
</view>
<view v-show="spanFlag==3">
<view class="card-list" v-for="(item,index) in workList">
<image class="img-left-large" src="../../../static/emapp/human.png"></image>
<view class="card-info">
<view class="card-info-item">
<text class="card-info-item-text" style="width: 140rpx;">保养人:</text>
<text class="card-info-item-text-detail">{{item.FEMPNAME}}</text>
</view>
</view>
</view>
</view>
<view style="height: 100rpx;width: 100%;"></view>
<view class="addBtn" @click="submit">提交</view>
</view>
</template>
<script>
import Vue from '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 {
data() {
return {
dialogNoticeContent:'',
dialogNoticeTitle:'',
dialogNoticeType:'',
showDialog:false,
FInterID:'',
FFaultClearance:1,
FStatusAfterMaint:1,
FTotalScore:0,
leftStyle: 0,
startX: 0,
hiddenFlag: true,
delBtnWidth: 220,
currIndex:'',
spanFlag:1,
ticketData: [],
recordList: [],
sparePartList: [],
workList:[],
orgid:'',
equipmentInfo:[],
FBillNO:'',
FStdValue:'',
FIsFinished: true
};
},
components: {
opsoftDialogNotice
},
onLoad(option) {
this.orgid = uni.getStorageSync('orgid');
let firstPageCurItemInfo = uni.getStorageSync('firstPageAcceptenceCurItemInfoRepair');
if(Object.keys(option).length==0){
this.FBillNO = firstPageCurItemInfo.FBILLNO;
}else{
this.FBillNO = option.FBillNO
if (option.FIsFinished == null || option.FIsFinished.length == 0) {
this.FIsFinished = false;
}
else {
this.FIsFinished = JSON.parse(option.FIsFinished);
}
}
this.getOrderDetailInfo();
},
computed: {
indicatorStyle() {
return {
background: 'rgba(255,0,0,.2)',
height: '40px',
};
},
...mapState(['userInfo'])
},
onBackPress(options) {
if(options.from === 'navigateBack'){
return false;
}
this.back();
return true;
},
methods: {
back() {
uni.redirectTo({
url:'EQUM06'
})
},
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;
},
faultClearance() {
this.FFaultClearance = 1;
},
faultUnclearance() {
this.FFaultClearance = 0;
},
normal() {
this.FStatusAfterMaint = 0;
},
underRepair() {
this.FStatusAfterMaint = 1;
},
getOrderDetailInfo: function() {
let requestParams = {
"billNO":this.FBillNO?this.FBillNO:'',
"basicType":1,
};
this.$request.get('/RepairOreder/MaintenanceOrder',{
params: requestParams
}).then(res => {
let _self = this;
let data = res;
_self.ticketData = data;
_self.FTotalScore = _self.ticketData[0].FTOTALSCORE;
_self.FInterID = _self.ticketData[0].FINTERID;
uni.setStorageSync('ticketDataAcceptenceInfoRepair',_self.ticketData);
_self.recordList = data[0].Body1;
_self.sparePartList = data[0].Body2;
_self.workList = data[0].Body3;
if (_self.FIsFinished) {
_self.FFaultClearance = _self.ticketData[0].FFAULTCLEARANCE? 1:0;
}
_self.FStatusAfterMaint = _self.ticketData[0].FSTATUS;
if(_self.ticketData.length>0){
if (_self.ticketData[0].FDate) {
_self.ticketData[0].FDate = commonUtil.removeLetter(_self.ticketData[0].FDate);
_self.ticketData[0].FDate = _self.ticketData[0].FDate.substr(0,10) + " " + _self.ticketData[0].FDate.substr(10 ,8);
}
}else{
uni.showToast({
icon:'none',
title:'工单表头信息为空'
});
}
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
reportClick:function(item){
uni.setStorageSync('currAcceptenceRecordListRepair',item);
uni.navigateTo({
url:'./EQUM06Report'
});
},
submit(){
let _self = this;
let data = [{"FInterID":this.FInterID,
"FFaultClearance":this.FFaultClearance,
"FMachineStopStart":this.ticketData[0].FMACHINESTOPSTART,
"FMachineStopEnd":this.ticketData[0].FMACHINESTOPEND,
"FTotalScore":this.FTotalScore?this.FTotalScore:0,
"FStatusAfterMaint":this.FStatusAfterMaint?this.FStatusAfterMaint:0}];
let requestParams = {
"basicType":1,
"SData":data
};
this.$request.post('/RepairOreder/OrderReportAcceptance',requestParams).then(res => {
uni.redirectTo({
url:'EQUM06Item'
})
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
spanClick:function(type){
this.spanFlag = type;
},
delItem:function(index){
let requestParams = {
"id": this.userInfo.UserID,
"repair":1,
"basicType":1,
"fID":this.recordList[index].FDetailID,
};
this.$request.post({
data: {
action: 'DelBodyAndSparePart',
params: requestParams
}
}).then(res => {
let _self = this;
this.recordList.splice(index,1);
this.leftStyle = 0;
});
},
// 开始移动时
touchS($event,index) {
// startX记录开始移动的位置
console.log($event);
console.log(index);
this.currIndex = index;
if($event.touches.length === 1) {
this.startX = $event.touches[0].clientX;
}
// hiddenFlag为true则是从右向左,为false则是从左向右
if(this.leftStyle === 0) {
this.hiddenFlag = true;
} else {
this.hiddenFlag = false;
}
},
touchM($event,index) {
if($event.touches.length === 1) {
//手指移动时水平方向位置
const moveX = $event.touches[0].clientX;
this.moveFunc(moveX);
}
},
touchE($event,index) {
const { leftStyle } = this;
const { delBtnWidth } = this;
// 如果停止滑动的距离大于二分之一则直接弹出删除按钮,不然则left为0
if(-leftStyle > delBtnWidth/2) {
this.leftStyle = -delBtnWidth;
} else {
this.leftStyle = 0;
}
},
moveFunc(moveX) {
// 原始位置向左,leftStyle为小于0;原始位置向右,leftStyle为大于0
// disX为相对最初位置的左右距离
// 大于0为向右,小于0为向左
const disX = moveX - this.startX;
const delBtnWidth = this.delBtnWidth;
let offsetNum = 0;
if(-disX >= delBtnWidth && this.leftStyle === -delBtnWidth) {
return;
}
console.log(disX, this.hiddenFlag);
// this.hiddenFlag为true则是从左到右,则应该将container向左移动
// this.hiddenFlag为false则是从右向左,则应该将container向右移动
if(this.hiddenFlag) {
// 此时container为最右边,则应该将container向左移动
// disX大于0为相对原始位置的向右移动,则直接将offsetNum置为0
// 否则为向左移动,offsetNum为disX相反的值,判断是否超过设置的最大位置
if(disX == 0 || disX > 0) {
offsetNum = 0;
} else {
offsetNum = disX;
if (disX <= -delBtnWidth) {
//控制手指移动距离最大值为删除按钮的宽度
offsetNum = -delBtnWidth;
}
}
} else {
// 此时container为最左边,应该向右移动
// disX小于0为相对原始位置的向左移动,则直接将offsetNum置为-this.delBtnWidth
// 否则为相对原始位置的向右移动,此时应该将最大位置与向右位置的差值为此刻位置,判断是否为大于0
if(disX < 0) {
offsetNum = -this.delBtnWidth;
} else {
offsetNum = -this.delBtnWidth + disX;
if(offsetNum > 0) {
offsetNum = 0;
}
}
}
this.leftStyle = offsetNum;
},
}
};
</script>
<style lang="scss" scoped>
page {
background-color: #F9F9F9;
}
.page{overflow-x: hidden;}
.card-info-item-text{width: 190rpx;}
.addBtn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
background-color: #2560C9;
position: fixed;
bottom: 0;
}
</style>
+432
View File
@@ -0,0 +1,432 @@
<template>
<view class="report">
<opsoft-dialog-notice
:dialogNoticeShow="showDialog"
:dialogNoticeType="dialogNoticeType"
:dialogNoticeTitle="dialogNoticeTitle"
:dialogNoticeContent="dialogNoticeContent"
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
>
</opsoft-dialog-notice>
<view class="order-title">工单执行结果</view>
<view class="card-list" style="padding-left: 0;">
<view class="card-list-report">
<text class="card-info-item-text-none">总体评分:</text>
<!-- <text class="card-info-item-text-detail">{{FTotalScore}}</text> -->
<input v-model="FScore" placeholder="输入评分" placeholder-style="color:#8c8c8c;"
style="height: 34rpx; line-height: 34rpx; font-size: 28rpx;"/>
</view>
</view>
<view class="info-title">备件领用</view>
<view class="card-list" style="flex-direction: column;">
<view class="card-list-report" v-if="partList.length>0" v-for="(item,index) in partList" :key="index">
<view class="card-info-title-text-detail-left">{{item.FName}}</view>
<view class="card-info-title-text-detail-left-report">数量:{{item.FQty}}</view>
</view>
<view class="card-list-report" v-if="partList.length==0" @click="spareListClick">
<view class="card-info-item-text-none" style="text-align: left;">无领用</view>
</view>
</view>
<view class="info-title">维修人</view>
<view class="card-list" style="flex-direction: column;">
<view class="card-list-report" v-if="selWorker.length>0" v-for="(item,index) in selWorker" :key="index">
<view class="card-info-title-text-detail-left">{{item.FName}}</view>
<view class="card-info-title-text-detail-left-report">维修工时:{{item.FACraftTime?item.FACraftTime:0}}H
</view>
</view>
<view class="card-list-report" v-if="selWorker.length==0" @click="workerListClick">
<view class="card-info-item-text-none" style="text-align: left;">无维修人</view>
</view>
</view>
<view class="info-title">状态描述</view>
<view class="info-body">
<textarea placeholder="输入状态描述" v-model="FCondition" placeholder-class="text-area-holder"
class="text-area"></textarea>
</view>
<view class="info-title">备注</view>
<view class="info-body">
<textarea placeholder="输入备注信息" v-model="FExplain" placeholder-class="text-area-holder"
class="text-area"></textarea>
</view>
<view style="height: 200rpx;width: 100%;"></view>
<view @click="handleSubmit" class="btn-confirm" v-show="submitShow">验收</view>
</view>
</template>
<script>
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 errorStrUntil from '@/common/errorStrUntil.js';
import Vue from 'vue';
import {
mapState,
mapMutations
} from 'vuex';
var commonUtil = require('../../../common/util.js');
export default {
computed: {
...mapState(['userInfo'])
},
components: {
imgUpload,
opsoftDialogNotice
},
data() {
return {
dialogNoticeContent:'',
dialogNoticeTitle:'',
dialogNoticeType:'',
showDialog:false,
FCondition:'',
FScore:'',
FExplain:'',
submitShow:true,
currRecordList:[],
ticketDataInfo:[],
FOrderStatus:0,
FContentAndRequir:'',
FNote:'',
partList:[],
workerList:[],
OrderEntryInfo:[],
FInterID:'',
FMaintManID:[],
FMachinePartID:'',
selWorker:[],
empNO:'',
imgArray:new Array(),
clickEnable:true,
imgBase64Url:new Array(),
dataList: [],
orgid:'',
commitList:[],
userID:'',
basicType:0,
equipID:'',
sparePartName:'',
};
},
onLoad(options) {
this.userID = this.userInfo.ID;
let equipInfo = uni.getStorageSync('firstPageAcceptenceCurItemInfoRepair');
this.equipID = equipInfo.FItemID;
this.currRecordList = uni.getStorageSync('currAcceptenceRecordListRepair');
this.ticketDataInfo = uni.getStorageSync('ticketDataAcceptenceInfoRepair');
this.orgid = uni.getStorageSync('orgid');
this.getReportInfo();
},
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;
},
getReportInfo(count){
let _self = this;
let requestParams = {
"basicType":1,
"detailID":this.currRecordList.FDETAILID,
};
this.$request.get('/RepairOreder/MaintenanceOrderEntry',{params:requestParams}).then(res => {
let data = res;
this.FMaintManID = [];
if(data){
if(data.Body1.length>0){
this.OrderEntryInfo = data.Body1[0];
this.FOrderStatus = this.OrderEntryInfo.FORDERSTATUS;
if(this.FOrderStatus == 3){
this.submitShow = false;
}
this.FCondition = this.OrderEntryInfo.FCONDITION;
this.FScore = this.OrderEntryInfo.FSCORE;
this.FExplain = this.OrderEntryInfo.FEXPLAIN;
this.FMachinePartID = this.OrderEntryInfo.FMACHINEPARTID;
this.FInterID = this.OrderEntryInfo.FINTERID;
this.FContentAndRequir = this.OrderEntryInfo.FCONTENTSANDREQUIREMENTS;
this.FNote = this.OrderEntryInfo.FNOTE;
}
if(data.Body2.length>0){
data.Body2.forEach(
function(el){
let arr = {
FInterID:el.FSPAREPARTID,
FBillNO:_self.OrderEntryInfo.FBILLNO,
FName:el.FSPAREPARTNAME,
FEqModel:el.FEqModel,
FQty:el.FQTY
}
_self.partList.push(arr)
}
);
}
if(data.Body3.length>0){
data.Body3.forEach(
function(el){
let arr = {"FName":el.FEMPNAME,"FID":el.FMAINTMANID,"FACraftTime":el.FACRAFTTIME?el.FACRAFTTIME:0};
let arrID = {"FMaintID":el.FMAINTMANID,"FACraftTime":el.FACRAFTTIME?el.FACRAFTTIME:0};
_self.selWorker.push(arr);
_self.FMaintManID.push(arrID)
}
);
}
}
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
handleSubmit(count){
let _self = this;
let data = [{"FInterID":this.FInterID,
"FDetailID":this.currRecordList.FDETAILID,
"FCondition":this.FCondition,
"FScore":this.FScore,
"FExplain":this.FExplain,
"FOrderStatus":this.FOrderStatus }];
let requestParams = {
"basicType":1,
"SData":data
};
this.$request.post('/RepairOreder/PartReportAcceptance',requestParams).then(res => {
uni.redirectTo({
url:'EQUM06Item'
})
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
}
}
};
</script>
<style lang="scss">
page {
background-color: #F7F7F7;
overflow-x: hidden;
}
.report{overflow-x: hidden;}
.card-list-report {
position: relative;
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
padding: 20rpx 0;
}
.card-info-title-text-detail-left-report {
position: absolute;
right: 0;
}
.alter{
position: fixed;
left: 0;
right: 0;
top:0;
bottom: 0;
background-color: #333333;
opacity: 0.5;
}
.err{
position: fixed;
left: 100rpx;
right: 100rpx;
top: 400rpx;
background-color: #FFFFFF;
border-radius: 20rpx;
opacity: 1;
z-index: 5;
}
.alter-head{
display: flex;
flex-wrap: nowrap;
}
.errTitle{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
text-align: center;
border-bottom: 2rpx solid #3D3D3D;
}
.errTitle-search{
height: 80rpx;
line-height: 80rpx;
width: 100%;
color: #C0C0C0;
font-size: 28rpx;
text-align: center;
border-bottom: 2rpx solid #3D3D3D;
}
.errList{
width: 100%;
margin-left: 30%;
display: flex;
}
.errDetails{
/* width: 90%; */
font-size: 26rpx;
color: #3D3D3D;
}
.errConfirm{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
text-align: center;
color: #007AFF;
border-top: 2rpx solid #3D3D3D;
}
.worker-alter{position: fixed;left: 0rpx;right: 0rpx;top: 300rpx;bottom: 0;
background-color: #FFFFFF;opacity: 1;z-index: 5;border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;}
.worker-alter-head{display: flex;flex-direction: row;border-bottom: solid #F5F5F5 1px;}
.worker-alter-title{height: 100rpx;line-height: 100rpx;text-align: center;font-size: 32rpx;width: 100%;}
.worker-alter-list{display: flex;justify-content: space-between;align-items: center;padding: 20rpx 0;border-bottom: solid #F5F5F5 1px;}
.worker-alter-details{font-size: 26rpx;}
.worker-alter-time{font-size: 26rpx;display: flex;flex-direction: row;}
.worker-alter-time input{border: solid #F5F5F5 1px;border-radius: 10rpx;width: 100rpx;margin-right: 20rpx;text-align: center;}
.worker-alter-confirm{height: 80rpx;line-height: 80rpx;width: 100%;position: fixed;bottom: 0;
font-size: 32rpx;text-align: center;color: #FFFFFF;background-color: #007AFF;}
.sparePart{
position: fixed;
left: 0;
right: 0;
top: 300rpx;
bottom: 0;
background-color: #FFFFFF;
}
.top-row-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 50rpx;
line-height: 50rpx;
// padding-top: 10rpx;
// padding-bottom: 10rpx;
// padding-left: 24rpx;
// padding-right: 24rpx;
margin-left: 32rpx;
margin-right: 32rpx;
flex-shrink: 0;
flex-grow: 0;
background-color: #FFFFFF;
margin-top: 10rpx;
margin-bottom: 16rpx;
border-radius: 10rpx;
}
.uni-input{
display: flex;
border: 1px solid #D8D8D8;
color: #666666;
padding: 5rpx 10rpx;
border-radius: 10rpx;
flex-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.top-row-title-class{
text-align: end;
font-size: 30rpx;
font-style: auto;
color: #666666;
flex-shrink: 0;
flex-grow: 0;
line-height: 50rpx;
height: 50rpx;
// width: 150rpx;
flex-wrap: nowrap;
}
.top-row-input-class{
position: relative;
font-size: 30rpx;
color: #6B6B6B;
width: 100%;
padding-left: 15rpx;
padding-right: 15rpx;
border-radius: 10rpx;
border: 1px solid #D8D8D8;
height: 60rpx; line-height: 60rpx;
margin-left: 32rpx;
}
.scanImg{
height: 40rpx;
width: 40rpx;
position: absolute;
right: 48rpx;
}
.inner {
display: flex;
padding: 4rpx 5% 10rpx 5%;
border-bottom: 1px solid #F7F7F7;
align-items: center;
justify-content: space-between;
}
.title-s {
color: #222222;
font-size: 14px;
}
.slave-s {
color: #858585;
font-size: 12px;
}
.slave-k {
color: #858585;
font-size: 12px;
display: flex;
justify-content: space-between;
}
.count-input{
height: 40rpx;
line-height: 40rpx;
width: 100rpx;
border: 1px solid #6D6D72;
border-radius: 10rpx;
margin: 0 10rpx;
text-align: center;
}
.confirmBtn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
background-color: #2560C9;
position: fixed;
bottom: 0;
}
</style>
</style>
+159
View File
@@ -0,0 +1,159 @@
.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;
overflow-x: hidden;
.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 1%;
padding-left: 5%;
border-bottom: 1px solid #F5F5F5;
display: flex;
justify-content: space-between;
.line-title{
line-height: 80rpx;
font-size: 26rpx;
font-weight: 400;
color: #2c2c2c;
}
.line-child{
line-height: 80rpx;
font-size: 26rpx;
font-weight: 400;
color: #7d7d7d;
padding-right: 10%;
}
}
.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%;
}