ota中英文翻译
This commit is contained in:
@@ -1511,9 +1511,151 @@ module.exports = {
|
|||||||
dateofproduction:'Date of production',
|
dateofproduction:'Date of production',
|
||||||
VINcodelist:'VIN code list',
|
VINcodelist:'VIN code list',
|
||||||
VINcodeupload:'VIN code upload',
|
VINcodeupload:'VIN code upload',
|
||||||
|
recordmaintenance:'Record maintenance',
|
||||||
|
upgradecompletion:'Upgrade completion',
|
||||||
|
implementedupgrade:'Whether the implemented upgrade is consistent with the record',
|
||||||
|
numberofvehicles:'Number of vehicles that have completed upgrades',
|
||||||
|
vehicleshavenotcompletedonlineupgrade:'The reason why some vehicles have not completed online upgrade',
|
||||||
|
implementationrecords:'Fault handling measures and emergency response implementation records',
|
||||||
Tasknode:'Task Node',
|
Tasknode:'Task Node',
|
||||||
Taskresponsibilityrecognition:'Task responsibility recognition',
|
Taskresponsibilityrecognition:'Task responsibility recognition',
|
||||||
uploadattachment:'Upload attachment',
|
uploadattachment:'Upload attachment',
|
||||||
Processhistory:'Process history',
|
Processhistory:'Process history',
|
||||||
resultofhandling:'Result of handling'
|
resultofhandling:'Result of handling',
|
||||||
|
cause:'cause',
|
||||||
|
networksecurityrequirements:'Network security requirements',
|
||||||
|
upgradefunctionrequirements:'Upgrade function requirements',
|
||||||
|
usernotificationrequirement:'User notification requirement',
|
||||||
|
ineffectiveupgrades:'The authenticity and integrity of the upgrade package should be protected to reasonably prevent damage to it and to reasonably prevent ineffective upgrades',
|
||||||
|
againstunauthorized:'The software version (set) on the vehicle should be protected against unauthorized modification',
|
||||||
|
communicationinterfacethathasateastusedastandard:'The vehicle should have the ability to update the software version (set) and should be easily read in a standardized manner by using an electronic communication interface that has at least used a standard interface (such as an OBD port)',
|
||||||
|
softwareupgrade:'Ensure that the vehicle meets prerequisites before performing a software upgrade',
|
||||||
|
Ensurethatsoftware:'Ensure that software upgrades are performed only when the vehicle has sufficient power to complete the upgrade process (including the amount of power that may be required to revert to a previous version or bring the vehicle into a safe state)',
|
||||||
|
ifanupgrademayaffectvehiclesafety:'If an upgrade may affect vehicle safety, use technical measures to ensure vehicle safety during the upgrade',
|
||||||
|
iftheimplementationoftheupgradaffectsdrivingsafety:'If the implementation of the upgrade affects driving safety, at least:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a) Ensure that vehicles cannot be driven during the implementation of the upgrade;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b) Ensure that the driver cannot use any vehicle feature that may affect the safety of the vehicle or the successful execution of the upgrade',
|
||||||
|
ensurethatthevehicleisinasafecondition:'If the upgrade fails or is interrupted, the vehicle can be restored to a previously available version, or ensure that the vehicle is in a safe condition.',
|
||||||
|
priortotheexecutionoftheupgrade:'Prior to the execution of the upgrade, the vehicle user shall be informed of the upgrade information, which shall include:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a) The purpose of the upgrade;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b) Any changes implemented as a result of the upgrading of vehicle features;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(c) The estimated time for completion of the upgrade implementation;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(d) Any vehicle functions that may not be available during the implementation of the upgrade;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(e) Any guidance information that may assist a vehicle user in carrying out the upgrade safely.',
|
||||||
|
afterperformingtheupgrade:'After performing the upgrade, the vehicle shall:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a) To inform the vehicle user of the result of the vehicle upgrade (success or failure);\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b) If the upgrade is successful, inform the vehicle user of the changes implemented and any relevant updates to the user manual (if applicable).',
|
||||||
|
upgradepacketprotectionmeasures:'Upgrade packet protection measures',
|
||||||
|
otaupgradedsecuritymeasuresforvehicles:'OTA upgraded security measures for vehicles',
|
||||||
|
authenticityandintegrityprotectionmechanism:'Authenticity and integrity protection mechanism (multiple options)',
|
||||||
|
failsafmechanism:'Fail-safe mechanism (optional)',
|
||||||
|
vehiclesafetyMeasuresafterUpgradefailure:'Vehicle safety Measures after Upgrade failure (optional)',
|
||||||
|
informationsecuritymechanism:'Information security mechanism (multiple options)',
|
||||||
|
dynamicsystem:'Dynamic system',
|
||||||
|
transmissionsystem:'Transmission system',
|
||||||
|
steeringsystem:'Steering system',
|
||||||
|
brakingsystem:'Braking system',
|
||||||
|
bodysystem:'Body system',
|
||||||
|
vehicleenergysystem:'Vehicle energy system',
|
||||||
|
forwardcollisionwarning:'Forward collision warning (FCW)',
|
||||||
|
laneDepartureWarning:'Lane Departure Warning (LDW)',
|
||||||
|
multiareamonitoring:'Multi-area monitoring (BSD)',
|
||||||
|
residentfatiguebasket:'Resident fatigue basket AU CDFM)',
|
||||||
|
automaticemergencybraking:'Automatic emergency braking (AEB)',
|
||||||
|
adaptiveCruiseControl:'Adaptive Cruise Control (ACC)',
|
||||||
|
laneKeepingAssist:'Lane Keeping Assist (LKA)',
|
||||||
|
intelligentParkingAssistance:'Intelligent Parking Assistance (IPA)',
|
||||||
|
trafficCongestionAssistance:'Traffic Congestion Assistance (TJA)',
|
||||||
|
millimeterwaveradar:'Millimeter wave radar',
|
||||||
|
ultrasonicradar:'Ultrasonic radar',
|
||||||
|
camera:'camera',
|
||||||
|
asternimage:'Astern image /360 (look around)',
|
||||||
|
Monocularbinocularmultiocular:'Monocular/binocular/multiocular',
|
||||||
|
driverattentionmonitoringsystem:'Driver attention monitoring system DMS',
|
||||||
|
positioningandnavigationsystem:'Positioning and navigation system',
|
||||||
|
vehiclecommunicationsystem:'Vehicle communication system',
|
||||||
|
driversurveillancecamera:'Driver surveillance camera',
|
||||||
|
drivermonitoringinfraredsensor:'Driver monitoring infrared sensor',
|
||||||
|
vehiclesatellitepositioningequipment:'Vehicle satellite positioning equipment',
|
||||||
|
inertialnavigationsystem:'Inertial navigation system',
|
||||||
|
wheelspeedmeter:'Wheel speed meter',
|
||||||
|
highprecisionmap:'High precision map',
|
||||||
|
electronicfence:'Electronic fence',
|
||||||
|
signalingdevices:'Driver assistance system controls, indicators and signaling devices',
|
||||||
|
driverassistancefunctioncontrols:'Driver assistance function controls',
|
||||||
|
drivingassistancefunctionindicatorsignaldevice:'Driving assistance function indicator/signal device',
|
||||||
|
steerinwheelreleaseindicatorsignaldevice:'Steering wheel release indicator/signal device',
|
||||||
|
driverattentionindicatorsignaldevice:'Driver attention indicator/signal device',
|
||||||
|
automaticDrivingDataRecordingSystem:'Automatic Driving Data Recording System (DSSAD)',
|
||||||
|
eventdatarecordingsystem:'Event data recording system (EDR)',
|
||||||
|
layoutposition:'Layout position',
|
||||||
|
specificationmodel:'Specification and model',
|
||||||
|
productionenterprise:'Production enterprise',
|
||||||
|
qualitativelydescriberelevantplaces:'Qualitatively describe relevant places',
|
||||||
|
systemname:'System name',
|
||||||
|
systemspecificationmodel:'System specification model',
|
||||||
|
systemproductionenterprise:'System production enterprise',
|
||||||
|
softwareversionnumber:'Software version number',
|
||||||
|
softwaredevelopmententerprise:'Software development enterprise',
|
||||||
|
controlname:'Control name',
|
||||||
|
hardwarespecificationmodel:'Hardware specification model',
|
||||||
|
nameofindicatorsignaldevice:'Name of indicator/signal device',
|
||||||
|
otaupgradefunctionmodule:'OTA upgrade function module',
|
||||||
|
upgradePurpose:'Upgrade Purpose (multiple options)',
|
||||||
|
impactassessmentofupgradeactivities:'Impact assessment of upgrade activities',
|
||||||
|
correspondingvehicletype:'Whether to change the technical parameters of the Announcement of the corresponding vehicle type',
|
||||||
|
technicalperformancechanges:'Whether it involves product safety, environmental protection, energy saving, anti-theft and other technical performance changes',
|
||||||
|
technicalstandardsandsafetytechnicalconditions:'Whether in line with national laws, administrative regulations, rules and regulations, as well as road motor vehicle announcement management related to the national technical standards and safety technical conditions',
|
||||||
|
autoautonomousdrivingfunction:'Whether it involves upgrades related to the auto autonomous driving function',
|
||||||
|
vehiclepriortothereleaseoftheupgrade:'Confirm the compatibility of the upgrade package with the target vehicle configuration, including a compatibility assessment of the latest known software and hardware configuration of the target vehicle prior to the release of the upgrade',
|
||||||
|
conditionsareupgradesperformed:'How and under what conditions are upgrades performed',
|
||||||
|
upgradefailureorinterruption:'Safety mechanism for vehicle after upgrade failure or interruption (multiple options available)',
|
||||||
|
upgradeactivitiesaffectvehiclesafety:'Whether the upgrade activities affect vehicle safety',
|
||||||
|
upgradeactivityprovidesuserconfirmationoptions:'Whether the upgrade activity provides user confirmation options',
|
||||||
|
upgradepackagetest:'Upgrade package test (multiple options)',
|
||||||
|
reliabilityofonlineupgradeactivities:'It has verified the safety and reliability of online upgrade activities',
|
||||||
|
adjustmentofchangedBulletinparameters:'Adjustment of changed Bulletin parameters (if any)',
|
||||||
|
preupgrade:'pre-upgrade',
|
||||||
|
afterupgrade:'After upgrade',
|
||||||
|
nameoftheupgradedelectroniccontroller:'Name of the upgraded electronic controller',
|
||||||
|
adaptivehardwareversion:'Adaptive hardware version',
|
||||||
|
beforethesoftwareversionupgraded:'Before the software version is upgraded',
|
||||||
|
afterthesoftwareversionupgraded:'After the software version is upgraded',
|
||||||
|
beforetheOSversionupgraded:'Before the OS version is upgraded',
|
||||||
|
aftertheoperatingsystemversionupgraded:'After the operating system version is upgraded',
|
||||||
|
initialpackageforintegrityinflammatorydata:'Initial package for integrity of inflammatory data',
|
||||||
|
upgradepackageintegrityverificationdata:'Upgrade package integrity verification data',
|
||||||
|
upgradepackagesize:'Upgrade package size',
|
||||||
|
differentialupgradeornot:'Differential upgrade or not',
|
||||||
|
upgradedestinationype:'Upgrade destination type',
|
||||||
|
functionalchangedescription:'Functional change description',
|
||||||
|
variationofapplicableconditions:'Variation of applicable conditions',
|
||||||
|
upgradetheelectroniccontrollerinvolved:'Upgrade the electronic controller involved',
|
||||||
|
beforetheupgrade:'Before the upgrade',
|
||||||
|
pgradepurpose:'Upgrade purpose',
|
||||||
|
vehiclefunctionalityasaresultofsoftwareupgradeactivities:'Any changes in vehicle functionality as a result of software upgrade activities',
|
||||||
|
estimatedupgradeexecutionTime:'Estimated upgrade execution Time (minutes)',
|
||||||
|
upgradeexecutionperiodasksifthevehicleisusable:'The upgrade execution period asks if the vehicle is usable',
|
||||||
|
vehiclefeaturesthatarenotavailableduringupgradeexecution:'Vehicle features that are not available during upgrade execution',
|
||||||
|
vehicleusersafelyperformtheupgrade:'Any guidance information to help the vehicle user safely perform the upgrade',
|
||||||
|
aftertheupgrade:'After the upgrade',
|
||||||
|
notifiestheuseroftheupgradesuccessorfailure:'Notifies the user of the upgrade success or failure',
|
||||||
|
informimplementationchanges:'Inform implementation changes',
|
||||||
|
allupdatestotheusermanualareinformed:'All updates to the user manual are informed',
|
||||||
|
usernotificationmode:'User notification mode',
|
||||||
|
userinformstherelevantfile:'user informs the relevant file',
|
||||||
|
taskname:'Task name',
|
||||||
|
updatereleasetime:'Update release time',
|
||||||
|
upgradeplanexpirationtime:'Upgrade plan expiration time',
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1613,9 +1613,151 @@ module.exports = {
|
|||||||
dateofproduction:'生产日期',
|
dateofproduction:'生产日期',
|
||||||
VINcodelist:'VIN码清单',
|
VINcodelist:'VIN码清单',
|
||||||
VINcodeupload:'VIN码上传',
|
VINcodeupload:'VIN码上传',
|
||||||
|
recordmaintenance:'备案维护',
|
||||||
|
upgradecompletion:'升级完成情况',
|
||||||
|
implementedupgrade:'实施的升级是否和备案一致',
|
||||||
|
numberofvehicles:'完成升级的车辆数',
|
||||||
|
vehicleshavenotcompletedonlineupgrade:'部分车辆未完在线升级的原因',
|
||||||
|
implementationrecords:'故障处置措施和应急响应实施记录',
|
||||||
|
cause:'原因',
|
||||||
Tasknode:'任务节点',
|
Tasknode:'任务节点',
|
||||||
Taskresponsibilityrecognition:'任务责任确认',
|
Taskresponsibilityrecognition:'任务责任确认',
|
||||||
uploadattachment:'上传附件',
|
uploadattachment:'上传附件',
|
||||||
Processhistory:'流程历史',
|
Processhistory:'流程历史',
|
||||||
resultofhandling:'处理结果'
|
resultofhandling:'处理结果',
|
||||||
|
networksecurityrequirements:'网络安全要求',
|
||||||
|
upgradefunctionrequirements:'升级功能要求',
|
||||||
|
usernotificationrequirement:'用户告知要求',
|
||||||
|
ineffectiveupgrades:'应保护升级包的真实性和完整性,以合理地防止其受到损害,并合理地防止无效升级',
|
||||||
|
againstunauthorized:'应保护车辆上的软件版本(集),防止未经授权的修改',
|
||||||
|
communicationinterfacethathasateastusedastandard:'车辆应具备更新软件版本(集)的能力,应通过使用电子通信接口,至少用过标准接口(如OBD端口),以标准化的方式易于读取',
|
||||||
|
softwareupgrade:'应确保车辆在执行软件升级之前满足先决条件',
|
||||||
|
Ensurethatsoftware:'应确保只有当车辆有充足电量完成升级过程时,才能执行软件升级(包括可能恢复到以前版本或使车辆进入安全状态所需的电量)',
|
||||||
|
ifanupgrademayaffectvehiclesafety:'当执行升级可能影响车辆安全时,应在升级执行过程中通过技术手段确保车辆安全',
|
||||||
|
iftheimplementationoftheupgradaffectsdrivingsafety:'若升级的执行影响驾驶安全,至少应满足:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a)确保升级执行期间无法驾驶车辆;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b)确保驾驶员不能使用任何可能影响车辆安全或成功执行升级的车辆功能',
|
||||||
|
ensurethatthevehicleisinasafecondition:'若升级失败或中断,车辆能够恢复到以前的可用版本,或确保车辆处于安全状态。',
|
||||||
|
priortotheexecutionoftheupgrade:'在升级执行前,应告知车辆用户升级信息,告知的信息应包括:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a)升级目的;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b)车辆功能升级所实施的任何变更;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(c)完成升级执行的预计时间;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(d)升级执行期间可能不可用的任何车辆功能;\n' +
|
||||||
|
'\n' +
|
||||||
|
'(e)可能帮助车辆用户安全执行升级的任何指导信息。',
|
||||||
|
afterperformingtheupgrade:'在执行升级后,车辆应:\n' +
|
||||||
|
'\n' +
|
||||||
|
'(a))告知车辆用户车辆升级的结果(成功或失败);\n' +
|
||||||
|
'\n' +
|
||||||
|
'(b)若升级成功,告知车辆用户已实施的变更,用户手册(如果适用)的任何相关更新。',
|
||||||
|
upgradepacketprotectionmeasures:'升级包保护措施',
|
||||||
|
otaupgradedsecuritymeasuresforvehicles:'车辆OTA升级安全措施',
|
||||||
|
authenticityandintegrityprotectionmechanism:'真实性、完整性保护机制(可多选)',
|
||||||
|
failsafmechanism:'防失效保护机制(可多选)',
|
||||||
|
vehiclesafetyMeasuresafterUpgradefailure:'升级失败后车辆安全措施(可多选)',
|
||||||
|
informationsecuritymechanism:'信息安全机制(可多选)',
|
||||||
|
dynamicsystem:'动力系统',
|
||||||
|
transmissionsystem:'传动系统',
|
||||||
|
brakingsystem:'制动系统',
|
||||||
|
bodysystem:'车身系统',
|
||||||
|
vehicleenergysystem:'车载能源系统',
|
||||||
|
forwardcollisionwarning:'前向碰撞预警(FCW)',
|
||||||
|
laneDepartureWarning:'车道偏离预警(LDW)',
|
||||||
|
multiareamonitoring:'百区监测(BSD)',
|
||||||
|
residentfatiguebasket:'驻员疲劳篮澳CDFM)',
|
||||||
|
automaticemergencybraking:'自动紧急制动(AEB)',
|
||||||
|
adaptiveCruiseControl:'自适应巡航控制(ACC)',
|
||||||
|
laneKeepingAssist:'车道保持辅助(LKA)',
|
||||||
|
intelligentParkingAssistance:'智能泊车辅助(IPA)',
|
||||||
|
trafficCongestionAssistance:'交通拥堵辅助(TJA)',
|
||||||
|
millimeterwaveradar:'毫米波雷达',
|
||||||
|
ultrasonicradar:'超声波雷达',
|
||||||
|
camera:'摄像头',
|
||||||
|
asternimage:'倒车影像/360(环视)',
|
||||||
|
Monocularbinocularmultiocular:'单目/双目/多目',
|
||||||
|
driverattentionmonitoringsystem:'驾驶员注意力监测系统DMS',
|
||||||
|
positioningandnavigationsystem:'定位及导航系统',
|
||||||
|
vehiclecommunicationsystem:'车载通信系统',
|
||||||
|
driversurveillancecamera:'驾驶员监控摄像头',
|
||||||
|
drivermonitoringinfraredsensor:'驾驶员监控红外传感器',
|
||||||
|
vehiclesatellitepositioningequipment:'车载卫星定位设备',
|
||||||
|
inertialnavigationsystem:'惯性导航系统',
|
||||||
|
wheelspeedmeter:'轮速计',
|
||||||
|
highprecisionmap:'高精度地图',
|
||||||
|
electronicfence:'电子围栏',
|
||||||
|
signalingdevices:'驾驶辅助系统操纵件、指示器及信号装置',
|
||||||
|
driverassistancefunctioncontrols:'驾驶辅助功能操纵件',
|
||||||
|
drivingassistancefunctionindicatorsignaldevice:'驾驶辅助功能指示器/信号装置',
|
||||||
|
steerinwheelreleaseindicatorsignaldevice:'方向盘脱手提示器/信号装置',
|
||||||
|
driverattentionindicatorsignaldevice:'驾驶员注意力提醒指示器/信号装置',
|
||||||
|
automaticDrivingDataRecordingSystem:'自动驾驶数据记录系统(DSSAD)',
|
||||||
|
eventdatarecordingsystem:'事件数据记录系统(EDR)',
|
||||||
|
layoutposition:'布置位置',
|
||||||
|
specificationmodel:'规格型号',
|
||||||
|
productionenterprise:'生产企业',
|
||||||
|
qualitativelydescriberelevantplaces:'定性描述相关场所',
|
||||||
|
systemname:'系统名称',
|
||||||
|
systemspecificationmodel:'系统规格型号',
|
||||||
|
systemproductionenterprise:'系统生产企业',
|
||||||
|
softwareversionnumber:'软件版本号',
|
||||||
|
softwaredevelopmententerprise:'软件开发企业',
|
||||||
|
controlname:'操纵件名称',
|
||||||
|
hardwarespecificationmodel:'硬件规格型号',
|
||||||
|
nameofindicatorsignaldevice:'指示器/信号装置名称',
|
||||||
|
otaupgradefunctionmodule:'车端OTA升级功能模块',
|
||||||
|
upgradePurpose:'升级目的(可多选)',
|
||||||
|
impactassessmentofupgradeactivities:'升级活动的影响评估',
|
||||||
|
correspondingvehicletype:'是否变更对应车型的《公告》技术参数',
|
||||||
|
technicalperformancechanges:'是否涉及产品安全、环保、节能、防盗等技术性能变化',
|
||||||
|
technicalstandardsandsafetytechnicalconditions:'是否符合国家法律、行政法规、规章规定,以及道路机动车辆公告管理相关国家技术标准及安全技术条件等',
|
||||||
|
autoautonomousdrivingfunction:'是否涉及汽车自动驾驶功能相关升级',
|
||||||
|
vehiclepriortothereleaseoftheupgrade:'是否确认升级包与目标车辆配置的兼容性,包括在发布升级之前对目标车辆的最新已知软件和硬件配置进行兼容性评估',
|
||||||
|
conditionsareupgradesperformed:'如何执行升级以及在何种条件下执行升级',
|
||||||
|
upgradefailureorinterruption:'升级失败或中断后,车辆采取的安全机制(可多选)',
|
||||||
|
upgradeactivitiesaffectvehiclesafety:'升级活动是否影响车辆安全',
|
||||||
|
upgradeactivityprovidesuserconfirmationoptions:'升级活动是否提供用户确认选项',
|
||||||
|
upgradepackagetest:'升级包测试(可多选)',
|
||||||
|
reliabilityofonlineupgradeactivities:'是杏已验证确认在线升级活动的安全性和可靠性',
|
||||||
|
adjustmentofchangedBulletinparameters:'已变更《公告》参数的对应调整(如有)',
|
||||||
|
preupgrade:'升级前',
|
||||||
|
afterupgrade:'升级后',
|
||||||
|
nameoftheupgradedelectroniccontroller:'升级的电子控制器名称',
|
||||||
|
adaptivehardwareversion:'适配的硬件版本',
|
||||||
|
beforethesoftwareversionupgraded:'软件版本号升级前',
|
||||||
|
afterthesoftwareversionupgraded:'软件版本号升级后',
|
||||||
|
beforetheOSversionupgraded:'操作系统版本号升级前',
|
||||||
|
aftertheoperatingsystemversionupgraded:'操作系统版本号升级后',
|
||||||
|
initialpackageforintegrityinflammatorydata:'初始软件包的完整性炎症数据',
|
||||||
|
upgradepackageintegrityverificationdata:'升级包完整性验证数据',
|
||||||
|
upgradepackagesize:'升级包大小',
|
||||||
|
differentialupgradeornot:'是否差分升级',
|
||||||
|
upgradedestinationype:'升级目的类型',
|
||||||
|
functionalchangedescription:'功能变更描述',
|
||||||
|
variationofapplicableconditions:'适用条件变更',
|
||||||
|
upgradetheelectroniccontrollerinvolved:'升级涉及的电子控制器',
|
||||||
|
beforetheupgrade:'升级执行前',
|
||||||
|
pgradepurpose:'升级目的',
|
||||||
|
vehiclefunctionalityasaresultofsoftwareupgradeactivities:'由于软件升级活动而导致的车辆功能的任何变化',
|
||||||
|
estimatedupgradeexecutionTime:'升级执行预计时间(分钟)',
|
||||||
|
upgradeexecutionperiodasksifthevehicleisusable:'升级执行期问,车辆是否可用',
|
||||||
|
vehiclefeaturesthatarenotavailableduringupgradeexecution:'升级执行期间不可用的车辆功能',
|
||||||
|
vehicleusersafelyperformtheupgrade:'帮助车辆用户安全执行升级的任何指导信息',
|
||||||
|
aftertheupgrade:'升级执行后',
|
||||||
|
notifiestheuseroftheupgradesuccessorfailure:'告知用户升级成功或失败',
|
||||||
|
informimplementationchanges:'告知实施的变更',
|
||||||
|
allupdatestotheusermanualareinformed:'告知了对用户手册的全部更新内容',
|
||||||
|
usernotificationmode:'告知用户方式',
|
||||||
|
userinformstherelevantfile:'用户告知相关文件',
|
||||||
|
taskname:'任务名称',
|
||||||
|
updatereleasetime:'升级发布时间',
|
||||||
|
upgradeplanexpirationtime:'升级计划截止时间',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,241 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<a-upload name="file" :showUploadList="false"
|
||||||
|
class="upload-text"
|
||||||
|
:multiple="false" :headers="tokenHeader"
|
||||||
|
:action="importUrl"
|
||||||
|
@change="handleImport"
|
||||||
|
:accept="accept">
|
||||||
|
<a-icon type="import" :rotate="270"/>
|
||||||
|
{{$t('dataimport')}}
|
||||||
|
</a-upload>
|
||||||
|
<div class="loading-box" v-if="spinning">
|
||||||
|
<div class="loading-content">
|
||||||
|
<a-icon class="loading" type="loading"/>
|
||||||
|
<div class="loading-tips">
|
||||||
|
{{this.$t('Importing')}}...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vue from 'vue'
|
||||||
|
import {ACCESS_TOKEN} from '@/store/mutation-types'
|
||||||
|
import eventBUs from '../../common/event'
|
||||||
|
import {Modal} from 'ant-design-vue'
|
||||||
|
import store from '@/store'
|
||||||
|
export default {
|
||||||
|
name: 'index',
|
||||||
|
props: {
|
||||||
|
url: {
|
||||||
|
type: Object,
|
||||||
|
default: {}
|
||||||
|
},
|
||||||
|
//判断当前文档库还是其余的页面
|
||||||
|
isTrue: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
accept: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
projectId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
dummyInventoryBaseId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
paramsTemplateId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
projectLibraryId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
||||||
|
spinning: false,
|
||||||
|
cut: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
importUrl() {
|
||||||
|
if (this.projectId) {
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectId=' + this.projectId
|
||||||
|
} else if (this.dummyInventoryBaseId) {
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&dummyInventoryBaseId=' + this.dummyInventoryBaseId
|
||||||
|
} else if (this.paramsTemplateId) {
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId
|
||||||
|
} else if (this.projectLibraryId) {
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectLibraryId=' + this.projectLibraryId
|
||||||
|
}
|
||||||
|
return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
let long = localStorage.getItem('language')
|
||||||
|
this.cut = ''
|
||||||
|
if (long && long == 'zh-cn') {
|
||||||
|
this.cut = 'cn'
|
||||||
|
} else if (long && long == 'en-us') {
|
||||||
|
this.cut = 'en'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleImport(info) {
|
||||||
|
this.spinning = true
|
||||||
|
if (info.file.status !== 'uploading') {
|
||||||
|
console.log(info.file, info.fileList)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (info.file.status === 'done') {
|
||||||
|
if (info.file.response.success) {
|
||||||
|
if (info.file.response.code === 201) {
|
||||||
|
let {message} = info.file.response
|
||||||
|
let {name} = info.file
|
||||||
|
let content = []
|
||||||
|
if (message) {
|
||||||
|
message = message.split('</br>')
|
||||||
|
message.forEach(res => {
|
||||||
|
if (res) {
|
||||||
|
content.push( < div > {res} < /div>)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.$warning({
|
||||||
|
title: name,
|
||||||
|
content: (
|
||||||
|
< div >
|
||||||
|
{content}
|
||||||
|
< /div>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
if (this.isTrue) {
|
||||||
|
this.$emit('getList',info.file.response.result)
|
||||||
|
} else {
|
||||||
|
eventBUs.$emit('searchGetData')
|
||||||
|
}
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
}
|
||||||
|
this.spinning = false
|
||||||
|
} else {
|
||||||
|
let data = info.file.response
|
||||||
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
|
if ((token && data.message.includes('Token失效')) || (token && data.message.includes('token')) || (token && data.message.includes('用户不存在'))) {
|
||||||
|
this.spinning = false
|
||||||
|
Modal.error({
|
||||||
|
title: '登录已过期',
|
||||||
|
content: '很抱歉,登录已过期,请重新登录',
|
||||||
|
okText: '重新登录',
|
||||||
|
mask: false,
|
||||||
|
onOk: () => {
|
||||||
|
store.dispatch('Logout').then(() => {
|
||||||
|
Vue.ls.remove(ACCESS_TOKEN)
|
||||||
|
window.location.reload()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let {message} = info.file.response
|
||||||
|
let {name} = info.file
|
||||||
|
let content = []
|
||||||
|
if (message) {
|
||||||
|
message = message.split('</br>')
|
||||||
|
message.forEach(res => {
|
||||||
|
if (res) {
|
||||||
|
content.push( < div > {res} < /div>)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.$warning({
|
||||||
|
title: name,
|
||||||
|
content: (
|
||||||
|
< div >
|
||||||
|
{content}
|
||||||
|
< /div>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
this.spinning = false
|
||||||
|
}
|
||||||
|
} else if (info.file.status === 'error') {
|
||||||
|
if (info.file.response.status === 500) {
|
||||||
|
let data = info.file.response
|
||||||
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
|
if ((token && data.message.includes('Token失效')) || (token && data.message.includes('token')) || (token && data.message.includes('用户不存在'))) {
|
||||||
|
Modal.error({
|
||||||
|
title: '登录已过期',
|
||||||
|
content: '很抱歉,登录已过期,请重新登录',
|
||||||
|
okText: '重新登录',
|
||||||
|
mask: false,
|
||||||
|
onOk: () => {
|
||||||
|
store.dispatch('Logout').then(() => {
|
||||||
|
Vue.ls.remove(ACCESS_TOKEN)
|
||||||
|
window.location.reload()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.spinning = false
|
||||||
|
} else {
|
||||||
|
this.$message.error(this.$t('operationFailed'))
|
||||||
|
this.spinning = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.upload-text .ant-upload {
|
||||||
|
font-size: 14px !important;
|
||||||
|
font-weight: 400 !important;
|
||||||
|
color: #040B29 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="less">
|
||||||
|
.loading-box {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999900;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(255, 255, 255, 0.9);
|
||||||
|
border-radius: 8px;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
.loading-content {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
color: #21c9cc;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spin-loading {
|
||||||
|
animation: rotating 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-tips {
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,267 @@
|
|||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
:title="$t('recordmaintenance')"
|
||||||
|
:width="600"
|
||||||
|
:visible="visible"
|
||||||
|
:confirm-loading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="handleOk"
|
||||||
|
@cancel="handleCancel"
|
||||||
|
>
|
||||||
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('recordstatus')">
|
||||||
|
{{$t('recordstatus')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="recordstatus">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.recordstatus"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('recordstatus')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'recordstatus'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('filingtime')">
|
||||||
|
{{$t('filingtime')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="filingtime">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('filingtime')"
|
||||||
|
@change="dateChange({db_field_name:'filingtime'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||||
|
v-model="formInline.filingtime"
|
||||||
|
:disabled="false"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('remarks')">
|
||||||
|
{{$t('remarks')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="remarks">
|
||||||
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
|
||||||
|
v-model="formInline.remark"
|
||||||
|
:rows="4"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction, putAction } from '@/api/manage'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'settingList',
|
||||||
|
props: ['url'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
formInline: {},
|
||||||
|
rules: {
|
||||||
|
// listConfirmation: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('confirmationOfRegulationsList') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// legalTaskConfirmation: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('regulatoryTaskConfirmation') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// designDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('confirmationOfDesignConformity') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// prehomoDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('preHomoCompletion') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// attestationStartTime: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('certificationStart') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// attestationEndTime: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('certificationEnd') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// verifyDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('verificationConfirmationDeadline') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
},
|
||||||
|
ids: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
edit(row) {
|
||||||
|
console.log(row)
|
||||||
|
this.visible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleOk() {
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let query = {
|
||||||
|
...this.formInline,
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
postAction('', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$emit('settingListForm')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.formInline = {}
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
dateChange(item) {
|
||||||
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.formAdd .ant-form-item-label {
|
||||||
|
width: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd .ant-form-item-control-wrapper {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.formAdd .ant-form-item {*/
|
||||||
|
/* margin-bottom: 20px;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
.itemModel .ant-form-item-control-wrapper {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--single {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection__rendered {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker-input {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-input-number-input-wrap {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 144px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-text {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,395 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<a-drawer
|
||||||
|
:title="$t('upgradecompletion')"
|
||||||
|
:maskClosable="false"
|
||||||
|
:width="1000"
|
||||||
|
placement="right"
|
||||||
|
:closable="true"
|
||||||
|
@close="handleCancel"
|
||||||
|
:visible="visible"
|
||||||
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
|
<a-spin :spinning="confirmLoading">
|
||||||
|
<a-form-model :model="formInline" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t ('implementedupgrade')">{{$t('implementedupgrade')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="implementedupgrade">
|
||||||
|
<a-radio-group style="margin-top: 2px" class="box-input" v-model="formInline.implementedupgrade">
|
||||||
|
<a-radio value="0">
|
||||||
|
{{$t('yes')}}
|
||||||
|
</a-radio>
|
||||||
|
<a-radio value="1">
|
||||||
|
{{$t('not')}}
|
||||||
|
</a-radio>
|
||||||
|
</a-radio-group>
|
||||||
|
<!-- <j-dict-select-tag class="box-input"-->
|
||||||
|
<!-- :disabled="disabled"-->
|
||||||
|
<!-- @input="handleInput('implementedupgrade')"-->
|
||||||
|
<!-- v-model="formInline.implementedupgrade"-->
|
||||||
|
<!-- :placeholder="$t('PleaseSelect')+$t('implementedupgrade')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('numberofvehicles')">{{$t('numberofvehicles')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="numberofvehicles">
|
||||||
|
<a-input class="box-input"
|
||||||
|
v-model='formInline.numberofvehicles'
|
||||||
|
:disabled="disabled"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('numberofvehicles')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('VINcodelist')">{{$t('VINcodelist')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="VINcodelist">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('VINcodelist')">
|
||||||
|
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
|
||||||
|
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<div v-for="(item,index) in formInline.dataList" :key="index">
|
||||||
|
<div class="header-text">
|
||||||
|
{{$t('vehicleshavenotcompletedonlineupgrade')}}
|
||||||
|
<a-icon class="icon-text" @click="addClick(index)" type="plus-circle"/>
|
||||||
|
<a-icon class="icon-text" v-if="formInline.dataList.length > 1" @click="deleteClick(index)"
|
||||||
|
type="minus-circle"/>
|
||||||
|
</div>
|
||||||
|
<div style='margin-left: 25px'>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('cause') + (index+1)">{{$t('cause') + (index+1)}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel">
|
||||||
|
<a-textarea class="box-input"
|
||||||
|
v-model="item.cause"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('cause')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12" style='margin-left: -49px'>
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('Quantity')">{{$t('Quantity')}}</span>
|
||||||
|
</div>
|
||||||
|
<!-- :prop="'dataList.'+index+'.inspectionItem'"-->
|
||||||
|
<!-- :rules="[{ required: true, message: $t('inspectionItems') + $t('cannotEmpty'), trigger: 'blur'},-->
|
||||||
|
<!-- {max: 300,message: $t('inspectionItems') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'}]"-->
|
||||||
|
<a-form-model-item class="itemModel">
|
||||||
|
<a-input class="box-input"
|
||||||
|
v-model="item.Quantity"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('Quantity')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"></span>
|
||||||
|
</div>
|
||||||
|
<!-- :prop="'dataList.'+index+'.inspectionItem'"-->
|
||||||
|
<!-- :rules="[{ required: true, message: $t('inspectionItems') + $t('cannotEmpty'), trigger: 'blur'},-->
|
||||||
|
<!-- {max: 300,message: $t('inspectionItems') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'}]"-->
|
||||||
|
<a-form-model-item class="itemModel">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('VINcodelist')">
|
||||||
|
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
|
||||||
|
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('implementationrecords')">{{$t('implementationrecords')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="implementationrecords">
|
||||||
|
<a-textarea
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('implementationrecords')"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.implementationrecords"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"></span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="VINcodelist">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('VINcodelist')">
|
||||||
|
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
|
||||||
|
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-spin>
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button type="primary" @click="handleSubmit" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name:"addModel",
|
||||||
|
props: ['url'],
|
||||||
|
components:{
|
||||||
|
uploadFile
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
disabled: false,
|
||||||
|
formInline: {},
|
||||||
|
confirmLoading: false,
|
||||||
|
projectNameList: [],
|
||||||
|
DeliverableTreeList: [],
|
||||||
|
rules: {
|
||||||
|
serialNumber: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('entryName') + this.$t('regulationNo'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
dutyTerritory: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('entryName') + this.$t('areaOfResponsibility'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
wvtaId: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: 'WVTA ID' + this.$t('regulationNo'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
max: 300,
|
||||||
|
message: 'WVTA ID' + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getRegulationNo()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
addModel() {
|
||||||
|
this.visible = true
|
||||||
|
this.formInline = {}
|
||||||
|
this.formInline.dataList = [{}]
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
this.$refs.codeNumber.number()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleInput(value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.validateField([value])
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.formInline.authDummyInventoryBaseId = this.$route.query.id
|
||||||
|
let query = JSON.parse(JSON.stringify(this.formInline))
|
||||||
|
this.confirmLoading = true
|
||||||
|
postAction(this.url.addModel, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('addModelList')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addClick(index){
|
||||||
|
this.formInline.dataList.splice(index + 1, 0, {})
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
deleteClick(index) {
|
||||||
|
this.formInline.dataList.splice(index, 1)
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
getRegulationNo() {
|
||||||
|
let query = {
|
||||||
|
projectLibraryId: this.$route.query.id,
|
||||||
|
roleCode: 0
|
||||||
|
}
|
||||||
|
getAction(this.url.number, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.projectNameList = res.result || []
|
||||||
|
} else {
|
||||||
|
this.projectNameList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
serialNumberChange(value) {
|
||||||
|
let content = this.projectNameList.filter(res => {
|
||||||
|
return res.id === value
|
||||||
|
})
|
||||||
|
this.formInline.bussDocumentLibraryId = content[0].id
|
||||||
|
this.formInline.serialNumber = content[0].serialNumber
|
||||||
|
},
|
||||||
|
regulation(item,data) {
|
||||||
|
this.formInline.serialNumber = item
|
||||||
|
this.formInline.bussDocumentLibraryId = data
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.formInline = {... this.formInline}
|
||||||
|
this.$refs.ruleForm.validateField(['serialNumber'])
|
||||||
|
})
|
||||||
|
},
|
||||||
|
clickButtonToUpload(item) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
this.$refs.uploadFile.visible = true
|
||||||
|
this.uploadName = item
|
||||||
|
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||||
|
} else {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 上传文件的回调 */
|
||||||
|
uploadSuccess(data) {
|
||||||
|
let attIdList = []
|
||||||
|
if (data && data.length > 0) {
|
||||||
|
data.map(item => {
|
||||||
|
attIdList.push(item.id || data.name)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/** 赋值给当前对应的表单文件 */
|
||||||
|
this.formInline[this.uploadName] = attIdList.join(',')
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
/*align-items: center;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 250px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
height: 40px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-text {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 100;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-text {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -6,70 +6,73 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('standard')">
|
<div class="title-text" :title="$t('upgraderegistrationnumber')">
|
||||||
<span>{{$t('standard')}}</span>
|
<span>{{$t('upgraderegistrationnumber')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('upgraderegistrationnumber')"
|
||||||
v-model="queryParam.serialNumber"></j-input>
|
v-model="queryParam.upgraderegistrationnumber"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('title')">
|
<div class="title-text" :title="$t('noticebatch')">
|
||||||
<span>{{$t('title')}}</span>
|
<span>{{$t('noticebatch')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('noticebatch')"
|
||||||
v-model="queryParam.title"></j-input>
|
v-model="queryParam.noticebatch"></a-input>
|
||||||
|
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"-->
|
||||||
|
<!-- :placeholder="$t('PleaseSelect')+$t('noticebatch')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'noticebatch'"/>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text tree-select">
|
<div class="box-title-text tree-select">
|
||||||
<div class="title-text" :title="$t('technicalField')">
|
<div class="title-text" :title="$t('producttrademark')">
|
||||||
<span>{{$t('technicalField')}}</span>
|
<span>{{$t('producttrademark')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-tree-select
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('producttrademark')"
|
||||||
tree-node-filter-prop="title"
|
v-model="queryParam.producttrademark"></a-input>
|
||||||
v-model="queryParam.technologyTerritory"
|
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"-->
|
||||||
:maxTagCount="1"
|
<!-- :placeholder="$t('PleaseSelect')+$t('producttrademark')"-->
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- :type="'select'"-->
|
||||||
class="box-input"
|
<!-- :triggerChange="false" :dictCode="'producttrademark'"/>-->
|
||||||
style="width: 100%"
|
|
||||||
:tree-data="CategoryTreeList"
|
|
||||||
tree-checkable
|
|
||||||
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<template v-if="toggleSearchStatus">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('ProcessStatus')">
|
<div class="title-text" :title="$t('productname')">
|
||||||
<span>{{$t('ProcessStatus')}}</span>
|
<span>{{$t('productname')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('ProcessStatus')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productname')"
|
||||||
class="box-input"
|
v-model="queryParam.productname"></a-input>
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('productname')"-->
|
||||||
allowClear
|
<!-- class="box-input"-->
|
||||||
v-model="queryParam.flowStatus">
|
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
|
||||||
<a-select-option v-for="(item, key) in gatherResultList"
|
<!-- allowClear-->
|
||||||
:key="key"
|
<!-- v-model="queryParam.productname">-->
|
||||||
:value="item.value">
|
<!-- <a-select-option v-for="(item, key) in gatherResultList"-->
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
<!-- :key="key"-->
|
||||||
{{ item.name }}
|
<!-- :value="item.value">-->
|
||||||
</span>
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.name">-->
|
||||||
</a-select-option>
|
<!-- {{ item.name }}-->
|
||||||
</a-select>
|
<!-- </span>-->
|
||||||
|
<!-- </a-select-option>-->
|
||||||
|
<!-- </a-select>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('brand')">
|
<div class="title-text" :title="$t('productModel')">
|
||||||
<span>{{$t('brand')}}</span>
|
<span>{{$t('productModel')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-multi-select-tag class="box-input" v-model="queryParam.brand"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productModel')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('brand')"
|
v-model="queryParam.productModel"></a-input>
|
||||||
:type="'select'"
|
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.productModel"-->
|
||||||
:triggerChange="false" :dictCode="'brand'"/>
|
<!-- :placeholder="$t('PleaseSelect')+$t('productModel')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'brand'"/>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -87,17 +90,34 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div @click="initiatingProcessClick"
|
<div @click="createvehicleandfunctionrecords"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
|
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="solution"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('initiatingProcess')}}
|
{{$t('createanupgradeactivityrecord')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="BatchDelete"
|
<div @click="citeforrecord"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="delete"/>
|
<a-icon type="solution"/>
|
||||||
{{$t('BatchDelete')}}
|
{{$t('citeforrecord')}}
|
||||||
|
</div>
|
||||||
|
<div @click="maintenanceallClick()"
|
||||||
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
|
class="operator-text">
|
||||||
|
<a-icon type="setting"/>
|
||||||
|
{{$t('datamaintenance')}}
|
||||||
|
</div>
|
||||||
|
<div v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
|
class="operator-text">
|
||||||
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true"
|
||||||
|
:accept="'.zip'"/>
|
||||||
|
</div>
|
||||||
|
<div @click="handleModule"
|
||||||
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
|
class="operator-text">
|
||||||
|
<a-icon type="download"/>
|
||||||
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -118,9 +138,14 @@
|
|||||||
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
|
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
|
||||||
<!-- v-if="record.flowStatus == 'Completed'"-->
|
<!-- v-if="record.flowStatus == 'Completed'"-->
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="evaluationResultsClick(record)">{{$t('evaluationResults')}}</a>
|
@click="detailclick(record)">{{$t('See')}}</a>
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="maintenanceClick(record)">{{$t('maintenance')}}</a>
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="endUpgrade(record)">{{$t('endUpgrade')}}</a>
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="handleExport(record)">{{$t('export')}}</a>
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
v-if="(record.flowStatus == 'Completed' && userInfoQuery.username == record.createBy) || administrators"
|
|
||||||
v-has="'regulatoryAndTechnicalAssessment:delete'"
|
v-has="'regulatoryAndTechnicalAssessment:delete'"
|
||||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -138,459 +163,362 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-modal
|
<maintenance ref="maintenanceRef"/>
|
||||||
:title="$t('initiatingProcess')"
|
<upgradecompletion ref="upgradecompletionRef"/>
|
||||||
:width="600"
|
|
||||||
:visible="visible"
|
|
||||||
:maskClosable="false"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="visible = false"
|
|
||||||
>
|
|
||||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :span="24">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text" style="margin-top: -18px">
|
|
||||||
<span class="Required">*</span>
|
|
||||||
<span class="title-text-text"
|
|
||||||
:title="$t('standardDecompositionDocument')">{{$t('standardDecompositionDocument')}}</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" prop="whetherTobring">
|
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('standardDecompositionDocument')"
|
|
||||||
class="box-input"
|
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
||||||
allowClear
|
|
||||||
v-model="formInline.whetherTobring">
|
|
||||||
<a-select-option v-for="(item, key) in whetherTobringList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form-model>
|
|
||||||
</a-modal>
|
|
||||||
<processInformation ref="processInformationRef"/>
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||||
import processInformation from './components/processInformation'
|
import maintenance from './components/maintenance'
|
||||||
import { mapGetters } from 'vuex'
|
import upgradecompletion from './components/upgradecompletion'
|
||||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
components: {
|
components: {
|
||||||
processInformation
|
maintenance,
|
||||||
},
|
upgradecompletion,
|
||||||
mixins:[ResizeHeader, ResizeColumnProvide],
|
ImportFile
|
||||||
data() {
|
},
|
||||||
return {
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
//url传参严格按照当前命名
|
data() {
|
||||||
url: {
|
return {
|
||||||
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
|
//url传参严格按照当前命名
|
||||||
getSysCategoryTree: '/sys/category/getSysCategoryTree',
|
url: {
|
||||||
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
|
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
|
||||||
|
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
|
||||||
|
},
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
toggleSearchStatus: false,
|
||||||
|
dataSource: [],
|
||||||
|
selectedRowKeys: [],
|
||||||
|
selectedRowKeysRecord: [],
|
||||||
|
serialNumber: '',
|
||||||
|
total: 0,
|
||||||
|
pageSize: 10,
|
||||||
|
pageNo: 1,
|
||||||
|
CategoryTreeList: [],
|
||||||
|
queryParam: {},
|
||||||
|
formInline: {},
|
||||||
|
rules: {
|
||||||
|
whetherTobring: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('standardDecompositionDocument') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
whetherTobringList: [
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
name: this.$t('yes')
|
||||||
},
|
},
|
||||||
visible: false,
|
{
|
||||||
loading: false,
|
value: '2',
|
||||||
toggleSearchStatus: false,
|
name: this.$t('notOnlyRz')
|
||||||
dataSource: [],
|
}
|
||||||
selectedRowKeys: [],
|
],
|
||||||
selectedRowKeysRecord: [],
|
gatherResultList: [
|
||||||
serialNumber: '',
|
{
|
||||||
total: 0,
|
value: 'Underway',
|
||||||
pageSize: 10,
|
name: this.$t('Underway')
|
||||||
pageNo: 1,
|
|
||||||
CategoryTreeList: [],
|
|
||||||
queryParam: {},
|
|
||||||
formInline: {},
|
|
||||||
rules: {
|
|
||||||
whetherTobring: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t('standardDecompositionDocument') + this.$t('cannotEmpty'),
|
|
||||||
trigger: 'change'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
whetherTobringList: [
|
{
|
||||||
{
|
value: 'Completed',
|
||||||
value: '1',
|
name: this.$t('Finished')
|
||||||
name: this.$t('yes')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '2',
|
|
||||||
name: this.$t('notOnlyRz')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
gatherResultList: [
|
|
||||||
{
|
|
||||||
value: 'Underway',
|
|
||||||
name: this.$t('Underway')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Completed',
|
|
||||||
name: this.$t('Finished')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: this.$t('standard'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'serialNumber',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('title'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'title',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('technicalField'),
|
|
||||||
align: 'left',
|
|
||||||
width: 170,
|
|
||||||
ellipsis: true,
|
|
||||||
dataIndex: 'technologyTerritoryName'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('evaluationMethod'),
|
|
||||||
align: 'left',
|
|
||||||
width: 170,
|
|
||||||
ellipsis: true,
|
|
||||||
dataIndex: 'evaluationMethodsName'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('ProcessStatus'),
|
|
||||||
align: 'left',
|
|
||||||
width: 170,
|
|
||||||
ellipsis: true,
|
|
||||||
dataIndex: 'flowStatusName'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('Sponsor'),
|
|
||||||
align: 'left',
|
|
||||||
width: 140,
|
|
||||||
ellipsis: true,
|
|
||||||
dataIndex: 'createBy'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('brand'),
|
|
||||||
align: 'left',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 140,
|
|
||||||
dataIndex: 'brand_text'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('dateOfInitiation'),
|
|
||||||
align: 'left',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 170,
|
|
||||||
dataIndex: 'startTime'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('closingDate'),
|
|
||||||
align: 'left',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 170,
|
|
||||||
dataIndex: 'endTime'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('remarks'),
|
|
||||||
align: 'left',
|
|
||||||
ellipsis: true,
|
|
||||||
width: 170,
|
|
||||||
dataIndex: 'remark'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('operation'),
|
|
||||||
align: 'left',
|
|
||||||
fixed: 'right',
|
|
||||||
width: 220,
|
|
||||||
scopedSlots: { customRender: 'operation' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
userInfoQuery: {},
|
|
||||||
administrators: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getList()
|
|
||||||
this.getSysCategoryTree()
|
|
||||||
this.userInfoQuery = this.userInfo()
|
|
||||||
this.administrators = false
|
|
||||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
|
||||||
this.userInfo().userRoleList.forEach(res => {
|
|
||||||
if (res.roleCode == 'admin') {
|
|
||||||
this.administrators = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
...mapGetters(['userInfo']),
|
|
||||||
getSysCategoryTree() {
|
|
||||||
getAction(this.url.getSysCategoryTree, {}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.CategoryTreeList = res.result
|
|
||||||
} else {
|
|
||||||
this.CategoryTreeList = []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
deleteData(val) {
|
|
||||||
let _this = this
|
|
||||||
this.$confirm({
|
|
||||||
content: _this.$t('ConfirmDelete'),
|
|
||||||
onOk() {
|
|
||||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
|
||||||
_this.getList()
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
BatchDelete() {
|
|
||||||
if (this.selectedRowKeys.length > 0) {
|
|
||||||
let _this = this
|
|
||||||
this.$confirm({
|
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
|
||||||
onOk() {
|
|
||||||
let idList = []
|
|
||||||
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
|
|
||||||
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
|
|
||||||
if ((selectedRowKeysRecord[i].flowStatus == 'Completed' && selectedRowKeysRecord[i].createBy == _this.userInfo().username)
|
|
||||||
|| _this.administrators) {
|
|
||||||
idList.push(selectedRowKeysRecord[i].id)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (idList.length > 0) {
|
|
||||||
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
|
||||||
_this.selectedRowKeys = []
|
|
||||||
_this.getList()
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
handleToggleSearch() {
|
columns: [
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
{
|
||||||
},
|
title: this.$t('registrationnumber'),
|
||||||
searchQuery() {
|
align: 'left',
|
||||||
this.pageNo = 1
|
dataIndex: 'serialNumber',
|
||||||
this.getList()
|
ellipsis: true,
|
||||||
},
|
width: 170
|
||||||
searchReset() {
|
},
|
||||||
this.queryParam = {}
|
{
|
||||||
this.$route.query.serialNumber = ''
|
title: this.$t('noticebatch'),
|
||||||
this.$route.query.flowStatus = ''
|
align: 'left',
|
||||||
this.pageNo = 1
|
dataIndex: 'title',
|
||||||
this.getList()
|
ellipsis: true,
|
||||||
},
|
width: 170
|
||||||
pageOnChange(page) {
|
},
|
||||||
this.pageNo = page
|
{
|
||||||
this.getList()
|
title: this.$t('producttrademark'),
|
||||||
},
|
align: 'left',
|
||||||
SizeChange(page, pageSize) {
|
width: 170,
|
||||||
this.pageNo = 1
|
ellipsis: true,
|
||||||
this.pageSize = pageSize
|
dataIndex: 'technologyTerritoryName'
|
||||||
this.getList()
|
},
|
||||||
},
|
{
|
||||||
getList() {
|
title: this.$t('productname'),
|
||||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
align: 'left',
|
||||||
Object.keys(queryParam).forEach(val => {
|
width: 170,
|
||||||
if (queryParam[val] instanceof Array) {
|
ellipsis: true,
|
||||||
queryParam[val] = queryParam[val].join(',')
|
dataIndex: 'evaluationMethodsName'
|
||||||
}
|
},
|
||||||
})
|
{
|
||||||
let query = {
|
title: this.$t('productModel'),
|
||||||
pageNo: this.pageNo,
|
align: 'left',
|
||||||
pageSize: this.pageSize,
|
width: 170,
|
||||||
serialNumber: this.$route.query.serialNumber ? this.$route.query.serialNumber : '',
|
ellipsis: true,
|
||||||
flowStatus: this.$route.query.flowStatus ? this.$route.query.flowStatus : '',
|
dataIndex: 'flowStatusName'
|
||||||
...queryParam
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('recordstatus'),
|
||||||
|
align: 'left',
|
||||||
|
width: 140,
|
||||||
|
ellipsis: true,
|
||||||
|
dataIndex: 'createBy'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('filingtime'),
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 140,
|
||||||
|
dataIndex: 'brand_text'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('createTime'),
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 170,
|
||||||
|
dataIndex: 'startTime'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('remarks'),
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 170,
|
||||||
|
dataIndex: 'endTime'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
align: 'left',
|
||||||
|
fixed: 'right',
|
||||||
|
width: 220,
|
||||||
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
this.loading = true
|
],
|
||||||
getAction(this.url.list, query).then((res) => {
|
userInfoQuery: {},
|
||||||
if (res.success) {
|
administrators: false
|
||||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
|
||||||
this.pageNo = 1
|
|
||||||
this.getList()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.dataSource = res.result.records || []
|
|
||||||
this.total = res.result.total
|
|
||||||
this.loading = false
|
|
||||||
} else {
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
onSelectChange(value, record) {
|
|
||||||
this.selectedRowKeys = value
|
|
||||||
this.selectedRowKeysRecord = record
|
|
||||||
},
|
|
||||||
handleOk() {
|
|
||||||
this.$refs.ruleForm.validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
this.visible = false
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
initiatingProcessClick() {
|
|
||||||
// this.visible = true
|
|
||||||
// this.formInline = {}
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs.ruleForm.clearValidate()
|
|
||||||
// })
|
|
||||||
this.formInline.firstInitiation = '1'
|
|
||||||
this.formInline.whetherTobring = '1'
|
|
||||||
let newUrl = this.$router.resolve({
|
|
||||||
path: '/evaluationInitiationProcess',
|
|
||||||
query: this.formInline
|
|
||||||
})
|
|
||||||
// let newUrl = this.$router.resolve({
|
|
||||||
// path: '/evaluationProcess'
|
|
||||||
// })
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
},
|
|
||||||
viewProcessClick(row) {
|
|
||||||
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
|
|
||||||
},
|
|
||||||
evaluationResultsClick(row) {
|
|
||||||
if (row.evaluationType == 'Feedback evaluation') {
|
|
||||||
let newUrl = this.$router.resolve({
|
|
||||||
path: '/evaluationResultsWhole',
|
|
||||||
query: {
|
|
||||||
id: row.id,
|
|
||||||
processBackground: row.processBackground,
|
|
||||||
serialNumber: row.serialNumber,
|
|
||||||
lawsTechnologyEvaluationId: row.id,
|
|
||||||
standId: row.standId,
|
|
||||||
remark: row.remark,
|
|
||||||
createBy: row.createBy,
|
|
||||||
flowStatus: row.flowStatus
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
let newUrl = this.$router.resolve({
|
|
||||||
path: '/evaluationResultsClause',
|
|
||||||
query: {
|
|
||||||
id: row.id,
|
|
||||||
processBackground: row.processBackground,
|
|
||||||
serialNumber: row.serialNumber,
|
|
||||||
lawsTechnologyEvaluationId: row.id,
|
|
||||||
standId: row.standId,
|
|
||||||
remark: row.remark,
|
|
||||||
createBy: row.createBy,
|
|
||||||
flowStatus: row.flowStatus
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getList()
|
||||||
|
this.administrators = false
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
handleToggleSearch() {
|
||||||
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.queryParam = {}
|
||||||
|
this.$route.query.serialNumber = ''
|
||||||
|
this.$route.query.flowStatus = ''
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
pageOnChange(page) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
|
Object.keys(queryParam).forEach(val => {
|
||||||
|
if (queryParam[val] instanceof Array) {
|
||||||
|
queryParam[val] = queryParam[val].join(',')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let query = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
serialNumber: this.$route.query.serialNumber ? this.$route.query.serialNumber : '',
|
||||||
|
flowStatus: this.$route.query.flowStatus ? this.$route.query.flowStatus : '',
|
||||||
|
...queryParam
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
getAction(this.url.list, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dataSource = res.result.records || []
|
||||||
|
this.total = res.result.total
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onSelectChange(value, record) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
this.selectedRowKeysRecord = record
|
||||||
|
},
|
||||||
|
// 删除
|
||||||
|
deleteData(val) {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmDelete'),
|
||||||
|
onOk() {
|
||||||
|
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 引用备案
|
||||||
|
citeforrecord(){
|
||||||
|
|
||||||
|
},
|
||||||
|
// 创建车型
|
||||||
|
createvehicleandfunctionrecords() {
|
||||||
|
|
||||||
|
},
|
||||||
|
viewProcessClick(row) {
|
||||||
|
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
|
||||||
|
},
|
||||||
|
// 导出
|
||||||
|
handleExport(row) {
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
let text = ''
|
||||||
|
let flag
|
||||||
|
if (this.activeTab == this.$t('ImplementationDate')) {
|
||||||
|
flag = 0
|
||||||
|
text = this.$t('ImplementationDate')
|
||||||
|
} else {
|
||||||
|
text = this.$t('vehicleInProductionDate')
|
||||||
|
flag = 1
|
||||||
|
}
|
||||||
|
let query = {
|
||||||
|
id: selectedRowKeys.join(','),
|
||||||
|
...this.searchParmes,
|
||||||
|
flag: flag
|
||||||
|
}
|
||||||
|
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
|
||||||
|
},
|
||||||
|
// 结束升级
|
||||||
|
endUpgrade(){
|
||||||
|
this.$refs.upgradecompletionRef.addModel()
|
||||||
|
},
|
||||||
|
// 查看
|
||||||
|
detailclick(){
|
||||||
|
|
||||||
|
},
|
||||||
|
// 维护
|
||||||
|
maintenanceClick(row){
|
||||||
|
this.$refs.maintenanceRef.edit(row)
|
||||||
|
},
|
||||||
|
// 数据维护
|
||||||
|
maintenanceallClick(){
|
||||||
|
if(this.selectedRowKeys.length < 1){
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}else{
|
||||||
|
this.$refs.maintenanceRef.edit()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 模板下载
|
||||||
|
handleModule(){
|
||||||
|
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.tree-select .ant-select-tree-dropdown {
|
.tree-select .ant-select-tree-dropdown {
|
||||||
height: 298px !important;
|
height: 298px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
min-width: 110px;
|
min-width: 110px;
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-input {
|
.box-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-button {
|
.box-button {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
/*margin-top: 2px;*/
|
/*margin-top: 2px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-operation {
|
.text-operation {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemModel {
|
.itemModel {
|
||||||
width: calc(100% - 130px);
|
width: calc(100% - 130px);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Required {
|
.Required {
|
||||||
color: red;
|
color: red;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-row:first-child {
|
::v-deep .ant-table-row:first-child {
|
||||||
background: #fff !important;
|
background: #fff !important;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-body {
|
::v-deep .ant-table-body {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-placeholder {
|
::v-deep .ant-table-placeholder {
|
||||||
margin-top: 8px !important;
|
margin-top: 8px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -0,0 +1,267 @@
|
|||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
:title="$t('recordmaintenance')"
|
||||||
|
:width="600"
|
||||||
|
:visible="visible"
|
||||||
|
:confirm-loading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="handleOk"
|
||||||
|
@cancel="handleCancel"
|
||||||
|
>
|
||||||
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('recordstatus')">
|
||||||
|
{{$t('recordstatus')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="recordstatus">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.recordstatus"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('recordstatus')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'recordstatus'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('filingtime')">
|
||||||
|
{{$t('filingtime')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="filingtime">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('filingtime')"
|
||||||
|
@change="dateChange({db_field_name:'filingtime'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||||
|
v-model="formInline.filingtime"
|
||||||
|
:disabled="false"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<!-- <span class="Required">*</span>-->
|
||||||
|
<span class="title-text-text" :title="$t('remarks')">
|
||||||
|
{{$t('remarks')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="remarks">
|
||||||
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
|
||||||
|
v-model="formInline.remark"
|
||||||
|
:rows="4"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction, putAction } from '@/api/manage'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'settingList',
|
||||||
|
props: ['url'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
formInline: {},
|
||||||
|
rules: {
|
||||||
|
// listConfirmation: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('confirmationOfRegulationsList') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// legalTaskConfirmation: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('regulatoryTaskConfirmation') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// designDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('confirmationOfDesignConformity') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// prehomoDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('preHomoCompletion') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// attestationStartTime: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('certificationStart') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// attestationEndTime: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('certificationEnd') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// verifyDeadline: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('verificationConfirmationDeadline') + this.$t('cannotEmpty'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
},
|
||||||
|
ids: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
edit(row) {
|
||||||
|
console.log(row)
|
||||||
|
this.visible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleOk() {
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let query = {
|
||||||
|
...this.formInline,
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
postAction('', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$emit('settingListForm')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.formInline = {}
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
dateChange(item) {
|
||||||
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.formAdd .ant-form-item-label {
|
||||||
|
width: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd .ant-form-item-control-wrapper {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.formAdd .ant-form-item {*/
|
||||||
|
/* margin-bottom: 20px;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
.itemModel .ant-form-item-control-wrapper {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--single {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection__rendered {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker-input {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-input-number-input-wrap {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 144px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-text {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -18,10 +18,12 @@
|
|||||||
<div class="title-text" :title="$t('noticebatch')">
|
<div class="title-text" :title="$t('noticebatch')">
|
||||||
<span>{{$t('noticebatch')}}</span>
|
<span>{{$t('noticebatch')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('noticebatch')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('noticebatch')"
|
v-model="queryParam.noticebatch"></a-input>
|
||||||
:type="'select'"
|
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"-->
|
||||||
:triggerChange="false" :dictCode="'noticebatch'"/>
|
<!-- :placeholder="$t('PleaseSelect')+$t('noticebatch')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'noticebatch'"/>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -29,10 +31,12 @@
|
|||||||
<div class="title-text" :title="$t('producttrademark')">
|
<div class="title-text" :title="$t('producttrademark')">
|
||||||
<span>{{$t('producttrademark')}}</span>
|
<span>{{$t('producttrademark')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('producttrademark')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('producttrademark')"
|
v-model="queryParam.producttrademark"></a-input>
|
||||||
:type="'select'"
|
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"-->
|
||||||
:triggerChange="false" :dictCode="'producttrademark'"/>
|
<!-- :placeholder="$t('PleaseSelect')+$t('producttrademark')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'producttrademark'"/>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<template v-if="toggleSearchStatus">
|
||||||
@@ -41,19 +45,21 @@
|
|||||||
<div class="title-text" :title="$t('productname')">
|
<div class="title-text" :title="$t('productname')">
|
||||||
<span>{{$t('productname')}}</span>
|
<span>{{$t('productname')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('productname')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productname')"
|
||||||
class="box-input"
|
v-model="queryParam.productname"></a-input>
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('productname')"-->
|
||||||
allowClear
|
<!-- class="box-input"-->
|
||||||
v-model="queryParam.productname">
|
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
|
||||||
<a-select-option v-for="(item, key) in gatherResultList"
|
<!-- allowClear-->
|
||||||
:key="key"
|
<!-- v-model="queryParam.productname">-->
|
||||||
:value="item.value">
|
<!-- <a-select-option v-for="(item, key) in gatherResultList"-->
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
<!-- :key="key"-->
|
||||||
{{ item.name }}
|
<!-- :value="item.value">-->
|
||||||
</span>
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.name">-->
|
||||||
</a-select-option>
|
<!-- {{ item.name }}-->
|
||||||
</a-select>
|
<!-- </span>-->
|
||||||
|
<!-- </a-select-option>-->
|
||||||
|
<!-- </a-select>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -61,10 +67,12 @@
|
|||||||
<div class="title-text" :title="$t('productModel')">
|
<div class="title-text" :title="$t('productModel')">
|
||||||
<span>{{$t('productModel')}}</span>
|
<span>{{$t('productModel')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.productModel"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productModel')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('productModel')"
|
v-model="queryParam.productModel"></a-input>
|
||||||
:type="'select'"
|
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.productModel"-->
|
||||||
:triggerChange="false" :dictCode="'brand'"/>
|
<!-- :placeholder="$t('PleaseSelect')+$t('productModel')"-->
|
||||||
|
<!-- :type="'select'"-->
|
||||||
|
<!-- :triggerChange="false" :dictCode="'brand'"/>-->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -82,31 +90,30 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div @click="initiatingProcessClick"
|
<div @click="createvehicleandfunctionrecords"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
|
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('createvehicleandfunctionrecords')}}
|
{{$t('createvehicleandfunctionrecords')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="BatchDelete"
|
<div @click="citeforrecord"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="solution"/>
|
<a-icon type="solution"/>
|
||||||
{{$t('citeforrecord')}}
|
{{$t('citeforrecord')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="BatchDelete"
|
<div @click="maintenanceallClick()"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="setting"/>
|
<a-icon type="setting"/>
|
||||||
{{$t('datamaintenance')}}
|
{{$t('datamaintenance')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="BatchDelete"
|
<div v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="import"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true"
|
||||||
{{$t('dataimport')}}
|
:accept="'.zip'"/>
|
||||||
</div>
|
</div>
|
||||||
<div @click="BatchDelete"
|
<div @click="handleModule"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
@@ -131,11 +138,11 @@
|
|||||||
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
|
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
|
||||||
<!-- v-if="record.flowStatus == 'Completed'"-->
|
<!-- v-if="record.flowStatus == 'Completed'"-->
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="evaluationResultsClick(record)">{{$t('See')}}</a>
|
@click="detailclick(record)">{{$t('See')}}</a>
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="evaluationResultsClick(record)">{{$t('maintenance')}}</a>
|
@click="maintenanceClick(record)">{{$t('maintenance')}}</a>
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
@click="evaluationResultsClick(record)">{{$t('export')}}</a>
|
@click="handleExport(record)">{{$t('export')}}</a>
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
v-has="'regulatoryAndTechnicalAssessment:delete'"
|
v-has="'regulatoryAndTechnicalAssessment:delete'"
|
||||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
@@ -154,57 +161,22 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-modal
|
<maintenance ref="maintenanceRef"/>
|
||||||
:title="$t('initiatingProcess')"
|
|
||||||
:width="600"
|
|
||||||
:visible="visible"
|
|
||||||
:maskClosable="false"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="visible = false"
|
|
||||||
>
|
|
||||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :span="24">
|
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text" style="margin-top: -18px">
|
|
||||||
<span class="Required">*</span>
|
|
||||||
<span class="title-text-text"
|
|
||||||
:title="$t('standardDecompositionDocument')">{{$t('standardDecompositionDocument')}}</span>
|
|
||||||
</div>
|
|
||||||
<a-form-model-item class="itemModel" prop="whetherTobring">
|
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('standardDecompositionDocument')"
|
|
||||||
class="box-input"
|
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
||||||
allowClear
|
|
||||||
v-model="formInline.whetherTobring">
|
|
||||||
<a-select-option v-for="(item, key) in whetherTobringList"
|
|
||||||
:key="key"
|
|
||||||
:value="item.value">
|
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name">
|
|
||||||
{{ item.name }}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form-model>
|
|
||||||
</a-modal>
|
|
||||||
<processInformation ref="processInformationRef"/>
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||||
import processInformation from './components/processInformation'
|
import maintenance from './components/maintenance'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
components: {
|
components: {
|
||||||
processInformation
|
maintenance,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
mixins:[ResizeHeader, ResizeColumnProvide],
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
@@ -212,7 +184,6 @@
|
|||||||
//url传参严格按照当前命名
|
//url传参严格按照当前命名
|
||||||
url: {
|
url: {
|
||||||
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
|
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
|
||||||
getSysCategoryTree: '/sys/category/getSysCategoryTree',
|
|
||||||
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
|
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
|
||||||
},
|
},
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -335,77 +306,10 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getSysCategoryTree()
|
|
||||||
this.userInfoQuery = this.userInfo()
|
|
||||||
this.administrators = false
|
this.administrators = false
|
||||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
|
||||||
this.userInfo().userRoleList.forEach(res => {
|
|
||||||
if (res.roleCode == 'admin') {
|
|
||||||
this.administrators = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
getSysCategoryTree() {
|
|
||||||
getAction(this.url.getSysCategoryTree, {}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.CategoryTreeList = res.result
|
|
||||||
} else {
|
|
||||||
this.CategoryTreeList = []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
deleteData(val) {
|
|
||||||
let _this = this
|
|
||||||
this.$confirm({
|
|
||||||
content: _this.$t('ConfirmDelete'),
|
|
||||||
onOk() {
|
|
||||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
|
||||||
_this.getList()
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
BatchDelete() {
|
|
||||||
if (this.selectedRowKeys.length > 0) {
|
|
||||||
let _this = this
|
|
||||||
this.$confirm({
|
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
|
||||||
onOk() {
|
|
||||||
let idList = []
|
|
||||||
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
|
|
||||||
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
|
|
||||||
if ((selectedRowKeysRecord[i].flowStatus == 'Completed' && selectedRowKeysRecord[i].createBy == _this.userInfo().username)
|
|
||||||
|| _this.administrators) {
|
|
||||||
idList.push(selectedRowKeysRecord[i].id)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (idList.length > 0) {
|
|
||||||
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
|
||||||
_this.selectedRowKeys = []
|
|
||||||
_this.getList()
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
},
|
},
|
||||||
@@ -463,67 +367,73 @@
|
|||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
this.selectedRowKeysRecord = record
|
this.selectedRowKeysRecord = record
|
||||||
},
|
},
|
||||||
handleOk() {
|
// 删除
|
||||||
this.$refs.ruleForm.validate(valid => {
|
deleteData(val) {
|
||||||
if (valid) {
|
let _this = this
|
||||||
this.visible = false
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmDelete'),
|
||||||
|
onOk() {
|
||||||
|
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
initiatingProcessClick() {
|
// 引用备案
|
||||||
// this.visible = true
|
citeforrecord(){
|
||||||
// this.formInline = {}
|
|
||||||
// this.$nextTick(() => {
|
},
|
||||||
// this.$refs.ruleForm.clearValidate()
|
// 创建车型
|
||||||
// })
|
createvehicleandfunctionrecords() {
|
||||||
this.formInline.firstInitiation = '1'
|
|
||||||
this.formInline.whetherTobring = '1'
|
|
||||||
let newUrl = this.$router.resolve({
|
|
||||||
path: '/evaluationInitiationProcess',
|
|
||||||
query: this.formInline
|
|
||||||
})
|
|
||||||
// let newUrl = this.$router.resolve({
|
|
||||||
// path: '/evaluationProcess'
|
|
||||||
// })
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
viewProcessClick(row) {
|
viewProcessClick(row) {
|
||||||
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
|
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
|
||||||
},
|
},
|
||||||
evaluationResultsClick(row) {
|
// 导出
|
||||||
if (row.evaluationType == 'Feedback evaluation') {
|
handleExport(row) {
|
||||||
let newUrl = this.$router.resolve({
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
path: '/evaluationResultsWhole',
|
let text = ''
|
||||||
query: {
|
let flag
|
||||||
id: row.id,
|
if (this.activeTab == this.$t('ImplementationDate')) {
|
||||||
processBackground: row.processBackground,
|
flag = 0
|
||||||
serialNumber: row.serialNumber,
|
text = this.$t('ImplementationDate')
|
||||||
lawsTechnologyEvaluationId: row.id,
|
|
||||||
standId: row.standId,
|
|
||||||
remark: row.remark,
|
|
||||||
createBy: row.createBy,
|
|
||||||
flowStatus: row.flowStatus
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
} else {
|
} else {
|
||||||
let newUrl = this.$router.resolve({
|
text = this.$t('vehicleInProductionDate')
|
||||||
path: '/evaluationResultsClause',
|
flag = 1
|
||||||
query: {
|
|
||||||
id: row.id,
|
|
||||||
processBackground: row.processBackground,
|
|
||||||
serialNumber: row.serialNumber,
|
|
||||||
lawsTechnologyEvaluationId: row.id,
|
|
||||||
standId: row.standId,
|
|
||||||
remark: row.remark,
|
|
||||||
createBy: row.createBy,
|
|
||||||
flowStatus: row.flowStatus
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
}
|
}
|
||||||
}
|
let query = {
|
||||||
|
id: selectedRowKeys.join(','),
|
||||||
|
...this.searchParmes,
|
||||||
|
flag: flag
|
||||||
|
}
|
||||||
|
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
|
||||||
|
},
|
||||||
|
// 查看
|
||||||
|
detailclick(){
|
||||||
|
|
||||||
|
},
|
||||||
|
// 维护
|
||||||
|
maintenanceClick(row){
|
||||||
|
this.$refs.maintenanceRef.edit(row)
|
||||||
|
},
|
||||||
|
// 数据维护
|
||||||
|
maintenanceallClick(){
|
||||||
|
if(this.selectedRowKeys.length < 1){
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}else{
|
||||||
|
this.$refs.maintenanceRef.edit()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 模板下载
|
||||||
|
handleModule(){
|
||||||
|
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user