Browse Source

HL-6107 Q2通知单调整展示字段

hella_online_20240924
tengxiaofei 2 months ago
parent
commit
f719aa3ed5
  1. 21
      src/views/qms/inspectionQ2/index.vue

21
src/views/qms/inspectionQ2/index.vue

@ -700,19 +700,36 @@ const handleSend = async (id: number) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
if (row && row.claimAddress?.trim()) { if (row && row.claimAddress?.trim()) {
row.filePathList = row.claimAddress.split(',') row.filePathList = row.claimAddress.split(',')
} }
if (row && row.claimAddressName?.trim()) {
row.claimAddressNameList = row.claimAddressName.split(',');
}
if (row && row.filePathList && row.filePathList.length > 0) { if (row && row.filePathList && row.filePathList.length > 0) {
row.filePathListView = row.filePathList.map((item) => { row.filePathListView = row.filePathList.map((item, index) => {
return { return {
name: item, name: row.claimAddressNameList ? row.claimAddressNameList[index] || item : item,
url: item url: item
} }
}) })
} }
// if (row && row.claimAddress?.trim()) {
// row.filePathList = row.claimAddress.split(',')
// }
//
// if (row && row.filePathList && row.filePathList.length > 0) {
// row.filePathListView = row.filePathList.map((item) => {
// return {
// name: item,
// url: item
// }
// })
// }
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
if (!row || !row.claimAmount) { if (!row || !row.claimAmount) {
nextTick(() => { nextTick(() => {

Loading…
Cancel
Save