|
@@ -268,10 +268,10 @@ export default {
|
|
{ title: '分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center', ellipsis: true },
|
|
{ title: '分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center', ellipsis: true },
|
|
{ title: '调出仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '调出仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '调入仓位', scopedSlots: { customRender: 'putWarehouseLocationSn' }, width: 140, align: 'center' },
|
|
{ title: '调入仓位', scopedSlots: { customRender: 'putWarehouseLocationSn' }, width: 140, align: 'center' },
|
|
|
|
+ { title: '调出数量', scopedSlots: { customRender: 'outQty' }, width: 140, align: 'center' },
|
|
{ title: '可用库存数', dataIndex: 'currentQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '可用库存数', dataIndex: 'currentQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '冻结库存数', dataIndex: 'freezeQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '冻结库存数', dataIndex: 'freezeQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '单位', dataIndex: 'unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '调出数量', scopedSlots: { customRender: 'outQty' }, width: 140, align: 'center' },
|
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
],
|
|
],
|
|
loadData: [],
|
|
loadData: [],
|
|
@@ -294,8 +294,8 @@ export default {
|
|
{ title: '分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center', ellipsis: true },
|
|
{ title: '分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center', ellipsis: true },
|
|
{ title: '调出仓位', dataIndex: 'outWarehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '调出仓位', dataIndex: 'outWarehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '调入仓位', scopedSlots: { customRender: 'putWarehouseLocationSn' }, width: 140, align: 'center' },
|
|
{ title: '调入仓位', scopedSlots: { customRender: 'putWarehouseLocationSn' }, width: 140, align: 'center' },
|
|
- { title: '单位', dataIndex: 'productUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
{ title: '调出数量', scopedSlots: { customRender: 'outQty' }, width: 140, align: 'center' },
|
|
{ title: '调出数量', scopedSlots: { customRender: 'outQty' }, width: 140, align: 'center' },
|
|
|
|
+ { title: '单位', dataIndex: 'productUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
],
|
|
],
|
|
chooseLoadData: [],
|
|
chooseLoadData: [],
|
|
@@ -357,11 +357,11 @@ export default {
|
|
// 添加/编辑
|
|
// 添加/编辑
|
|
handleAdd (row, isEdit) {
|
|
handleAdd (row, isEdit) {
|
|
if (!isEdit && !row.putWarehouseLocationSn) {
|
|
if (!isEdit && !row.putWarehouseLocationSn) {
|
|
- this.$message.warning('请选择调入仓位')
|
|
+ this.$message.warning('请选择调入仓位后再添加!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!isEdit && !row.outQty) {
|
|
if (!isEdit && !row.outQty) {
|
|
- this.$message.warning('请输入调出数量')
|
|
+ this.$message.warning('请输入调出数量后再添加!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const params = {
|
|
const params = {
|