已修改5个文件
40 ■■■■■ 文件已修改
src/views/procurementManagement/procurementLedger/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/finalInspection/components/formDia.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/processInspection/components/formDia.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/rawMaterialInspection/components/formDia.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementLedger/index.vue
@@ -1054,6 +1054,9 @@
      form.value.tempFileIds = tempFileIds;
      form.value.type = 2;
            form.value.approveUserIds = approveUserIds;
            form.value.contractAmount = productData.value
                .reduce((sum, item) => sum + Number(item.taxInclusiveTotalPrice || 0), 0)
                .toFixed(2);
      addOrEditPurchase(form.value).then((res) => {
        proxy.$modal.msgSuccess("提交成功");
        closeDia();
src/views/productionManagement/workOrder/index.vue
@@ -12,6 +12,15 @@
                    prefix-icon="Search" />
        </div>
        <div class="search-item">
          <span class="search_title">生产订单号:</span>
          <el-input v-model="searchForm.productOrderNpsNo"
                    style="width: 240px"
                    placeholder="请输入"
                    @change="handleQuery"
                    clearable
                    prefix-icon="Search" />
        </div>
        <div class="search-item">
          <el-button type="primary"
                     @click="handleQuery">搜索</el-button>
        </div>
@@ -445,6 +454,7 @@
  const data = reactive({
    searchForm: {
      workOrderNo: "",
      productOrderNpsNo: "",
    },
  });
  const { searchForm } = toRefs(data);
src/views/qualityManagement/finalInspection/components/formDia.vue
@@ -106,6 +106,7 @@
                :column="tableColumn"
                :tableData="tableData"
                :tableLoading="tableLoading"
                :isShowPagination="false"
                height="400"
            >
                <template #slot="{ row }">
@@ -346,11 +347,9 @@
  proxy.$refs.formRef.validate(valid => {
    if (valid) {
      form.value.inspectType = 2
            if (operationType.value === "add") {
                tableData.value.forEach((item) => {
                    delete item.id
                })
            }
            tableData.value.forEach((item) => {
                delete item.id
            })
            const data = {...form.value, qualityInspectParams: tableData.value}
      if (operationType.value === "add") {
        qualityInspectAdd(data).then(res => {
src/views/qualityManagement/processInspection/components/formDia.vue
@@ -115,6 +115,7 @@
                :column="tableColumn"
                :tableData="tableData"
                :tableLoading="tableLoading"
                :isShowPagination="false"
                height="400"
            >
                <template #slot="{ row }">
@@ -377,11 +378,9 @@
    if (valid) {
      form.value.inspectType = 1
            const processName = form.value.process || '';
            if (operationType.value === "add") {
                tableData.value.forEach((item) => {
                    delete item.id
                })
            }
            tableData.value.forEach((item) => {
                delete item.id
            })
            const data = {
                ...form.value, 
                process: processName, // 保留 process 字段以兼容后端
src/views/qualityManagement/rawMaterialInspection/components/formDia.vue
@@ -128,6 +128,7 @@
          :column="tableColumn"
          :tableData="tableData"
          :tableLoading="tableLoading"
          :isShowPagination="false"
          height="400"
      >
        <template #slot="{ row }">
@@ -385,11 +386,9 @@
  proxy.$refs.formRef.validate(valid => {
    if (valid) {
      form.value.inspectType = 0
            if (operationType.value === "add") {
                tableData.value.forEach((item) => {
                    delete item.id
                })
            }
            tableData.value.forEach((item) => {
                delete item.id
            })
      const data = {...form.value, qualityInspectParams: tableData.value}
      if (operationType.value === "add") {
        qualityInspectAdd(data).then(res => {