开发出库分配,取消分配
parent
623e3acb39
commit
78bd40859e
|
|
@ -379,7 +379,7 @@ function CRUD(options) {
|
||||||
// 选中单条行
|
// 选中单条行
|
||||||
clickRow(row) {
|
clickRow(row) {
|
||||||
crud.getTable().clearSelection()
|
crud.getTable().clearSelection()
|
||||||
crud.getTable().toggleRowSelection(row,true)
|
crud.getTable().toggleRowSelection(row, true)
|
||||||
crud.selections = crud.getTable().selections
|
crud.selections = crud.getTable().selections
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
@ -498,6 +498,18 @@ function CRUD(options) {
|
||||||
return crud.vms.find(vm => vm && vm.type === type).vm
|
return crud.vms.find(vm => vm && vm.type === type).vm
|
||||||
},
|
},
|
||||||
notify(title, type = CRUD.NOTIFICATION_TYPE.INFO) {
|
notify(title, type = CRUD.NOTIFICATION_TYPE.INFO) {
|
||||||
|
if (type === 200) {
|
||||||
|
type = CRUD.NOTIFICATION_TYPE.SUCCESS
|
||||||
|
}
|
||||||
|
if (type === 201) {
|
||||||
|
type = CRUD.NOTIFICATION_TYPE.WARNING
|
||||||
|
}
|
||||||
|
if (type === 500) {
|
||||||
|
type = CRUD.NOTIFICATION_TYPE.ERROR
|
||||||
|
}
|
||||||
|
if (type === 400) {
|
||||||
|
type = CRUD.NOTIFICATION_TYPE.INFO
|
||||||
|
}
|
||||||
crud.vms[0].vm.$notify({
|
crud.vms[0].vm.$notify({
|
||||||
title,
|
title,
|
||||||
type,
|
type,
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
:disabled="show_fp"
|
:disabled="crud.selections.length !== 1 || this.crud.selections[0].orderQty<=this.crud.selections[0].allocatedQty"
|
||||||
@click="allocate(crud.selections)"
|
@click="allocate(crud.selections)"
|
||||||
>
|
>
|
||||||
分配
|
分配
|
||||||
|
|
@ -270,6 +270,7 @@ import pagination from '@crud/Pagination'
|
||||||
import { getItems, getItemsList } from '@/api/item'
|
import { getItems, getItemsList } from '@/api/item'
|
||||||
import PickTask from '@/views/business-data/pickDetail/pickTicketTask.vue'
|
import PickTask from '@/views/business-data/pickDetail/pickTicketTask.vue'
|
||||||
import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
||||||
|
import DonMessage from "@/utils/message";
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
id: null,
|
id: null,
|
||||||
|
|
@ -324,7 +325,6 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show_fp: true,
|
|
||||||
show_jh: true,
|
show_jh: true,
|
||||||
show_cancelfp: true,
|
show_cancelfp: true,
|
||||||
radio3: '全部',
|
radio3: '全部',
|
||||||
|
|
@ -412,12 +412,11 @@ export default {
|
||||||
for (let i = 0; i < datas.length; i++) {
|
for (let i = 0; i < datas.length; i++) {
|
||||||
ids.push(datas[i].id)
|
ids.push(datas[i].id)
|
||||||
}
|
}
|
||||||
console.log('ids:' + ids)
|
|
||||||
crudPickDetail.allocate(ids).then(res => {
|
crudPickDetail.allocate(ids).then(res => {
|
||||||
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify(res.message, res.status)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
this.crud.toQuery()
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.table.clearSelection()
|
this.$refs.table.clearSelection()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue