Commit 40306d68 by lichengming

修改了委托单登记

parent 8facabfc
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button @click="_search" type="primary">搜索</Button> <Button @click="_search" type="primary">搜索</Button>
</Form-item> </Form-item>
<Form-item style="float: right">
<p>委托评审需要上传以下文件:</p>
<p>1、试验项目单 2、现场描述/样品照片等现场资料 3、相关技术要求</p>
</Form-item>
</Form> </Form>
</Col> </Col>
<!--列表--> <!--列表-->
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
fixed="right"> fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<VXEIconList <VXEIconList
:msg="scope.row.type === 'pdf'?iconMsgJpg:iconMsg" :msg="scope.row.type === 'jpg'||scope.row.type === 'pdf' ?iconMsgJpg:iconMsg"
@on-result-change="_iconClick" :rowData="scope.row"></VXEIconList> @on-result-change="_iconClick" :rowData="scope.row"></VXEIconList>
</template> </template>
</vxe-table-column> </vxe-table-column>
...@@ -321,8 +321,17 @@ export default { ...@@ -321,8 +321,17 @@ export default {
}, },
// 预览图片(该合同下所有的) // 预览图片(该合同下所有的)
_viewImg(data) { _viewImg(data) {
this.$pdfView(data.objectKey) switch (data.type) {
console.log(data) case 'jpg':
const imgViewList = []
imgViewList.push(global.baseURL + this.downloadFileUrlFile + data.id)
this.imgViewList = imgViewList
this.imgViewIndex = 0
break
case 'pdf':
this.$pdfView(data.objectKey)
break
}
// console.log(data) // console.log(data)
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') { // if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
// const id = data.entrustId // const id = data.entrustId
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span> <span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span> <span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else-if="item.key==='backReasons'" style="color: red">{{scope.row[item.key]}}</span>
<span v-else>{{scope.row[item.key]}}</span> <span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment