Commit 396a462e by LJM

寄售合同

parent 16c2a58d
......@@ -7,7 +7,7 @@
<el-select v-model="formParam.status" placeholder="全部" clearable>
<el-option label="全部" value=""></el-option>
<el-option label="有效" value="1"></el-option>
<el-option label="失效" value="2"></el-option>
<el-option label="失效" value="-1"></el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -19,15 +19,23 @@
<div class="data-box">
<el-table :data="list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="50" align="center" fixed></el-table-column>
<el-table-column prop="msg_type" label="合同编号" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="合同文件" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="状态" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="抽佣比例" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="合同有效期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="对账日期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="更新时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="创建人" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="contract_no" label="合同编号" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="contract_file" label="合同文件" width="160" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<a v-if="scope.row.contract_file" :href="scope.row.contract_file" target="_blank" style="color: #409EFF">查看</a>
</template>
</el-table-column>
<el-table-column prop="status_name" label="状态" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="commission_rate" label="抽佣比例(%)" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column label="合同有效期" width="290" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
{{ scope.row.start_time }} - {{ scope.row.end_time }}
</template>
</el-table-column>
<el-table-column prop="check_date" label="对账日期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="update_time" label="更新时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_name" label="创建人" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="update_time" label="创建时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div>
......@@ -54,8 +62,7 @@ export default {
limit: 10,
list: [],
formParam: {
status: '',
date: ''
status: ''
}
};
},
......@@ -64,12 +71,7 @@ export default {
},
methods: {
getData() {
var params = Object.assign({}, this.formParam,
{page: this.page, limit: this.limit},
{start_time: this.formParam.date ? this.formParam.date[0] : ''},
{end_time: this.formParam.date ? this.formParam.date[1] : ''}
);
this.$http('GET', "/api/message/getMsgList", params).then(res => {
this.$http('GET', "/api/consignmentContract/getConsignmentContractList", this.formParam).then(res => {
if (res.code === 0) {
this.list = res.data.list || [];
this.total = Number(res.data.total) || 0;
......
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 sign in to comment