.vue
This commit is contained in:
@@ -392,6 +392,14 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/CustomerLabelPrint",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/production/MjMake",
|
||||
|
||||
121
pages/SecondPhase/CustomerLabelPrint.vue
Normal file
121
pages/SecondPhase/CustomerLabelPrint.vue
Normal file
@@ -0,0 +1,121 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- <nav-bar title="客户标签打印"></nav-bar> -->
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">{{$t('filter.woodenbox')}}</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
ref="scanChild"
|
||||
v-model="val1"
|
||||
@handleChange="handleChange"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{$t('grid.woodenboxcode')}}</th>
|
||||
<th>{{$t('grid.volume-number')}}</th>
|
||||
<th>{{$t('grid.gross-weight-of-wooden-box')}}</th>
|
||||
<th>{{$t('grid.sales-order-and-line-number')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.specifications')}}</th>
|
||||
<th>{{$t('grid.sub-roll-number')}}</th>
|
||||
<th>{{$t('grid.net-weight')}}</th>
|
||||
<th>{{$t('grid.warehousing-date')}}</th>
|
||||
<th>{{$t('grid.date-of-manufacture')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{e.package_box_sn}}</td>
|
||||
<td>{{e.quanlity_in_box}}</td>
|
||||
<td>{{e.box_weight}}</td>
|
||||
<td>{{e.sale_order_name}}</td>
|
||||
<td>{{e.product_name}}</td>
|
||||
<td>{{e.product_description}}</td>
|
||||
<td>{{e.width}}</td>
|
||||
<td>{{e.container_name}}</td>
|
||||
<td>{{e.net_weight}}</td>
|
||||
<td>{{e.date_of_FG_inbound}}</td>
|
||||
<td>{{e.date_of_production}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !val1}" :disabled="disabled2" @tap="_customerPrint">{{$t('button.print')}}</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap="_customerInfo(val1)">{{$t('button.search')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {customerInfo, customerPrint} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
dataList: [],
|
||||
disabled2: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.scanChild.handleFocus()
|
||||
},
|
||||
methods: {
|
||||
handleChange (e) {
|
||||
this._customerInfo(e)
|
||||
},
|
||||
/** 查询 */
|
||||
async _customerInfo (e) {
|
||||
if (!this.val1) {
|
||||
return
|
||||
}
|
||||
let res = await customerInfo(e)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
/** 打印 */
|
||||
async _customerPrint () {
|
||||
this.disabled2 = true
|
||||
if (!this.val1) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await customerPrint(this.val1, this.$store.getters.setPrintName)
|
||||
this.disabled2 = false
|
||||
this.val1 = ''
|
||||
this.dataList = []
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -295,26 +295,14 @@
|
||||
this.disabled1 = true
|
||||
if (!this.val3) {
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: '起点不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.val4) {
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: '母卷号不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.val5) {
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: '终点不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
try {
|
||||
@@ -337,10 +325,6 @@
|
||||
},
|
||||
async handleConfirm(type) {
|
||||
if (!this.val1) {
|
||||
uni.showToast({
|
||||
title: '点位不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
|
||||
|
||||
@@ -69,8 +69,8 @@
|
||||
},
|
||||
methods: {
|
||||
async _authority () {
|
||||
// let res = await authority()
|
||||
let res = await allAuthority()
|
||||
let res = await authority()
|
||||
// let res = await allAuthority()
|
||||
if (res.code === '1') {
|
||||
this.menuList = [...res.result.rf_menu1.sonTree]
|
||||
} else {
|
||||
|
||||
@@ -57,7 +57,8 @@ export const allAuthority = () => {
|
||||
{menu_id: '1', title: '子卷包装解绑', path: '/pages/SecondPhase/SubRollPackUnbind'},
|
||||
{menu_id: '1', title: '装箱口木箱回库', path: '/pages/SecondPhase/BoxReturn'},
|
||||
{menu_id: '1', title: '人工点维护', path: '/pages/SecondPhase/ManMaintain'},
|
||||
{menu_id: '1', title: '包装关系维护', path: '/pages/SecondPhase/PackRelation'}
|
||||
{menu_id: '1', title: '包装关系维护', path: '/pages/SecondPhase/PackRelation'},
|
||||
{menu_id: '1', title: '客户标签打印', path: '/pages/SecondPhase/CustomerLabelPrint'}
|
||||
]},
|
||||
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
|
||||
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
|
||||
|
||||
Reference in New Issue
Block a user