This commit is contained in:
gtz217 2022-08-04 15:21:48 +08:00
parent 03cfa65525
commit 4d2049fca7
15 changed files with 126 additions and 123 deletions

View File

@ -40,3 +40,69 @@
flex: 0 0 20% !important; flex: 0 0 20% !important;
padding: 0 !important; padding: 0 !important;
} }
// picker
.van-picker {
.van-picker-column__item{
.van-ellipsis {
height: 44px;
line-height: 44px;
font-size: .4rem;
}
}
.van-picker__toolbar {
.van-picker__cancel, .van-picker__title, .van-picker__confirm {
font-size: .4rem;
}
.van-ellipsis {
line-height: .88rem;
height: .88rem;
}
}
}
// 输入框
.van-field {
.van-field__body {
input, textarea {
font-size: .4rem;
color: #131415;
}
input::-webkit-input-placeholder {
font-size: .4rem;
}
input:-moz-placeholder {
font-size: .4rem;
}
input::-moz-placeholder {
font-size: .4rem;
}
input:-ms-input-placeholder {
font-size: .4rem;
}
}
}
.canInput {
.van-cell__value {
.van-field__body {
.van-field__control:disabled {
font-size: .4rem;
color: #131415;
-webkit-text-fill-color: #131415;
}
input::-webkit-input-placeholder {
-webkit-text-fill-color: #c8c9cc;
}
input:-moz-placeholder {
-webkit-text-fill-color: #c8c9cc;
}
input::-moz-placeholder {
-webkit-text-fill-color: #c8c9cc;
}
input:-ms-input-placeholder {
-webkit-text-fill-color: #c8c9cc;
}
}
}
}

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 13:52:32 * @LastEditTime: 2022-08-04 14:54:50
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\components\eqItem.vue * @FilePath: \hf-pda\src\pages\eqInspection\components\eqItem.vue
--> -->
@ -20,12 +20,12 @@
<div class="eqItem-main"> <div class="eqItem-main">
<div class="eqItem-main-left"> <div class="eqItem-main-left">
<div class="eqItem-main-left-item"> <div class="eqItem-main-left-item">
添加时间 开始时间
<span>{{ injectData.createTime ? moment(injectData.createTime).format('YYYY-MM-DD HH:mm:ss') : '暂无' }}</span> <span>{{ injectData.inspectionStartTime ? moment(injectData.inspectionStartTime).format('YYYY-MM-DD HH:mm:ss') : '暂无' }}</span>
</div> </div>
<div class="eqItem-main-left-item"> <div class="eqItem-main-left-item">
巡检时间 结束时间
<span>{{ injectData.inspectionStartTime ? moment(injectData.inspectionStartTime).format('YYYY-MM-DD HH:mm:ss') : '暂无' }}</span> <span>{{ injectData.inspectionEndTime ? moment(injectData.inspectionEndTime).format('YYYY-MM-DD HH:mm:ss') : '暂无' }}</span>
</div> </div>
</div> </div>
<div class="eqItem-main-right" @click="toDetail"> <div class="eqItem-main-right" @click="toDetail">

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 10:08:25 * @LastEditTime: 2022-08-04 14:55:18
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\components\eqPopup.vue * @FilePath: \hf-pda\src\pages\eqInspection\components\eqPopup.vue
--> -->

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-07-28 17:26:08 * @LastEditTime: 2022-08-04 14:55:24
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\components\timePopup.vue * @FilePath: \hf-pda\src\pages\eqInspection\components\timePopup.vue
--> -->

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 10:12:31 * @LastEditTime: 2022-08-04 14:27:41
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-add.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-add.vue
--> -->
@ -137,18 +137,6 @@ export default {
top: 1.5rem; top: 1.5rem;
bottom: 0; bottom: 0;
overflow: scroll; overflow: scroll;
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
.eq-field-item { .eq-field-item {
padding-top: .25rem; padding-top: .25rem;
line-height: .875rem; line-height: .875rem;

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 09:13:02 * @LastEditTime: 2022-08-04 14:27:45
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue
--> -->
@ -190,18 +190,6 @@ export default {
top: 1.5rem; top: 1.5rem;
bottom: 0; bottom: 0;
overflow: scroll; overflow: scroll;
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
.eq-main-item { .eq-main-item {
background: #fff; background: #fff;
padding-bottom: .25rem; padding-bottom: .25rem;

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 09:06:45 * @LastEditTime: 2022-08-04 15:19:28
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue
--> -->
@ -30,6 +30,7 @@
<van-field <van-field
v-model="dataForm.equipmentName" v-model="dataForm.equipmentName"
ref="eqCodeInput" ref="eqCodeInput"
class="canInput"
disabled disabled
/> />
</van-col> </van-col>
@ -60,6 +61,7 @@
clearable clearable
clear-trigger="always" clear-trigger="always"
disabled disabled
class="canInput"
placeholder="选择巡检时间" placeholder="选择巡检时间"
@click="handleDate" @click="handleDate"
/> />
@ -73,21 +75,25 @@
巡检内容 巡检内容
</van-col> </van-col>
<van-col :span="15" :offset="1" /> <van-col :span="15" :offset="1" />
<van-col :span="24" v-for="item in insList" :key="item.id" class="eq-main-edit-neirong-item-item"> <template v-if="insList && insList.length">
<van-swipe-cell> <van-col :span="24" v-for="item in insList" :key="item.id" class="eq-main-edit-neirong-item-item">
<van-cell :border="false" :title="item.inspectionItem" :label="item.inspectionContent"> <van-swipe-cell>
<template #right-icon> <van-cell :border="false" :title="item.inspectionItem" :label="item.inspectionContent">
<van-checkbox v-model="item.statusBoolean" @change="updateStatus(item)" /> <template #right-icon>
<span style="display: flex; align-items: center; -webkit-box-align: center; margin-right: .1rem; font-size: .3125rem; position: relative; top: .032rem;">是否完成</span>
<van-checkbox v-model="item.statusBoolean" @change="updateStatus(item)" />
</template>
</van-cell>
<template #right>
<van-button square @click="toInsDetail(item)">
<van-icon name="add-o" />
<div>编辑详情</div>
</van-button>
</template> </template>
</van-cell> </van-swipe-cell>
<template #right> </van-col>
<van-button square @click="toInsDetail(item)"> </template>
<van-icon name="add-o" /> <van-col :span="22" :offset="1" style="font-size: .4rem">暂无</van-col>
<div>编辑详情</div>
</van-button>
</template>
</van-swipe-cell>
</van-col>
</van-row> </van-row>
</div> </div>
<div class="eq-main-edit-item"> <div class="eq-main-edit-item">
@ -135,7 +141,7 @@
:title="dateType ? '选择结束时间' : '选择开始时间'" :title="dateType ? '选择结束时间' : '选择开始时间'"
:min-date="minDate" :min-date="minDate"
@confirm="setDate" @confirm="setDate"
@cancel="show = false" @cancel="show = false; dateType = 0"
/> />
</van-popup> </van-popup>
</div> </div>
@ -163,7 +169,8 @@ export default {
inspectionDesc: null, inspectionDesc: null,
inspectionWorker: null, inspectionWorker: null,
inspectionEndTime: null, inspectionEndTime: null,
inspectionStartTime: null inspectionStartTime: null,
source: 3
}, },
insList: [], insList: [],
insTime: null, insTime: null,
@ -208,6 +215,9 @@ export default {
}) })
if (result.success) { if (result.success) {
this.dataForm = result.data this.dataForm = result.data
if (this.dataForm.inspectionStartTime && this.dataForm.inspectionEndTime) {
this.insTime = moment(this.dataForm.inspectionStartTime).format('YYYY-MM-DD HH:mm:ss') + '-' + moment(this.dataForm.inspectionEndTime).format('YYYY-MM-DD HH:mm:ss')
}
const result1 = await getInsList({ const result1 = await getInsList({
equipmentInspectionId: this.$route.query.id equipmentInspectionId: this.$route.query.id
}) })
@ -338,18 +348,6 @@ export default {
top: 1.5rem; top: 1.5rem;
bottom: 0; bottom: 0;
overflow: scroll; overflow: scroll;
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
.eq-main-item { .eq-main-item {
background: #fff; background: #fff;
padding-bottom: .25rem; padding-bottom: .25rem;

View File

@ -22,6 +22,7 @@
<van-col :span="15" :offset="1" class="eq-search-item-input"> <van-col :span="15" :offset="1" class="eq-search-item-input">
<van-field <van-field
v-model="eqName" v-model="eqName"
class="canInput"
right-icon="arrow-down" right-icon="arrow-down"
disabled disabled
placeholder="请选择设备" placeholder="请选择设备"
@ -34,6 +35,7 @@
<van-col :span="15" :offset="1" class="eq-search-item-input"> <van-col :span="15" :offset="1" class="eq-search-item-input">
<van-field <van-field
v-model="timeStr" v-model="timeStr"
class="canInput"
right-icon="rili" right-icon="rili"
icon-prefix="iconfont" icon-prefix="iconfont"
disabled disabled
@ -300,18 +302,6 @@ export default {
border-radius: .25rem; border-radius: .25rem;
background: #fff; background: #fff;
box-shadow: .02rem .02rem .1rem rgba($color: #000000, $alpha: .2); box-shadow: .02rem .02rem .1rem rgba($color: #000000, $alpha: .2);
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
} }
.eq-search-item { .eq-search-item {
padding-top: .25rem; padding-top: .25rem;

View File

@ -2,14 +2,14 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 20:27:20 * @LastEditTime: 2022-08-04 14:12:38
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\material\components\materialPopup-batch.vue * @FilePath: \hf-pda\src\pages\material\components\materialPopup-batch.vue
--> -->
<template> <template>
<van-popup v-model="show" position="bottom" class="eqPopup"> <van-popup v-model="show" position="bottom" class="eqPopup">
<van-picker <van-picker
title="选择设备" title="选择批次"
show-toolbar show-toolbar
:columns="showList" :columns="showList"
@confirm="onConfirm" @confirm="onConfirm"

View File

@ -2,14 +2,14 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 20:27:07 * @LastEditTime: 2022-08-04 14:12:43
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\material\components\materialPopup-source.vue * @FilePath: \hf-pda\src\pages\material\components\materialPopup-source.vue
--> -->
<template> <template>
<van-popup v-model="show" position="bottom" class="eqPopup"> <van-popup v-model="show" position="bottom" class="eqPopup">
<van-picker <van-picker
title="选择设备" title="选择来源"
show-toolbar show-toolbar
:columns="showList" :columns="showList"
:default-index="1" :default-index="1"

View File

@ -2,14 +2,14 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 20:16:41 * @LastEditTime: 2022-08-04 14:12:49
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\material\components\materialPopup-worker.vue * @FilePath: \hf-pda\src\pages\material\components\materialPopup-worker.vue
--> -->
<template> <template>
<van-popup v-model="show" position="bottom" class="eqPopup"> <van-popup v-model="show" position="bottom" class="eqPopup">
<van-field-check-box <van-field-check-box
title="选择设备" title="选择操作员"
show-toolbar show-toolbar
ref="worker-picker" ref="worker-picker"
:columns="showList" :columns="showList"

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 13:50:15 * @LastEditTime: 2022-08-04 14:27:54
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\material\material-add.vue * @FilePath: \hf-pda\src\pages\material\material-add.vue
--> -->
@ -137,18 +137,6 @@ export default {
top: 1.5rem; top: 1.5rem;
bottom: 0; bottom: 0;
overflow: scroll; overflow: scroll;
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
.eq-field-item { .eq-field-item {
padding-top: .25rem; padding-top: .25rem;
line-height: .875rem; line-height: .875rem;

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-03 20:39:43 * @LastEditTime: 2022-08-04 14:56:10
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\material\material-edit.vue * @FilePath: \hf-pda\src\pages\material\material-edit.vue
--> -->
@ -30,6 +30,7 @@
<van-field <van-field
v-model="dataForm.materialDateName" v-model="dataForm.materialDateName"
disabled disabled
class="canInput"
placeholder="请选择批次" placeholder="请选择批次"
@click="handleSelectBatch" @click="handleSelectBatch"
right-icon="arrow-down" right-icon="arrow-down"
@ -45,6 +46,7 @@
<van-field <van-field
v-model="dataForm.replaceTime" v-model="dataForm.replaceTime"
disabled disabled
class="canInput"
placeholder="请选择换料时间" placeholder="请选择换料时间"
@click="handleDate" @click="handleDate"
right-icon="arrow-down" right-icon="arrow-down"
@ -86,6 +88,7 @@
<van-field <van-field
v-model="dataForm.equipmentName" v-model="dataForm.equipmentName"
disabled disabled
class="canInput"
placeholder="请选择设备" placeholder="请选择设备"
@click="handleSelectEq" @click="handleSelectEq"
right-icon="arrow-down" right-icon="arrow-down"
@ -101,6 +104,7 @@
<van-field <van-field
v-model="dataForm.source" v-model="dataForm.source"
disabled disabled
class="canInput"
placeholder="请选择数据来源" placeholder="请选择数据来源"
right-icon="arrow-down" right-icon="arrow-down"
@click="handleSelectSource" @click="handleSelectSource"
@ -116,6 +120,7 @@
<van-field <van-field
v-model="dataForm.operator" v-model="dataForm.operator"
disabled disabled
class="canInput"
placeholder="请选择操作员" placeholder="请选择操作员"
right-icon="arrow-down" right-icon="arrow-down"
@click="handleSelectWorker" @click="handleSelectWorker"
@ -189,13 +194,14 @@ export default {
id: null, id: null,
equipmentId: null, equipmentId: null,
equipmentName: null, equipmentName: null,
materialDateId: null,
materialDateName: null, materialDateName: null,
materialDateCode: null, materialDateCode: null,
materialName: null, materialName: null,
materialCode: null, materialCode: null,
replaceTime: null, replaceTime: null,
operator: null, operator: null,
source: null, source: 'PDA',
remark: null remark: null
}, },
minDate: new Date(2020, 0, 1), minDate: new Date(2020, 0, 1),
@ -271,6 +277,7 @@ export default {
externalCode: this.batchList[index].code externalCode: this.batchList[index].code
}) })
if (result.success) { if (result.success) {
this.dataForm.materialDateId = result.data.id
this.dataForm.materialDateName = result.data.name this.dataForm.materialDateName = result.data.name
this.dataForm.materialDateCode = result.data.code this.dataForm.materialDateCode = result.data.code
this.dataForm.materialName = result.data.materialName this.dataForm.materialName = result.data.materialName
@ -321,17 +328,19 @@ export default {
}, },
// //
resetForm () { resetForm () {
const id = this.dataForm.id
this.dataForm = { this.dataForm = {
id: null, id,
equipmentId: null, equipmentId: null,
equipmentName: null, equipmentName: null,
materialDateId: null,
materialDateName: null, materialDateName: null,
materialDateCode: null, materialDateCode: null,
materialName: null, materialName: null,
materialCode: null, materialCode: null,
replaceTime: null, replaceTime: null,
operator: null, operator: null,
source: null, source: 'PDA',
remark: null remark: null
} }
} }
@ -364,18 +373,6 @@ export default {
top: 1.5rem; top: 1.5rem;
bottom: 0; bottom: 0;
overflow: scroll; overflow: scroll;
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
.eq-main-item { .eq-main-item {
background: #fff; background: #fff;
padding-bottom: .25rem; padding-bottom: .25rem;

View File

@ -213,18 +213,6 @@ export default {
border-radius: .25rem; border-radius: .25rem;
background: #fff; background: #fff;
box-shadow: .02rem .02rem .1rem rgba($color: #000000, $alpha: .2); box-shadow: .02rem .02rem .1rem rgba($color: #000000, $alpha: .2);
input::-webkit-input-placeholder {
font-size: .375rem;
}
input:-moz-placeholder {
font-size: .375rem;
}
input::-moz-placeholder {
font-size: .375rem;
}
input:-ms-input-placeholder {
font-size: .375rem;
}
} }
.eq-search-item { .eq-search-item {
padding-top: .25rem; padding-top: .25rem;

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-25 14:18:00 * @Date: 2022-07-25 14:18:00
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-04 08:35:07 * @LastEditTime: 2022-08-04 10:16:05
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\util\request.js * @FilePath: \hf-pda\src\util\request.js
*/ */
@ -27,7 +27,7 @@ service.interceptors.request.use((config) => {
// config.headers['token'] = JSON.parse(sessionStorage.getItem('userInfo')).token // config.headers['token'] = JSON.parse(sessionStorage.getItem('userInfo')).token
// } // }
// 输出到安卓版本的时候开启下面的配置项 // 输出到安卓版本的时候开启下面的配置项
config.url = 'http://hfxny.mes.picaiba.com' + config.url // config.url = 'http://hfxny.mes.picaiba.com' + config.url
// *************** // ***************
if (config.formState) { if (config.formState) {