llj
2025-12-15 a0010bcabbfbc3771aa05d54094f5d02bcdd5609
src/views/FbStepFoldOutBillList/fbStepFoldOutBillListEdit.vue
@@ -101,7 +101,7 @@
            <el-row :gutter="20">
              <el-col :span="8">
                <el-form-item label="验收">
                  <el-input v-model="form.HSecManagerName" placeholder="验收" style="width: calc(100% - 50px)" />
                  <el-input v-model="form.HSecManagerName" placeholder="验收" style="width: calc(100% - 50px)" />
                   <el-button type="primary" icon="el-icon-search" @click="showEmployeeDialog('inspector')">
                   </el-button>
                </el-form-item>
@@ -382,7 +382,7 @@
      :dialog-type="currentDialogType"
      :dialog-title="employeeDialogTitle"
      @select="handleEmployeeSelect"
    />
    />
  </div>
</template>
@@ -504,7 +504,7 @@
        }
      ],
      selectedRows: [],
      baseURL: process.env.VUE_APP_BASE_URL || 'http://47.96.97.237/API/'
      baseURL: process.env.VUE_APP_BASE_API || 'http://47.96.97.237/API/'
    }
  },
  computed: {
@@ -815,7 +815,7 @@
      }
      console.log(`选择的${type}:`, data)
    },
    handleSupplierSelect(data, type) {
      this.form.HSupID = data.HItemID
@@ -823,7 +823,7 @@
      console.log('选择的供应商:', data)
    },
    // 表格操作
    handleAddLine() {
      this.tableData.push({
@@ -898,11 +898,11 @@
    }
    // 确保表格数据中的仓库ID也有值
    const hasValidTableData = this.tableData.every(row =>
      row.HMaterID && row.HMaterID !== 0 &&
    const hasValidTableData = this.tableData.every(row =>
      row.HMaterID && row.HMaterID !== 0 &&
      row.HUnitID && row.HUnitID !== 0
    )
    if (!hasValidTableData) {
      // this.$message.error('请完善表格中的物料和单位信息')
      // return
@@ -919,14 +919,14 @@
      //     })
      //   }
        //const formData=JSON.stringify(this.form)+';'+JSON.stringify(this.tableData)+';'+this.operationType+';'+(sessionStorage['HUserName'] || 'admin');
       const submitData =
          JSON.stringify(this.form) + ';' +
          JSON.stringify(this.tableData) + ';' +
          this.operationType + ';' +
       const submitData =
          JSON.stringify(this.form) + ';' +
          JSON.stringify(this.tableData) + ';' +
          this.operationType + ';' +
          (sessionStorage['HUserName'] || 'admin') + ';' +
          JSON.stringify({ main: this.form, table: this.tableData })
          console.log('提交的完整数据:', submitData)
        const response = await axios.post(`${this.baseURL}/Kf_StepFoldOutBill/Kf_StepFoldOutBillEdit`, {
          sMainSub: submitData
        })
@@ -1004,4 +1004,4 @@
.el-input-number {
  width: 100%;
}
</style>
</style>