|
@@ -0,0 +1,344 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <!--布局容器-->
|
|
|
|
|
+ <div class="container" style="width: 99%; margin-top: 0px">
|
|
|
|
|
+ <!-- 顶部查询 -->
|
|
|
|
|
+ <el-row class="queryFrom" justify="space-around">
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ class="form"
|
|
|
|
|
+ ref="queryFormRef"
|
|
|
|
|
+ :model="queryFrom"
|
|
|
|
|
+ label-width="80px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="开票员">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ placeholder="单行输入"
|
|
|
|
|
+ ></el-input> </el-form-item
|
|
|
|
|
+ ><el-form-item label="开票方">
|
|
|
|
|
+ <el-select size="small" placeholder="请选择">
|
|
|
|
|
+ <el-option label="山西市鼎掌柜科技" value="0"></el-option>
|
|
|
|
|
+ </el-select> </el-form-item
|
|
|
|
|
+ ><el-form-item label="状态">
|
|
|
|
|
+ <el-select size="small" placeholder="请选择">
|
|
|
|
|
+ <el-option label="待审核" value="0"></el-option>
|
|
|
|
|
+ <el-option label="审核通过" value="1"></el-option>
|
|
|
|
|
+ <el-option label="通过" value="1"></el-option>
|
|
|
|
|
+ </el-select> </el-form-item
|
|
|
|
|
+ ><el-form-item>
|
|
|
|
|
+ <el-button type="info" size="mini" @click="queryStaffInfo"
|
|
|
|
|
+ >查询</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <!-- 操作按钮 -->
|
|
|
|
|
+ <div class="operation" style="margin-bottom: 20px">
|
|
|
|
|
+ <el-button type="primary" @click="add">新增</el-button>
|
|
|
|
|
+ <el-button type="success">批量审核通过</el-button>
|
|
|
|
|
+ <el-button type="danger">批量审核退回</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 表格 -->
|
|
|
|
|
+ <el-table :data="tableData" border style="width: 100%; margin-top: 25px">
|
|
|
|
|
+ <el-table-column width="50">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-checkbox v-model="checked"></el-checkbox>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="date" label="序号" width="180"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name" label="开票员" width="180">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="开票科目"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="开票方"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="对方单位每次"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="发票号码"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="开票日期"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="不含税金额"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="状态"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="操作"> </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <el-container style="height: 100%" direction="vertical"> </el-container>
|
|
|
|
|
+ <!-- 新增弹出框 -->
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="新增发票信息"
|
|
|
|
|
+ class="dialog"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :visible.sync="dialogFormVisible"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form :model="form" label-width="80px">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="开票科目" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-select v-model="form.region" placeholder="请选择开票科目">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ label="1现代服务*服务费"
|
|
|
|
|
+ value="shanghai"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
|
+ </el-select> </el-form-item
|
|
|
|
|
+ ></el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="开票方" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-select v-model="form.region" placeholder="请选择开票方">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ label="1太原市科技有限公司"
|
|
|
|
|
+ value="shanghai"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="对方单位名称" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="发票号码" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.name"
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input> </el-form-item
|
|
|
|
|
+ ></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="发票数" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="num"
|
|
|
|
|
+ @change="handleChange"
|
|
|
|
|
+ :min="1"
|
|
|
|
|
+ :max="10"
|
|
|
|
|
+ label="描述文字"
|
|
|
|
|
+ ></el-input-number>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="开票日期"
|
|
|
|
|
+ ><el-date-picker
|
|
|
|
|
+ v-model="value1"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="不含税金额" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="税率" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="税额" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="开票金额" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="发票类型" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-select v-model="form.region" placeholder="请选择发票类型">
|
|
|
|
|
+ <el-option label="1电子普票" value="shanghai"></el-option>
|
|
|
|
|
+ <el-option label="2电子专票" value="beijing"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12"
|
|
|
|
|
+ ><el-form-item label="进账日期"
|
|
|
|
|
+ ><el-date-picker
|
|
|
|
|
+ v-model="value1"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="进账金额" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.name"
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input> </el-form-item
|
|
|
|
|
+ ></el-col>
|
|
|
|
|
+ <el-col :span="12"
|
|
|
|
|
+ ><el-form-item label="出账日期"
|
|
|
|
|
+ ><el-date-picker
|
|
|
|
|
+ v-model="value1"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="出账金额" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="利润点" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="毛利润" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="手续费" :label-width="formLabelWidth">
|
|
|
|
|
+ <el-input v-model="form.name" autocomplete="off"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-form-item label="备注">
|
|
|
|
|
+ <el-input type="textarea" v-model="form.desc"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button class="falseButtom" @click="dialogFormVisible = false"
|
|
|
|
|
+ >取 消</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="trueButtom"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="dialogFormVisible = false"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+<script>
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: "InvoiceInformation",
|
|
|
|
|
+ components: {},
|
|
|
|
|
+ created() {},
|
|
|
|
|
+ mounted() {},
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ queryFrom: {
|
|
|
|
|
+ user: "",
|
|
|
|
|
+ region: "",
|
|
|
|
|
+ }, //查询信息
|
|
|
|
|
+ tableData: [
|
|
|
|
|
+ {
|
|
|
|
|
+ date: "2016-05-02",
|
|
|
|
|
+ name: "王小虎",
|
|
|
|
|
+ address: "上海市普",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ date: "2016-05-04",
|
|
|
|
|
+ name: "王小虎",
|
|
|
|
|
+ address: "上海市普陀",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ date: "2016-05-01",
|
|
|
|
|
+ name: "王小虎",
|
|
|
|
|
+ address: "上海市普陀区",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ date: "2016-05-03",
|
|
|
|
|
+ name: "王小虎",
|
|
|
|
|
+ address: "上海市普陀区",
|
|
|
|
|
+ },
|
|
|
|
|
+ ], //表格数据
|
|
|
|
|
+ checked: true, //选项
|
|
|
|
|
+ dialogFormVisible: true, //新增弹出框
|
|
|
|
|
+ dialogTableVisible: false,
|
|
|
|
|
+ form: {
|
|
|
|
|
+ name: "",
|
|
|
|
|
+ region: "",
|
|
|
|
|
+ date1: "",
|
|
|
|
|
+ date2: "",
|
|
|
|
|
+ delivery: false,
|
|
|
|
|
+ type: [],
|
|
|
|
|
+ resource: "",
|
|
|
|
|
+ desc: "",
|
|
|
|
|
+ },
|
|
|
|
|
+ formLabelWidth: "120px",
|
|
|
|
|
+ num: 1, //发票数
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ // 查询
|
|
|
|
|
+ queryStaffInfo() {
|
|
|
|
|
+ console.log("查询");
|
|
|
|
|
+ },
|
|
|
|
|
+ add() {
|
|
|
|
|
+ console.log("add");
|
|
|
|
|
+ this.dialogFormVisible = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.el-input--suffix .el-input__inner {
|
|
|
|
|
+ padding-right: 60px;
|
|
|
|
|
+}
|
|
|
|
|
+.operation {
|
|
|
|
|
+ margin-left: 15px !important;
|
|
|
|
|
+}
|
|
|
|
|
+.operation .el-button--primary {
|
|
|
|
|
+ background-color: rgb(85, 134, 167);
|
|
|
|
|
+ border-color: rgb(85, 134, 167);
|
|
|
|
|
+}
|
|
|
|
|
+.operation .el-button--success {
|
|
|
|
|
+ background-color: rgb(84, 188, 189);
|
|
|
|
|
+ border-color: rgb(84, 188, 189);
|
|
|
|
|
+}
|
|
|
|
|
+.operation .el-button--danger {
|
|
|
|
|
+ background-color: rgb(189, 49, 36);
|
|
|
|
|
+ border-color: rgb(189, 49, 36);
|
|
|
|
|
+}
|
|
|
|
|
+.operation .el-button {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+}
|
|
|
|
|
+.falseButtom {
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: rgb(252, 202, 0);
|
|
|
|
|
+ padding: 10px 28px !important;
|
|
|
|
|
+ margin-right: 240px !important;
|
|
|
|
|
+ margin-bottom: 20px !important;
|
|
|
|
|
+}
|
|
|
|
|
+.trueButtom {
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: rgb(30, 178, 255);
|
|
|
|
|
+ padding: 10px 28px !important;
|
|
|
|
|
+}
|
|
|
|
|
+.dialog-footer {
|
|
|
|
|
+ text-align: center !important;
|
|
|
|
|
+}
|
|
|
|
|
+.dialog .el-dialog__body {
|
|
|
|
|
+ padding: 30px 20px 5px !important;
|
|
|
|
|
+}
|
|
|
|
|
+.form {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-top: 18px;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|