修改字段 #7

Merged
zwq merged 1 commits from zwq into master 2021-12-01 16:46:55 +08:00
16 changed files with 696 additions and 240 deletions

View File

@ -2,7 +2,15 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.paramKey" filterable placeholder="报警编码">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -25,19 +33,25 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="添加时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="报警类型">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="报警编码">
</el-table-column>
<el-table-column
prop="remark"
header-align="center"
align="center"
label="报警内容">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -74,6 +88,7 @@
paramKey: '' paramKey: ''
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,

View File

@ -25,19 +25,31 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="添加时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="缓存区名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="编码">
</el-table-column>
<el-table-column
prop="ename"
header-align="center"
align="center"
label="英文名">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"

View File

@ -2,7 +2,15 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.paramKey" filterable placeholder="名称">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -25,19 +33,25 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="添加时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="车辆名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="编码">
</el-table-column>
<el-table-column
prop="suoxie"
header-align="center"
align="center"
label="缩写">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -74,6 +88,7 @@
paramKey: '' paramKey: ''
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,

View File

@ -12,29 +12,47 @@
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="id" type="index"
header-align="center" header-align="center"
align="center" align="center"
width="80" label="序号"
label="ID"> width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="添加时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="库位名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="编码">
</el-table-column>
<el-table-column
prop="rname"
header-align="center"
align="center"
label="别名">
</el-table-column>
<el-table-column
prop="ename"
header-align="center"
align="center"
label="英文名称">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"

View File

@ -1,8 +1,20 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form
:inline="true"
:model="dataForm"
@keyup.enter.native="getDataList()"
>
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.paramKey" filterable placeholder="名称">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -13,41 +25,78 @@
:data="dataList" :data="dataList"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;"
>
<el-table-column <el-table-column
type="index" type="index"
header-align="center" header-align="center"
align="center" align="center"
label="序号" label="序号"
width="50"> width="50"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="添加时间"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="设备名称"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="编码"
>
</el-table-column>
<el-table-column
prop="type"
header-align="center"
align="center"
label="类型"
>
</el-table-column>
<el-table-column
prop="ename"
header-align="center"
align="center"
label="英文名"
>
</el-table-column>
<el-table-column
prop="suoxie"
header-align="center"
align="center"
label="缩写"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
label="操作"> label="操作"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> type="text"
size="small"
@click="addOrUpdateHandle(scope.row.id)"
>修改</el-button
>
<el-button
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -58,22 +107,28 @@
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="pageSize" :page-size="pageSize"
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper"
>
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> <add-or-update
v-if="addOrUpdateVisible"
ref="addOrUpdate"
@refreshDataList="getDataList"
></add-or-update>
</div> </div>
</template> </template>
<script> <script>
import AddOrUpdate from './components/equipmentInfo-add' import AddOrUpdate from './components/equipmentInfo-add'
export default { export default {
data () { data () {
return { return {
dataForm: { dataForm: {
paramKey: '' paramKey: ''
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
@ -95,11 +150,11 @@
url: this.$http.adornUrl('/sys/config/list'), url: this.$http.adornUrl('/sys/config/list'),
method: 'get', method: 'get',
params: this.$http.adornParams({ params: this.$http.adornParams({
'page': this.pageIndex, page: this.pageIndex,
'limit': this.pageSize, limit: this.pageSize,
'paramKey': this.dataForm.paramKey paramKey: this.dataForm.paramKey
}) })
}).then(({data}) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataList = data.page.list this.dataList = data.page.list
this.totalPage = data.page.totalCount this.totalPage = data.page.totalCount
@ -134,12 +189,13 @@
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { })
.then(() => {
this.$http({ this.$http({
url: this.$http.adornUrl('/sys/config/delete'), url: this.$http.adornUrl('/sys/config/delete'),
method: 'post', method: 'post',
data: this.$http.adornData(id, false) data: this.$http.adornData(id, false)
}).then(({data}) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
message: '操作成功', message: '操作成功',
@ -153,8 +209,9 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}).catch(() => {}) })
} .catch(() => {})
} }
} }
}
</script> </script>

View File

@ -32,7 +32,6 @@
prop="id" prop="id"
header-align="center" header-align="center"
align="center" align="center"
width="80"
label="标识卡"> label="标识卡">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -59,6 +58,12 @@
align="center" align="center"
label="材料号牌"> label="材料号牌">
</el-table-column> </el-table-column>
<el-table-column
prop="num"
header-align="center"
align="center"
label="已完成数">
</el-table-column>
<el-table-column <el-table-column
prop="number" prop="number"
header-align="center" header-align="center"
@ -81,7 +86,6 @@
fixed="right" fixed="right"
header-align="center" header-align="center"
align="center" align="center"
width="150"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>

View File

@ -11,29 +11,77 @@
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="id" type="index"
header-align="center" header-align="center"
align="center" align="center"
width="80" label="序号"
label="ID"> width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="任务编码">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="发起时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="完成时间">
</el-table-column>
<el-table-column
prop="type"
header-align="center"
align="center"
label="任务类型">
</el-table-column>
<el-table-column
prop="precess"
header-align="center"
align="center"
label="当前工序">
</el-table-column>
<el-table-column
prop="start"
header-align="center"
align="center"
label="开始位置">
</el-table-column>
<el-table-column
prop="end"
header-align="center"
align="center"
label="目标位置">
</el-table-column>
<el-table-column
prop="name"
header-align="center"
align="center"
label="车辆名称">
</el-table-column>
<el-table-column
prop="luzi"
header-align="center"
align="center"
label="加工炉">
</el-table-column>
<el-table-column
prop="num"
header-align="center"
align="center"
label="加工数量">
</el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination

View File

@ -20,29 +20,71 @@
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="id" type="index"
header-align="center" header-align="center"
align="center" align="center"
width="80" label="序号"
label="ID"> width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="标识卡号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="订单名">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="客户名称">
</el-table-column>
<el-table-column
prop="name"
header-align="center"
align="center"
label="产品名称">
</el-table-column>
<el-table-column
prop="type"
header-align="center"
align="center"
label="产品型号">
</el-table-column>
<el-table-column
prop="card"
header-align="center"
align="center"
label="材料号牌">
</el-table-column>
<el-table-column
prop="need"
header-align="center"
align="center"
label="生产工艺要求">
</el-table-column>
<el-table-column
prop="unit"
header-align="center"
align="center"
label="单位">
</el-table-column>
<el-table-column
prop="num"
header-align="center"
align="center"
label="数量">
</el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination

View File

@ -2,7 +2,26 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.card" filterable placeholder="标识卡号">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-select v-model="dataForm.orderid" filterable placeholder="订单号">
<el-option
v-for="item in options2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -90,7 +109,7 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="实际加工重量"> label="实际重量">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -144,9 +163,12 @@
data () { data () {
return { return {
dataForm: { dataForm: {
paramKey: '' card: '',
orderid: ''
}, },
dataList: [], dataList: [],
options1: [],
options2: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
@ -170,7 +192,8 @@
params: this.$http.adornParams({ params: this.$http.adornParams({
'page': this.pageIndex, 'page': this.pageIndex,
'limit': this.pageSize, 'limit': this.pageSize,
'paramKey': this.dataForm.paramKey 'orderid': this.dataForm.orderid,
'card': this.dataForm.card
}) })
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

View File

@ -2,7 +2,15 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.paramKey" filterable placeholder="车辆名称">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -25,19 +33,49 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="任务编码">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="发起时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="任务来源">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="任务状态">
</el-table-column>
<el-table-column
prop="type"
header-align="center"
align="center"
label="任务类型">
</el-table-column>
<el-table-column
prop="start"
header-align="center"
align="center"
label="开始位置">
</el-table-column>
<el-table-column
prop="end"
header-align="center"
align="center"
label="目标位置">
</el-table-column>
<el-table-column
prop="name"
header-align="center"
align="center"
label="车辆名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -70,6 +108,7 @@
paramKey: '' paramKey: ''
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,

View File

@ -2,7 +2,25 @@
<div class="mod-log"> <div class="mod-log">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.key" placeholder="用户名/用户操作" clearable></el-input> <el-select v-model="dataForm.key" filterable placeholder="车辆名称">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-date-picker
v-model="dataForm.time"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -62,9 +80,11 @@
data () { data () {
return { return {
dataForm: { dataForm: {
key: '' key: '',
time: []
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,

View File

@ -11,29 +11,82 @@
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="id" type="index"
header-align="center" header-align="center"
align="center" align="center"
width="80" label="序号"
label="ID"> width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="任务编码">
</el-table-column><el-table-column
prop="start"
header-align="center"
align="center"
label="发起时间">
</el-table-column>
<el-table-column
prop="end"
header-align="center"
align="center"
label="完成时间">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="任务来源">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="任务类型">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="当前工序">
</el-table-column>
<el-table-column
prop="unit"
header-align="center"
align="center"
label="单位">
</el-table-column>
<el-table-column
prop="num"
header-align="center"
align="center"
label="数量">
</el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column>
<el-table-column
prop="start"
header-align="center"
align="center"
label="开始位置">
</el-table-column>
<el-table-column
prop="end"
header-align="center"
align="center"
label="目标位置">
</el-table-column>
<el-table-column
prop="name"
header-align="center"
align="center"
label="车辆名称">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination

View File

@ -11,29 +11,71 @@
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="id" type="index"
header-align="center" header-align="center"
align="center" align="center"
width="80" label="序号"
label="ID"> width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="参数名"> label="标识卡号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
header-align="center" header-align="center"
align="center" align="center"
label="参数值"> label="订单名">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
header-align="center" header-align="center"
align="center" align="center"
label="备注"> label="客户名称">
</el-table-column>
<el-table-column
prop="name"
header-align="center"
align="center"
label="产品名称">
</el-table-column>
<el-table-column
prop="type"
header-align="center"
align="center"
label="产品型号">
</el-table-column>
<el-table-column
prop="card"
header-align="center"
align="center"
label="材料号牌">
</el-table-column>
<el-table-column
prop="need"
header-align="center"
align="center"
label="生产工艺要求">
</el-table-column>
<el-table-column
prop="unit"
header-align="center"
align="center"
label="单位">
</el-table-column>
<el-table-column
prop="num"
header-align="center"
align="center"
label="数量">
</el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination

View File

@ -1,8 +1,30 @@
<template> <template>
<div class="mod-log"> <div class="mod-log">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form
:inline="true"
:model="dataForm"
@keyup.enter.native="getDataList()"
>
<el-form-item> <el-form-item>
<el-input v-model="dataForm.key" placeholder="用户名/用户操作" clearable></el-input> <el-select v-model="dataForm.key" filterable placeholder="窑炉名称">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-date-picker
v-model="dataForm.time"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -12,37 +34,43 @@
:data="dataList" :data="dataList"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%"> style="width: 100%"
>
<el-table-column <el-table-column
type="index" type="index"
header-align="center" header-align="center"
align="center" align="center"
label="序号" label="序号"
width="50"> width="50"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="username" prop="username"
header-align="center" header-align="center"
align="center" align="center"
label="窑炉名称"> label="窑炉名称"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="operation" prop="operation"
header-align="center" header-align="center"
align="center" align="center"
label="报警时间"> label="报警时间"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="time" prop="time"
header-align="center" header-align="center"
align="center" align="center"
label="报警级别"> label="报警级别"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ip" prop="ip"
header-align="center" header-align="center"
align="center" align="center"
label="报警内容"> label="报警内容"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@ -52,19 +80,22 @@
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="pageSize" :page-size="pageSize"
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper"
>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data () { data () {
return { return {
dataForm: { dataForm: {
key: '' key: '',
time: []
}, },
dataList: [], dataList: [],
options: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
@ -83,11 +114,11 @@
url: this.$http.adornUrl('/sys/log/list'), url: this.$http.adornUrl('/sys/log/list'),
method: 'get', method: 'get',
params: this.$http.adornParams({ params: this.$http.adornParams({
'page': this.pageIndex, page: this.pageIndex,
'limit': this.pageSize, limit: this.pageSize,
'key': this.dataForm.key key: this.dataForm.key
}) })
}).then(({data}) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataList = data.page.list this.dataList = data.page.list
this.totalPage = data.page.totalCount this.totalPage = data.page.totalCount
@ -110,5 +141,5 @@
this.getDataList() this.getDataList()
} }
} }
} }
</script> </script>

View File

@ -2,7 +2,26 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.card" filterable placeholder="标识卡号">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-select v-model="dataForm.orderid" filterable placeholder="订单号">
<el-option
v-for="item in options2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -38,6 +57,18 @@
align="center" align="center"
label="订单号"> label="订单号">
</el-table-column> </el-table-column>
<el-table-column
prop="start"
header-align="center"
align="center"
label="发起时间">
</el-table-column>
<el-table-column
prop="end"
header-align="center"
align="center"
label="完成时间">
</el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
@ -69,28 +100,16 @@
label="产品名称"> label="产品名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="card"
header-align="center" header-align="center"
align="center" align="center"
label="物料名称"> label="材料号牌">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="物料数量"> label="数量">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="物料重量">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="实际加工重量">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -133,9 +152,12 @@
data () { data () {
return { return {
dataForm: { dataForm: {
paramKey: '' card: '',
orderid: ''
}, },
dataList: [], dataList: [],
options1: [],
options2: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
@ -159,7 +181,7 @@
params: this.$http.adornParams({ params: this.$http.adornParams({
'page': this.pageIndex, 'page': this.pageIndex,
'limit': this.pageSize, 'limit': this.pageSize,
'paramKey': this.dataForm.paramKey 'card': this.dataForm.card
}) })
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

View File

@ -2,7 +2,36 @@
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item> <el-form-item>
<el-input v-model="dataForm.paramKey" placeholder="名称或编码" clearable></el-input> <el-select v-model="dataForm.card" filterable placeholder="标识卡号">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-select v-model="dataForm.orderid" filterable placeholder="车辆名称">
<el-option
v-for="item in options2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-date-picker
v-model="dataForm.time"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
@ -24,7 +53,7 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="获取时间"> label="任务编码">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramValue" prop="paramValue"
@ -33,10 +62,10 @@
label="标识卡号"> label="标识卡号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="start"
header-align="center" header-align="center"
align="center" align="center"
label="订单号"> label="发起时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="paramKey"
@ -54,43 +83,25 @@
prop="paramKey" prop="paramKey"
header-align="center" header-align="center"
align="center" align="center"
label="订单状态"> label="任务类型">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="start"
header-align="center" header-align="center"
align="center" align="center"
label="客户名称"> label="开始位置">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="end"
header-align="center" header-align="center"
align="center" align="center"
label="产品名称"> label="目标位置">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="paramKey" prop="name"
header-align="center" header-align="center"
align="center" align="center"
label="物料名称"> label="车辆名称">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="物料数量">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="物料重量">
</el-table-column>
<el-table-column
prop="paramKey"
header-align="center"
align="center"
label="实际加工重量">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@ -120,9 +131,13 @@
data () { data () {
return { return {
dataForm: { dataForm: {
paramKey: '' card: '',
orderid: '',
time: []
}, },
dataList: [], dataList: [],
options1: [],
options2: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
@ -143,7 +158,7 @@
params: this.$http.adornParams({ params: this.$http.adornParams({
'page': this.pageIndex, 'page': this.pageIndex,
'limit': this.pageSize, 'limit': this.pageSize,
'paramKey': this.dataForm.paramKey 'card': this.dataForm.card
}) })
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {