This commit is contained in:
2022-06-27 10:21:54 +08:00
commit 571e582eca
257 changed files with 41968 additions and 0 deletions

View File

@@ -0,0 +1,139 @@
<template>
<section>
<nav-bar :inner="true" title="设备报修"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">故障类型</div>
<div class="fxcol mgl20 visible" >
<dropdown-menu
:option="option1"
:active="active1"
:open="open1"
@toggleItem="toggleItem1"
@dropdownMenu="dropdownMenu1">
</dropdown-menu>
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">故障描述</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val2">
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">故障等级</div>
<div class="fxcol mgl20 visible" >
<dropdown-menu
:option="option2"
:active="active2"
:open="open2"
@toggleItem="toggleItem2"
@dropdownMenu="dropdownMenu2">
</dropdown-menu>
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">解决措施</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val3">
</div>
</div>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>序号</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td></td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>图片编号</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">拍照</button>
<button class="btn submit-button">报修</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import DropdownMenu from '@components/DropdownMenu.vue'
export default {
name: 'EquipRepair',
components: {
NavBar,
SearchBox,
DropdownMenu
},
data () {
return {
val1: '',
val2: '',
val3: '',
dataList: [],
pkId: '',
pkObj: {},
option1: [],
active1: '',
open1: false,
option2: [],
active2: '',
open2: false
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
},
toggleItem1 () {
if (!this.open1) {
this.open1 = true
} else {
this.open1 = false
}
},
dropdownMenu1 (i) {
this.active1 = i + ''
this.open1 = false
},
toggleItem2 () {
if (!this.open2) {
this.open2 = true
} else {
this.open2 = false
}
},
dropdownMenu2 (i) {
this.active2 = i + ''
this.open2 = false
}
}
}
</script>

View File

@@ -0,0 +1,77 @@
<template>
<section>
<nav-bar title="设备维修确认"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>维修单</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.device_code}}</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>设备编号</th>
<th>设备名称</th>
<th>状态</th>
<th>维修日期</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">通过</button>
<button class="btn submit-button">不通过</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
export default {
name: 'EquipRepairConfirm',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
dataList: [],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
}
}
}
</script>

View File

@@ -0,0 +1,79 @@
<template>
<section>
<nav-bar title="设备维修执行"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>维修单</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.device_code}}</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>设备编号</th>
<th>设备名称</th>
<th>状态</th>
<th>计划维修日期</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">开始维修</button>
<button class="btn submit-button">填报</button>
<button class="btn submit-button">委外维修</button>
<button class="btn submit-button">结束维修</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
export default {
name: 'EquipRepairExecute',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
dataList: [],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
}
}
}
</script>

View File

@@ -0,0 +1,77 @@
<template>
<section>
<nav-bar title="设备保养确认-生产员"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>保养单</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.device_code}}</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>设备编号</th>
<th>设备名称</th>
<th>状态</th>
<th>计划保养日期</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">通过</button>
<button class="btn submit-button">不通过</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
export default {
name: 'MaintainConfirm',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
dataList: [],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
}
}
}
</script>

View File

@@ -0,0 +1,84 @@
<template>
<section>
<nav-bar :inner="true" title="保养明细"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">保养单</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val2">
</div>
</div>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>是否完成</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td></td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>保养项目名称</th>
<th>保养等级</th>
<th>保养内容</th>
<th>要求</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">确认</button>
<button class="btn submit-button">取消</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
export default {
name: 'MaintainDetails',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
val2: '',
dataList: [],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
}
}
}
</script>

View File

@@ -0,0 +1,78 @@
<template>
<section>
<nav-bar title="设备保养执行-维修工"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>保养单</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.device_code}}</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>设备编号</th>
<th>设备名称</th>
<th>状态</th>
<th>计划保养日期</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">保养开始</button>
<button class="btn submit-button">填报</button>
<button class="btn submit-button">结束保养</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
export default {
name: 'MaintainExecution',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
dataList: [],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
}
}
}
</script>

View File

@@ -0,0 +1,109 @@
<template>
<section>
<nav-bar :inner="true" title="维修结果填报"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">维修单</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val2">
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">生产负责人</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val3">
</div>
</div>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>序号</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id">
<td>
<for-dropdown-menu
:value="e.is"
:id="e.worktask_id"
@getValue="getValue">
</for-dropdown-menu>
</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>是否完成</th>
<th>维修项目编号</th>
<th>维修项目名称</th>
<th>要求</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">确认</button>
<button class="btn submit-button">取消</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import ForDropdownMenu from '@components/ForDropdownMenu.vue'
export default {
name: 'MaintainResultFill',
components: {
NavBar,
SearchBox,
ForDropdownMenu
},
data () {
return {
val1: '',
val2: '',
val3: '',
dataList: [{worktask_id: '1'}, {worktask_id: '2'}],
pkId: '',
pkObj: {},
option: [{value: '1', label: '是'}, {value: '2', label: '否'}],
active: '0',
open: false
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
},
getValue (p) {
this.dataList.map(el => {
if (el.worktask_id === p[0]) {
el.is = p[1]
}
})
}
}
}
</script>

View File

@@ -0,0 +1,104 @@
<template>
<section>
<nav-bar :inner="true" title="保养结果填报"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">保养单</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" placeholder="" v-model="val2">
</div>
</div>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>是否完成</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id">
<td>
<for-dropdown-menu
:value="e.is"
:id="e.worktask_id"
@getValue="getValue">
</for-dropdown-menu>
</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>保养项目名称</th>
<th>保养等级</th>
<th>保养内容</th>
<th>要求</th>
</tr>
<tr v-for="e in dataList" :key="e.worktask_id" @click="toCheck(e)" :class="{'checked': e.worktask_id === pkId}">
<td>{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.pcsn}}</td>
<td>{{e.status_name}}</td>
</tr>
</table>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button">确认</button>
<button class="btn submit-button">取消</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import ForDropdownMenu from '@components/ForDropdownMenu.vue'
export default {
name: 'MaintainResults',
components: {
NavBar,
SearchBox,
ForDropdownMenu
},
data () {
return {
val1: '',
val2: '',
dataList: [{worktask_id: '1', is: '2', pcsn: '00000'}],
pkId: '',
pkObj: {}
}
},
methods: {
handleChange1 (e, type) {
if (type) {
console.log(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.worktask_id ? '' : e.worktask_id
this.pkObj = this.pkId === e.worktask_id ? e : {}
},
getValue (p) {
this.dataList.map(el => {
if (el.worktask_id === p[0]) {
el.is = p[1]
}
})
}
}
}
</script>
<style lang="stylus" scoped>
.mgb140
margin-bottom 1.4rem
</style>