二楼生产出库需求修改
This commit is contained in:
@@ -52,9 +52,10 @@
|
||||
],
|
||||
menuList: [
|
||||
{title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '合格证入库', path: '/pages/entry/qualified-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]},
|
||||
{title: '出库管理', path: 'RF02', sonTree: [{title: '空托盘出库', path: '/pages/outbound/tray-out-store'}, {title: '出库确认', path: '/pages/outbound/out-store-confirm'}, {title: '单据出库', path: '/pages/outbound/bill-list'}, {title: '库存出库', path: '/pages/outbound/stock-out-store'}, {title: '二楼生产出库', path: '/pages/outbound/produce-out-store-2nd'}, {title: '二楼取货确认', path: '/pages/outbound/pick-confirm-2nd'}, {title: '二楼货架绑定', path: '/pages/outbound/shelf-bind-2nd'}]},
|
||||
{title: '出库管理', path: 'RF02', sonTree: [{title: '空托盘出库', path: '/pages/outbound/tray-out-store'}, {title: '出库确认', path: '/pages/outbound/out-store-confirm'}, {title: '单据出库', path: '/pages/outbound/bill-list'}, {title: '库存出库', path: '/pages/outbound/stock-out-store'}]},
|
||||
{title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]},
|
||||
{title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]},
|
||||
{title: '产线叫料', path: 'RF10', sonTree: [{title: '二楼生产出库', path: '/pages/outbound/produce-out-store-2nd'}, {title: '二楼取货确认', path: '/pages/outbound/pick-confirm-2nd'}, {title: '二楼货架绑定', path: '/pages/outbound/shelf-bind-2nd'}]},
|
||||
{title: '转运管理', path: 'RF09', sonTree: [{title: '托盘转运', path: '/pages/transfer/tray-transfer'}]}
|
||||
],
|
||||
show: false,
|
||||
|
||||
@@ -11,19 +11,35 @@
|
||||
<view class="zd-col-16">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
@handleChange="handleChange1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">用料清单编号</span>
|
||||
<span class="filter_label">出库单据编号</span>
|
||||
</view>
|
||||
<view class="zd-col-16">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
@handleChange="handleChange2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">可选物料数</span>
|
||||
</view>
|
||||
<view class="zd-col-4">
|
||||
<span class="filter_input">{{selectedNum !== null ? (9 - selectedNum) : null}}</span>
|
||||
</view>
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">已选物料数</span>
|
||||
</view>
|
||||
<view class="zd-col-4">
|
||||
<span class="filter_input">{{selectedNum}}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -33,18 +49,23 @@
|
||||
<th>选择</th>
|
||||
<th class="td_3"><view class="td_3">物料名称</view></th>
|
||||
<th>物料编码</th>
|
||||
<th>物料状态</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th>
|
||||
<th>单据编码</th>
|
||||
<th>批次号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td @tap="toCheck(e)"><uni-icons :type="e.checked ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></td>
|
||||
<td v-show="e.status === '1'" @tap="toCheck(e)"><uni-icons :type="e.checked ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></td>
|
||||
<td v-show="e.status !== '1'"><uni-icons type="smallcircle-filled" size="24" color="#fff"></uni-icons></td>
|
||||
<td class="td_3">{{e.material_name}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_status}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
<td>{{e.unit_name}}</td>
|
||||
<td>{{e.prd_ppbom_no}}</td>
|
||||
<td>{{e.pcsn}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -53,8 +74,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-primary" @tap="_getCtuOrderList">查询</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': checkData.length === 0}" :disabled="disabled" @tap="_ctuOutConfirm">确认</button>
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': checkData.length === 0}" :disabled="disabled" @tap="_ctuOutConfirm">出库物料提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -62,7 +83,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {getCtuOrderList, ctuOutConfirm} from '@/utils/getData2.js'
|
||||
import {queryTargetPoint, getCtuOrderList, ctuOutConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -73,6 +94,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
selectedNum: null, // 已选物料数
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
checkData: []
|
||||
@@ -82,17 +104,45 @@
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
async _getCtuOrderList () {
|
||||
handleChange1 (e) {
|
||||
this._queryTargetPoint(e)
|
||||
},
|
||||
// 产线站点编码验证
|
||||
async _queryTargetPoint (e) {
|
||||
let res = await queryTargetPoint(e)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
this.val1 = res.site_code
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
this.val1 = ''
|
||||
}
|
||||
},
|
||||
handleChange2 (e) {
|
||||
this._getCtuOrderList(e)
|
||||
},
|
||||
async _getCtuOrderList (e) {
|
||||
try {
|
||||
let res = await getCtuOrderList(this.val1, this.val2)
|
||||
let res = await getCtuOrderList(this.val1, e)
|
||||
if (res.code === '200') {
|
||||
this.checkData = []
|
||||
if (res.content.length > 0) {
|
||||
this.dataList = [...res.content]
|
||||
this.dataList.map(el => {
|
||||
this.$set(el, 'checked', false)
|
||||
})
|
||||
for (let i = 0; i < res.content.length; i++) {
|
||||
if (this.selectedNum < 9 && res.content[i].status === '1') {
|
||||
this.$set(res.content[i], 'checked', true)
|
||||
this.selectedNum += 1
|
||||
} else {
|
||||
this.$set(res.content[i], 'checked', false)
|
||||
}
|
||||
}
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
let arr = this.dataList.filter(el => el.checked === true)
|
||||
this.checkData = arr
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -104,18 +154,26 @@
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
e.checked = !e.checked
|
||||
let arr = this.dataList.filter(el => el.checked === true)
|
||||
if (arr.length > 9) {
|
||||
uni.showToast({
|
||||
title: '最多只能选择9个物料',
|
||||
icon: 'none'
|
||||
})
|
||||
if (!e.checked && this.selectedNum >= 9) {
|
||||
return
|
||||
} else if (!e.checked && this.selectedNum < 9) {
|
||||
e.checked = true
|
||||
this.selectedNum++
|
||||
} else if (e.checked) {
|
||||
e.checked = false
|
||||
arr = this.dataList.filter(el => el.checked === true)
|
||||
this.selectedNum--
|
||||
}
|
||||
let arr = this.dataList.filter(el => el.checked === true)
|
||||
this.checkData = arr
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.selectedNum = null
|
||||
this.dataList = []
|
||||
this.disabled = false
|
||||
this.checkData = []
|
||||
},
|
||||
async _ctuOutConfirm () {
|
||||
this.disabled = true
|
||||
if (this.checkData.length === 0) {
|
||||
@@ -125,7 +183,7 @@
|
||||
try {
|
||||
let res = await ctuOutConfirm(this.val1, this.val2, this.checkData)
|
||||
if (res.code === '200') {
|
||||
this._getCtuOrderList()
|
||||
this.clearUp()
|
||||
}
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
|
||||
BIN
static/image/menu/RF10.png
Normal file
BIN
static/image/menu/RF10.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -223,6 +223,10 @@ export const outStorageMaterConfirm = (obj) => request({
|
||||
/**
|
||||
* 二楼生产出库
|
||||
*/
|
||||
export const queryTargetPoint = (scode) => request({
|
||||
url:'api/pdaPalletIostorinv/queryTargetPoint',
|
||||
data: {site_code: scode}
|
||||
})
|
||||
export const getCtuOrderList = (scode, bcode) => request({
|
||||
url:'api/pda/outStorage/getCtuOrderList?site_code=' + scode + '&bill_code=' + bcode,
|
||||
method: 'GET'
|
||||
|
||||
@@ -240,7 +240,7 @@ export const structattrPage = () => {
|
||||
export const getCtuOrderList = () => {
|
||||
let res = {
|
||||
"code": "200",
|
||||
content: [{material_name: '1'}, {material_name: '2'}, {material_name: '3'}, {material_name: '4'}, {material_name: '5'}, {material_name: '6'}, {material_name: '7'}, {material_name: '8'}, {material_name: '9'}, {material_name: '10'}, {material_name: '11'}, {material_name: '12'}]
|
||||
content: [{material_name: '1', status: '1'}, {material_name: '2', status: '1'}, {material_name: '3', status: '1'}, {material_name: '4', status: '1'}, {material_name: '5', status: '1'}, {material_name: '6', status: '1'}, {material_name: '7', status: '1'}, {material_name: '8', status: '1'}, {material_name: '9', status: '0'}, {material_name: '10', status: '1'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
@@ -254,4 +254,12 @@ export const ctuOutConfirm = () => {
|
||||
export const getPointStatus = () => {
|
||||
let res = {code: 'a', name: 'ldjlfjl', lock_type: '0'}
|
||||
return res
|
||||
}
|
||||
export const queryTargetPoint = () => {
|
||||
let res = {
|
||||
code: '200',
|
||||
site_code: 'a102',
|
||||
msg: '查询成功!'
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user