huang_an 2 yıl önce
ebeveyn
işleme
5e429d226b
1 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 6 5
      src/views/bpm/stockManagement/add.vue

+ 6 - 5
src/views/bpm/stockManagement/add.vue

@@ -1186,7 +1186,7 @@
     },
     data() {
       return {
-        isTask:false,
+        isTask: false,
         isWeight: true,
         resultArray: [],
         isDetail: false,
@@ -1279,7 +1279,7 @@
       this.initData();
     },
     methods: {
-      cancel(){
+      cancel() {
         this.$emit('cancel');
       },
       weightInput(value, row) {
@@ -1386,8 +1386,8 @@
         this.contactList = data.data;
       },
       async pickerSuccess(row) {
-        this.formData.bizType='2'
-        this.isTask=true
+        this.formData.bizType = '2';
+        this.isTask = true;
         this.pickerRow = row;
         this.formData.extInfo.documentSource = row.orderNo;
         this.formData.clientName = row.partaName;
@@ -1972,8 +1972,9 @@
             try {
               const res = await outin.save(obj);
               if (res.code == 0) {
+                await outin.outApproves({ outInId: res.data });
                 this.$message.success('保存成功!');
-                this.$emit('handleAudit',1)
+                this.$emit('handleAudit', 1);
               }
             } catch (error) {
               console.error('保存失败:', error);