|
@@ -72,15 +72,14 @@
|
|
|
<p class="htmlText" :title="detailData.repairerVo.faultMsg">{{
|
|
|
detailData.repairerVo.faultMsg
|
|
|
}}</p>
|
|
|
- <PreviewGroup>
|
|
|
- <Image
|
|
|
- :width="80"
|
|
|
- :height="80"
|
|
|
- v-for="item in detailData.repairerVo.faultImg"
|
|
|
- :key="item"
|
|
|
- :src="item"
|
|
|
- />
|
|
|
- </PreviewGroup>
|
|
|
+ <div class="flex justify-center items-center cursor-pointer">
|
|
|
+ <PreviewGroup>
|
|
|
+ <div class="inline-block" v-for="item in detailData.repairerVo.faultImg" :key="item">
|
|
|
+ <Image v-if="isImg(item)" :src="item" :width="80" :height="80" />
|
|
|
+ <FileZipOutlined @click="handleItemDowm(item)" :style="{fontSize: '22px', color: '#08c'}" v-else />
|
|
|
+ </div>
|
|
|
+ </PreviewGroup>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</DescriptionsItem>
|
|
|
<DescriptionsItem label="机器外观">
|
|
@@ -367,10 +366,14 @@
|
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
import { BasicTable, useTable, BasicColumn } from '/@/components/Table';
|
|
|
import { Timeline, TimelineItem, Descriptions, Image } from 'ant-design-vue';
|
|
|
+ import { FileZipOutlined } from '@ant-design/icons-vue';
|
|
|
+ import { isImg } from '/@/utils/is';
|
|
|
+
|
|
|
export default defineComponent({
|
|
|
name: 'Detail',
|
|
|
components: {
|
|
|
Image,
|
|
|
+ FileZipOutlined,
|
|
|
BasicTable,
|
|
|
quoteModel,
|
|
|
deliveryModal,
|
|
@@ -629,6 +632,10 @@
|
|
|
function reload() {
|
|
|
getData();
|
|
|
}
|
|
|
+ function handleItemDowm(item) {
|
|
|
+ window.open(item);
|
|
|
+ }
|
|
|
+
|
|
|
function dowmFile(type) {
|
|
|
let name = type == 0 ? '报价单' : '维修工单';
|
|
|
createConfirm({
|
|
@@ -703,6 +710,8 @@
|
|
|
print,
|
|
|
printInfo,
|
|
|
registerMaintenanceRemarks,
|
|
|
+ isImg,
|
|
|
+ handleItemDowm,
|
|
|
};
|
|
|
},
|
|
|
});
|