Commit 2eef2d06 by huangqy

提交四巷库

parent 855ef303
......@@ -4,7 +4,7 @@
<!-- <el-table-column min-width="60" prop="storeId" label="储存区域" align="center" />-->
<el-table-column min-width="60" prop="positionCode" label="货位代码" align="center" />
<el-table-column min-width="60" prop="palletId" label="托盘号" align="center" />
<el-table-column prop="billName" label="凭证号" align="center" />
<el-table-column prop="billName" label="凭证号" align="center" :show-overflow-tooltip="true"/>
<!-- <el-table-column prop="billNo" label="出库单号" align="center" />-->
<el-table-column prop="fwOrgName" label="发物单位" align="center" />
<el-table-column prop="prodDate" label="生产日期" align="center">
......
......@@ -64,6 +64,17 @@
<el-tag v-else size="mini" type="success">通用</el-tag>
</template>
</el-table-column>
<el-table-column label="出库开关" align="center">
<template slot-scope="scope">
<el-switch
v-model="scope.row.outSwitch"
active-color="#409EFF"
inactive-color="#F56C6C"
:active-value="1"
:inactive-value="2"
@change="changeEnabled(scope.row, scope.row.outSwitch)"/>
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" align="center" />
<el-table-column label="操作" width="220" align="center">
<template slot-scope="scope">
......@@ -260,6 +271,22 @@ export default {
this.total = res.data.totalRows - 0
this.stationData = res.data.records
},
async changeEnabled(data, val) {
const _this = this
const url = '/station/updateOutSwitch'
const params = {
id: data.id,
outSwitch: val
}
const { data: res } = await this.$axios.post(url, params)
if (res.code !== 99200) {
if(data.outSwitch === 1) {data.outSwitch = 2}
if(data.outSwitch === 2) {data.outSwitch = 1}
return this.$message.error(res.message)
}
this.$message.success(res.message)
this.getStationData()
},
// 重置
resClick () {
......
......@@ -4,7 +4,7 @@
<el-header class="ltk-header">
<div class="logo" @click="goHome()">
<img src="../assets/logo.png" alt="logo" />
<span>智能库房作业系统</span>
<span>智能自动化库房作业管理信息系统</span>
</div>
<div class="time_box" @click="cut">
<bo-time></bo-time>
......
<template>
<template>
......@@ -4,7 +4,7 @@
<el-header class="ltk-header">
<div class="logo" @click="goHome()">
<img src="../assets/logo.png" alt="logo" />
<span>智能库房作业系统</span>
<span>智能自动化库房作业管理信息系统</span>
</div>
<div class="time_box" @click="cut">
<bo-time></bo-time>
......
<template>
<div class="login_container" @keyup.enter="loginClick()">
<dv-border-box-12 :color="['#fff','#fff']" style="width: 450px;height: 320px;display: block;float: right;margin-right: 35%;margin-top: 24%">
<dv-border-box-12 :color="['#fff','#fff']" style="width: 450px;height: 320px;display: block;float: right;margin-right: 36%;margin-top: 24%">
<span style="font-size: 26px;color:#fff;padding:0px 172px;display:inline-block;margin-top: 20px">用户登录</span>
<el-form
class="login_form"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论