void KaiDanWnd::on_action_4_triggered() { if(ui->lineEdit->text()==tr("")) { QMessageBox::about(this,tr("数据填写不完整"),tr("客户姓名未填写")); return; } if(ui->lineEdit_3->text()==tr("")) { QMessageBox::about(this,tr("数据填写不完整"),tr("客户电话未填写")); return; } if(ui->lineEdit_2->text()==tr("")) { QMessageBox::about(this,tr("数据填写不完整"),tr("客户地址未填写")); return; } if(ui->lineEdit_6->text()==tr("")) { QMessageBox::about(this,tr("数据填写不完整"),tr("已付金额未填写")); return; } if(ui->tableWidget->rowCount()==0) { QMessageBox::about(this,tr("数据填写不完整"),tr("当前订单中没有任何产品数据")); return; } SqliteDB db; db.connDb(); //插入客户表开始 QString