添加采购、销售合同模板,对接导入接口
This commit is contained in:
parent
ddc973fed0
commit
f81e56e167
BIN
public/template/采购合同导入模板.xlsx
Normal file
BIN
public/template/采购合同导入模板.xlsx
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -1,226 +1,112 @@
|
|||
<template>
|
||||
<el-drawer
|
||||
title="导入失败列表"
|
||||
:visible.sync="drawerVisible"
|
||||
direction="rtl"
|
||||
size="90%"
|
||||
append-to-body>
|
||||
<el-table
|
||||
:data="importData"
|
||||
style="width: 100%"
|
||||
height="250">
|
||||
<el-drawer title="导入失败列表" :visible.sync="drawerVisible" direction="rtl" size="90%" append-to-body>
|
||||
<el-table :data="importData" style="width: 100%" height="250">
|
||||
|
||||
<el-table-column
|
||||
prop="projectExecutor"
|
||||
label="项目执行人"
|
||||
width="150">
|
||||
<el-table-column prop="projectExecutor" label="项目执行人" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="department"
|
||||
label="部门"
|
||||
width="150">
|
||||
<el-table-column prop="department" label="部门" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="projectCode"
|
||||
label="项目编号"
|
||||
width="150">
|
||||
<el-table-column prop="projectCode" label="项目编号" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="orderCode"
|
||||
label="订单编号"
|
||||
width="150">
|
||||
<el-table-column prop="orderCode" label="订单编号" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="projectName"
|
||||
label="项目名称"
|
||||
width="150">
|
||||
<el-table-column prop="projectName" label="项目名称" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="clientName"
|
||||
label="客户名称"
|
||||
width="150">
|
||||
<el-table-column prop="clientName" label="客户名称" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="city"
|
||||
label="城市"
|
||||
width="120">
|
||||
<el-table-column prop="city" label="城市" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="publishStartDate"
|
||||
label="上刊时间"
|
||||
width="180">
|
||||
<el-table-column prop="publishStartDate" label="上刊时间" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="publishEndDate"
|
||||
label="下刊时间"
|
||||
width="180">
|
||||
<el-table-column prop="publishEndDate" label="下刊时间" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="mediaType"
|
||||
label="媒体类型"
|
||||
width="120">
|
||||
<el-table-column prop="mediaType" label="媒体类型" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="mediaPosition"
|
||||
label="媒体位置"
|
||||
width="150">
|
||||
<el-table-column prop="mediaPosition" label="媒体位置" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
label="数量"
|
||||
width="100">
|
||||
<el-table-column prop="quantity" label="数量" width="100">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="frequency"
|
||||
label="频次"
|
||||
width="100">
|
||||
<el-table-column prop="frequency" label="频次" width="100">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="listPrice"
|
||||
label="刊例价"
|
||||
width="120">
|
||||
<el-table-column prop="listPrice" label="刊例价" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="listPriceUnit"
|
||||
label="刊例单位"
|
||||
width="120">
|
||||
<el-table-column prop="listPriceUnit" label="刊例单位" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="discount"
|
||||
label="折扣"
|
||||
width="100">
|
||||
<el-table-column prop="discount" label="折扣" width="100">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="mediaCost"
|
||||
label="媒体费"
|
||||
width="120">
|
||||
<el-table-column prop="mediaCost" label="媒体费" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="productionCost"
|
||||
label="制作费"
|
||||
width="120">
|
||||
<el-table-column prop="productionCost" label="制作费" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="isBid"
|
||||
label="是否比稿"
|
||||
width="120">
|
||||
<el-table-column prop="isBid" label="是否比稿" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="bidRebate"
|
||||
label="比稿返点"
|
||||
width="120">
|
||||
<el-table-column prop="bidRebate" label="比稿返点" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="bidAmount"
|
||||
label="比稿金额"
|
||||
width="120">
|
||||
<el-table-column prop="bidAmount" label="比稿金额" width="120">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="ykToQunYiRebateRate"
|
||||
label="YK给群邑返点比例"
|
||||
width="180">
|
||||
<el-table-column prop="ykToQunYiRebateRate" label="YK给群邑返点比例" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="yuKeRebateToQunYi"
|
||||
label="优客返点给群邑"
|
||||
width="180">
|
||||
<el-table-column prop="yuKeRebateToQunYi" label="优客返点给群邑" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="ykToYYXRebateRate"
|
||||
label="YK给YYX返点比例"
|
||||
width="180">
|
||||
<el-table-column prop="ykToYYXRebateRate" label="YK给YYX返点比例" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="yuKeRebateToYYX"
|
||||
label="优客返点给YYX"
|
||||
width="180">
|
||||
<el-table-column prop="yuKeRebateToYYX" label="优客返点给YYX" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="orderAmountPerTransaction"
|
||||
label="每笔订单金额"
|
||||
width="180">
|
||||
<el-table-column prop="orderAmountPerTransaction" label="每笔订单金额" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="contractSignDate"
|
||||
label="合同签订日期"
|
||||
width="180">
|
||||
<el-table-column prop="contractSignDate" label="合同签订日期" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="actualInvoiceDate"
|
||||
label="实际开票日期"
|
||||
width="180">
|
||||
<el-table-column prop="actualInvoiceDate" label="实际开票日期" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="agreedPaymentDate"
|
||||
label="约定回款日期"
|
||||
width="180">
|
||||
<el-table-column prop="agreedPaymentDate" label="约定回款日期" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="actualPaymentDate"
|
||||
label="实际回款日期"
|
||||
width="180">
|
||||
<el-table-column prop="actualPaymentDate" label="实际回款日期" width="180">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="additionalNotes"
|
||||
label="补充说明"
|
||||
width="200">
|
||||
<el-table-column prop="additionalNotes" label="补充说明" width="200">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="partyA"
|
||||
label="甲方"
|
||||
width="150">
|
||||
<el-table-column prop="partyA" label="甲方" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="partyB"
|
||||
label="乙方"
|
||||
width="150">
|
||||
<el-table-column prop="partyB" label="乙方" width="150">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="状态"
|
||||
width="100">
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
|
||||
<div style="color:red;">导入失败</div>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="notes"
|
||||
label="备注"
|
||||
width="200"
|
||||
>
|
||||
<el-table-column prop="notes" label="备注" width="200">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: red;">{{ scope.row.notes }}</span>
|
||||
</template>
|
||||
|
|
@ -235,7 +121,10 @@ import { mapGetters } from 'vuex';
|
|||
|
||||
export default {
|
||||
props: {
|
||||
importData: [],
|
||||
importData: {
|
||||
type: Array, // 确保这里定义的是 Array
|
||||
default: () => []
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ export const searchItems = [
|
|||
{ label: "", prop: "keyword", placeholder: "媒体位置/乙方姓名/项目编号/项目名称", isExtend: false },
|
||||
{ label: "客户名称", prop: "clientId", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
|
||||
{ label: "媒介部门", prop: "mediaDeptId", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
|
||||
{ label: "城市", prop: "cityId", placeholder: "请选择", type: 'multiSelector', isExtend: true, available: false},
|
||||
{ label: "媒体类型", prop: "mediaId", placeholder: "请选择", type: 'selector', isExtend: true, available: false},
|
||||
{ label: "城市", prop: "cityId", placeholder: "请选择", type: 'multiSelector', isExtend: true, available: false },
|
||||
{ label: "媒体类型", prop: "mediaId", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
|
||||
{ label: "时间范围", prop: "timesRange", placeholder: "请选择", isExtend: true, available: false },
|
||||
{ label: "甲方", prop: "firstId", placeholder: "请选择", isExtend: true, available: false },
|
||||
// { label: "乙方", prop: "secondName", placeholder: "请选择", isExtend: true, available: false },
|
||||
|
|
@ -278,6 +278,14 @@ export const tableColumns = [
|
|||
isCheck: false,
|
||||
width: [78, 102],
|
||||
},
|
||||
{
|
||||
title: "检测照片",
|
||||
dataIndex: "detectPicAttr",
|
||||
dataIndexType: "ordinary",
|
||||
align: "center",
|
||||
isCheck: false,
|
||||
width: [78, 102],
|
||||
},
|
||||
{
|
||||
title: "上刊",
|
||||
dataIndex: "upPrint",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -579,7 +579,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
importData: [],
|
||||
importUrl: process.env.VUE_APP_BASE_API + '/contract/sale/import',
|
||||
importUrl: process.env.VUE_APP_BASE_API + '/contract/sale/importData',
|
||||
fileList: [],
|
||||
importHeaders: { Authorization: "Bearer " + getToken() },
|
||||
searchItems,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user