zhangwencui
2 天以前 8390603242ee0fd82946e5f7fb29ae7d94a7c3d4
采购订单产品展示是否已质检。
已修改2个文件
31 ■■■■■ 文件已修改
src/views/procurementManagement/procurementLedger/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementLedger/index.vue
@@ -120,6 +120,16 @@
                  </el-tag>
                </template>
              </el-table-column>
              <el-table-column label="是否质检"
                               width="100px"
                               align="center">
                <template #default="scope">
                  <el-tag :type="getCheckedType(scope.row.isChecked)"
                          size="small">
                    {{ scope.row.isChecked ? '是' : '否' }}
                  </el-tag>
                </template>
              </el-table-column>
              <el-table-column label="税率(%)"
                               prop="taxRate" />
              <el-table-column label="含税单价(元)"
@@ -865,6 +875,14 @@
      0: "info",
      1: "warning",
      2: "success",
    };
    return typeMap[status] || "info";
  };
  // 获取是否质检标签类型
  const getCheckedType = status => {
    const typeMap = {
      0: "info",
      1: "success",
    };
    return typeMap[status] || "info";
  };
@@ -2015,7 +2033,8 @@
              canvas.width - horizontalPad * 2
            );
            const textBlockHeight = lines.length * lineHeight;
            canvas.height = padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
            canvas.height =
              padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
            ctx.fillStyle = "#ffffff";
            ctx.fillRect(0, 0, canvas.width, canvas.height);
src/views/salesManagement/salesLedger/index.vue
@@ -3010,6 +3010,16 @@
      proxy.$modal.msgWarning("选中的数据中包含非待审核项,请重新选择");
      return;
    }
    // 录入人不能审核该条数据
    const isEntryPerson = selectedRows.value.some(
      row => String(row.entryPerson) === String(userStore.id)
    );
    if (isEntryPerson) {
      proxy.$modal.msgWarning("录入人不能审核自己提交的数据");
      return;
    }
    try {
      await ElMessageBox.confirm("是否确认审核选中的销售台账?", "提示", {
        confirmButtonText: "确定",