代码提交
This commit is contained in:
parent
0c0765ed6e
commit
804d178710
|
|
@ -22,6 +22,7 @@ declare module 'vue' {
|
|||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
|
|
@ -40,6 +41,7 @@ declare module 'vue' {
|
|||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElStep: typeof import('element-plus/es')['ElStep']
|
||||
ElSteps: typeof import('element-plus/es')['ElSteps']
|
||||
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
||||
ElTable: typeof import('element-plus/es')['ElTable']
|
||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
2873
pnpm-lock.yaml
2873
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -128,7 +128,7 @@
|
|||
<el-table-column align="center" label="附件" width="160">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" size="small" @click="onViewFileImg(row, 0)"
|
||||
>查看</el-button
|
||||
>查看99</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -277,7 +277,7 @@
|
|||
</div>
|
||||
|
||||
<el-dialog v-model="innerVisible" width="500" title="附件详情" append-to-body>
|
||||
<el-table
|
||||
<!-- <el-table
|
||||
:data="viewFileInfoList"
|
||||
border
|
||||
show-overflow-tooltip
|
||||
|
|
@ -303,7 +303,7 @@
|
|||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-table> -->
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<!-- 新增修改对话框 -->
|
||||
<el-dialog
|
||||
width="90%"
|
||||
width="80%"
|
||||
@close="onClose"
|
||||
destroy-on-close
|
||||
:title="dialogTitle"
|
||||
|
|
@ -632,8 +632,8 @@
|
|||
<el-table-column prop="repairPrice" align="center" label="维修费用(元)" />
|
||||
<el-table-column align="center" label="附件" width="160">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" size="small" @click="onViewFileImg(row, 0)">
|
||||
查看
|
||||
<el-button type="primary" @click="onViewFileImg(row, 0)">
|
||||
查看---
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -677,16 +677,14 @@
|
|||
<el-table-column prop="lossPrice" align="center" label="丢失费用(元)" />
|
||||
<el-table-column align="center" label="附件" width="160">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" size="small" @click="onViewFileImg(row, 2)">
|
||||
查看
|
||||
</el-button>
|
||||
<el-button type="primary" @click="onViewFileImg(row, 2)"> 查看 </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<el-dialog v-model="innerVisible" width="500" title="附件详情" append-to-body>
|
||||
<el-table
|
||||
<el-dialog v-model="innerVisible" width="30%" title="附件详情">
|
||||
<!-- <el-table
|
||||
border
|
||||
:data="viewFileInfoList"
|
||||
show-overflow-tooltip
|
||||
|
|
@ -712,7 +710,7 @@
|
|||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-table> -->
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
|
@ -1027,7 +1025,6 @@ const getOrderDetailsData = async () => {
|
|||
})
|
||||
|
||||
orderDetails.value = res
|
||||
|
||||
orderDetails.value.detailsList = orderDetails.value.detailsList.map((e: any) => {
|
||||
return {
|
||||
...e,
|
||||
|
|
@ -1165,9 +1162,9 @@ const onSubmit = async (type: boolean) => {
|
|||
// scrapReason: '',
|
||||
// fileInfoList: [],
|
||||
|
||||
let repairRecordList = []
|
||||
let scrapRecordList = []
|
||||
let lossRecordList = []
|
||||
let repairRecordList: any = []
|
||||
let scrapRecordList: any = []
|
||||
let lossRecordList: any = []
|
||||
orderDetails.value.detailsList.forEach((e: any) => {
|
||||
console.log(e.repairPrice, '**')
|
||||
if (e.repairPrice * 1 > 0) {
|
||||
|
|
@ -1209,12 +1206,21 @@ const onSubmit = async (type: boolean) => {
|
|||
code,
|
||||
orderId: props.orderId,
|
||||
// maId: props.maId,
|
||||
repairRecordList: repairFormList.value,
|
||||
scrapRecordList: scrapFormList.value,
|
||||
lossRecordList: lossFormList.value,
|
||||
repairRecordList,
|
||||
scrapRecordList,
|
||||
lossRecordList,
|
||||
}
|
||||
|
||||
console.log(params, '提交参数--*--')
|
||||
const res: any = await setAddLeaseRepairApi(params)
|
||||
|
||||
if (res.code === 200) {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '提交成功',
|
||||
})
|
||||
emits('update:addOrEditDialogVisible', false)
|
||||
emits('onChangeGetList')
|
||||
}
|
||||
}
|
||||
|
||||
// repairInfoList: [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue