This commit is contained in:
chenjianan
2019-04-13 09:58:25 +08:00
parent 12e3904970
commit dc178b5f66
5 changed files with 170 additions and 167 deletions

View File

@@ -252,31 +252,31 @@
</el-tabs> </el-tabs>
<el-card style="margin-top: 15px"> <el-card style="margin-top: 15px">
<span>询价单号:</span> <div slot="header">
<el-input v-model="inquirySheetNum" placeholder="询价单号" size="small" clearable/> <span>询价单号:</span>
<span>供应商:</span> <el-input v-model="inquirySheetNum" placeholder="询价单号" size="small" clearable/>
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable/> <span>供应商:</span>
<el-button <el-input v-model="supplierName" placeholder="供应商" size="small" clearable/>
type="success" <el-button
size="small" type="success"
icon="el-icon-search" size="small"
style="margin-left: 10px" icon="el-icon-search"
@click="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()">查询</el-button> style="margin-left: 10px"
<el-button @click="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()">查询</el-button>
type="primary" <el-button
size="small" type="primary"
icon="el-icon-plus" size="small"
style="margin-left: 10px" icon="el-icon-plus"
@click="createInquirySheet">创建单据</el-button> style="margin-left: 10px"
<el-button @click="createInquirySheet">创建单据</el-button>
type="primary" <el-button
size="small" type="primary"
icon="el-icon-circle-plus-outline" size="small"
style="margin-left: 10px" icon="el-icon-circle-plus-outline"
@click="addInquirySheet">追加物料</el-button> style="margin-left: 10px"
</el-card> @click="addInquirySheet">追加物料</el-button>
</div>
<el-card> <h3 style="margin-top: 0">询价单</h3>
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3"> <el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
<el-table-column label="询价单编号" align="center" min-width="150"> <el-table-column label="询价单编号" align="center" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -322,7 +322,8 @@
@current-change="handleCurrentChange2"/> @current-change="handleCurrentChange2"/>
<el-button :disabled="tableData3.length===0" type="warning" size="mini" style="margin-left:10px;float: right" @click="exportInquirySheet()">导出</el-button> <el-button :disabled="tableData3.length===0" type="warning" size="mini" style="margin-left:10px;float: right" @click="exportInquirySheet()">导出</el-button>
<el-button :disabled="tableData3.length===0" type="success" size="mini" style="float: right" @click="saveOrder()">保存</el-button> <el-button :disabled="tableData3.length===0" type="success" size="mini" style="float: right" @click="saveOrder()">保存</el-button>
</div> </div><hr>
<h3 style="margin-top: 0">询价单明细</h3>
<el-table v-loading="" :data="tableData3" border style="max-height: 500px;" height="500px" size="mini"> <el-table v-loading="" :data="tableData3" border style="max-height: 500px;" height="500px" size="mini">
<el-table-column label="图号" align="center" min-width="100"> <el-table-column label="图号" align="center" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">

View File

@@ -1,37 +1,37 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<span>请款时间段:</span> <div slot="header">
<el-date-picker <span>请款时间段:</span>
v-model="dateRange" <el-date-picker
:picker-options="pickerOptions" v-model="dateRange"
size="small" :picker-options="pickerOptions"
type="daterange" size="small"
align="center" type="daterange"
style="width: 300px" align="center"
value-format="yyyy-MM-dd" style="width: 300px"
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="" format="yyyy-MM-dd"
start-placeholder="开始日期" range-separator=""
end-placeholder="结束日期"/> start-placeholder="开始日期"
<span>供应商</span> end-placeholder="结束日期"/>
<el-select v-model="supplierValue" placeholder="供应商" filterable size="small" clearable @change="totalSum=0;totalPay=0;totalDebt=0;"> <span>供应商</span>
<el-option <el-select v-model="supplierValue" placeholder="供应商" filterable size="small" clearable @change="totalSum=0;totalPay=0;totalDebt=0;">
v-for="item in supplier" <el-option
:key="item.value" v-for="item in supplier"
:label="item.label" :key="item.value"
:value="item.value"/> :label="item.label"
</el-select> :value="item.value"/>
<el-button </el-select>
type="success" <el-button
size="small" type="success"
icon="el-icon-search" size="small"
style="margin-left: 10px" icon="el-icon-search"
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button> style="margin-left: 10px"
<el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button> @click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button>
</el-card> <el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button>
</div>
<el-card> <h3 style="margin-top: 0">请款表</h3>
<el-table v-loading="" :data="tableData1" border style="max-height: 500px;" height="500px" size="mini"> <el-table v-loading="" :data="tableData1" border style="max-height: 500px;" height="500px" size="mini">
<el-table-column label="供应商" align="center" min-width="250"> <el-table-column label="供应商" align="center" min-width="250">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -123,6 +123,10 @@
<span v-show="supplierValue">累计欠款</span> <span v-show="supplierValue">累计欠款</span>
<el-input v-show="supplierValue" v-model="totalDebt" size="mini" style="width: 100px;" readonly/> <el-input v-show="supplierValue" v-model="totalDebt" size="mini" style="width: 100px;" readonly/>
</div> </div>
</el-card>
<el-card>
<h3 style="margin-top: 0">离线合同明细</h3>
<el-table v-loading="" :data="tableData2" :summary-method="getSummaries" border style="margin-top:10px;max-height: 500px;" height="500px" size="mini" show-summary> <el-table v-loading="" :data="tableData2" :summary-method="getSummaries" border style="margin-top:10px;max-height: 500px;" height="500px" size="mini" show-summary>
<el-table-column label="离线合同编号" align="center" min-width="150"> <el-table-column label="离线合同编号" align="center" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">

View File

@@ -1,23 +1,23 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<span>时间段:</span> <div slot="header">
<el-date-picker <span>时间段:</span>
v-model="dateRange" <el-date-picker
:picker-options="pickerOptions" v-model="dateRange"
size="small" :picker-options="pickerOptions"
type="daterange" size="small"
align="center" type="daterange"
value-format="yyyy-MM-dd" align="center"
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="" format="yyyy-MM-dd"
style="width:300px" range-separator=""
start-placeholder="开始日期" style="width:300px"
end-placeholder="结束日期"/> start-placeholder="开始日期"
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="searchTable0()">查询</el-button> end-placeholder="结束日期"/>
</el-card> <el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="searchTable0()">查询</el-button>
</div>
<el-card> <h3 style="margin-top: 0">付款计划</h3>
<el-table :data="tableData0" size="mini" border style="max-height: 250px;" height="250px" highlight-current-row @row-click="searchContract"> <el-table :data="tableData0" size="mini" border style="max-height: 250px;" height="250px" highlight-current-row @row-click="searchContract">
<el-table-column label="计划状态" width="100" align="center"> <el-table-column label="计划状态" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -59,24 +59,24 @@
</el-card> </el-card>
<el-card> <el-card>
<span>供应商</span> <div slot="header">
<el-select v-model="supplierValue" placeholder="供应商" filterable size="small" clearable @change="totalSum=0;totalPay=0;totalDebt=0;"> <span>供应商</span>
<el-option <el-select v-model="supplierValue" placeholder="供应商" filterable size="small" clearable @change="totalSum=0;totalPay=0;totalDebt=0;">
v-for="item in supplier" <el-option
:key="item.value" v-for="item in supplier"
:label="item.label" :key="item.value"
:value="item.value"/> :label="item.label"
</el-select> :value="item.value"/>
<el-button </el-select>
type="success" <el-button
size="small" type="success"
icon="el-icon-search" size="small"
style="margin-left: 10px" icon="el-icon-search"
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button> style="margin-left: 10px"
<el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button> @click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button>
</el-card> <el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button>
</div>
<el-card> <h3 style="margin-top: 0">请款表</h3>
<el-table v-loading="" :data="tableData1" border style="max-height: 500px;" height="500px" size="mini"> <el-table v-loading="" :data="tableData1" border style="max-height: 500px;" height="500px" size="mini">
<el-table-column label="供应商" align="center" min-width="250"> <el-table-column label="供应商" align="center" min-width="250">
<template slot-scope="scope"> <template slot-scope="scope">

View File

@@ -1,59 +1,58 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<!--<span>时间段:</span>--> <div slot="header">
<!--<el-date-picker--> <!--<span>时间段:</span>-->
<!--v-model="startEndDate"--> <!--<el-date-picker-->
<!--style="width:250px"--> <!--v-model="startEndDate"-->
<!--size="small"--> <!--style="width:250px"-->
<!--type="daterange"--> <!--size="small"-->
<!--value-format="yyyy-MM-dd"--> <!--type="daterange"-->
<!--format="yyyy-MM-dd"--> <!--value-format="yyyy-MM-dd"-->
<!--start-placeholder="开始日期"--> <!--format="yyyy-MM-dd"-->
<!--end-placeholder="结束日期"/>--> <!--start-placeholder="开始日期"-->
<span>合同号:</span> <!--end-placeholder="结束日期"/>-->
<el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable> <span>合同号:</span>
<el-option <el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable>
v-for="item in contractNum" <el-option
:key="item.value" v-for="item in contractNum"
:label="item.label" :key="item.value"
:value="item.value"> :label="item.label"
<div style="float: left">{{ item.label }}</div> :value="item.value">
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div> <div style="float: left">{{ item.label }}</div>
</el-option> <div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
</el-select> </el-option>
<span>供应商:</span> </el-select>
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable style="width:180px"/> <span>供应商:</span>
<span>采购员:</span> <el-input v-model="supplierName" placeholder="供应商" size="small" clearable style="width:180px"/>
<el-select v-model="personValue" placeholder="采购员" size="small" clearable style="width: 100px"> <span>采购员:</span>
<el-option <el-select v-model="personValue" placeholder="采购员" size="small" clearable style="width: 100px">
v-for="item in person" <el-option
:key="item.value" v-for="item in person"
:label="item.label" :key="item.value"
:value="item.value"/> :label="item.label"
</el-select> :value="item.value"/>
<span>审批情况:</span> </el-select>
<el-select v-model="approvalValue" placeholder="审批情况" size="small" style="width: 100px"> <span>审批情况:</span>
<el-option <el-select v-model="approvalValue" placeholder="审批情况" size="small" style="width: 100px">
v-for="item in approval" <el-option
:key="item.value" v-for="item in approval"
:label="item.label" :key="item.value"
:value="item.value"/> :label="item.label"
</el-select> :value="item.value"/>
<el-button </el-select>
type="success" <el-button
size="small" type="success"
icon="el-icon-search" size="small"
style="margin-left:10px" icon="el-icon-search"
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button> style="margin-left:10px"
<el-button @click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
type="warning" <el-button
size="small" type="warning"
icon="el-icon-download" size="small"
@click="download()">导出</el-button> icon="el-icon-download"
</el-card> @click="download()">导出</el-button>
</div>
<el-card>
<el-table <el-table
v-loading="loading1" v-loading="loading1"
id="expandTable" id="expandTable"

View File

@@ -1,28 +1,27 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<span>合同号:</span> <div slot="header">
<el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable> <span>合同号:</span>
<el-option <el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable>
v-for="item in contractNum" <el-option
:key="item.value" v-for="item in contractNum"
:label="item.label" :key="item.value"
:value="item.value"> :label="item.label"
<div style="float: left">{{ item.label }}</div> :value="item.value">
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div> <div style="float: left">{{ item.label }}</div>
</el-option> <div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
</el-select> </el-option>
<span>供应商:</span> </el-select>
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable/> <span>供应商:</span>
<el-button <el-input v-model="supplierName" placeholder="供应商" size="small" clearable/>
type="success" <el-button
size="small" type="success"
icon="el-icon-search" size="small"
style="margin-left:10px" icon="el-icon-search"
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button> style="margin-left:10px"
</el-card> @click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
</div>
<el-card>
<el-table <el-table
v-loading="" v-loading=""
id="expandTable" id="expandTable"