完善批量待入库和待出库界面
This commit is contained in:
@@ -177,7 +177,7 @@
|
|||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import { deleteAction } from '@/api/manage'
|
||||||
export default {
|
export default {
|
||||||
name: "OtherInList",
|
name: "OtherInList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -273,6 +273,54 @@
|
|||||||
this.initWaitBillCount('入库', '采购,销售退货', '1,3')
|
this.initWaitBillCount('入库', '采购,销售退货', '1,3')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
myHandleDelete(record) {
|
||||||
|
let that = this
|
||||||
|
if(record.status === '0') {
|
||||||
|
deleteAction(that.url.delete, {id: record.id}).then((res) => {
|
||||||
|
if(res.code === 200){
|
||||||
|
that.loadData(1)
|
||||||
|
if(that.inOutManageFlag) {
|
||||||
|
that.initWaitBillCount('入库', '采购,销售退货', '1,3')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.data.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能删除,请先进行反审核!")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
batchDel: function () {
|
||||||
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
|
this.$message.warning('请选择一条记录!')
|
||||||
|
} else {
|
||||||
|
let ids = ""
|
||||||
|
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
||||||
|
ids += this.selectedRowKeys[i] + ","
|
||||||
|
}
|
||||||
|
let that = this
|
||||||
|
this.$confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
content: "是否删除选中数据?",
|
||||||
|
onOk: function () {
|
||||||
|
that.loading = true
|
||||||
|
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
|
||||||
|
if(res.code === 200){
|
||||||
|
that.loadData()
|
||||||
|
that.onClearSelected()
|
||||||
|
if(that.inOutManageFlag) {
|
||||||
|
that.initWaitBillCount('入库', '采购,销售退货', '1,3')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.data.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
that.loading = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
//待入库
|
//待入库
|
||||||
handleWaitBill() {
|
handleWaitBill() {
|
||||||
this.$refs.batchWaitBill.show('入库', '采购,销售退货', "1,3")
|
this.$refs.batchWaitBill.show('入库', '采购,销售退货', "1,3")
|
||||||
|
|||||||
@@ -177,7 +177,7 @@
|
|||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import { deleteAction } from '@/api/manage'
|
||||||
export default {
|
export default {
|
||||||
name: "OtherOutList",
|
name: "OtherOutList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -273,6 +273,54 @@
|
|||||||
this.initWaitBillCount('出库', '销售,采购退货', '1,3')
|
this.initWaitBillCount('出库', '销售,采购退货', '1,3')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
myHandleDelete(record) {
|
||||||
|
let that = this
|
||||||
|
if(record.status === '0') {
|
||||||
|
deleteAction(that.url.delete, {id: record.id}).then((res) => {
|
||||||
|
if(res.code === 200){
|
||||||
|
that.loadData(1)
|
||||||
|
if(that.inOutManageFlag) {
|
||||||
|
that.initWaitBillCount('出库', '销售,采购退货', '1,3')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.data.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能删除,请先进行反审核!")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
batchDel: function () {
|
||||||
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
|
this.$message.warning('请选择一条记录!')
|
||||||
|
} else {
|
||||||
|
let ids = ""
|
||||||
|
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
||||||
|
ids += this.selectedRowKeys[i] + ","
|
||||||
|
}
|
||||||
|
let that = this
|
||||||
|
this.$confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
content: "是否删除选中数据?",
|
||||||
|
onOk: function () {
|
||||||
|
that.loading = true
|
||||||
|
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
|
||||||
|
if(res.code === 200){
|
||||||
|
that.loadData()
|
||||||
|
that.onClearSelected()
|
||||||
|
if(that.inOutManageFlag) {
|
||||||
|
that.initWaitBillCount('出库', '销售,采购退货', '1,3')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.data.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
that.loading = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
//待出库
|
//待出库
|
||||||
handleWaitBill() {
|
handleWaitBill() {
|
||||||
this.$refs.batchWaitBill.show('出库', '销售,采购退货', "1,3")
|
this.$refs.batchWaitBill.show('出库', '销售,采购退货', "1,3")
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
<!-- 操作按钮区域 -->
|
<!-- 操作按钮区域 -->
|
||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button @click="handleBatchInOut" type="primary" icon="plus">批量{{queryParam.type}}</a-button>
|
<a-button @click="handleBatchInOut" type="primary" icon="plus">批量{{queryParam.type}}</a-button>
|
||||||
<span style="padding-left:10px">注意:序列号和批号商品不能批量{{queryParam.type}},需要到新增界面关联单据</span>
|
<span style="padding-left:10px">注意:含有序列号、批号商品或部分入库状态不能批量{{queryParam.type}},需要到新增界面关联单据</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<a-table
|
||||||
@@ -103,7 +103,6 @@
|
|||||||
visible: false,
|
visible: false,
|
||||||
disableMixinCreated: true,
|
disableMixinCreated: true,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectBillRows: [],
|
|
||||||
linkNumber: '',
|
linkNumber: '',
|
||||||
organId: '',
|
organId: '',
|
||||||
remark: '',
|
remark: '',
|
||||||
@@ -200,20 +199,27 @@
|
|||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning('请选择一条记录!')
|
this.$message.warning('请选择一条记录!')
|
||||||
} else {
|
} else {
|
||||||
|
this.$confirm({
|
||||||
|
title: "确认批量操作",
|
||||||
|
content: "是否批量操作选中的单据?",
|
||||||
|
onOk: function () {
|
||||||
let ids = "";
|
let ids = "";
|
||||||
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
for (let i = 0; i < that.selectedRowKeys.length; i++) {
|
||||||
ids += this.selectedRowKeys[i] + ",";
|
ids += that.selectedRowKeys[i] + ",";
|
||||||
}
|
}
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
batchAddDepotHeadAndDetail({'ids': ids}).then((res)=>{
|
batchAddDepotHeadAndDetail({ 'ids': ids }).then((res) => {
|
||||||
if(res.code === 200){
|
if (res.code === 200) {
|
||||||
that.$emit('ok')
|
that.$emit('ok')
|
||||||
}else{
|
that.selectedRowKeys = []
|
||||||
that.$message.warning(res.data.message)
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false
|
that.confirmLoading = false
|
||||||
that.close()
|
that.close()
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.data.message)
|
||||||
|
that.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
this.currentSelectDepotId = ''
|
this.currentSelectDepotId = ''
|
||||||
this.rowCanEdit = true
|
this.rowCanEdit = true
|
||||||
|
this.materialTable.columns[1].type = FormTypes.popupJsh
|
||||||
this.changeColumnHide()
|
this.changeColumnHide()
|
||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
this.currentSelectDepotId = ''
|
this.currentSelectDepotId = ''
|
||||||
this.rowCanEdit = true
|
this.rowCanEdit = true
|
||||||
|
this.materialTable.columns[1].type = FormTypes.popupJsh
|
||||||
this.changeColumnHide()
|
this.changeColumnHide()
|
||||||
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
this.changeFormTypes(this.materialTable.columns, 'snList', 0)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user