zouyu
2023-12-11 41e0df8413624e6034c967f3afae30da59370879
src/views/plan/customerorder/schedule-table.vue
@@ -85,14 +85,15 @@
            width="170px"
          >
            <template scope="scope">
              <el-form-item
              <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item>
              <!-- <el-form-item
                :prop="'customer.' + scope.$index"
                :rules="rules.qtyPlaned"
              >
                <el-input
                  v-model="scope.row.qtyPlaned"
                  placeholder=""
                ></el-input>
                ></el-input> -->
              </el-form-item>
            </template>
          </el-table-column>
@@ -222,17 +223,13 @@
        this.dataForm.customer = []
        const _that = this
        customer.forEach((item) => {
          console.log(item);
           item.qtyPlaned=item.buyQtyDue
          const outPutBatchList = []
          _that.$set(item, 'outPutBatchList', outPutBatchList)
          customerList.push(item)
        })
        this.dataForm.customer = JSON.parse(JSON.stringify(customerList))
        console.log(this.dataForm.customer);
      })
      this.dataForm.customer.forEach(item=>{
            item.qtyPlaned=item.buyQtyDue
        })
    },
    dataFormSubmit() {
      this.isSubmit = true