cuilei
9 小时以前 83f051915bbe4562abfb5f1589642dd393ea8490
src/views/cms/modules/CuttingInboundModal.vue
@@ -60,9 +60,9 @@
        </a-row>
      </a-form>
    </a-spin>
    <a-button type="primary" :style="{ marginBottom: '8px' }" @click="selectTooling()"
      >选择刀具</a-button
    >
    <a-button type="primary" :style="{ marginBottom: '8px' }" @click="selectTooling()">
      选择刀具
    </a-button>
    <a-table
      ref="table"
      bordered
@@ -265,6 +265,13 @@
        this.$message.error('请先选择入库刀具')
        return
      }
      // 校验入库数量是否填写
      for(let i=0; i<this.dataSource.length; i++) {
        if (!this.dataSource[i].receiveNumber || this.dataSource[i].receiveNumber <= 0) {
          this.$message.error(`必须填写入库数量`)
          return
        }
      }
      const that = this
      // 触发表单验证
      this.form.validateFields((err, values) => {