opt:现场问题的一些处理与优化。
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
@click="doLog"
|
||||
>日志
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="danger"
|
||||
icon="el-icon-warning"
|
||||
@click="delCtuIvt"
|
||||
>人工清除CTU库库存
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<Log ref="log" />
|
||||
</div>
|
||||
@@ -196,6 +205,9 @@ import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import Crontab from './components/crontab'
|
||||
import { delCtuIvt } from '@/views/wms/dispatch_manage/task/schBaseTask'
|
||||
import * as crudSchBaseTask from '@/views/wms/dispatch_manage/task/schBaseTask'
|
||||
import crudUser from '@/views/system/user/user'
|
||||
|
||||
const defaultForm = {
|
||||
job_id: null,
|
||||
@@ -282,6 +294,24 @@ export default {
|
||||
updateParams(id) {
|
||||
console.log(id)
|
||||
},
|
||||
delCtuIvt() {
|
||||
this.$confirm(`此操作将清空CTU库所有库存,清除后数据无法恢复,请谨慎操作,请确认后再操作!`, '警告', {
|
||||
confirmButtonText: '人工清除',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$confirm(`二次提醒:此操作将清空CTU库所有库存,清除后数据无法恢复,请谨慎操作,请确认后再操作!`, '警告', {
|
||||
confirmButtonText: '我要清除',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
crudSchBaseTask.delCtuIvt().then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('CTU库所有库存已清空', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
delMethod(id) {
|
||||
this.delLoading = true
|
||||
crudJob.del([id]).then(() => {
|
||||
|
||||
@@ -99,12 +99,12 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="仓位编码" prop="struct_code">
|
||||
<el-input v-model="form.struct_code" style="width: 200px;" />
|
||||
<el-input v-model="form.struct_code" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="仓位名称" prop="struct_name">
|
||||
<el-input v-model="form.struct_name" style="width: 200px;" />
|
||||
<el-input v-model="form.struct_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -125,7 +125,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="载具号">
|
||||
<label slot="label">载 具 号:</label>
|
||||
<el-input v-model="form.vehicle_code" disabled style="width: 200px;" />
|
||||
<el-input v-model="form.vehicle_code" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -154,11 +154,11 @@
|
||||
<el-input v-model="form.capacity" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="承受重量" prop="weight">
|
||||
<el-input v-model="form.weight" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="承受重量" prop="weight">-->
|
||||
<!-- <el-input v-model="form.weight" style="width: 200px;" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
@@ -174,15 +174,15 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="高度" prop="height">
|
||||
<label slot="label">高 度:</label>
|
||||
<el-input v-model="form.height" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" />
|
||||
</el-row>
|
||||
<!-- <el-row :gutter="20">-->
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="高度" prop="height">-->
|
||||
<!-- <label slot="label">高 度:</label>-->
|
||||
<!-- <el-input v-model="form.height" style="width: 200px;" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="12" />-->
|
||||
<!-- </el-row>-->
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24" />
|
||||
</el-row>
|
||||
@@ -253,7 +253,7 @@
|
||||
<el-table-column prop="l" label="深度" show-overflow-tooltip />
|
||||
<el-table-column prop="remark" label="备注" show-overflow-tooltip />
|
||||
<el-table-column
|
||||
v-permission="['admin','structattr:edit','structattr:del']"
|
||||
v-permission="['admin','structattr:edit']"
|
||||
label="操作"
|
||||
fixed="right"
|
||||
width="120px"
|
||||
@@ -325,7 +325,7 @@ const defaultForm = {
|
||||
storagevehicle_type: null,
|
||||
is_emptyvehicle: null,
|
||||
storagevehicle_qty: null,
|
||||
lock_type: null,
|
||||
lock_type: '00',
|
||||
material_height_type: null,
|
||||
ext_id: null,
|
||||
remark: null
|
||||
|
||||
@@ -159,10 +159,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
// 读写器定时器
|
||||
// this.intervalId = setInterval(() => {
|
||||
// this.crud.toQuery()
|
||||
// this.updateLogFromResult()
|
||||
// }, 3000)
|
||||
this.intervalId = setInterval(() => {
|
||||
this.crud.toQuery()
|
||||
this.updateLogFromResult()
|
||||
}, 3000)
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (this.intervalId) {
|
||||
|
||||
@@ -46,5 +46,12 @@ export function scheduler(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function delCtuIvt(data) {
|
||||
return request({
|
||||
url: 'api/schBaseTask/delCtuIvt',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, getTaskStatusList, operation, scheduler }
|
||||
export default { add, edit, del, getTaskStatusList, operation, scheduler, delCtuIvt }
|
||||
|
||||
Reference in New Issue
Block a user