ysy 2 سال پیش
والد
کامیت
936c087bae
3فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. BIN
      dist.rar
  2. 3 2
      src/views/materialPlan/components/ProductModal.vue
  3. 1 1
      src/views/materialPlan/components/plan-edit-dialog.vue

BIN
dist.rar


+ 3 - 2
src/views/materialPlan/components/ProductModal.vue

@@ -213,13 +213,14 @@ export default {
 
 
     },
     },
     selected() {
     selected() {
+      let _arr = []
       if (!this.selection.length) {
       if (!this.selection.length) {
         this.$message.error('请至少选择一条数据');
         this.$message.error('请至少选择一条数据');
         return;
         return;
       }
       }
       if (this.type == 'add') {
       if (this.type == 'add') {
-        let _arr = []
-        _arr = this.selection.map(m => {
+ 
+       _arr = this.selection.map(m => {
           m.categoryId = m.id
           m.categoryId = m.id
           delete m.id
           delete m.id
           return {
           return {

+ 1 - 1
src/views/materialPlan/components/plan-edit-dialog.vue

@@ -638,7 +638,7 @@ export default {
 
 
       tableList.forEach(e => {
       tableList.forEach(e => {
         if (e.id == current.detailId) {
         if (e.id == current.detailId) {
-          console.log(e)
+         
           e.materialList.forEach(m => {
           e.materialList.forEach(m => {
             if (m.id == current.id) {
             if (m.id == current.id) {
               m.timeList = timeList
               m.timeList = timeList