Commit 5cc57b6f authored by hubaoshan's avatar hubaoshan

1

parent a385e2ef
...@@ -494,6 +494,14 @@ export default { ...@@ -494,6 +494,14 @@ export default {
{ {
dictLabel: '出', dictLabel: '出',
dictValue: '2' dictValue: '2'
},
{
dictLabel: '手动入',
dictValue: '3'
},
{
dictLabel: '手动出',
dictValue: '4'
} }
], ],
dateRange: [], dateRange: [],
......
...@@ -187,6 +187,12 @@ ...@@ -187,6 +187,12 @@
:size="commonField.size" :size="commonField.size"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
>删除</el-button> >删除</el-button>
<el-button
:class="commonField.delClass"
:type="commonField.typeParent"
:size="commonField.size"
@click="handleMove(scope.row)"
>移动</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -198,32 +204,24 @@ ...@@ -198,32 +204,24 @@
:limit.sync="queryParams.rows" :limit.sync="queryParams.rows"
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改库存管理配置对话框 --> <!-- 移动库存管理配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="90px"> <el-form ref="form" :model="form" :rules="rules" size="small" label-width="90px">
<el-form-item label="code" prop="orderCode"> <el-form-item label="移动位置">
<el-input v-model.trim="form.orderCode" show-word-limit :maxlength="100" placeholder="请输入code" /> <el-select
</el-form-item> v-model="form.type"
<el-form-item label="lot" prop="lot"> placeholder="请选择位置"
<el-input v-model.trim="form.lot" show-word-limit :maxlength="100" placeholder="请输入lot" /> :maxlength="2"
</el-form-item> size="small"
<el-form-item label="pn" prop="pn"> style="width: 300px"
<el-input v-model.trim="form.pn" show-word-limit :maxlength="100" placeholder="请输入pn" /> >
</el-form-item> <el-option
<el-form-item label="rank" prop="rank"> v-for="(type,index) in typeList"
<el-input v-model.trim="form.rank" show-word-limit :maxlength="100" placeholder="请输入rank" /> :key="index"
</el-form-item> :label="type"
<el-form-item label="qty" prop="qty"> :value="type"
<el-input-number v-model.trim="form.qty" controls-position="right" :min="0" /> />
</el-form-item> </el-select>
<el-form-item label="label_id" prop="labelId">
<el-input v-model.trim="form.labelId" show-word-limit :maxlength="50" placeholder="请输入label_id" />
</el-form-item>
<el-form-item label="状态">
<el-radio-group v-model="form.flag">
<el-radio label="1">启用</el-radio>
<el-radio label="0">停用</el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -244,6 +242,7 @@ import { ...@@ -244,6 +242,7 @@ import {
exportIncomeWmsBox } from '@/api/incomeWmsBox' exportIncomeWmsBox } from '@/api/incomeWmsBox'
import commonField from '@/utils/commonField' import commonField from '@/utils/commonField'
import manufacturer from '@/data/cjlist' import manufacturer from '@/data/cjlist'
import { listIncomeWmsLabel } from '@/api/incomeWmsLabel'
export default { export default {
name: 'IncomeWmsBox', name: 'IncomeWmsBox',
data() { data() {
...@@ -308,13 +307,16 @@ export default { ...@@ -308,13 +307,16 @@ export default {
orderCode: undefined, orderCode: undefined,
labelId: undefined, labelId: undefined,
location: undefined, location: undefined,
mac: undefined,
flag: '' flag: ''
}, },
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
rules: { rules: {
} },
typeList: [],
typelistTemp: []
} }
}, },
computed: { computed: {
...@@ -470,6 +472,20 @@ export default { ...@@ -470,6 +472,20 @@ export default {
}).catch(function() { }).catch(function() {
}) })
}, },
handleMove(row) {
this.reset()
listIncomeWmsLabel().then(response => {
this.typelistTemp = response.rows
this.typeList = []
this.typelistTemp.forEach(item => {
const type = item.mac + ' ' + item.location
this.typeList.push(type)
})
console.log('typeList' + this.typeList)
this.open = true
this.title = '修改库存管理'
})
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
const queryParams = this.queryParams const queryParams = this.queryParams
......
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width" min-width="160px"> <el-table-column label="操作" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-show="scope.row.dealStatus !=='1'" v-show="scope.row.dealStatus !=='1'"
...@@ -1017,7 +1017,7 @@ export default { ...@@ -1017,7 +1017,7 @@ export default {
const id = row.businessId const id = row.businessId
this.warehousedata.qty = '' this.warehousedata.qty = ''
getOutcomeWmsJbapplyTemp(id).then(response => { getOutcomeWmsJbapplyTemp(id).then(response => {
response.data.ptype = response.data.ptype this.ptype = response.data.ptype
this.form = response.data this.form = response.data
this.open = true this.open = true
this.title = '修改检查申请' this.title = '修改检查申请'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment