zouyu
2023-11-17 d8ac6057eaad648687699e25a575f3b7b8c1b102
src/views/plan/customerorder/schedule-table.vue
@@ -81,18 +81,14 @@
            prop="remainderRequired"
            header-align="center"
            align="center"
            label="本次计划数量"
          >
            label="本次计划数量">
            <template scope="scope">
              <!-- <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> -->
              <el-form-item
                :prop="'customer.' + scope.$index"
                :rules="rules.qtyPlaned"
              >
              <el-form-item :prop="'customer.' + scope.$index" :rules="rules.qtyPlaned">
                <el-input
                  v-model="remainderRequired"
                  placeholder="请输入本次计划数量"
                ></el-input>
                  v-model="scope.row.qtyPlaned"
                  placeholder="请输入本次计划数量">
                </el-input>
              </el-form-item>
            </template>
          </el-table-column>
@@ -230,14 +226,11 @@
        const _that = this
        customer.forEach((item) => {
          const outPutBatchList = []
          item.qtyPlaned = Number(item.buyQtyDue)
          _that.$set(item, 'outPutBatchList', outPutBatchList)
          customerList.push(item)
        })
        this.dataForm.customer = JSON.parse(JSON.stringify(customerList))
        this.dataForm.customer.forEach(item=>{
          // let num=Number(item.buyQtyDue)
          //   item.qtyPlaned=num
        })
      })
    },
    dataFormSubmit() {