opt:区域、点位、任务管理功能代码整理

This commit is contained in:
zds
2024-10-31 16:35:28 +08:00
parent 974df28680
commit ac08a3ccd7
85 changed files with 371 additions and 2472 deletions

View File

@@ -188,27 +188,6 @@
>
解锁
</el-button>
<!--<el-button
slot="right"
class="filter-item"
size="mini"
type="primary"
icon="el-icon-refresh"
:loading="sync_flag"
@click="sync"
>
仓位同步
</el-button>-->
<!-- <el-button
slot="right"
class="filter-item"
type="success"
icon="el-icon-check"
size="mini"
@click="downdtl"
>
导出Excel
</el-button>-->
</crudOperation>
<!--表单组件-->
<el-dialog
@@ -329,11 +308,6 @@
{{ dict.label.d_lock_type[scope.row.lock_type] }}
</template>
</el-table-column>
<!-- <el-table-column prop="vehicle_type" label="载具类型" min-width="120">
<template slot-scope="scope">
{{ dict.label.vehicle_type[scope.row.vehicle_type] }}
</template>
</el-table-column>-->
<el-table-column
prop="vehicle_code"
label="载具编码"
@@ -377,7 +351,7 @@
<script>
import crudRegion from '@/views/wms/sch/region/region'
import crudPoint, { changeActive, changeActives } from '@/views/wms/sch/point/point'
import crudPoint from '@/views/wms/sch/point/point'
import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
@@ -511,7 +485,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
changeActive(data).then(res => {
crudPoint.changeActive(data).then(res => {
this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(() => {
@@ -563,15 +537,6 @@ export default {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
})
},
sync() {
this.sync_flag = true
crudPoint.sync().then(res => {
this.crud.notify('同步成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.sync_flag = false
}).cache(() => {
this.sync_flag = false
})
}
}

View File

@@ -23,11 +23,6 @@ export function edit(data) {
data
})
}
export function findPoints(area_type) {
return request({
url: 'api/point/area_type/' + area_type
})
}
export function changeActive(data) {
return request({
@@ -55,7 +50,7 @@ export function getPoint(data) {
export function getRegion() {
return request({
url: '/api/point/getRegion',
url: '/api/region/getRegion',
method: 'get'
})
}
@@ -76,13 +71,6 @@ export function changeLock(data) {
})
}
export function sync() {
return request({
url: 'api/point/sync',
method: 'post'
})
}
export function download() {
return request({
url: 'api/point/download',
@@ -90,4 +78,4 @@ export function download() {
})
}
export default { add, edit, del, changeActive, changeActives, findPoints, getPoint, getRegion, changeUsed, changeLock, sync }
export default { add, edit, del, changeActive, changeActives, getPoint, getRegion, changeUsed, changeLock }