代码更新

This commit is contained in:
2022-10-28 18:27:29 +08:00
parent db76b45884
commit 0ed94f6aaf
6 changed files with 89 additions and 3 deletions

View File

@@ -180,6 +180,17 @@
>
解锁
</el-button>
<el-button
slot="right"
class="filter-item"
size="mini"
type="primary"
icon="el-icon-refresh"
@click="sync"
:loading="sync_flag"
>
仓位同步
</el-button>
</crudOperation>
<!--表单组件-->
<el-dialog
@@ -326,7 +337,7 @@
<script>
import crudRegion from '@/views/wms/sch/region'
import crudPoint, { changeActive } from '@/views/wms/sch/point'
import crudPoint, { changeActive } 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'
@@ -357,6 +368,7 @@ export default {
data() {
return {
sync_flag: false,
syncLoading: false,
invtypelist: [],
pointStatusList: [],
@@ -458,6 +470,15 @@ 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

@@ -68,4 +68,11 @@ export function changeLock(data) {
})
}
export default { add, edit, del, changeActive, findPoints, getPoint, getRegion, changeUsed, changeLock }
export function sync() {
return request({
url: 'api/point/sync',
method: 'post'
})
}
export default { add, edit, del, changeActive, findPoints, getPoint, getRegion, changeUsed, changeLock, sync }

View File

@@ -193,7 +193,7 @@
</template>
<script>
import crudTask from '@/views/wms/sch/task'
import crudTask from '@/views/wms/sch/task/task'
import CRUD, { crud, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'