|
@@ -127,7 +127,7 @@
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
v-loading="listLoading"
|
|
v-loading="listLoading"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
- max-height="720"
|
|
|
|
|
|
|
+ max-height="700"
|
|
|
show-summary
|
|
show-summary
|
|
|
:summary-method="getSummaries"
|
|
:summary-method="getSummaries"
|
|
|
border
|
|
border
|
|
@@ -305,8 +305,17 @@
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
- <el-link :href="row.printFileUrlLink" target="_blank" style="color: #20a0ff">{{ row[column.field] }}
|
|
|
|
|
- </el-link>
|
|
|
|
|
|
|
+ <div style="line-height: 30px">
|
|
|
|
|
+ <el-image
|
|
|
|
|
+ v-show="row.printFileUrlLink != null"
|
|
|
|
|
+ style="width: 25px; height: 25px"
|
|
|
|
|
+ :src="row.printFileUrlLink"
|
|
|
|
|
+ :preview-src-list="srcList">
|
|
|
|
|
+ </el-image>
|
|
|
|
|
+ <a v-if="row.printFileUrlLink!=null" style="color: #1363C2;vertical-align: text-bottom;display: inline-block;" :href="row.printFileUrlLink">下载</a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <el-link :href="row.attachFileLink" target="_blank" style="color: #1363C2">{{ row[column.field] }}-->
|
|
|
|
|
+ <!-- </el-link>-->
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -515,10 +524,10 @@ const lifeForm = {
|
|
|
|
|
|
|
|
const defaultItems = [
|
|
const defaultItems = [
|
|
|
{
|
|
{
|
|
|
- name: '制单人', id: 24, field: 'createManUser', width: '70'
|
|
|
|
|
|
|
+ name: '制单人', id: 24, field: 'createManUser', width: '60'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '订单编号', id: 1, field: 'orderCode', width: '110'
|
|
|
|
|
|
|
+ name: '订单编号', id: 1, field: 'orderCode', width: '100'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: '客户名称', id: 3, field: 'clientName', width: '100'
|
|
name: '客户名称', id: 3, field: 'clientName', width: '100'
|
|
@@ -527,49 +536,55 @@ const defaultItems = [
|
|
|
name: '印品名称', id: 2, field: 'orderName', width: '100'
|
|
name: '印品名称', id: 2, field: 'orderName', width: '100'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '产品类型', id: 4, field: 'productName', width: '80'
|
|
|
|
|
|
|
+ name: '产品类型', id: 4, field: 'productName', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '订单数量', id: 5, field: 'printQty', width: '80'
|
|
|
|
|
|
|
+ name: '订单数量', id: 5, field: 'printQty', width: '75'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: '单价', id: 6, field: 'printPrice', width: '70'
|
|
name: '单价', id: 6, field: 'printPrice', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '订单金额', id: 7, field: 'printMoneyTotal', width: '80'
|
|
|
|
|
|
|
+ name: '订单金额', id: 7, field: 'printMoneyTotal', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '已收金额', id: 18, field: 'payMoney', width: '80'
|
|
|
|
|
|
|
+ name: '已收金额', id: 18, field: 'payMoney', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '欠款金额', id: 19, field: 'chargeMoney', width: '80'
|
|
|
|
|
|
|
+ name: '欠款金额', id: 19, field: 'chargeMoney', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '外发金额', id: 20, field: 'outMoneyTotal', width: '80'
|
|
|
|
|
|
|
+ name: '外发金额', id: 20, field: 'outMoneyTotal', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '外发运费', id: 21, field: 'outSendMoney', width: '70'
|
|
|
|
|
|
|
+ name: '外发运费', id: 21, field: 'outSendMoney', width: '60'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: '毛利', id: 22, field: 'orderGrossProfit', width: '70'
|
|
name: '毛利', id: 22, field: 'orderGrossProfit', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '毛利率(%)', id: 23, field: 'orderGrossProfitRate', width: '70'
|
|
|
|
|
|
|
+ name: '毛利率(%)', id: 23, field: 'orderGrossProfitRate', width: '65'
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// name: '联数', id: 8, field: 'receiptsCount', width: '100'
|
|
// name: '联数', id: 8, field: 'receiptsCount', width: '100'
|
|
|
// },
|
|
// },
|
|
|
{
|
|
{
|
|
|
|
|
+ name: '原图文件', id: 16, field: 'printFileName', width: '80'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '附件', id: 17, field: 'attachFileName', width: '100'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
name: '送货地址', id: 13, field: 'sendAddress', width: '100'
|
|
name: '送货地址', id: 13, field: 'sendAddress', width: '100'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '材料类型', id: 9, field: 'paperName', width: '90'
|
|
|
|
|
|
|
+ name: '材料类型', id: 9, field: 'paperName', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '每本页数', id: 10, field: 'pageCount', width: '90'
|
|
|
|
|
|
|
+ name: '每本页数', id: 10, field: 'pageCount', width: '70'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '印刷颜色', id: 11, field: 'printColor', width: '90'
|
|
|
|
|
|
|
+ name: '印刷颜色', id: 11, field: 'printColor', width: '70'
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// name: '生产工艺', id: 12, field: 'printAllCoverFlag', width: '100'
|
|
// name: '生产工艺', id: 12, field: 'printAllCoverFlag', width: '100'
|
|
@@ -578,12 +593,6 @@ const defaultItems = [
|
|
|
name: '制单时间', id: 14, field: 'createTime', width: '130'
|
|
name: '制单时间', id: 14, field: 'createTime', width: '130'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '原图文件', id: 16, field: 'printFileName', width: '100'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '附件', id: 17, field: 'attachFileName', width: '100'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
name: '订单状态', id: 15, field: 'orderState', width: ''
|
|
name: '订单状态', id: 15, field: 'orderState', width: ''
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -652,6 +661,7 @@ export default {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
queryType: 1, // 1模糊搜索,2组合搜索
|
|
queryType: 1, // 1模糊搜索,2组合搜索
|
|
|
searchTime: [],
|
|
searchTime: [],
|
|
|
|
|
+ srcList:[],
|
|
|
search: {
|
|
search: {
|
|
|
keyWord: '',
|
|
keyWord: '',
|
|
|
orderState: '0'
|
|
orderState: '0'
|
|
@@ -880,11 +890,23 @@ export default {
|
|
|
// return;
|
|
// return;
|
|
|
getOrderList(data).then(response => {
|
|
getOrderList(data).then(response => {
|
|
|
// console.log(response)
|
|
// console.log(response)
|
|
|
|
|
+ _that.srcList = [];
|
|
|
const data = response.data
|
|
const data = response.data
|
|
|
// // 组合表单数据
|
|
// // 组合表单数据
|
|
|
_that.tableData = data
|
|
_that.tableData = data
|
|
|
_that.tableCollection = response.collection
|
|
_that.tableCollection = response.collection
|
|
|
_that.listData.total = response.total
|
|
_that.listData.total = response.total
|
|
|
|
|
+ for (let i = 0; i <_that.tableData.length; i++) {
|
|
|
|
|
+ var dataItem = _that.tableData[i];
|
|
|
|
|
+ var printFileUrlLinkex = '';
|
|
|
|
|
+ if (dataItem.printFileUrlLink != null ) {
|
|
|
|
|
+ printFileUrlLinkex = dataItem.printFileUrlLink;
|
|
|
|
|
+ // printFileUrlLinkex = printFileUrlLinkex.split("?")[0];
|
|
|
|
|
+ _that.srcList.push(printFileUrlLinkex)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // console.log("1",_that.srcList);
|
|
|
// console.log(_that.tableData)
|
|
// console.log(_that.tableData)
|
|
|
_that.listLoading = false
|
|
_that.listLoading = false
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|