liuchengxin
2022-06-06 4001279159dd37942b3cf4c83ab537f95832a82d
src/views/device/batch/index.vue
@@ -75,7 +75,7 @@
          <span>{{ scope.$index + (queryParams.pageNum - 1) * queryParams.pageSize + 1 }} </span>
        </template>
      </el-table-column>
      <el-table-column label="生产批次" align="center" prop="batch" />
      <el-table-column label="生产批次" align="center" prop="batch" show-overflow-tooltip/>
      <el-table-column label="下单日期" align="center" prop="orderDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.orderDate, '{y}-{m}-{d}') }}</span>
@@ -86,7 +86,7 @@
          <span>{{ parseTime(scope.row.arrivalDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="批次说明" align="center" prop="illustrate" />
      <el-table-column label="批次说明" align="center" prop="illustrate" show-overflow-tooltip />
      <el-table-column label="操作" fixed="right" width="120" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
@@ -100,6 +100,7 @@
            size="mini"
            type="text"
            icon="el-icon-delete"
            class="del-btn"
            @click="handleDelete(scope.row)"
            v-hasPermi="['oa:batch:remove']"
          >删除</el-button>
@@ -116,7 +117,7 @@
    />
    <!-- 添加或修改生产批次对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
    <Dialog :title="title" :visible.sync="open" width="500px" :append-to-body="true" :close-on-click-modal="false">
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="生产批次" prop="batch">
          <el-input v-model="form.batch" placeholder="请输入生产批次" />
@@ -145,7 +146,7 @@
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
    </Dialog>
  </div>
</template>
@@ -301,7 +302,7 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除生产批次编号为"' + ids + '"的数据项?').then(() => {
      this.$modal.confirm(`是否确认删除生产批次为"${row.batch}"的生产批次?`).then(() => {
        this.loading = true;
        return delBatch(ids);
      }).then(() => {