物料查询
This commit is contained in:
@@ -113,3 +113,32 @@ export const unqualReport = (id, nqty, rqty) => post('api/produceshiftorder/unqu
|
||||
|
||||
// 状态查询
|
||||
export const orderStatus = () => get('api/produceshiftorder/orderStatus', '')
|
||||
|
||||
/**
|
||||
* 半成品入库
|
||||
*/
|
||||
|
||||
// 1.1仓库下拉框
|
||||
export const getBcpStor = () => post('api/pda/bcp/in/getBcpStor', {})
|
||||
// 1.2单据类型下拉框
|
||||
export const getBillType = () => post('api/pda/bcp/in/getBillType', {})
|
||||
// 1.3物料选择页面
|
||||
export const getMaterial = (code) => post('api/pda/bcp/in/getMaterial', {
|
||||
material_code: code
|
||||
})
|
||||
// 1.4入库点下拉框
|
||||
export const getPoint = () => post('api/pda/bcp/in/getPoint', {})
|
||||
// 1.5呼叫空载具(按钮)
|
||||
export const callVehicle = () => post('api/pda/bcp/in/callVehicle', {})
|
||||
// 1.6确认入库(按钮)
|
||||
export const createIn = (from) => post('api/pda/bcp/in/createIn', {
|
||||
from: from
|
||||
})
|
||||
|
||||
/**
|
||||
* 半成品入库管理查询
|
||||
*/
|
||||
// 2.1半成品入库查询
|
||||
export const getAll = () => post('api/pda/bcp/in/getAll', {})
|
||||
// 2.2强制确认(按钮)
|
||||
export const bcpInConfirm = () => post('api/pda/bcp/in/confirm', {})
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
title () {
|
||||
let res = ['半成品入库', '半成品入库查询', '半成品出库', '半成品出库查询', '半成品盘点', '半成品盘点查询', '半成品拼盘', '半成品拼盘查询'][Number(this.$route.meta.guidePath) - 1]
|
||||
let res = ['半成品入库', '半成品入库查询', '半成品出库', '半成品出库查询', '半成品盘点', '半成品盘点查询', '半成品拼盘查询', '物料查询'][Number(this.$route.meta.guidePath) - 1]
|
||||
return res
|
||||
}
|
||||
},
|
||||
|
||||
82
src/pages/modules/semifinished/mater-search.vue
Normal file
82
src/pages/modules/semifinished/mater-search.vue
Normal file
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div class="order-wraper">
|
||||
<div class="search-confirm-wrap">
|
||||
<div class="search-wrap">
|
||||
<!-- <div class="search-item">
|
||||
<div class="search-label">类别</div>
|
||||
<div class="filter_input_wraper">
|
||||
<el-select v-model="value1" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options1"
|
||||
:key="item.stor_id"
|
||||
:label="item.stor_name"
|
||||
:value="item.stor_id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="search-item">
|
||||
<div class="search-label">物料</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input" v-model="val1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item_2 flexend">
|
||||
<button class="button button--primary">快速查询</button>
|
||||
<button class="button button--primary">确定</button>
|
||||
<button class="button button--primary">清除</button>
|
||||
<button class="button button--primary">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_wraper">
|
||||
<table class="filter-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>物料编号</th>
|
||||
<th>物料名称</th>
|
||||
<th>物料类别</th>
|
||||
<th>重量单位</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{ i+1 }}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.class_code}}</td>
|
||||
<td>{{e.unit_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getMaterial} from '@config/getData2.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
options1: [],
|
||||
value1: '',
|
||||
val1: '',
|
||||
dataList: []
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getMaterial()
|
||||
},
|
||||
methods: {
|
||||
// 仓库下拉框
|
||||
async _getMaterial () {
|
||||
let res = await getMaterial(this.val1)
|
||||
this.options1 = [...res.data]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
</style>
|
||||
@@ -8,9 +8,9 @@
|
||||
<el-select v-model="value1" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options1"
|
||||
:key="item.device_code"
|
||||
:label="item.device_name"
|
||||
:value="item.device_code">
|
||||
:key="item.stor_id"
|
||||
:label="item.stor_name"
|
||||
:value="item.stor_id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@@ -21,17 +21,17 @@
|
||||
<el-select v-model="value2" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options2"
|
||||
:key="item.device_code"
|
||||
:label="item.device_name"
|
||||
:value="item.device_code">
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<div class="search-label">物料</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input">
|
||||
<div class="filter_input_wraper pointer" @click="searchMater">
|
||||
<input type="text" class="filter-input" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
@@ -96,6 +96,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getBcpStor, getBillType} from '@config/getData2.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -106,6 +107,25 @@ export default {
|
||||
options3: [],
|
||||
value3: ''
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getBcpStor()
|
||||
this._getBillType()
|
||||
},
|
||||
methods: {
|
||||
// 仓库下拉框
|
||||
async _getBcpStor () {
|
||||
let res = await getBcpStor()
|
||||
this.options1 = [...res.data]
|
||||
},
|
||||
// 单据类型下拉框
|
||||
async _getBillType () {
|
||||
let res = await getBillType()
|
||||
this.options2 = [...res.data]
|
||||
},
|
||||
searchMater () {
|
||||
this.$router.push('/matersearch')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -19,6 +19,7 @@ const semiFinishedOutstoreSearch = r => require.ensure([], () => r(require('@pag
|
||||
const semiFinishedCheck = r => require.ensure([], () => r(require('@page/modules/semifinished/semi-finished-check')), 'semifinished')
|
||||
const semiFinishedCheckSearch = r => require.ensure([], () => r(require('@page/modules/semifinished/semi-finished-check-search')), 'semifinished')
|
||||
const semiFinishedComposeSearch = r => require.ensure([], () => r(require('@page/modules/semifinished/semi-finished-compose-search')), 'semifinished')
|
||||
const materSearch = r => require.ensure([], () => r(require('@page/modules/semifinished/mater-search')), 'semifinished')
|
||||
|
||||
const Homeset = r => require.ensure([], () => r(require('@page/homeset/index')), 'Homeset')
|
||||
const Home = r => require.ensure([], () => r(require('@page/homeset/HomePage')), 'HomePage')
|
||||
@@ -105,6 +106,10 @@ export default new Router({
|
||||
}, {
|
||||
path: '/semifinishedcomposesearch',
|
||||
component: semiFinishedComposeSearch,
|
||||
meta: {guidePath: '7'}
|
||||
}, {
|
||||
path: '/matersearch',
|
||||
component: materSearch,
|
||||
meta: {guidePath: '8'}
|
||||
}]
|
||||
},
|
||||
|
||||
@@ -217,7 +217,7 @@ header
|
||||
border-radius 4px
|
||||
background-color #fff
|
||||
.grid_wraper
|
||||
_wh(100%, calc(100% - 45px))
|
||||
_wh(100%, calc(100% - 55px))
|
||||
border-radius 5px
|
||||
overflow-y auto
|
||||
.filter-table
|
||||
|
||||
@@ -124,6 +124,10 @@ div, input, button {
|
||||
float: right !important;
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mgb40 {
|
||||
margin-bottom: .4rem !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user