xuniqu
This commit is contained in:
@@ -239,6 +239,9 @@
|
||||
"grid.sap-batch": "SAP Batch",
|
||||
"grid.product-spec": "Product Specification (Width)",
|
||||
"grid.wooden-box-weight": "Wooden Box Weight",
|
||||
"grid.source-code": "Source tracking number",
|
||||
"grid.date": "Date",
|
||||
"grid.personnel": "Personnel",
|
||||
"toast.point-not-empty": "Point position cannot be empty",
|
||||
"toast.select-cache-point": "Please select a cache point position",
|
||||
"toast.select-device": "Please select a device",
|
||||
|
||||
@@ -239,6 +239,9 @@
|
||||
"grid.sap-batch": "Batch SAP",
|
||||
"grid.product-spec": "Spesifikasi Produk (Lebar)",
|
||||
"grid.wooden-box-weight": "Berat Kotak Kayu",
|
||||
"grid.source-code": "Nomor sumber",
|
||||
"grid.date": "Tanggal",
|
||||
"grid.personnel": "Staf",
|
||||
"toast.point-not-empty": "Posisi titik tidak boleh kosong",
|
||||
"toast.select-cache-point": "Silakan pilih posisi titik cache",
|
||||
"toast.select-device": "Silakan pilih peralatan",
|
||||
|
||||
@@ -239,6 +239,9 @@
|
||||
"grid.sap-batch": "sap批次",
|
||||
"grid.product-spec": "产品规格(幅宽)",
|
||||
"grid.wooden-box-weight": "木箱重量",
|
||||
"grid.source-code": "源单号",
|
||||
"grid.date": "日期",
|
||||
"grid.personnel": "人员",
|
||||
"toast.point-not-empty": "点位不能为空",
|
||||
"toast.select-cache-point": "请选择缓存点位",
|
||||
"toast.select-device": "请选择设备",
|
||||
|
||||
@@ -47,6 +47,14 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/XuniDelivery",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/DeliveryUnbindConfirm",
|
||||
|
||||
129
pages/SecondPhase/XuniDelivery.vue
Normal file
129
pages/SecondPhase/XuniDelivery.vue
Normal file
@@ -0,0 +1,129 @@
|
||||
<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="handleChange1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">{{$t('grid.bill-code')}}</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val2" @handleChange="handleChange2"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">{{$t('grid.bill-type')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{$t('grid.bill-code')}}</th>
|
||||
<th>{{$t('grid.bill-type')}}</th>
|
||||
<th>{{$t('grid.source-code')}}</th>
|
||||
<th>{{$t('grid.date')}}</th>
|
||||
<th>{{$t('grid.personnel')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.bill_code === pkId, 'bgyellow': e.colro_flag === '1'}">
|
||||
<td>{{e.bill_code}}</td>
|
||||
<td>{{e.bill_type_name}}</td>
|
||||
<td>{{e.source_bill_code}}</td>
|
||||
<td>{{e.biz_date}}</td>
|
||||
<td>{{e.person_name}}</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': !pkId}" :disabled="disabled1" @tap="toSure">{{$t('button.confirm')}}</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap="_virtualbillQuery(val1, val2)">{{$t('button.search')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {virtualbillQuery, virtualbillType} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
options: [],
|
||||
index: '',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._virtualbillQuery(this.val1, this.val2)
|
||||
this._virtualbillType()
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.scanChild.handleFocus()
|
||||
},
|
||||
methods: {
|
||||
handleChange1 (e) {
|
||||
this._virtualbillQuery(e, this.val2)
|
||||
},
|
||||
handleChange2 (e) {
|
||||
this._virtualbillQuery(this.val1, e)
|
||||
},
|
||||
/** 选择器 */
|
||||
selectChange(e) {
|
||||
this.index = e
|
||||
},
|
||||
/** 下拉框查询 */
|
||||
async _virtualbillType () {
|
||||
let res = await virtualbillType()
|
||||
this.options = [...res.data]
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _virtualbillQuery (val1, val2) {
|
||||
let res = await virtualbillQuery(val1, val2, this.index)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
toSure () {
|
||||
if (this.pkId) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/WarehouseManage/XuniDeliveryConfirm?billcode=' + this.pkObj.bill_code + '&title=' + this.title
|
||||
})
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.bill_code ? '' : e.bill_code
|
||||
this.pkObj = this.pkId === e.bill_code ? e : {}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -12,7 +12,8 @@ export const allAuthority = () => {
|
||||
{menu_id: '1', title: '空木箱入库', path: '/pages/SecondPhase/EmptyBoxInStore'}
|
||||
]},
|
||||
{menu_id: '3', path: 'RF12', title: '发货区', sonTree: [
|
||||
{menu_id: '1', title: '发货区解绑', path: '/pages/SecondPhase/DeliveryUnbind'}
|
||||
{menu_id: '1', title: '发货区解绑', path: '/pages/SecondPhase/DeliveryUnbind'},
|
||||
{menu_id: '2', title: '虚拟区发货', path: '/pages/SecondPhase/XuniDelivery'}
|
||||
]},
|
||||
{menu_id: '4', path: 'RF01', title: '生产管理', sonTree: [
|
||||
{menu_id: '1', title: '生箔生产进度', path: '/pages/SecondPhase/production/SboProdProgress'},
|
||||
|
||||
Reference in New Issue
Block a user