|
|
@@ -99,7 +99,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<!-- filePath multiple--> |
|
|
|
<el-form-item label="附件"> |
|
|
|
<!-- <el-upload v-if="!(typeOption === 'view' || typeOption === 'sure')" ref="uploadRef"--> |
|
|
@@ -154,6 +155,8 @@ |
|
|
|
<img w-full :src="dialogImageUrl" alt="Preview Image"/> |
|
|
|
</el-dialog> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card class="box-card"> |
|
|
@@ -209,17 +212,10 @@ |
|
|
|
|
|
|
|
<el-table-column label="操作" width="340" v-if="typeOption === 'add' || typeOption === 'edit'"> |
|
|
|
<template v-slot="scope"> |
|
|
|
<el-button class="op-btn" type="primary" |
|
|
|
@click="validHandle(scope.row, scope.$index)">校验 |
|
|
|
</el-button> |
|
|
|
<el-button class="op-btn" type="primary" @click="validHandle(scope.row, scope.$index)">校验</el-button> |
|
|
|
<!-- <el-button class="op-btn" type="primary" @click="validDetailHandle(scope.row)" v-if="scope.row.isShowBtn">校验失败明细</el-button>--> |
|
|
|
<el-button class="op-btn" type="danger" v-if="scope.$index > 0" |
|
|
|
@click="deleteHandle(scope.row, scope.$index)">删除 |
|
|
|
</el-button> |
|
|
|
<el-button class="op-btn" type="success" |
|
|
|
v-if="scope.$index === (addForm.detailList.length - 1)" |
|
|
|
@click="addMoreHandle(scope.row)">继续添加 |
|
|
|
</el-button> |
|
|
|
<el-button class="op-btn" type="danger" v-if="scope.$index > 0" @click="deleteHandle(scope.row, scope.$index)">删除</el-button> |
|
|
|
<el-button class="op-btn" type="success" v-if="scope.$index === (addForm.detailList.length - 1)" @click="addMoreHandle(scope.row)">继续添加</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@@ -288,10 +284,7 @@ const beforeUpload = (file) => { |
|
|
|
return true; |
|
|
|
}; |
|
|
|
const handleSuccess = (response: any) => { |
|
|
|
// console.log(fileList.value, 'fileListfileList') |
|
|
|
// console.log(response.data, 'response.dataresponse.data') |
|
|
|
fileListData.value.push(response.data.ossFilePath) |
|
|
|
// console.log(fileListData.value, 'fileListData.valuefileListData.value') |
|
|
|
}; |
|
|
|
const handlePreview = (file) => { |
|
|
|
const isImage = file.type && file.type.includes('image'); |
|
|
@@ -451,6 +444,7 @@ function init(row: any) { |
|
|
|
getLowerList(); |
|
|
|
// getAgency(); |
|
|
|
clearData(); |
|
|
|
fileList.value = [] |
|
|
|
warrantyList.value = [ |
|
|
|
{ |
|
|
|
label: "一年质保期", |
|
|
@@ -486,6 +480,9 @@ function getInfo(id: string) { |
|
|
|
let bizContent = res.data |
|
|
|
let data = bizContent.transferApply || {}; |
|
|
|
let detailList = bizContent.transferDetails || []; |
|
|
|
let files = []; |
|
|
|
files.push({url:data.filePath,name:data.filePath}); |
|
|
|
fileList.value = files; |
|
|
|
let list: any = []; |
|
|
|
detailList.map((item) => { |
|
|
|
let start = item.startId.slice(3); |