Browse Source

修改出库工单

Qukatie 1 day ago
parent
commit
d01c3d3652

+ 1 - 8
src/views/tirePartsMall/salesManagement/outboundWorkOrder/detailsPage.vue

@@ -598,7 +598,6 @@ export default {
     viewArea
     viewArea
   },
   },
   props: {
   props: {
-    onLoad: Object,
     detailData: Object
     detailData: Object
   },
   },
   async created() {
   async created() {
@@ -611,17 +610,11 @@ export default {
     this.optionPaymentDetails = await this.getColumnData(this.getColumnName(270.2), this.optionPaymentDetailsBack);
     this.optionPaymentDetails = await this.getColumnData(this.getColumnName(270.2), this.optionPaymentDetailsBack);
     this.optionOutboundRecords = await this.getColumnData(this.getColumnName(270.3), this.optionOutboundRecordsBack);
     this.optionOutboundRecords = await this.getColumnData(this.getColumnName(270.3), this.optionOutboundRecordsBack);
     this.key++;
     this.key++;
-    if (this.onLoad.id) {
-      this.editButton = true;
-      this.editDisabled = true;
-      this.optionForm.disabled = true;
-      this.refresh(this.onLoad.id, true);
-    }
     if (this.detailData.id) {
     if (this.detailData.id) {
       this.editButton = true;
       this.editButton = true;
       this.editDisabled = true;
       this.editDisabled = true;
       this.optionForm.disabled = true;
       this.optionForm.disabled = true;
-      this.refresh();
+      this.refresh(this.detailData.id);
     }
     }
     if (this.$route.query.srcId) {
     if (this.$route.query.srcId) {
       this.editButton = true;
       this.editButton = true;

+ 1 - 1
src/views/tirePartsMall/salesManagement/outboundWorkOrder/index.vue

@@ -42,7 +42,7 @@
         </template>
         </template>
       </avue-crud>
       </avue-crud>
     </basic-container>
     </basic-container>
-    <detailsPage v-if="detailsOpen" :onLoad="form" :detailData="detailData" @backToList="backToList"></detailsPage>
+    <detailsPage v-if="detailsOpen" :detailData="detailData" @backToList="backToList"></detailsPage>
 
 
     <el-dialog
     <el-dialog
       title="发货"
       title="发货"