|
@@ -166,6 +166,8 @@
|
|
|
import { Form, message } from 'ant-design-vue';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
|
import { ApiSelect, } from '/@/components/Form/index';
|
|
|
+ import { initDictOptions } from '/@/utils/dict';
|
|
|
+
|
|
|
import moment from 'moment';
|
|
|
const useForm = Form.useForm;
|
|
|
export default defineComponent({
|
|
@@ -259,11 +261,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
- function add() {
|
|
|
+ async function add() {
|
|
|
resetFields();
|
|
|
purInShipTable.dataSource = [];
|
|
|
stockInTable.dataSource = [];
|
|
|
activeKey.value = 'stockIn'
|
|
|
+ var warehouseArr= await initDictOptions( 'warehouse');
|
|
|
+ var goodsAllocationArr= await initDictOptions( 'goods_allocation');
|
|
|
+ formData.warehouse = warehouseArr[0].value
|
|
|
+ formData.goodsAllocation = goodsAllocationArr[0].value
|
|
|
}
|
|
|
async function edit(row) {
|
|
|
//主表数据
|
|
@@ -373,6 +379,7 @@
|
|
|
item.model = item.childModel
|
|
|
item.sourceId = item.childId
|
|
|
item.arrivalQuantity = item.quantity
|
|
|
+ item.stockInQuantity = item.quantity
|
|
|
})
|
|
|
var arr = data.concat(stockInTable.dataSource)
|
|
|
stockInTable.dataSource=arr
|