Browse Source

销售出库-添加场面和货位默认值

jingbb 3 months ago
parent
commit
d0626c6f73
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/inventiry/salesOutbound/components/salesOutForm.vue

+ 6 - 1
src/views/inventiry/salesOutbound/components/salesOutForm.vue

@@ -124,6 +124,7 @@
   import { JDictSelectTag} from '/@/components/Form';
   import { Form, message } from 'ant-design-vue';
   import { useUserStore } from '/@/store/modules/user';
+  import { initDictOptions } from '/@/utils/dict';
   import moment from 'moment';
   const useForm = Form.useForm;
   export default defineComponent({
@@ -215,7 +216,7 @@
 
       
 
-      function add() {
+      async function add() {
         resetFields();
         saleShipTable.dataSource = [];
         stockOutTable.dataSource = [];
@@ -224,6 +225,10 @@
         formData.salesmanName=userStore.getUserInfo.realname;
         formData.saleDepartment = userStore.getUserInfo.orgCode
         formData.saleDepartmentName = userStore.getUserInfo.orgName
+        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) {
         //主表数据