Browse Source

注释同步到erp

chenrui 2 years ago
parent
commit
761dbc24a4

+ 2 - 2
src/views/purchasingManagement/purchaseReturn/list.vue

@@ -106,13 +106,13 @@
             @click="handleSH(record)"
             v-if="record.state !='WAIT_SUBMIT'"
             id="allocateBillList-examine-btn">审核进度</a-button>
-          <a-button
+          <!-- <a-button
             size="small"
             type="link"
             v-if="record.state == 'FINISH'"
             @click="handleEdit(record)"
             class="button-info"
-            id="bulkWarehousingOrderList-edit-btn">同步到ERP</a-button>
+            id="bulkWarehousingOrderList-edit-btn">同步到ERP</a-button> -->
           <a-button
             size="small"
             type="link"

+ 7 - 1
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -157,6 +157,7 @@ export default {
       },
       sparePartsReturnSn: null,
       sparePartsReturnNo: null,
+      chooseList: null,
       columns: [
         { title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
         {
@@ -240,6 +241,7 @@ export default {
             }
             this.disabled = false
           }
+          this.chooseList = data
           return data
         })
       },
@@ -372,7 +374,11 @@ export default {
       })
     },
     beforeSubmit () {
-      this.openDepartUserModal = true
+      if (this.chooseList && this.chooseList.length > 0) {
+        this.openDepartUserModal = true
+      } else {
+        this.$message.warning('请先添加要退货的产品!')
+      }
     },
     // 提交采购退货
     handleSubmit (data) {