no message

main
HUOJIN\92525 2024-04-16 17:51:19 +08:00
parent efa169f606
commit cb49faaefd
19 changed files with 119 additions and 99 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -115,3 +115,11 @@
.el-tabs{ .el-tabs{
margin-bottom: 25px; margin-bottom: 25px;
} }
/* 全局修改el-table 表头和内容颜色 header color content color */
.el-table th {
font-size: 14px;
background: #f5f7fa !important;
color: #606266;
}

View File

@ -157,11 +157,11 @@ export default {
this.ContainerIn.containerCode = data.code this.ContainerIn.containerCode = data.code
this.ContainerIn.position = data.point.code this.ContainerIn.position = data.point.code
stockUrl.containerOut(this.ContainerIn).then(res => { stockUrl.containerOut(this.ContainerIn).then(res => {
if (res.status == 200) { if (res.code == 200) {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.crud.toQuery() this.crud.toQuery()
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}) })
}, },

View File

@ -4,12 +4,20 @@ import Cookies from 'js-cookie'
import 'normalize.css/normalize.css' import 'normalize.css/normalize.css'
import Element from 'element-ui' import Element, { Table, TableColumn } from 'element-ui'
const TableProps = Element.Table.props
const TableColumnProps = Element.TableColumn.props
TableProps.border = { type: Boolean, default: true } // 边框
TableProps.align = { type: String, default: 'center' } // 居中
TableProps.stripe = { type: Boolean, default: true } // 斑马纹
TableColumnProps.showOverflowTooltip = { type: Boolean, default: true } // 文本溢出
// TableColumnProps.sortable = { type: Boolean, default: true } // 置默认的排序列和排序顺序
Vue.use(Table)
Vue.use(TableColumn)
// 数据字典 // 数据字典
import dict from './components/Dict' import dict from './components/Dict'
import dataV from '@jiaminghi/data-view'
// 权限指令 // 权限指令
import checkPer from '@/utils/permission' import checkPer from '@/utils/permission'
import permission from './components/Permission' import permission from './components/Permission'
@ -28,7 +36,6 @@ import './router/index' // permission control
Vue.use(checkPer) Vue.use(checkPer)
Vue.use(permission) Vue.use(permission)
Vue.use(dict) Vue.use(dict)
Vue.use(dataV)
Vue.use(Element, { Vue.use(Element, {
size: Cookies.get('size') || 'small' // set element-ui default size size: Cookies.get('size') || 'small' // set element-ui default size
}) })

View File

@ -74,7 +74,7 @@ export default {
this.toQuery() this.toQuery()
this.$parent.crud.notify('绑定成功!', CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify('绑定成功!', CRUD.NOTIFICATION_TYPE.SUCCESS);
}).catch(() => { }).catch(() => {
this.$parent.crud.notify('绑定失败!', CRUD.NOTIFICATION_TYPE.ERROR);
}) })
} else { } else {
return false; return false;

View File

@ -371,15 +371,13 @@ export default {
callBox(data) { callBox(data) {
this.CallBox.id=data.id this.CallBox.id=data.id
crudBox.callBox(this.CallBox).then(res => { crudBox.callBox(this.CallBox).then(res => {
if(res.status==200){ if(res.code){
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.shuaxinContainerList() this.$parent.shuaxinContainerList()
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
}else{ }else{
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => {
this.crud.notify("呼叫失败", CRUD.NOTIFICATION_TYPE.ERROR);
}) })
}, },
// //

View File

@ -300,15 +300,13 @@ export default {
callBox(data) { callBox(data) {
this.CallBox.id = data.id this.CallBox.id = data.id
crudBox.callBox(this.CallBox).then(res => { crudBox.callBox(this.CallBox).then(res => {
if (res.status == 200) { if (res.code == 200) {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.shuaxinContainerList() this.$parent.shuaxinContainerList()
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => {
}) })
} }
} }

View File

@ -75,16 +75,14 @@ export default {
this.FullStockIn.itemCode = this.form.itemCode this.FullStockIn.itemCode = this.form.itemCode
this.FullStockIn.agvScene="ZC" this.FullStockIn.agvScene="ZC"
pointUrl.fullStockIn(this.FullStockIn).then(res => { pointUrl.fullStockIn(this.FullStockIn).then(res => {
if(res.status==200){ if(res.code=200){
this.dialogVisible = false this.dialogVisible = false
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.shuaxinContainerList() this.$parent.shuaxinContainerList()
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
}else{ }else{
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => {
}) })
} else { } else {
return false; return false;

View File

@ -65,16 +65,14 @@ export default {
this.FullStockOut.itemCode = this.form.itemCode this.FullStockOut.itemCode = this.form.itemCode
this.FullStockOut.agvScene="ZC" this.FullStockOut.agvScene="ZC"
pointUrl.fullStockOut(this.FullStockOut).then(res => { pointUrl.fullStockOut(this.FullStockOut).then(res => {
if(res.status==200){ if(res.code){
this.dialogVisible = false this.dialogVisible = false
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.shuaxinContainerList() this.$parent.shuaxinContainerList()
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
}else{ }else{
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => {
}) })
} else { } else {
return false; return false;

View File

@ -152,21 +152,19 @@ export default {
this.multiadjust.enabled=this.form.enabled this.multiadjust.enabled=this.form.enabled
crudPoint.multiAdjust(this.multiadjust).then(res => { crudPoint.multiAdjust(this.multiadjust).then(res => {
if(res.status==200){ if(res.code=200){
this.dialog = false this.dialog = false
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.crud.toQuery(); this.$parent.crud.toQuery();
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
this.form.description='' this.form.description=''
this.form.areaId='' this.form.areaId=''
}else{ }else{
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
this.form.description='' this.form.description=''
this.form.areaId='' this.form.areaId=''
} }
}).catch(() => {
}) })
} else { } else {
return false; return false;

View File

@ -70,16 +70,14 @@ export default {
this.ContainerIn.position = this.form.position this.ContainerIn.position = this.form.position
this.ContainerIn.itemCode=this.form.itemCode this.ContainerIn.itemCode=this.form.itemCode
stockUrl.containerIn(this.ContainerIn).then(res => { stockUrl.containerIn(this.ContainerIn).then(res => {
if(res.status==200){ if(res.code=200){
this.dialogVisible = false this.dialogVisible = false
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.crud.toQuery(); this.$parent.crud.toQuery();
this.$refs['form'].resetFields(); this.$refs['form'].resetFields();
}else{ }else{
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => {
}) })
} else { } else {
return false; return false;

View File

@ -103,12 +103,12 @@ export default {
stockCode: this.form.stockCode stockCode: this.form.stockCode
} }
stockUrl.lineReturn(LineReturn).then(res => { stockUrl.lineReturn(LineReturn).then(res => {
if (res.status = 200) { if ( res.code == 200) {
this.returnContainerCancel(formName); this.returnContainerCancel(formName);
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.crud.toQuery(); this.$parent.crud.toQuery();
} else { } else {
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}) })
} }

View File

@ -619,12 +619,12 @@ export default {
return return
} }
doBindStock(this.BindStock).then(res => { doBindStock(this.BindStock).then(res => {
if (res.status = 200) { if ( res.code === 200) {
this.manliao = false;// this.manliao = false;//
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.crud.toQuery(); this.crud.toQuery();
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}) })
}) })

View File

@ -52,7 +52,6 @@
<el-radio-button label="全部"> 全部</el-radio-button> <el-radio-button label="全部"> 全部</el-radio-button>
<el-radio-button label="待执行">待执行</el-radio-button> <el-radio-button label="待执行">待执行</el-radio-button>
<el-radio-button label="执行中">执行中</el-radio-button> <el-radio-button label="执行中">执行中</el-radio-button>
<el-radio-button label="顶升">顶升</el-radio-button>
<el-radio-button label="已完成">已完成</el-radio-button> <el-radio-button label="已完成">已完成</el-radio-button>
<el-radio-button label="任务取消">任务取消</el-radio-button> <el-radio-button label="任务取消">任务取消</el-radio-button>
</el-radio-group> </el-radio-group>
@ -147,9 +146,9 @@
<el-table-column <el-table-column
fixed="right" fixed="right"
label="操作" label="操作"
width="200"> width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="warning" :disabled="scope.row.status!='ATCALL' && scope.row.status!='OPEN' " <el-button type="warning" v-if="false" :disabled="scope.row.status!='ATCALL' && scope.row.status!='OPEN' "
align="center" size="mini" align="center" size="mini"
@click="popUpBox(scope.row)"> @click="popUpBox(scope.row)">
顶升 顶升
@ -298,18 +297,15 @@ export default {
return row.endSlotCode; return row.endSlotCode;
}, },
toAgvTaskFinish(data) { toAgvTaskFinish(data) {
if(data.status!='UP_CONTAINER'){
return this.crud.notify("容器未顶升,需顶升之后在做操作!", CRUD.NOTIFICATION_TYPE.ERROR);
}
this.MissionStateCallback.missionCode = data.id this.MissionStateCallback.missionCode = data.id
this.MissionStateCallback.containerCode = data.stockCode this.MissionStateCallback.containerCode = data.stockCode
this.MissionStateCallback.missionStatus = 'COMPLETED' this.MissionStateCallback.missionStatus = 'COMPLETED'
crudAgvTask.missionStateCallback(this.MissionStateCallback).then(res => { crudAgvTask.missionStateCallback(this.MissionStateCallback).then(res => {
if (res.status == 200) { if (res.code == 200) {
this.crud.notify("任务完成!", CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify("任务完成!", CRUD.NOTIFICATION_TYPE.SUCCESS);
this.crud.toQuery() this.crud.toQuery()
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => { }).catch(() => {
}) })
@ -319,11 +315,11 @@ export default {
this.MissionStateCallback.containerCode = data.stockCode this.MissionStateCallback.containerCode = data.stockCode
this.MissionStateCallback.missionStatus = 'CANCELED' this.MissionStateCallback.missionStatus = 'CANCELED'
crudAgvTask.missionStateCallback(this.MissionStateCallback).then(res => { crudAgvTask.missionStateCallback(this.MissionStateCallback).then(res => {
if (res.status == 200) { if (res.code == 200) {
this.crud.notify("取消成功!", CRUD.NOTIFICATION_TYPE.SUCCESS); this.crud.notify("取消成功!", CRUD.NOTIFICATION_TYPE.SUCCESS);
this.crud.toQuery() this.crud.toQuery()
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}).catch(() => { }).catch(() => {
}) })
@ -368,9 +364,6 @@ export default {
} else if (lab === "执行中") { } else if (lab === "执行中") {
this.query.status = 'ATCALL' this.query.status = 'ATCALL'
this.crud.toQuery(); this.crud.toQuery();
} else if (lab === "顶升") {
this.query.status = 'UP_CONTAINER'
this.crud.toQuery();
} else if (lab === "已完成") { } else if (lab === "已完成") {
this.query.status = 'FINISH' this.query.status = 'FINISH'
this.crud.toQuery(); this.crud.toQuery();

View File

@ -11,7 +11,7 @@
:label="item.code" :label="item.code"
:value="item.code"> :value="item.code">
<span style="float: left">{{ item.code }}</span> <span style="float: left">{{ item.code }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</span>
</el-option> </el-option>
</el-select> </el-select>
@ -41,11 +41,17 @@
<date-range-picker v-model="query.createTime" class="date-item" style="width: 100px"/> <date-range-picker v-model="query.createTime" class="date-item" style="width: 100px"/>
<div> <div>
<label class="el-form-item-label">送货单号</label>
<el-input v-model="query.orderNumber" clearable placeholder="送货单" style="width: 170px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">Mo票</label>
<el-input v-model="query.propC1" clearable placeholder="Mo票" style="width: 190px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">原点位</label> <label class="el-form-item-label">原点位</label>
<el-input v-model="query.srcPointCode" clearable placeholder="原点位" style="width: 185px;" class="filter-item" <el-input v-model="query.srcPointCode" clearable placeholder="原点位" style="width: 165px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/> @keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">目标点位</label> <label class="el-form-item-label">目标点位</label>
<el-input v-model="query.dstPointCode" clearable placeholder="目标点位" style="width: 170px;" <el-input v-model="query.dstPointCode" clearable placeholder="目标点位" style="width: 200px;"
class="filter-item" @keyup.enter.native="crud.toQuery"/> class="filter-item" @keyup.enter.native="crud.toQuery"/>
<rrOperation :crud="crud"/> <rrOperation :crud="crud"/>
</div> </div>
@ -59,6 +65,16 @@
@selection-change="crud.selectionChangeHandler"> @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55"/> <el-table-column type="selection" width="55"/>
<el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/> <el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/>
<el-table-column :show-overflow-tooltip="true" prop="orderNumber" label="送货单号">
<template slot-scope="scope">
<div>{{ scope.row.itemKey.orderNumber }}</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="propC1" label="Mo票">
<template slot-scope="scope">
<div>{{ scope.row.itemKey.propC1 }}</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码"> <el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.item.code }}</div> <div>{{ scope.row.item.code }}</div>

View File

@ -15,25 +15,29 @@
<!-- <!--
<el-input v-model="query.itemCode" clearable placeholder="请输入物料编码" style="width: 140px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> <el-input v-model="query.itemCode" clearable placeholder="请输入物料编码" style="width: 140px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
--> -->
<label class="el-form-item-label">送货单号</label>
<el-input v-model="query.orderNumber" clearable placeholder="请输入送货单号" style="width: 150px;"
class="filter-item" @keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">Mo票</label>
<el-input v-model="query.propC1" clearable placeholder="请输入Mo票" style="width: 150px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">物料编码</label> <label class="el-form-item-label">物料编码</label>
<el-input v-model="query.itemCodeOne" clearable placeholder="请输入物料编码" style="width: 150px;" <el-input v-model="query.itemCodeOne" clearable placeholder="请输入物料编码" style="width: 150px;"
class="filter-item" @keyup.enter.native="crud.toQuery"/> class="filter-item" @keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">物料名称</label>
<el-input v-model="query.itemName" clearable placeholder="请输入物料名称" style="width: 150px;"
class="filter-item" @keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">批次号</label>
<el-input v-model="query.propC1" clearable placeholder="请输入批次号" style="width: 150px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/>
<label class="el-form-item-label">容器号</label> <label class="el-form-item-label">容器号</label>
<el-input v-model="query.stockName" clearable placeholder="请输入容器号" style="width: 150px;" class="filter-item" <el-input v-model="query.stockCode" clearable placeholder="请输入容器号" style="width: 150px;" class="filter-item"
@keyup.enter.native="crud.toQuery"/> @keyup.enter.native="crud.toQuery"/>
<rrOperation :crud="crud"/> <rrOperation :crud="crud"/>
<el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left" @click="resetQuery"> <el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left" @click="resetQuery">
</el-button> </el-button>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'--> <!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission" :tableKey="this.$options.name"/> <crudOperation :permission="permission" :tableKey="this.$options.name"/>
<!--表单组件--> <!--表单组件-->
@ -94,6 +98,16 @@
height="70vh" height="70vh"
> >
<el-table-column type="selection" width="55"/> <el-table-column type="selection" width="55"/>
<el-table-column :show-overflow-tooltip="true" prop="orderNumber" label="送货单号">
<template slot-scope="scope">
<div>{{ scope.row.itemKey.orderNumber }}</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="propC1" label="Mo票">
<template slot-scope="scope">
<div>{{ scope.row.itemKey.propC1 }}</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码"> <el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.itemKey.item.code }}</div> <div>{{ scope.row.itemKey.item.code }}</div>
@ -104,35 +118,20 @@
<div>{{ scope.row.itemKey.item.name }}</div> <div>{{ scope.row.itemKey.item.name }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="areaName" label="区域"> <el-table-column prop="pointCode" label="库位号"/>
<template slot-scope="scope">
<div>{{ scope.row.point.area.name }}</div>
</template>
</el-table-column>
<el-table-column prop="pointCode" label="点位号"/>
<el-table-column prop="stockCode" label="容器号"/> <el-table-column prop="stockCode" label="容器号"/>
<el-table-column prop="quantity" label="数量"/> <el-table-column prop="quantity" label="数量"/>
<el-table-column prop="queuedQty" label="占用数"/> <el-table-column prop="queuedQty" label="占用数"/>
<el-table-column prop="propC1" label="批次号"> <el-table-column prop="createTime" label="入库时间"/>
<template slot-scope="scope"> <!-- <el-table-column v-if="checkPer(['admin','fileManagement:edit','fileManagement:del'])" label="操作"
<div>{{ scope.row.itemKey.propC1 }}</div> width="150px" align="center" fixed="right">
</template> <template slot-scope="scope">
</el-table-column> <el-popconfirm title="确定删除吗?"
<el-table-column prop="orderNumber" label="工单号"> @confirm="deleteDataM(scope.row.id)">
<template slot-scope="scope"> <el-button slot="reference" type="danger">删除</el-button>
<div>{{ scope.row.itemKey.orderNumber }}</div> </el-popconfirm>
</template> </template>
</el-table-column> </el-table-column>-->
<el-table-column prop="createTime" label="创建时间"/>
<el-table-column v-if="checkPer(['admin','fileManagement:edit','fileManagement:del'])" label="操作"
width="150px" align="center" fixed="right">
<template slot-scope="scope">
<el-popconfirm title="确定删除吗?"
@confirm="deleteDataM(scope.row.id)">
<el-button slot="reference" type="danger">删除</el-button>
</el-popconfirm>
</template>
</el-table-column>
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<div style="float: right;"> <div style="float: right;">

View File

@ -130,7 +130,7 @@ export default {
title: 'Mo票管理', title: 'Mo票管理',
url: 'api/mo', url: 'api/mo',
idField: 'id', idField: 'id',
sort: 'id,desc', sort: 'labelNo,desc',
crudMethod: {...crudMo}, crudMethod: {...crudMo},
optShow: { optShow: {
add: false, add: false,

View File

@ -119,12 +119,12 @@ export default {
scene: 2//1-;2- scene: 2//1-;2-
} }
stockUrl.callStock(CallStock).then(res => { stockUrl.callStock(CallStock).then(res => {
if (res.status = 200) { if ( res.code == 200) {
this.itemOutCancel(); this.itemOutCancel();
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.SUCCESS);
this.$parent.shuaxin(); this.$parent.shuaxin();
} else { } else {
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR); this.$parent.crud.notify(res.msg, CRUD.NOTIFICATION_TYPE.ERROR);
} }
}) })
} }

View File

@ -57,7 +57,7 @@
</el-select> </el-select>
<rrOperation /> <rrOperation />
</div> </div>
<crudOperation show="" :permission="permission" :tableKey="this.$options.name" />/> <crudOperation show="" :permission="permission" :tableKey="this.$options.name" />
</div> </div>
<!--表单渲染--> <!--表单渲染-->
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="570px"> <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="570px">