|
@@ -59,8 +59,7 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <div class=" pis"
|
|
|
|
- style="overflow:auto;height:200px;" ref="scrollbarRef"
|
|
|
|
|
|
+ <div class=" pis" style="overflow:auto;height:200px;" ref="scrollbarRef"
|
|
>
|
|
>
|
|
<div class="flex" v-for="(item, index) of items" :key="index"> <!-- items -->
|
|
<div class="flex" v-for="(item, index) of items" :key="index"> <!-- items -->
|
|
<n-badge class="mr-5" type="info" :value="index + 1" />
|
|
<n-badge class="mr-5" type="info" :value="index + 1" />
|
|
@@ -187,7 +186,7 @@ const editTaskInfo = async () => {
|
|
|
|
|
|
// 验证报告生成 报告
|
|
// 验证报告生成 报告
|
|
const generateReportInfo = async (obj) => {
|
|
const generateReportInfo = async (obj) => {
|
|
- // return
|
|
|
|
|
|
+ console.log('提交',obj)
|
|
const { data: res } = await generateReport({
|
|
const { data: res } = await generateReport({
|
|
T_task_id: task.T_task_id,
|
|
T_task_id: task.T_task_id,
|
|
T_VerifyTemplate_id: task.T_VerifyTemplate_id,
|
|
T_VerifyTemplate_id: task.T_VerifyTemplate_id,
|
|
@@ -361,8 +360,9 @@ const putTemplateData = async () => {
|
|
|
|
|
|
if (res.Code === 200) {
|
|
if (res.Code === 200) {
|
|
const obj = {};
|
|
const obj = {};
|
|
- console.log('打印arr',arr)
|
|
|
|
|
|
+
|
|
for (let i of arr) {
|
|
for (let i of arr) {
|
|
|
|
+ console.log('打印arr',i)
|
|
if (i.T_label === 3 || i.T_label === 9) {
|
|
if (i.T_label === 3 || i.T_label === 9) {
|
|
obj[i.T_name] = i.T_value!=null?i.T_value.join('|'):'';
|
|
obj[i.T_name] = i.T_value!=null?i.T_value.join('|'):'';
|
|
} else if (i.T_label === 12 ) {
|
|
} else if (i.T_label === 12 ) {
|
|
@@ -381,11 +381,16 @@ const putTemplateData = async () => {
|
|
console.log('打印arr22222',obj[i.T_name])
|
|
console.log('打印arr22222',obj[i.T_name])
|
|
}
|
|
}
|
|
} else if (i.T_label === 13) {
|
|
} else if (i.T_label === 13) {
|
|
- if(i.T_value[0]!=null && i.T_value[1]!=null){
|
|
|
|
|
|
+ console.log('等于时间',i.T_value[0]!=null , i.T_value[1]!=null)
|
|
|
|
+ if(i.T_value[0]!=null && i.T_value[1]!=null){//两个都有值
|
|
|
|
+ obj[i.T_name] = `${i.T_value[0].join('|')+'/'+i.T_value[1]}`;
|
|
|
|
+ }else if(i.T_value[0]!=null && i.T_value[1]==null){//选择了时间-没文本
|
|
|
|
+ obj[i.T_name] = `${i.T_value[0].join('|')+'/'}`;
|
|
|
|
+ }else if(i.T_value[0]==null && i.T_value[1]!=null){
|
|
|
|
+ obj[i.T_name] = `${'/'+i.T_value[1]}`;
|
|
|
|
+ }else{//都没选
|
|
obj[i.T_name] = ''
|
|
obj[i.T_name] = ''
|
|
- }else{
|
|
|
|
- obj[i.T_name] = `${i.T_value[0]==null?'':i.T_value[0].join('|')+'/'+i.T_value[1]==null?'':i.T_value[1]}`;
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
obj[i.T_name] = i.T_value;
|
|
obj[i.T_name] = i.T_value;
|
|
}
|
|
}
|