大改
This commit is contained in:
@@ -54,10 +54,10 @@
|
||||
<tr v-for="e in dataList" :key="e.task_id" :class="{'selected_icon': pkId === e.task_id}" @click="toRadio(e)">
|
||||
<td>{{ e.sep_on }}</td>
|
||||
<td>{{ e.create_time }}</td>
|
||||
<td>{{e.task_id}}</td>
|
||||
<td>{{e.task_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td>{{e.material_qty | numeric(3)}}</td>
|
||||
<td>{{e.material_qty | unitskg}}</td>
|
||||
<td>{{ e.material_name }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -109,6 +109,7 @@ export default {
|
||||
let res = await dictAll()
|
||||
if (res.code === 200) {
|
||||
this.options1 = [...res.content]
|
||||
this.value1 = this.options1[0].value
|
||||
}
|
||||
},
|
||||
// grid
|
||||
@@ -163,7 +164,7 @@ export default {
|
||||
},
|
||||
async __washWashFinish () {
|
||||
try {
|
||||
let res = await washWashFinish(this.pkId)
|
||||
let res = await washWashFinish(this.pkId, this.weight, this.vechile_code)
|
||||
if (res.code === 200) {
|
||||
this.toast(res.msg)
|
||||
this._washWashTasks()
|
||||
@@ -263,5 +264,5 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
</style>
|
||||
|
||||
@@ -43,9 +43,10 @@
|
||||
<th>设备号</th>
|
||||
<th>物料编号</th>
|
||||
<th>物料规格</th>
|
||||
<th>重量(g)</th>
|
||||
<th>重量(kg)</th>
|
||||
<th>数量</th>
|
||||
<th>存在任务</th>
|
||||
<th>更新时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -56,9 +57,10 @@
|
||||
<td>{{ e.device_code }}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td>{{e.deviceinstor_weight | numeric(3)}}</td>
|
||||
<td>{{e.deviceinstor_weight | unitskg}}</td>
|
||||
<td>{{ e.deviceinstor_qty | numeric(3) }}</td>
|
||||
<td>{{ e.task_code }}</td>
|
||||
<td>{{ e.update_time }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -91,6 +93,7 @@ export default {
|
||||
let res = await dictAll()
|
||||
if (res.code === 200) {
|
||||
this.options1 = [...res.content]
|
||||
this.value1 = this.options1[0].value
|
||||
}
|
||||
},
|
||||
// 规格下拉框
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="main-container" :style="$route.meta.guidePath !== '4' ? 'height: calc(100% - 44px)' : 'height: 100%'">
|
||||
<div class="main-container" :style="$route.meta.guidePath !== '4' ? 'height: calc(100% - 34px)' : 'height: 100%'">
|
||||
<keep-alive :include="keepAlive" >
|
||||
<router-view/>
|
||||
</keep-alive>
|
||||
@@ -82,7 +82,6 @@ export default {
|
||||
border 1px solid #484cce
|
||||
.tabs_wrap
|
||||
height 34px
|
||||
margin-bottom 10px
|
||||
.tabs
|
||||
height 34px
|
||||
li
|
||||
|
||||
@@ -88,7 +88,6 @@ export default {
|
||||
next()
|
||||
},
|
||||
activated () {
|
||||
console.log(this.$store.getters.materObj, 666)
|
||||
if (this.$store.getters.materObj !== '') {
|
||||
this.material_spec = JSON.parse(this.$store.getters.materObj).material_spec
|
||||
this.material_code = JSON.parse(this.$store.getters.materObj).material_code
|
||||
@@ -142,6 +141,7 @@ export default {
|
||||
try {
|
||||
let res = await washweighing(list)
|
||||
if (res.code === 200) {
|
||||
this.toast(res.msg)
|
||||
this.deviceinstor_weight = res.content[0].deviceinstor_weight
|
||||
}
|
||||
this.disabled1 = false
|
||||
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -220,7 +220,7 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -153,7 +153,7 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await kzresidue(this.value2)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
this.value2 = ''
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await kzunload(this.qty, this.value2)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
this.value2 = ''
|
||||
|
||||
@@ -88,7 +88,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await pourdeviceinstorQty(this.qty, this.value2)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
this.value2 = ''
|
||||
@@ -106,7 +106,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await letterCallVechile(this.value2)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
this.value2 = ''
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await pourdeviceinstorQty(this.qty, this.value2)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
this.value2 = ''
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await tmpcallVechile('', '')
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await tmpsendVechile('')
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled2 = false
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
|
||||
@@ -255,7 +255,7 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.zd_wrapper
|
||||
height calc(100% - 135px)
|
||||
height calc(100% - 1.6rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -180,5 +180,5 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
</style>
|
||||
|
||||
@@ -182,5 +182,5 @@ export default {
|
||||
.search-label_1
|
||||
width 45px
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
</style>
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
.search-item_2
|
||||
width 66%
|
||||
.grid_wraper
|
||||
height calc(100% - 135px)
|
||||
height calc(100% - 1.6rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await callVehicle()
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
@@ -203,7 +203,7 @@ export default {
|
||||
remark: this.remark
|
||||
}
|
||||
let res = await createIn(from)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.value2 = ''
|
||||
this.value3 = ''
|
||||
@@ -235,6 +235,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin.styl'
|
||||
.search-item
|
||||
width 49%
|
||||
&:nth-child(3n+2)
|
||||
@@ -246,9 +247,12 @@ export default {
|
||||
width 100%
|
||||
margin-left 0
|
||||
.filter_button
|
||||
width 96px
|
||||
height 30px
|
||||
width 1.06rem
|
||||
height .4rem
|
||||
_fj(center)
|
||||
.button
|
||||
display block
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 156px)
|
||||
padding-right 10px
|
||||
width calc(100% - 1.76rem)
|
||||
padding-right .1rem
|
||||
</style>
|
||||
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
width 42%
|
||||
.filter_radius
|
||||
_fj()
|
||||
margin-right 15px
|
||||
margin-right 7px
|
||||
.filter_radius_label
|
||||
margin-left 5px
|
||||
_font(12px, 30px, #fff,,)
|
||||
|
||||
@@ -173,7 +173,7 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 95px)
|
||||
height calc(100% - 1.1rem)
|
||||
.filter_input_wraper_1
|
||||
width calc(100% - 45px)
|
||||
.search-label_1
|
||||
|
||||
@@ -165,7 +165,7 @@ export default {
|
||||
this.$set(from, 'remark', this.remark)
|
||||
try {
|
||||
let res = await outcreateIn(from)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.value1 = ''
|
||||
this.value2 = ''
|
||||
this.value3 = ''
|
||||
|
||||
@@ -247,7 +247,6 @@ export default {
|
||||
border 1px solid #484cce
|
||||
.tabs_wrap
|
||||
height 34px
|
||||
margin-bottom 10px
|
||||
.tabs
|
||||
height 34px
|
||||
li
|
||||
@@ -267,7 +266,7 @@ export default {
|
||||
border-top-left-radius 12px
|
||||
border-top-right-radius 12px
|
||||
.main-container
|
||||
_wh(100%, calc(100% - 44px))
|
||||
_wh(100%, calc(100% - 34px))
|
||||
.drop-button-wraper
|
||||
.dropdown-list
|
||||
padding 0 10px
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await openStart(this.pkId, this.value)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
@@ -200,7 +200,7 @@ export default {
|
||||
}
|
||||
try {
|
||||
let res = await saveReport(this.pkId, this.reportQty)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled2 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
@@ -240,7 +240,7 @@ export default {
|
||||
this.disabled3 = true
|
||||
try {
|
||||
let res = await tofinish(this.pkObj)
|
||||
this.toast(res.message)
|
||||
this.toast(res.msg)
|
||||
this.disabled3 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="order-wraper">
|
||||
<div class="wrap-filter-buttons">
|
||||
<div class="wrap-filters">
|
||||
<div class="filter_item">
|
||||
<div class="filter_label">工单日期</div>
|
||||
<div class="filter-input-wrap">
|
||||
<div class="search-confirm-wrap">
|
||||
<div class="search-wrap">
|
||||
<div class="search-item_2">
|
||||
<div class="search-label">工单日期</div>
|
||||
<div class="filter_input_wraper">
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="daterange"
|
||||
@@ -14,9 +14,9 @@
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_item">
|
||||
<div class="filter_label filter_label_z2">设备</div>
|
||||
<div class="filter-input-wrap filter-input-wrap_z2">
|
||||
<div class="search-item">
|
||||
<div class="search-label">设备</div>
|
||||
<div class="filter_input_wraper">
|
||||
<el-select v-model="value" filterable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@@ -27,17 +27,17 @@
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_item">
|
||||
<div class="filter_label filter_label_z3">关键字</div>
|
||||
<div class="filter-input-wrap filter-input-wrap_z3">
|
||||
<div class="search-item">
|
||||
<div class="search-label">关键字</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input filter-input_1" v-model="keyValue" placeholder="工单号、物料编码">
|
||||
<i v-show="closeIcon1" class="iconfont close_icon" @click="clearData(1)"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap-buttons">
|
||||
<button class="button button--primary" @click="getDatas">查询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled1" @click="showDialog">残次品报工</button>
|
||||
<div class="search-item_2">
|
||||
<button class="button button--primary" @click="getDatas">查询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled1" @click="showDialog">残次品报工</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_wraper">
|
||||
@@ -259,4 +259,15 @@ export default {
|
||||
line-height 20px
|
||||
top 5px
|
||||
right 10px
|
||||
.search-item_2
|
||||
margin-left 0
|
||||
&:nth-child(4)
|
||||
margin-left 2%
|
||||
margin-right 0
|
||||
.search-item
|
||||
&:nth-child(2)
|
||||
margin-left 2%
|
||||
margin-right 0
|
||||
.grid_wraper
|
||||
height calc(100% - 1.1rem)
|
||||
</style>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="order-wraper">
|
||||
<div class="wrap-filter-buttons">
|
||||
<div class="wrap-filters">
|
||||
<div class="filter_item">
|
||||
<div class="filter_label">工单日期</div>
|
||||
<div class="filter-input-wrap">
|
||||
<div class="search-confirm-wrap">
|
||||
<div class="search-wrap">
|
||||
<div class="search-item_2">
|
||||
<div class="search-label">工单日期</div>
|
||||
<div class="filter_input_wraper">
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="daterange"
|
||||
@@ -14,9 +14,9 @@
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_item">
|
||||
<div class="filter_label filter_label_z2">设备</div>
|
||||
<div class="filter-input-wrap filter-input-wrap_z2">
|
||||
<div class="search-item">
|
||||
<div class="search-label">设备</div>
|
||||
<div class="filter_input_wraper">
|
||||
<el-select v-model="value" filterable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@@ -27,18 +27,18 @@
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_item">
|
||||
<div class="filter_label filter_label_z3">工单号</div>
|
||||
<div class="filter-input-wrap filter-input-wrap_z3">
|
||||
<div class="search-item">
|
||||
<div class="search-label">工单号</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input filter-input_1" v-model="workorder">
|
||||
<i v-show="closeIcon1" class="iconfont close_icon" @click="clearData(1)"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap-buttons">
|
||||
<button class="button button--primary" @click="getDatas">查询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled1" @click="showDialog">修改</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled2" @click="_deleteReport">删除</button>
|
||||
<div class="search-item_2">
|
||||
<button class="button button--primary" @click="getDatas">查询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled1" @click="showDialog">修改</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" :disabled="disabled2" @click="_deleteReport">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_wraper">
|
||||
@@ -241,10 +241,22 @@ export default {
|
||||
height 20px
|
||||
font-size 15px
|
||||
line-height 20px
|
||||
top 5px
|
||||
top 50%
|
||||
transform translateY(-50%)
|
||||
right 10px
|
||||
.filter_label_z3
|
||||
width 43px
|
||||
.filter-input-wrap_z3
|
||||
width calc(100% - 43px)
|
||||
.search-item_2
|
||||
margin-left 0
|
||||
&:nth-child(4)
|
||||
margin-left 2%
|
||||
margin-right 0
|
||||
.search-item
|
||||
&:nth-child(2)
|
||||
margin-left 2%
|
||||
margin-right 0
|
||||
.grid_wraper
|
||||
height calc(100% - 1.1rem)
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user