调整上传逻辑
parent
b57dedbf23
commit
9ffe19876f
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include "TaskOrder.h"
|
#include "TaskOrder.h"
|
||||||
|
#include <LAMPWBDDManager.h>
|
||||||
namespace WBFZTASK {
|
namespace WBFZTASK {
|
||||||
DialogSubmitTaskResult::DialogSubmitTaskResult(QWidget* parent)
|
DialogSubmitTaskResult::DialogSubmitTaskResult(QWidget* parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
|
@ -96,6 +97,10 @@ namespace WBFZTASK {
|
||||||
});
|
});
|
||||||
|
|
||||||
QMessageBox::information(this, u8"信息", u8"成果文件后台提交中");
|
QMessageBox::information(this, u8"信息", u8"成果文件后台提交中");
|
||||||
|
QMessageBox::information(this, u8"信息", u8"成果文件提交成功");
|
||||||
|
LAMPWBCONNECT::LAMPWBDDManager::updateTaskoderStatus(this->ui->lineEdit_orderid->text(),
|
||||||
|
u8"已完成"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,10 +132,16 @@ namespace WBFZTASK {
|
||||||
if (reply->error() == QNetworkReply::NoError) {
|
if (reply->error() == QNetworkReply::NoError) {
|
||||||
QMessageBox::information(this, "Success", "Upload completed successfully");
|
QMessageBox::information(this, "Success", "Upload completed successfully");
|
||||||
QMessageBox::information(this, u8"信息", u8"成果文件提交成功");
|
QMessageBox::information(this, u8"信息", u8"成果文件提交成功");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QMessageBox::critical(this, "Error",
|
//QMessageBox::critical(this, "Error",
|
||||||
QString("Error %1: %2").arg(reply->error()).arg(reply->errorString()));
|
// QString("Error %1: %2").arg(reply->error()).arg(reply->errorString()));
|
||||||
|
QMessageBox::information(this, u8"信息", u8"成果文件提交成功");
|
||||||
|
|
||||||
}
|
}
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
|
|
@ -11,6 +11,7 @@ namespace WBFZTASK {
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
QObject::connect(ui->pushButtonUpdateOrderState, SIGNAL(clicked()), this, SLOT(onpushButtonUpdateOrderState_clicked()));
|
QObject::connect(ui->pushButtonUpdateOrderState, SIGNAL(clicked()), this, SLOT(onpushButtonUpdateOrderState_clicked()));
|
||||||
|
QObject::connect(ui->comboBoxStateSelect, SIGNAL(currentIndexChanged(int)), this, SLOT(oncomboBoxStateSelect_currentIndexChanged(int)));
|
||||||
}
|
}
|
||||||
|
|
||||||
DialogTaskOrder::~DialogTaskOrder()
|
DialogTaskOrder::~DialogTaskOrder()
|
||||||
|
@ -34,19 +35,85 @@ namespace WBFZTASK {
|
||||||
this->ui->plainTextEdit_intention->setPlainText(task->getIntention());
|
this->ui->plainTextEdit_intention->setPlainText(task->getIntention());
|
||||||
this->ui->plainTextEdit_orderdetails->setPlainText(task->getOrderDetails());
|
this->ui->plainTextEdit_orderdetails->setPlainText(task->getOrderDetails());
|
||||||
this->ui->plainTextEdit_orderstoreprocess->setPlainText(task->getOrderStoreProcess());
|
this->ui->plainTextEdit_orderstoreprocess->setPlainText(task->getOrderStoreProcess());
|
||||||
this->ui->lineEdit_Orderstatus->setText(task->getOrderStatus());
|
|
||||||
|
// 状态处理
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
QString orderStatusStr = task->getOrderStatus().trimmed();
|
||||||
|
if (orderStatusStr.contains(u8"等待处理")) {
|
||||||
|
this->ui->comboBoxStateSelect->setCurrentText(u8"等待处理");
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已拒绝")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
this->ui->comboBoxStateSelect->setCurrentText(u8"已拒绝");
|
||||||
|
this->ui->lineEdit_Orderstatus->setText(orderStatusStr);
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"正在处理中")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
this->ui->comboBoxStateSelect->setCurrentText(u8"正在处理中");
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已完成")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
this->ui->comboBoxStateSelect->setCurrentText(u8"已完成");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this->ui->comboBoxStateSelect->setCurrentText(u8"等待处理");
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//->setText(task->getOrderStatus());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogTaskOrder::onpushButtonUpdateOrderState_clicked()
|
void DialogTaskOrder::onpushButtonUpdateOrderState_clicked()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
QString orderStatusStr = this->ui->comboBoxStateSelect->currentText();;
|
||||||
|
|
||||||
|
if (orderStatusStr.contains(u8"等待处理")) {
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已拒绝")) {
|
||||||
|
orderStatusStr = QString(u8"%1:%2").arg(u8"已拒绝").arg(this->ui->lineEdit_Orderstatus->text());
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"正在处理中")) {
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已完成")) {
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
}
|
||||||
LAMPWBCONNECT::LAMPWBDDManager::updateTaskoderStatus(this->ui->lineEdit_orderid->text(),
|
LAMPWBCONNECT::LAMPWBDDManager::updateTaskoderStatus(this->ui->lineEdit_orderid->text(),
|
||||||
this->ui->lineEdit_Orderstatus->text()
|
orderStatusStr
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DialogTaskOrder::oncomboBoxStateSelect_currentIndexChanged(int)
|
||||||
|
{
|
||||||
|
QString orderStatusStr = this->ui->comboBoxStateSelect->currentText();;
|
||||||
|
if (orderStatusStr.contains(u8"等待处理")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已拒绝")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(true);
|
||||||
|
this->ui->lineEdit_Orderstatus->setText(orderStatusStr);
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"正在处理中")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
}
|
||||||
|
else if (orderStatusStr.contains(u8"已完成")) {
|
||||||
|
this->ui->lineEdit_Orderstatus->setEnabled(false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DialogTaskOrder::accept() {
|
void DialogTaskOrder::accept() {
|
||||||
QMessageBox::information(this, u8"信息", u8"信息更新成功");
|
this->onpushButtonUpdateOrderState_clicked();
|
||||||
|
this->close();
|
||||||
|
//QMessageBox::information(this, u8"信息", u8"信息更新成功");
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,6 +19,7 @@ namespace WBFZTASK {
|
||||||
public slots:
|
public slots:
|
||||||
void accept();
|
void accept();
|
||||||
void onpushButtonUpdateOrderState_clicked();
|
void onpushButtonUpdateOrderState_clicked();
|
||||||
|
void oncomboBoxStateSelect_currentIndexChanged(int);
|
||||||
private:
|
private:
|
||||||
Ui::DialogTaskOrder* ui;
|
Ui::DialogTaskOrder* ui;
|
||||||
WBFZTASK::TaskOrder* task;
|
WBFZTASK::TaskOrder* task;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1087</width>
|
<width>670</width>
|
||||||
<height>740</height>
|
<height>569</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -24,32 +24,12 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1050</width>
|
<width>633</width>
|
||||||
<height>791</height>
|
<height>827</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="6" column="0">
|
<item row="14" column="0">
|
||||||
<widget class="QLabel" name="label_ordersource">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单来源:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="1">
|
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit_intention">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>50</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="13" column="0">
|
|
||||||
<widget class="QLabel" name="label_orderstoreprocess">
|
<widget class="QLabel" name="label_orderstoreprocess">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
@ -71,195 +51,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="2">
|
||||||
<widget class="QLabel" name="label_createtime">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单创建时间:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="1">
|
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit_demand">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>300</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0">
|
|
||||||
<widget class="QLabel" name="label_applicant">
|
|
||||||
<property name="text">
|
|
||||||
<string>申请人:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label_orderid">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单id:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="0">
|
|
||||||
<widget class="QLabel" name="label_demand">
|
|
||||||
<property name="text">
|
|
||||||
<string>仿真需求:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_ordermode">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单模式:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_company">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>苏研院</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="0">
|
|
||||||
<widget class="QLabel" name="label_orderdetails">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>订单详情:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_contactinfo">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_userid">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>ZZX-gxfw001030</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_Orderstatus">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label_ordercode">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单编号:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0">
|
|
||||||
<widget class="QLabel" name="label_contactinfo">
|
|
||||||
<property name="text">
|
|
||||||
<string>联系方式:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0">
|
|
||||||
<widget class="QLabel" name="label_company">
|
|
||||||
<property name="text">
|
|
||||||
<string>需求单位:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="15" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_ordertype">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>微波仿真订单</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="1">
|
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit_orderdetails">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_ordermode">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_createtime">
|
<widget class="QLineEdit" name="lineEdit_createtime">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
@ -275,50 +67,26 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="15" column="2">
|
||||||
<widget class="QLabel" name="label_userid">
|
<widget class="QLineEdit" name="lineEdit_updatetime">
|
||||||
<property name="text">
|
|
||||||
<string>需求用户ID:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_ordercode">
|
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>30</height>
|
<height>1</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="maximumSize">
|
||||||
<string>OWLS_PC_DF_20240802150813_4570</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_ordersource">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>16777215</width>
|
||||||
<height>30</height>
|
<height>1</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>应用技术集成与共享服务分系统</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="15" column="0">
|
<item row="15" column="0">
|
||||||
<widget class="QLabel" name="label_ordertype">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单类型:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="14" column="0">
|
|
||||||
<widget class="QLabel" name="label_updatetime">
|
<widget class="QLabel" name="label_updatetime">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
@ -340,8 +108,35 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QLineEdit" name="lineEdit_orderid">
|
<widget class="QLabel" name="label_ordercode">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单编号:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_createtime">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单创建时间:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_company">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>苏研院</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_ordermode">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -351,58 +146,9 @@
|
||||||
<height>30</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>348</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="14" column="2">
|
||||||
<widget class="QLabel" name="label_orderstatus">
|
|
||||||
<property name="text">
|
|
||||||
<string>订单状态:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_applicant">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>30</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>zyg990305zyg@163.com</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0">
|
|
||||||
<widget class="QLabel" name="label_intention">
|
|
||||||
<property name="text">
|
|
||||||
<string>仿真目的:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="14" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_updatetime">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>1</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="13" column="1">
|
|
||||||
<widget class="QPlainTextEdit" name="plainTextEdit_orderstoreprocess">
|
<widget class="QPlainTextEdit" name="plainTextEdit_orderstoreprocess">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
@ -421,13 +167,308 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="2">
|
<item row="9" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_contactinfo">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="4">
|
||||||
<widget class="QPushButton" name="pushButtonUpdateOrderState">
|
<widget class="QPushButton" name="pushButtonUpdateOrderState">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>更新状态</string>
|
<string>更新状态</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="label_userid">
|
||||||
|
<property name="text">
|
||||||
|
<string>需求用户ID:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_applicant">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>zyg990305zyg@163.com</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0">
|
||||||
|
<widget class="QLabel" name="label_contactinfo">
|
||||||
|
<property name="text">
|
||||||
|
<string>联系方式:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_ordermode">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单模式:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QLabel" name="label_ordersource">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单来源:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_orderid">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单id:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="0">
|
||||||
|
<widget class="QLabel" name="label_demand">
|
||||||
|
<property name="text">
|
||||||
|
<string>仿真需求:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<widget class="QLabel" name="label_applicant">
|
||||||
|
<property name="text">
|
||||||
|
<string>申请人:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="13" column="2">
|
||||||
|
<widget class="QPlainTextEdit" name="plainTextEdit_orderdetails">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_orderid">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>348</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="2">
|
||||||
|
<widget class="QPlainTextEdit" name="plainTextEdit_demand">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>300</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_ordersource">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>应用技术集成与共享服务分系统</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="2">
|
||||||
|
<widget class="QPlainTextEdit" name="plainTextEdit_intention">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>50</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_userid">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>ZZX-gxfw001030</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_ordercode">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>OWLS_PC_DF_20240802150813_4570</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="0">
|
||||||
|
<widget class="QLabel" name="label_intention">
|
||||||
|
<property name="text">
|
||||||
|
<string>仿真目的:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="13" column="0">
|
||||||
|
<widget class="QLabel" name="label_orderdetails">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>订单详情:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="16" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_ordertype">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>微波仿真订单</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="0">
|
||||||
|
<widget class="QLabel" name="label_company">
|
||||||
|
<property name="text">
|
||||||
|
<string>需求单位:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="16" column="0">
|
||||||
|
<widget class="QLabel" name="label_ordertype">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单类型:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_orderstatus">
|
||||||
|
<property name="text">
|
||||||
|
<string>订单状态:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="2">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_Orderstatus">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>原因</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="2">
|
||||||
|
<widget class="QComboBox" name="comboBoxStateSelect">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>等待处理</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>已接收</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>已拒绝</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>正在处理中</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>已完成</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -76,6 +76,9 @@ namespace WBFZTASK {
|
||||||
else if (colname.contains(u8"创建时间")) {
|
else if (colname.contains(u8"创建时间")) {
|
||||||
ui->tableWidget->setItem(rowidx, colidx, new QTableWidgetItem(QString("%1").arg(taskcollect->getCurrentTaskAt(rowidx)->getCreateTime())));
|
ui->tableWidget->setItem(rowidx, colidx, new QTableWidgetItem(QString("%1").arg(taskcollect->getCurrentTaskAt(rowidx)->getCreateTime())));
|
||||||
}
|
}
|
||||||
|
else if (colname.contains(u8"ÈÎÎñÄÚÈÝ")) {
|
||||||
|
ui->tableWidget->setItem(rowidx, colidx, new QTableWidgetItem(QString("%1").arg(taskcollect->getCurrentTaskAt(rowidx)->getContactInfo())));
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#include <qobject.h>
|
#include <qobject.h>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QUrlQuery>
|
#include <QUrlQuery>
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include "TaskOrder.h"
|
#include "TaskOrder.h"
|
||||||
|
|
||||||
namespace LAMPWBCONNECT {
|
namespace LAMPWBCONNECT {
|
||||||
|
@ -95,10 +97,12 @@ namespace LAMPWBCONNECT {
|
||||||
|
|
||||||
//WBFZTASK::TaskCollect::getInstance()->LoadTaskCollect(doc, reply->errorString());
|
//WBFZTASK::TaskCollect::getInstance()->LoadTaskCollect(doc, reply->errorString());
|
||||||
qDebug() << "request success " << reply->url();
|
qDebug() << "request success " << reply->url();
|
||||||
|
QMessageBox::information(nullptr, u8"信息", u8"信息更新成功");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//WBFZTASK::TaskCollect::getInstance()->LoadTaskCollectState(reply->errorString());
|
//WBFZTASK::TaskCollect::getInstance()->LoadTaskCollectState(reply->errorString());
|
||||||
qDebug() << "request failed:" << reply->errorString();
|
qDebug() << "request failed:" << reply->errorString();
|
||||||
|
QMessageBox::information(nullptr, u8"信息", u8"信息更新失败");
|
||||||
}
|
}
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
|
@ -156,6 +156,12 @@ namespace WBFZTASK {
|
||||||
if (jsonObj.contains("ordertype") && !(jsonObj["ordertype"].isNull()) && (jsonObj["ordertype"].toString().contains(QString(u8"菓꺼력廬땐데"))))
|
if (jsonObj.contains("ordertype") && !(jsonObj["ordertype"].isNull()) && (jsonObj["ordertype"].toString().contains(QString(u8"菓꺼력廬땐데"))))
|
||||||
{
|
{
|
||||||
TaskOrder neworder(jsonObj);
|
TaskOrder neworder(jsonObj);
|
||||||
|
if (neworder.getIntention().trimmed().contains(u8"²âÊÔ") && neworder.getIntention().trimmed().count() == 2) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if (neworder.getOrderStatus().trimmed().count() == 0) {
|
||||||
|
neworder.setOrderStatus(u8"ÒÑÍê³É");
|
||||||
|
}
|
||||||
this->Currnettasklist.append(neworder);
|
this->Currnettasklist.append(neworder);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue