代码修改
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package org.nl.wms.sch.tasks;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.wql.core.bean.WQLObject;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
|
||||
/**
|
||||
* @author geng by
|
||||
* 自动清理大于十五天的日志
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class AutoCleanUpLogs {
|
||||
|
||||
private ExecutorService threadPool = Executors.newCachedThreadPool();
|
||||
|
||||
public void run() throws Exception {
|
||||
try {
|
||||
System.out.println("开始清理日志");
|
||||
// 0 0/10 0,1 * * ? * 每天0-1点执行间隔10分钟一次
|
||||
//sys_log
|
||||
//delete from sys_log where DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL 30 day)) limit 10;
|
||||
WQLObject logTab = WQLObject.getWQLObject("sys_log");
|
||||
String days = WQLObject.getWQLObject("sys_param").query("code='clean_day'").uniqueResult(0).getString("value");
|
||||
logTab.delete("DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL '" + days + "' day))");
|
||||
log.info("自动清理日志执行成功...!");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 1.4 MiB |
@@ -3,17 +3,27 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入物料编码或者物料名称"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<rrOperation />
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="物料编码">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入物料编码或者物料名称"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
|
||||
@@ -3,17 +3,27 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.bullery"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入配方或批次"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<rrOperation />
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="配方|批次">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.bullery"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入配方或批次"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
@@ -96,7 +106,7 @@
|
||||
<el-table-column prop="material_spec" label="产品规格" />
|
||||
<el-table-column prop="material_code" label="产品编码" />
|
||||
<el-table-column prop="material_name" label="产品名称" />
|
||||
<el-table-column prop="label_code" label="最新标签码" width="150" />
|
||||
<el-table-column prop="label_code" label="最新标签码" width="150" show-overflow-tooltip/>
|
||||
<el-table-column prop="dtl_count" label="打印次数" />
|
||||
<el-table-column prop="stand_hour" label="静置小时" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
|
||||
@@ -3,81 +3,69 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<!--<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入生产编码或物料名字"
|
||||
style="width: 220px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>-->
|
||||
<el-select
|
||||
v-model="query.produce_status"
|
||||
style="width: 120px"
|
||||
placeholder="生产状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in ProduceStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="query.device_code"
|
||||
style="width: 130px"
|
||||
placeholder="生产设备"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deviceList"
|
||||
:key="item.point_code"
|
||||
clearable
|
||||
:label="item.point_name"
|
||||
:value="item.point_code"
|
||||
/>
|
||||
</el-select>
|
||||
<!--<el-select
|
||||
v-model="query.material_code"
|
||||
style="width: 120px"
|
||||
placeholder="物料编码"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>-->
|
||||
<el-option
|
||||
v-for="item in materialList"
|
||||
:key="item.material_code"
|
||||
clearable
|
||||
:label="item.material_code"
|
||||
:value="item.material_code"
|
||||
/>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="query.create_type"
|
||||
style="width: 120px"
|
||||
placeholder="创建类型"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in createTypeList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="生产状态">
|
||||
<el-select
|
||||
v-model="query.produce_status"
|
||||
style="width: 120px"
|
||||
placeholder="生产状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in ProduceStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产设备">
|
||||
<el-select
|
||||
v-model="query.device_code"
|
||||
style="width: 130px"
|
||||
placeholder="生产设备"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deviceList"
|
||||
:key="item.point_code"
|
||||
clearable
|
||||
:label="item.point_name"
|
||||
:value="item.point_code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建类型">
|
||||
<el-select
|
||||
v-model="query.create_type"
|
||||
style="width: 120px"
|
||||
placeholder="创建类型"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in createTypeList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
@@ -215,7 +203,7 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.produce_status!=='02'"
|
||||
:disabled="scope.row.produce_status=='02'"
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.prevent="forceFinish(scope.row)"
|
||||
|
||||
@@ -144,33 +144,31 @@
|
||||
<el-table-column prop="start_area_name" label="起始区域" width="95" />
|
||||
<el-table-column prop="start_point_code" label="起点编码" width="85" />
|
||||
<el-table-column prop="start_point_name" label="起点名称" width="105" />
|
||||
<el-table-column prop="next_area_name" label="下一区域" width="95" />
|
||||
<el-table-column prop="next_point_code" label="下一点编码" width="85" />
|
||||
<el-table-column prop="next_area_name" label="下一区域" width="120" show-overflow-tooltip/>
|
||||
<el-table-column prop="next_point_code" label="下一点编码" width="120" show-overflow-tooltip/>
|
||||
<el-table-column prop="next_point_name" label="下一点名称" width="105" />
|
||||
<el-table-column prop="vehicle_code" label="载具编码" />
|
||||
<el-table-column prop="remark" label="备注" width="200" />
|
||||
<el-table-column prop="remark" label="备注" width="200" show-overflow-tooltip/>
|
||||
<el-table-column prop="update_by" label="修改者" />
|
||||
<el-table-column prop="update_time" label="修改时间" width="135" />
|
||||
<el-table-column
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
fixed="left"
|
||||
label="操作"
|
||||
width="80px"
|
||||
width="120px"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<span class="el-dropdown-link">
|
||||
<i class="el-icon-menu" />
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'a')">完成</el-dropdown-item>
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'b')">取消</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'c')">拉回</el-dropdown-item>-->
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'d')">重发</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'e')">详情</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-circle-check"
|
||||
@click="doOperate(scope.row, 'a')"
|
||||
>完成</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-view"
|
||||
@click="doOperate(scope.row, 'd')"
|
||||
>详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -312,38 +310,28 @@ export default {
|
||||
}
|
||||
return ''
|
||||
},
|
||||
beforeHandleCommand(index, row, command) {
|
||||
return {
|
||||
'index': index,
|
||||
'row': row,
|
||||
'command': command
|
||||
}
|
||||
},
|
||||
handleCommand(command) {
|
||||
doOperate(row, command) {
|
||||
let method_name = ''
|
||||
switch (command.command) {
|
||||
switch (command) {
|
||||
case 'a':// 完成
|
||||
method_name = 'forceFinish'
|
||||
break
|
||||
case 'b':// 取消
|
||||
method_name = 'cancel'
|
||||
break
|
||||
case 'c':// 拉回
|
||||
method_name = 'pullBack'
|
||||
case 'c':// 下发
|
||||
method_name = 'immediateNotifyAcs'
|
||||
break
|
||||
case 'd':// 重发
|
||||
method_name = 'renotifyAcs'
|
||||
break
|
||||
case 'e':// 详情
|
||||
case 'd':// 详情
|
||||
method_name = 'view'
|
||||
break
|
||||
}
|
||||
if (method_name === 'view') {
|
||||
this.view(command.row)
|
||||
this.view(row)
|
||||
return
|
||||
}
|
||||
const data = {
|
||||
task_uuid: command.row.task_uuid,
|
||||
task_id: row.task_id,
|
||||
method_name: method_name
|
||||
}
|
||||
crudTask.operation(data).then(res => {
|
||||
|
||||
@@ -3,33 +3,44 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入仓位编码或名称"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 120px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="仓位编码">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入仓位编码或名称"
|
||||
style="width: 180px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 180px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation>
|
||||
|
||||
@@ -3,33 +3,44 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编码"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 120px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="单据编码">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编码"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 120px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
|
||||
@@ -3,32 +3,45 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="单据编号">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间">
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation>
|
||||
|
||||
@@ -3,32 +3,45 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="单据编号">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间">
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation>
|
||||
|
||||
@@ -3,32 +3,45 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<date-range-picker v-model="query.createTime" class="date-item"/>
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation/>
|
||||
<el-form-item label="单据编号">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入单据编号搜索"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间">
|
||||
<date-range-picker v-model="query.createTime" class="date-item"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.st_bill_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation/>
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation>
|
||||
@@ -84,20 +97,25 @@
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
fixed="left"
|
||||
label="操作"
|
||||
width="80px"
|
||||
width="180px"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<span class="el-dropdown-link">
|
||||
<i class="el-icon-menu"/>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'a')">删除</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'b')">搬出</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'c')">审核</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-delete-solid"
|
||||
@click="handleCommand(scope.row, 'a')"
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-promotion"
|
||||
@click="handleCommand(scope.row, 'b')"
|
||||
>搬出</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-claim"
|
||||
@click="handleCommand(scope.row, 'c')"
|
||||
>审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -214,13 +232,6 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
beforeHandleCommand(index, row, command) {
|
||||
return {
|
||||
'index': index,
|
||||
'row': row,
|
||||
'command': command
|
||||
}
|
||||
},
|
||||
handleClose(done) {
|
||||
},
|
||||
saveEvent() {
|
||||
@@ -237,9 +248,8 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
handleCommand(command) {
|
||||
const row = command.row
|
||||
switch (command.command) {
|
||||
handleCommand(row, command) {
|
||||
switch (command) {
|
||||
case 'a':// 删除
|
||||
this.opt_delete(row)
|
||||
break
|
||||
|
||||
@@ -3,31 +3,42 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-date-picker
|
||||
v-model="create_time"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
@change="selectTime"
|
||||
/>
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 150px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form-item label="创建时间">
|
||||
<el-date-picker
|
||||
v-model="create_time"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
@change="selectTime"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.bill_status"
|
||||
style="width: 150px"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in billStatusList"
|
||||
:key="item.code"
|
||||
clearable
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
@@ -67,26 +78,58 @@
|
||||
<el-table-column prop="update_time" label="修改时间" width="135" />
|
||||
<el-table-column
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
fixed="left"
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="50px"
|
||||
width="340px"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<span class="el-dropdown-link">
|
||||
<i class="el-icon-menu" />
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'a')">删除</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'b')">搬出</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'c')">通过</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'d')">不通过</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'e')">完成</el-dropdown-item>
|
||||
<el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'f')">出库</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<template slot-scope="scope" >
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-delete-solid"
|
||||
@click="handleCommand(scope.row, 'a')"
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-promotion"
|
||||
@click="handleCommand(scope.row, 'b')"
|
||||
>搬出</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-claim"
|
||||
@click="handleCommand(scope.row, 'c')"
|
||||
>通过</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-release"
|
||||
@click="handleCommand(scope.row, 'd')"
|
||||
>不通过</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-success"
|
||||
@click="handleCommand(scope.row, 'e')"
|
||||
>完成</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-s-home"
|
||||
@click="handleCommand(scope.row, 'f')"
|
||||
>出库</el-button>
|
||||
</template>
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-dropdown trigger="click" @command="handleCommand">-->
|
||||
<!-- <span class="el-dropdown-link">-->
|
||||
<!-- <i class="el-icon-menu" />-->
|
||||
<!-- </span>-->
|
||||
<!-- <el-dropdown-menu slot="dropdown">-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'a')">删除</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'b')">搬出</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'c')">通过</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'d')">不通过</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'e')">完成</el-dropdown-item>-->
|
||||
<!-- <el-dropdown-item :command="beforeHandleCommand(scope.$index, scope.row,'f')">出库</el-dropdown-item>-->
|
||||
<!-- </el-dropdown-menu>-->
|
||||
<!-- </el-dropdown>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -190,9 +233,8 @@ export default {
|
||||
'command': command
|
||||
}
|
||||
},
|
||||
handleCommand(command) {
|
||||
const row = command.row
|
||||
switch (command.command) {
|
||||
handleCommand(row, command) {
|
||||
switch (command) {
|
||||
case 'a':// 删除
|
||||
this.opt_delete(row)
|
||||
break
|
||||
|
||||
@@ -3,34 +3,47 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入仓位编码或名称"
|
||||
style="width: 250px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<el-cascader
|
||||
v-model="query.sect"
|
||||
placeholder="库区选择"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
:options="sectList"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
/>
|
||||
<el-select v-model="query.active" placeholder="是否启用" class="filter-item" clearable style="width: 100px">
|
||||
<el-option
|
||||
v-for="item in options2"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<rrOperation />
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="仓位编码">
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="输入仓位编码或名称"
|
||||
style="width: 180px"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="选择库区">
|
||||
<el-cascader
|
||||
v-model="query.sect"
|
||||
placeholder="库区选择"
|
||||
clearable
|
||||
style="width: 180px"
|
||||
:options="sectList"
|
||||
class="filter-item"
|
||||
@change="hand"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用">
|
||||
<el-select v-model="query.active" placeholder="是否启用" class="filter-item" clearable style="width: 180px">
|
||||
<el-option
|
||||
v-for="item in options2"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
|
||||
Reference in New Issue
Block a user