21/05/2024 - 21h
parent
cc89db7888
commit
d46e95777f
|
@ -3602,8 +3602,8 @@ const Notes_Evaluation = (props) => {
|
|||
className="disabled_style"
|
||||
//className="disabled_style enable_style"
|
||||
options={New_Getall_Partner_Class_Reduice_Fields_result}
|
||||
// value={New_Getall_Partner_Class_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id))[0].label}
|
||||
value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label}
|
||||
value={New_Getall_Partner_Class_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id))[0].label}
|
||||
//value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_class_id))[0].label}
|
||||
onChange={(event, value) => {
|
||||
if (value && value._id) {
|
||||
Get_List_UE_From_Class_Id(value._id);
|
||||
|
|
|
@ -84,6 +84,10 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
);
|
||||
}
|
||||
|
||||
function Annule_Mise_A_jour() {
|
||||
|
||||
}
|
||||
|
||||
const columns_type_evaluation = [
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
|
@ -231,6 +235,8 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
const [selected_type_eval_id, setselected_type_eval_id] = useState();
|
||||
|
||||
|
||||
const [New_Getall_Parter_config_type_evaluation_result, setNew_Getall_Parter_config_type_evaluation_result] = useState([]);
|
||||
|
||||
const [Getall_Parter_config_type_evaluation_api, setGetall_Parter_config_type_evaluation_api] = useState();
|
||||
const [Getall_Parter_config_type_evaluation_message, setGetall_Parter_config_type_evaluation_message] = useState();
|
||||
const [Getall_Parter_config_type_evaluation_result, setGetall_Parter_config_type_evaluation_result] = useState([]);
|
||||
|
@ -253,7 +259,47 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
//console.log(" In Getall_Parter_config_type_evaluation res.data.message r_class = " + res.data.message);
|
||||
setGetall_Parter_config_type_evaluation_api("true");
|
||||
setGetall_Parter_config_type_evaluation_result(res.data.message);
|
||||
setRows(res.data.message);
|
||||
//setRows(res.data.message);
|
||||
|
||||
var new_data2 = [];
|
||||
const new_data = res.data.message.map((x) => {
|
||||
|
||||
//---
|
||||
var localid = JSON.parse(x).id;
|
||||
var local_id = JSON.parse(x)._id;
|
||||
var local_nom = JSON.parse(x).nom;
|
||||
var local_code = JSON.parse(x).code;
|
||||
var local_description = JSON.parse(x).description;
|
||||
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": local_id,
|
||||
"id": localid,
|
||||
"label": local_code + " " + local_nom,
|
||||
"nom": local_nom,
|
||||
"code": local_code,
|
||||
"description": local_description,
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
});
|
||||
|
||||
//---
|
||||
var node = {
|
||||
"_id": "",
|
||||
"id": "",
|
||||
"label": "",
|
||||
"nom": "",
|
||||
"code": "",
|
||||
"description": "",
|
||||
|
||||
};
|
||||
new_data2.push(node);
|
||||
|
||||
if (new_data2.length > 0)
|
||||
setNew_Getall_Parter_config_type_evaluation_result(new_data2);
|
||||
|
||||
}
|
||||
else {
|
||||
setGetall_Parter_config_type_evaluation_api("false");
|
||||
|
@ -400,17 +446,21 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
|
||||
const myRef = useRef(null)
|
||||
|
||||
function Annule_Type_Eval_DetailFields() {
|
||||
async function Annule_Type_Eval_DetailFields() {
|
||||
|
||||
|
||||
var line1 = New_Getall_Parter_config_type_evaluation_result.filter((data) => (data)._id === String(selected_type_eval_id))
|
||||
|
||||
var line = JSON.parse(Getall_Parter_config_type_evaluation_result[selected_type_eval_id]);
|
||||
|
||||
setdisplay_detail_type_eval("1");
|
||||
setadd_config_type_eval("");
|
||||
|
||||
setp_detail_config_code(line.code);
|
||||
setp_detail_config_nom(line.nom);
|
||||
setp_detail_config_description(line.description);
|
||||
|
||||
setp_detail_config_code(line1[0].code);
|
||||
setp_detail_config_nom(line1[0].nom);
|
||||
setp_detail_config_description(line1[0].description);
|
||||
|
||||
await sleep(5);
|
||||
|
||||
Disable_Config_Type_Eval_DetailFields();
|
||||
|
||||
|
@ -686,7 +736,7 @@ const Partner_Config_Ftion_Initiale = (props) => {
|
|||
selectionModel={selectionModel_type_eval}
|
||||
|
||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||
rows={rowss.map((item, index) => (
|
||||
rows={Getall_Parter_config_type_evaluation_result.map((item, index) => (
|
||||
{
|
||||
id: index,
|
||||
_id: JSON.parse(item)._id,
|
||||
|
|
|
@ -23,7 +23,7 @@ const Automaticquotation = () => {
|
|||
window.setTimeout(function () {
|
||||
if (String(already_run) === "true")
|
||||
window.location.href = "/Partner/mes_cmd/";
|
||||
}, 20000);
|
||||
}, 10000);
|
||||
|
||||
|
||||
function check() {
|
||||
|
@ -146,7 +146,7 @@ const Automaticquotation = () => {
|
|||
<div style={{ "color": "green", "marginTop": "10rem" }}>
|
||||
|
||||
<div>
|
||||
<img src={ok_png} className="img_ok" /> Super le devis a été créé avec la référence : {quotation_ref} <br />
|
||||
<img src={ok_png} className="img_ok" /> Super le devis a été créé avec la référence : {quotation_ref} <br />
|
||||
</div>
|
||||
Vous allez être redirigé vers la liste des devis dans quelques secondes {tempo}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue