<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
|
<title>开票申请</title>
|
<script src="../../../jsnew/elementDefault.js?v=20220425"></script>
|
<script src="../../../jsnew/vue/vue.js"></script>
|
<script src="../../../jsnew/vue/element-ui/element-ui_15/index.js"></script>
|
<script src="../../../jsnew/myelement.js?v=20220425"></script>
|
<script src="../../../jsnew/page.js?v=20220425"></script>
|
<!-- <script src="../../../setting.js"></script> -->
|
|
<link href="../../../jsnew/vue/element-ui/element-ui_15/theme-chalk/index.css" rel="stylesheet">
|
<link href="../../../jsnew/myelement.css?v=20220426" rel="stylesheet">
|
<link href="../../../jsnew/theme.css?v=20220426" rel="stylesheet">
|
<link href="../../../css/iconfont.css" rel="stylesheet">
|
<link href="../../../jsnew/page.css?v=20220425" rel="stylesheet">
|
<link href="//at.alicdn.com/t/font_2374495_13ltsxm2eor.css" rel="stylesheet">
|
</head>
|
|
<style>
|
/* 在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
|
[v-cloak] {
|
display: none !important;
|
}
|
.delivery_row {
|
padding: 10px;
|
border: 1px solid #698caa;
|
border-radius: 12px;
|
}
|
.invoice_row {
|
padding: 10px;
|
border-bottom: 1px solid #698caa;
|
/* border-radius: 12px; */
|
}
|
.el-collapse {
|
margin-top: 3px;
|
}
|
.el-collapse-item__header {
|
padding-left: 12px;
|
|
}
|
</style>
|
|
<body style="margin: 0px;">
|
<div id="vbody">
|
<div id="page_root">
|
<div ref="popup_body" style="padding: 0 20px;">
|
<div class="el-dialog__header">
|
<div class="dialog-title">
|
<i class="iconfont icon-customermanagement"></i>
|
<span> {{title}}</span>
|
</div>
|
</div>
|
|
<div style=" text-align: right; padding: 5px 30px 0px 0px;" v-if="!isedit">
|
<el-button size="small" type="primary" @click="">导 出</el-button>
|
<el-button-group>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">批 准</el-button>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">退 回</el-button>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">拒 绝</el-button>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">转 发</el-button>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">转 办</el-button>
|
</el-button-group>
|
<!-- <el-button size="small" type="primary" v-if="isapproval" @click="">征询意见</el-button> -->
|
<el-button size="small" type="primary" @click="">打 印</el-button>
|
<el-button size="small" type="default" @click="closeDialog">取 消</el-button>
|
</div>
|
|
<div :style="{height: t_height +'px', 'overflow-y': 'auto'}">
|
<div class="el-dialog__body">
|
<div>
|
<!-- 基本信息 -->
|
<h-form
|
ref="form1"
|
:form-attr="formAttr"
|
:table-fields="formFields"
|
:form-data="formData"
|
:table-field-click="formfieldClick"
|
>
|
</h-form>
|
<el-button @click="selectCustomer()">新增</el-button>
|
<!-- -->
|
<!-- 多客户信息 -->
|
<template v-if="default_newformData && default_newformData.customer_list " v-for="(customer_row, customer_index) in default_newformData.customer_list" > <!-- :key="'delivery_row' + delivery_index" -->
|
<el-collapse>
|
<el-collapse-item :title="customer_row.customer_name">
|
<template slot="title">
|
<i class="el-icon-delete" style="color: red;padding: 0px 10px;" @click.stop="delDeliveryRow('customer', default_newformData.customer_list, customer_row)"></i>
|
{{customer_row.customer_name}}
|
</template>
|
|
<div class="customer_row">
|
<div>
|
<!-- 单客户信息 -->
|
<h-form
|
:ref="'form_kh' + customer_index"
|
:form-attr="formAttr"
|
:table-fields="default_formFields_kh"
|
:form-data="customer_row"
|
:table-field-click="formfieldClick"
|
>
|
</h-form>
|
|
<!-- 多主体信息 -->
|
<div class="marginLeftClass">
|
<!-- 新增主体 -->
|
<el-button @click="addDeliveryRow(customer_row)">新增发货主体</el-button>
|
</div>
|
<template v-if="customer_row && customer_row.customer_delivery_list" v-for="(delivery_row, delivery_index) in customer_row.customer_delivery_list" > <!-- :key="'delivery_row' + delivery_index" -->
|
<el-collapse class="marginLeftClass">
|
<el-collapse-item :title="delivery_row.delivery_part_name">
|
<template slot="title">
|
<i class="el-icon-delete" style="color: red;padding: 0px 10px;" @click.stop="delDeliveryRow('delivery_part', customer_row.customer_delivery_list, delivery_row)"></i>
|
{{delivery_row.delivery_part_name}}
|
</template>
|
|
<div class="delivery_row">
|
<!-- <div>
|
</div> -->
|
<div>
|
<!-- 单主体信息 -->
|
<h-form
|
:ref="'form_zt' + delivery_index"
|
:form-attr="formAttr"
|
:table-fields="default_formFields_zt"
|
:form-data="delivery_row"
|
:table-field-click="formfieldClick"
|
>
|
</h-form>
|
|
<!-- 多发票信息 -->
|
<div class="marginLeftClass">
|
<!-- 新增发票 -->
|
<el-button @click="addInvoiceRow(delivery_row.invoice_list)">新增发票</el-button>
|
</div>
|
<template v-if="delivery_row && delivery_row.invoice_list" v-for="(invoice_row, invoice_index) in delivery_row.invoice_list" > <!-- :key="'invoice_row' + invoice_index"-->
|
<el-collapse class="marginLeftClass">
|
<el-collapse-item :title="'发票' + (invoice_index + 1)">
|
<template slot="title">
|
<i class="el-icon-delete" style="color: red;padding: 0px 10px;" @click.stop="delInvoiceRow(delivery_row.invoice_list, invoice_row)"></i>
|
发票{{invoice_index + 1}}
|
</template>
|
|
<div class="invoice_row">
|
<!-- <div>
|
<el-button @click="delInvoiceRow(delivery_row.invoice_list, invoice_row)" type="danger">删除发票</el-button>
|
</div> -->
|
<div>
|
<!-- 单发票信息 -->
|
<h-form
|
:ref="'form_p' + invoice_index"
|
:form-attr="formAttr"
|
:table-fields="default_formFields_p"
|
:form-data="invoice_row"
|
:table-field-click="formfieldClick"
|
>
|
</h-form>
|
<div class="h_dialog__body">
|
<div style=" text-align: right; padding-top: 30px;">
|
<div style="float: left;">
|
<span style="font-weight: 600; color: black; padding-right: 15px;">折让使用明细</span>
|
使用折让金额汇总:<span id="">{{ discountTotal }}</span>
|
</div>
|
<div v-if="isedit || isrefuseedit" style="float: right;">
|
<el-button-group>
|
<el-button @click="addSelfData(invoice_row.rebate_detail_list)">新增个人承担</el-button>
|
<el-button @click="selectDiscount(customer_row, invoice_row.rebate_detail_list, delivery_row)">新增折让明细</el-button>
|
</el-button-group>
|
</div>
|
</div>
|
|
<h-table
|
v-if="isRefresh"
|
ref="table4"
|
:table-fields="tableFields2"
|
:table-data="invoice_row.rebate_detail_list"
|
:is-edit-table-data="isedit || isrefuseedit"
|
:is-within-edit-table-data="isedit || isrefuseedit"
|
:is-pagination="false"
|
:table-field-click="tablefieldClick"
|
:is-show-index="invoice_row.rebate_detail_list.length ? true : false"
|
:edit-table-button="editTableButton"
|
:table-height="tableHeight"
|
:isdraggableorder="false"
|
|
v-on:get-data="getData"
|
v-on:del-data="(scope) => delData(scope, invoice_row.rebate_detail_list, 'discount')"
|
>
|
</h-table>
|
</div>
|
</div>
|
</div>
|
</el-collapse-item>
|
</el-collapse>
|
</template>
|
</div>
|
<div class="h_dialog__body" style="padding-top: 30px;">
|
<h-form
|
ref="form2"
|
:form-attr="formAttr2"
|
:table-fields="formFields2"
|
:form-data="delivery_row"
|
:table-field-click="formfieldClick"
|
:is-end-colspan = "false"
|
>
|
</h-form>
|
</div>
|
</div>
|
</el-collapse-item>
|
</el-collapse>
|
</template>
|
</div>
|
</div>
|
</el-collapse-item>
|
</el-collapse>
|
</template>
|
|
</div>
|
|
<div v-if="!isedit" style="height: 150px; border-top: 15px;">
|
<!-- <iframe :src="'../../approval/ApprovalList_page.html?flow_id=' + flow_id" style="width: 100%; height: 100%; border: 0px;"></iframe> -->
|
<div style="width: 100%; height: 100%; border: 0px;">
|
<div class="topbar">
|
<span>审批记录</span>
|
|
<div style="float: right; margin-right: 20px;">
|
<el-button-group>
|
<!-- <el-button :disabled="isexport_pdf" @click="" :loading="export_loading">导出</el-button> -->
|
<el-button @click="">查看流程图</el-button>
|
<!-- <el-button type="default" @click="closeDialog">关 闭</el-button> -->
|
</el-button-group>
|
</div>
|
</div>
|
<div class="versionNo">
|
<h-table
|
v-if="isRefresh"
|
ref="table3"
|
:table-fields="tableFields3"
|
:table-data="tableData3"
|
:table-height="tableHeight"
|
:is-pagination="false"
|
>
|
</h-table>
|
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="el-dialog__footer" v-if="isedit">
|
<el-button size="small" type="default" @click="closeDialog">取 消</el-button>
|
<el-button size="small" :disabled="default_newformData.customer_list.length == 0" v-if="(isedit || isrefuseedit) && !isend" type="primary" @click="saveRowTable">保 存</el-button>
|
<el-button size="small" :disabled="default_newformData.customer_list.length == 0" v-if="isedit && !isend" type="success" @click="submitRowTable">提 交</el-button>
|
<el-button size="small" v-if="isend" type="primary" @click="">提交申请</el-button>
|
<el-button size="small" v-if="isrefuseedit" type="success" @click="">再次提交</el-button>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
function initVue() {
|
new FormVue({
|
el: "#vbody",
|
data: {
|
dataname: "md_product_line",
|
table_dataname: "md_product_line.aaa_detail",
|
title: "表单+明细模板1",
|
|
editTableButton: {
|
del: {
|
isshow: true,
|
txt: "删除"
|
}
|
},
|
//表单
|
formAttr: {
|
istitle: false,
|
title: "表单名称",
|
columnnumber: 4,
|
labelwidth: "100px",
|
labelposition: "left",//"left",// right//top
|
size: "mini",
|
border: "3px solid #c6c6c600"
|
},
|
default_formFields: [
|
{isshow: "T", field: "type", name: "开票类型", type:"span", required: true, formatter: "formatter_json", formatpattern: "invoice_type", group_name: "基本信息"}, // 退货开票、退货开票、折让开票
|
{isshow: "T", field: "biz_date", name: "申请日期", type:"span", required: true, group_name: "基本信息"},
|
{isshow: "T", field: "creator_code", name: "申请人编码", type:"span", required: true, group_name: "基本信息"},
|
{isshow: "T", field: "creator_name", name: "申请人名称", type:"span", required: true, group_name: "基本信息"},
|
{isshow: "T", field: "creator_depart_name",name: "所在部门",width: "150",align: "left", isminwidth: true, type: "span", required: true, group_name: "基本信息"},
|
{isshow: "T", field: "business_type", name: "商业属性", width: "200", type: "select", align: "left", required: true, optionsgroup: "business_type", group_name: "基本信息"},
|
{isshow: "T", field: "manage_depart_name", name: "业务线", width: "200", type: "select", align: "left", required: true, optionsgroup: "partType", group_name: "基本信息"},
|
],
|
|
default_formFields_kh: [
|
{isshow: "T", field: "province_name",name: "所在省份",width: "150",align: "left", isminwidth: true, type: "span", required: true, group_name: "客户信息"},
|
{isshow: "T", field: "customer_name", name: "客户名称", type:"span", colspan: 3, required: true, group_name: "客户信息"},
|
{isshow: "T", field: "customer_code", name: "客户编码", width: "150", type:"span", required: true, group_name: "客户信息"},
|
{isshow: "T", field: "customer_uscc", name: "统一信用代码", labelwidth: "120", type:"span", required: true, group_name: "客户信息"},
|
],
|
|
default_formFields_zt: [
|
{isshow: "T", field: "account_bank_opening", name: "开户银行", width: "200", type: "span", align: "left", required: true, group_name: "客户开票信息"},
|
{isshow: "T", field: "account_bank_number", name: "银行账号", type:"span", required: true, group_name: "客户开票信息"},
|
{isshow: "T", field: "invoice_telephone_number", name: "联系电话", type:"span", required: true, group_name: "客户开票信息"},
|
{isshow: "T", field: "invoice_address", name: "地址", type:"span", required: true, group_name: "客户开票信息"},
|
{isshow: "T", field: "invoice_re_nomal", name: "普票限额", type:"span", group_name: "客户开票信息"},
|
{isshow: "T", field: "invoice_re_increase", name: "专票限额", type:"span", group_name: "客户开票信息"},
|
|
{isshow: "T", field: "post_recipient_person", name: "收件人", type:"input", group_name: "邮寄信息"},
|
{isshow: "T", field: "post_telephone_number", name: "手机号", type:"input", group_name: "邮寄信息"},
|
{isshow: "T", field: "post_mail", name: "邮箱地址", type:"input", group_name: "邮寄信息"},
|
{isshow: "T", field: "post_address", name: "地址", type:"input", group_name: "邮寄信息"},
|
],
|
default_formFields_p: [
|
{isshow: "T", field: "invoice_type", name: "发票类型", type:"select", required: true, optionsgroup: "receipt_type"},
|
],
|
newformData: {
|
type: "fee_invoice",
|
biz_date: createDate(),
|
status: "input",
|
creator_code: window.top.vue.userinfo.employee.code,
|
creator_name: window.top.vue.userinfo.employee.name,
|
creator_depart_name: window.top.vue.userinfo.employee.hierarchyNodesStr || "虚拟部门",
|
manage_depart_name: "",
|
business_type: "",
|
fee_amt: 0
|
},
|
default_newformData: { // 默认一个主体一个票
|
type: "fee_invoice",
|
biz_date: createDate(),
|
status: "input",
|
creator_code: window.top.vue.userinfo.employee.code,
|
creator_name: window.top.vue.userinfo.employee.name,
|
creator_depart_name: window.top.vue.userinfo.employee.hierarchyNodesStr || "虚拟部门",
|
manage_depart_name: "",
|
business_type: "",
|
fee_amt: 0,
|
customer_list: [],
|
},
|
default_new_customerdelivery: { // 新增一个主体
|
delivery_part_code: "",
|
delivery_part_name: "",
|
account_bank_opening: "",
|
account_bank_number: "",
|
invoice_telephone_number: "",
|
invoice_address: "",
|
post_recipient_person: "",
|
post_telephone_number: "",
|
post_address: "",
|
post_mail: "",
|
invoice_list: [
|
{
|
invoice_type: "",
|
delivery_order_list: [
|
|
],
|
rebate_detail_list: [
|
|
],
|
}
|
]
|
},
|
default_new_invoice: { // 新增一个发票
|
invoice_type: "",
|
delivery_order_list: [],
|
rebate_detail_list: [],
|
},
|
|
|
formFields: [],
|
formData: {},
|
|
//附件
|
formAttr2: {
|
istitle: false,
|
title: "表单名称",
|
columnnumber: 2,
|
labelwidth: "140px",
|
labelposition: "left",//"left",// right//top
|
size: "mini",
|
border: "3px solid #c6c6c600"
|
},
|
default_formFields2: [
|
{isshow: "T", field: "attachment_file", name: "附件", type: "uploadfilelist", colspan: 2},
|
{isshow: "T", field: "attachment_redinvoice", name: "红字开票申请表", type: "uploadfilelist", colspan: 2},
|
{isshow: "T", field: "attachment_discount", name: "折让协议", type: "uploadfilelist", colspan: 2},
|
],
|
formFields2: [],
|
formData2: {
|
oa_code: "test123",
|
},
|
|
//退货单
|
default_tableFields: [
|
{isshow: "T", field: "raw_code", name: "工厂的退货单号", width: "200", type:"span",},
|
{isshow: "T", field: "product_name", name: "产品名称", width: "200", type:"span",},
|
{isshow: "T", field: "product_code", name: "产品编码", width: "150", type:"span",},
|
{isshow: "T", field: "product_spec", name: "产品规格", width: "200", type: "span",},
|
{isshow: "T", field: "delivery_cnt", name: "可开票数量", width: "100", type: "span",},
|
{isshow: "T", field: "cnt", name: "本次开票数量", width: "100", type: "input",},
|
{isshow: "T", field: "delivery_price", name: "单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
|
{isshow: "T", field: "total_price_tax", name: "价税合计", width: "100", type: "span", formatter: "formatter_money", align: "right"},
|
{isshow: "T", field: "discount_amt", name: "折让金额", width: "100", type: "input", formatter: "formatter_money", align: "right"},
|
{isshow: "T", field: "final_amt", name: "实际开票金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
|
{isshow: "T", field: "batch_no", name: "批号", width: "100", type: "span"},
|
{isshow: "T", field: "remark", name: "备注", type: "input", width: "150"},
|
|
{isshow: "T", field: "is_batch_no", name: "备注批号", type: "select", width: "100"},
|
{isshow: "T", field: "is_effective_date", name: "备注有效期", type: "select", width: "100"},
|
{isshow: "T", field: "is_production_date", name: "备注生产日期", type: "select", width: "100"},
|
{isshow: "T", field: "is_raw_code", name: "备注退货单号", type: "select", width: "100"},
|
{isshow: "T", field: "is_biz_date", name: "备注退货日期", type: "select", width: "100"},
|
{isshow: "T", field: "is_singleton", name: "是否单开", type: "select", width: "100"},
|
{isshow: "T", field: "is_price_reviewers", name: "带收款复核人", type: "select", width: "100"},
|
],
|
tableFields: [],
|
newTableData: {},
|
tableData: [],
|
|
//折让明细
|
tableFields2: [
|
{isshow: "T", field: "fee_detail_code", name: "折让明细编码", width: "200", type: "span",},
|
{isshow: "T", field: "fee_type", name: "折让类型", width: "150", type: "span", isminwidth: true, formatter: "formatter_json", formatpattern: "fee_type"},
|
{isshow: "T", field: "under_take_name", name: "承担人", width: "150", type:"span",},
|
{isshow: "T", field: "fee_price", name: "折让金额", width: "150", type:"span",},
|
],
|
tableData2: [],
|
|
//审批
|
default_tableFields3: [
|
{isshow: "T", field: "field1", name: "当前节点", width: "150", type:"span", required: true},
|
{isshow: "T", field: "field2", name: "申请/审批时间", width: "100", type:"span", formatter: "formatter_date", required: true, isminwidth: true,},
|
{isshow: "T", field: "field3", name: "审批情况", width: "150", type:"span", formatter: "formatter_date", required: true, isminwidth: true,},
|
{isshow: "T", field: "field4", name: "原因", width: "150", type: "span", required: true, isminwidth: true,},
|
{isshow: "T", field: "field5", name: "申请/审批人", width: "150", type:"span", required: true, isminwidth: true,},
|
{isshow: "T", field: "field6", name: "附件", width: "200", type:"span", required: true, isminwidth: true,},
|
],
|
tableFields3: [],
|
tableData3: [],
|
|
//字段设置
|
tablefieldClick: {},
|
formfieldClick: {},
|
|
//按键权限设置
|
isedit: false,//提交前编辑,保存/提交
|
isrefuseedit: false,//拒绝后编辑,保存/再次提交
|
isapproval: false,//审批,同意/拒绝/转办/退回
|
isend: false,
|
|
iscommit: false,//提交标记
|
|
//弹窗参数
|
popupParames: {},
|
|
flow_id: "c1355b3fd4b049f28135548d17f2071f",
|
t_height:null,
|
isRefresh: true,
|
|
discountTotal: 0
|
},
|
created() {
|
this.popupParames = clone(Root.popupParames);
|
this.title = this.popupParames.title || this.popupParames.text;
|
if (this.popupParames.data) {
|
this.formData = clone(this.popupParames.data);
|
}
|
|
if (this.popupParames.sceneCode) {
|
if (this.popupParames.sceneCode == "add") {//新增
|
if (this.newformData) {
|
let formData_ = clone(this.formData);
|
|
for (var k in this.newformData) {
|
formData_[k] = this.newformData[k];
|
}
|
this.formData = formData_;
|
}
|
|
// if (this.newTableData) {
|
// this.tableData.push(clone(this.newTableData));
|
// }
|
|
this.isedit = true;
|
//this.selectCustomer()
|
}
|
else if (this.popupParames.sceneCode == "browse") {//只读
|
this.formAttr.disabled = true;
|
this.formAttr2.disabled = true;
|
}
|
else if (this.popupParames.sceneCode == "edit") {//编辑
|
this.isedit = true;
|
}
|
else if (this.popupParames.sceneCode == "approval") {//审批
|
this.formAttr.disabled = true;
|
this.formAttr2.disabled = true;
|
this.isapproval = true;
|
}
|
else if (this.popupParames.sceneCode == "refuseedit") {//拒绝后的编辑
|
this.isrefuseedit = true;
|
}
|
}
|
},
|
|
mounted() {
|
var me = this;
|
me.t_height = document.documentElement.clientHeight*1 - 91;
|
|
//预加载数据
|
if (this.dataRequest && this.dataRequest.length) {
|
var result = {};
|
this.loadRequestData(this.dataRequest, result, function(data) {
|
me.dataRequestObj = data;
|
//预加载数据后给哪些字段设置options或formatterjson
|
|
me.initData();
|
});
|
}
|
else {
|
this.initData();
|
}
|
|
// 以服务的方式调用的 Loading 需要异步关闭
|
this.$nextTick(() => {
|
hideLoading();
|
|
//重新设置弹窗宽高
|
this.$nextTick(function(){
|
let w_ = this.$refs.popup_body.offsetWidth + "px";
|
// let w_ = "900px";
|
let h_ = this.$refs.popup_body.offsetHeight + "px";
|
Root.setPopupWH(w_, h_);
|
})
|
});
|
},
|
|
methods:{
|
selectCustomer() {
|
var me = this;
|
if (!this.formData.business_type) {
|
Root.message({
|
type: 'warning',
|
message: '请先选择商业属性'
|
});
|
return
|
}
|
if (!this.formData.manage_depart_name) {
|
Root.message({
|
type: 'warning',
|
message: '请先选择业务线'
|
});
|
return
|
}
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "700px",
|
height: "500px",
|
icon: "icon-product",
|
text: "选择客户",
|
id: "delivery_list",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../agreement/popup/popup_customer_list.html",
|
data: "",
|
delta: {isSelects: true},
|
filter: "",
|
dataname: "customer",
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(data, callback) {
|
let default_newformData = clone(me.default_newformData)
|
data.map(s => {
|
let list_customer = {
|
customer_code: s.md_code,
|
customer_name: s.md_description,
|
customer_id: s.id,
|
province_name: s.province_name,
|
province_code: s.province,
|
customer_uscc: s.uscc,
|
customer_delivery_list: []
|
}
|
|
default_newformData.customer_list.push(list_customer)
|
})
|
|
me.default_newformData = default_newformData
|
|
if (callback) {
|
callback();
|
}
|
},
|
closecallback: function(data, callback) {
|
if (callback) {
|
callback();
|
}
|
me.closeDialog()
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
getCustomerInfo(list_customer) {
|
let me = this
|
let param = {
|
dataName: 'customer',
|
filter: "md_code='" + list_customer.customer_code + "'"
|
}
|
|
Server.call("rootjemin/data/getEntitySet", param, function(result) {
|
if (result.data && result.data.entityset && result.data.entityset.length > 0) {
|
list_customer.province_code = result.data.entityset[0].province
|
list_customer.province_name = result.data.entityset[0].province_name
|
list_customer.customer_uscc = result.data.entityset[0].uscc
|
}
|
});
|
},
|
//关闭弹窗
|
closeDialog() {
|
var me = this;
|
if (me.popupParames.totab){
|
Root.tab.removeItem(Root.tab.selected);
|
Root.tab.open(me.popupParames.parentOption, false);
|
}
|
else {
|
Root.hidePopup();
|
}
|
},
|
//关闭前调回调
|
saveAfter() {
|
var me = this;
|
if(this.popupParames.callback) {
|
let obj = {
|
//row: this.formData
|
}
|
this.popupParames.callback(obj, function() {
|
me.closeDialog();
|
});
|
}
|
else {
|
me.closeDialog();
|
}
|
},
|
|
initData() {
|
let me = this
|
var id_ = null;
|
|
if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
|
me.formFields = clone(me.default_formFields);
|
me.formFields2 = clone(me.default_formFields2);
|
me.default_tableFields.map(s => {
|
if (s.type == 'select') {
|
s.options = [
|
{value: "是", code: "T"},
|
{value: "否", code: "F"}
|
]
|
}
|
})
|
me.tableFields = clone(me.default_tableFields);
|
me.tableFields3 = clone(me.default_tableFields3);
|
|
//字段数组转字段obj
|
me.fieldsToFieldsObj();
|
|
//设置字段事件
|
me.tableFieldClick();
|
}
|
|
// if (this.formData.id) {
|
// id_ = this.formData.id;
|
// }
|
// this.getRowDataById(id_, function(result) {//查询后的回调,用于获取字段的
|
// if (result.meta && result.meta[me.dataname] && result.meta[me.dataname].fields) {
|
// var metas = clone(result.meta[me.dataname].fields);
|
// var table_dataname_ = "";
|
// for (var dataname_ in result.meta) {
|
// if (dataname_ != me.dataname && !table_dataname_) {
|
// table_dataname_ = dataname_;
|
// }
|
// }
|
// var table_metas = [];
|
// if (table_dataname_) {
|
// me.table_dataname = table_dataname_;
|
// table_metas = clone(result.meta[table_dataname_].fields);
|
|
// }
|
|
// var formFields_ = [];
|
// var tableFields_ = [];
|
// metas.map(f=>{
|
// f.isshow = "T";
|
// formFields_.push(clone(f));
|
// })
|
// table_metas.map(f=>{
|
// f.isshow = "T";
|
// tableFields_.push(clone(f));
|
// })
|
|
// if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
|
// me.formFields = clone(formFields_);
|
// me.tableFields = clone(tableFields_);
|
|
// //字段数组转字段obj
|
// me.fieldsToFieldsObj();
|
|
// //设置字段事件
|
// me.tableFieldClick();
|
// }
|
// }
|
|
// if (me.rowData[me.dataname]) {
|
// me.formData = me.rowData[me.dataname];
|
// }
|
// if (me.rowData[me.table_dataname]) {
|
// me.tableData = me.rowData[me.table_dataname];
|
// }
|
// })
|
},
|
|
addDeliveryRow(customer_row) {
|
var me = this;
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "900px",
|
height: "450px",
|
icon: "icon-product",
|
text: "选择商业发货主体",
|
id: "popup_newdelivery_list",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../agreement/popup/popup_newdelivery_list.html",
|
data: {},
|
delta: {isSelects: true},
|
dataname: "v_agreement_customer_delivery",
|
filter: " 1 = 1 and md_code = '" + customer_row.customer_code + "'",
|
sceneCode: "add", //"add"//"browse",
|
callback: function(data, callback) {
|
data.map((e, index) => {
|
var default_new_customerdelivery_ = clone(me.default_new_customerdelivery);
|
|
default_new_customerdelivery_.delivery_part_name = e.delivery_part_name
|
default_new_customerdelivery_.delivery_part_code = e.delivery_part_code
|
me.getDeliveryPartInfo(customer_row, e.delivery_part_code, index)
|
customer_row.customer_delivery_list.unshift(default_new_customerdelivery_);
|
})
|
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
getDeliveryPartInfo(customer_row, delivery_part_code, index) {
|
let me = this
|
let param = {
|
dataName: 'delivery_organization',
|
filter: "code='" + delivery_part_code + "'"
|
}
|
|
Server.call("root/data/getEntitySet", param, function(result) {
|
if (result.data && result.data.entityset && result.data.entityset.length > 0) {
|
customer_row.customer_delivery_list[index]['invoice_re_nomal'] = result.data.entityset[0].invoice_re_nomal
|
customer_row.customer_delivery_list[index]['invoice_re_increase'] = result.data.entityset[0].invoice_re_increase
|
}
|
});
|
|
let param2 = {
|
deliveryPartCode: delivery_part_code,
|
customerCode: customer_row.customer_code
|
}
|
|
Server.call("japi/invoice/getInvoiceInfo", param2, function(result) {
|
if (result.data && result.data.length > 0) {
|
customer_row.customer_delivery_list[index]['account_bank_opening'] = result.data[0].bank
|
customer_row.customer_delivery_list[index]['account_bank_number'] = result.data[0].account
|
customer_row.customer_delivery_list[index]['invoice_telephone_number'] = result.data[0].phone
|
customer_row.customer_delivery_list[index]['invoice_address'] = result.data[0].address
|
}
|
});
|
},
|
getDeliveryPartInfo2(customer_delivery_list, customer_code) {
|
let me = this
|
let param = {
|
dataName: 'delivery_organization',
|
filter: "code='" + customer_delivery_list.delivery_part_code + "'"
|
}
|
|
Server.call("root/data/getEntitySet", param, function(result) {
|
if (result.data && result.data.entityset && result.data.entityset.length > 0) {
|
customer_delivery_list['invoice_re_nomal'] = result.data.entityset[0].invoice_re_nomal
|
customer_delivery_list['invoice_re_increase'] = result.data.entityset[0].invoice_re_increase
|
}
|
});
|
|
let param2 = {
|
deliveryPartCode: customer_delivery_list.delivery_part_code,
|
customerCode: customer_code
|
}
|
Server.call("japi/invoice/getInvoiceInfo", param2, function(result) {
|
if (result.data && result.data.length > 0) {
|
customer_delivery_list['account_bank_opening'] = result.data[0].bank
|
customer_delivery_list['account_bank_number'] = result.data[0].account
|
customer_delivery_list['invoice_telephone_number'] = result.data[0].phone
|
customer_delivery_list['invoice_address'] = result.data[0].address
|
}
|
});
|
},
|
|
|
delDeliveryRow(type, customer_delivery_list, customer_delivery_row) {
|
Root.confirm('确定删除【' + (type=='customer'? customer_delivery_row.customer_name : customer_delivery_row.delivery_part_name) + '】吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
customer_delivery_list.remove(customer_delivery_row);
|
Root.message({
|
type: 'success',
|
message: '删除成功!'
|
});
|
}).catch(() => {
|
|
});
|
},
|
addInvoiceRow(invoice_list) {
|
var default_new_invoice_ = clone(this.default_new_invoice);
|
invoice_list.unshift(default_new_invoice_);
|
},
|
delInvoiceRow(invoice_list, invoice_row) {
|
Root.confirm('确定删除该发票吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
invoice_list.remove(invoice_row);
|
Root.message({
|
type: 'success',
|
message: '删除成功!'
|
});
|
}).catch(() => {
|
|
});
|
},
|
|
addSelfData(rebate_detail_list) {
|
var me = this;
|
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "900px",
|
height: "900px",
|
icon: "icon-product",
|
text: "折让明细",
|
id: "popup_self_discount_detail",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../tradeDiscount/invoice/popup_self_discount_detail.html",
|
data: "",
|
delta: {},
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(obj, callback) {
|
obj.row.fee_type = "self"
|
rebate_detail_list.push(obj.row)
|
|
let discountTotal = 0
|
rebate_detail_list.map(e => {
|
if (e.fee_price) {
|
discountTotal += parseFloat(e.fee_price)
|
}
|
})
|
me.discountTotal = discountTotal
|
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
selectDiscount(customer_row, rebate_detail_list, delivery_row) {
|
var me = this;
|
|
if (!this.formData.manage_depart_name) {
|
Root.message({
|
type: 'warning',
|
message: '请先选择业务线'
|
});
|
return
|
}
|
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "900px",
|
height: "900px",
|
icon: "icon-product",
|
text: "折让明细",
|
id: "popup_discount_detail_list",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../tradeDiscount/invoice/popup_discount_detail_list.html",
|
filter: " customer_code = '" + customer_row.customer_code + "' and business_line = '" + this.formData.manage_depart_code + "' and cash_date < now() and (delivery_part_code = '" + delivery_row.delivery_part_code + "' or delivery_part_code is null)",
|
data: "",
|
delta: {},
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(data, callback) {
|
data.map(e => {
|
e.fee_detail_id = e.id
|
e.fee_detail_code = e.raw_code
|
e.fee_type = "discount"
|
e.fee_price = e.final_amt
|
|
rebate_detail_list.push(e)
|
})
|
|
let discountTotal = 0
|
rebate_detail_list.map(e => {
|
if (e.fee_price) {
|
discountTotal += parseFloat(e.fee_price)
|
}
|
})
|
me.discountTotal = discountTotal
|
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
showOrder(customer_row, delivery_order_list) {
|
var me = this;
|
|
let filter = " can_invoice_cnt > 0 and order_type = '1' and customer_code = '" + customer_row.customer_code + "'"
|
if (delivery_order_list.length > 0) {
|
let str = ""
|
delivery_order_list.map(s => {
|
if (!str) {
|
str = "'" + s.raw_code + "'"
|
}
|
else {
|
str += ",'" + s.raw_code + "'"
|
}
|
})
|
|
filter += " and raw_code not in (" + str + ")"
|
}
|
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "900px",
|
height: "600px",
|
icon: "icon-product",
|
text: "退货单选择",
|
id: "delivery_list",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../logistics/delivery/popup/popup_delivery_list.html",
|
data: "",
|
delta: {},
|
filter: filter,
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(data, callback) {
|
data.map(s => {
|
delivery_order_list.push({
|
delivery_order_detail_id: s.id,
|
raw_code: s.raw_code,
|
product_id: s.product_id,
|
product_code: s.product_code,
|
product_name: s.product_name,
|
product_spec: s.product_spec,
|
product_unit: s.product_unit,
|
delivery_cnt: s.can_invoice_cnt,
|
delivery_price: s.product_price
|
})
|
})
|
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
newEndDeatil() {
|
var me = this;
|
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "900px",
|
height: "900px",
|
icon: "icon-product",
|
text: "请选择要终止的开票申请明细数据",
|
id: "popup_terminal_policy_info_list",//totab: true时需设置,用于判断是否已打开此页面
|
url: "../agreement/policy/popup_terminal_policy_info_list.html",
|
data: {},
|
delta: {},
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(obj, callback) {
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
tableFieldClick() {
|
var me = this;
|
//表单字段事件设置
|
this.formfieldClick = {
|
attachment_file: {
|
buttonarray: {
|
onclick: function(obj) {
|
var filenamefield = obj.obj.field;
|
var fileidfield = "attachment_file";
|
if(obj.buttonobj && obj.buttonobj.code == "showfilebyfile"){
|
me.showFileImgByFileId(obj.buttonobj.fileobj);
|
}else if (obj.buttonobj && obj.buttonobj.code == "uploadlist"){
|
me.onPopupByUploadFile(filenamefield, fileidfield, me.dataname, obj.formdata);
|
}else if (obj.buttonobj && obj.buttonobj.code == "delfilebyfile"){
|
me.deleteByFileId(filenamefield, obj.buttonobj.fileobj, obj.formdata);
|
}
|
}
|
}
|
},
|
attachment_redinvoice: {
|
buttonarray: {
|
onclick: function(obj) {
|
var filenamefield = obj.obj.field;
|
var fileidfield = "attachment_redinvoice";
|
if(obj.buttonobj && obj.buttonobj.code == "showfilebyfile"){
|
me.showFileImgByFileId(obj.buttonobj.fileobj);
|
}else if (obj.buttonobj && obj.buttonobj.code == "uploadlist"){
|
me.onPopupByUploadFile(filenamefield, fileidfield, me.dataname, obj.formdata);
|
}else if (obj.buttonobj && obj.buttonobj.code == "delfilebyfile"){
|
me.deleteByFileId(filenamefield, obj.buttonobj.fileobj, obj.formdata);
|
}
|
}
|
}
|
},
|
attachment_discount: {
|
buttonarray: {
|
onclick: function(obj) {
|
var filenamefield = obj.obj.field;
|
var fileidfield = "attachment_discount";
|
if(obj.buttonobj && obj.buttonobj.code == "showfilebyfile"){
|
me.showFileImgByFileId(obj.buttonobj.fileobj);
|
}else if (obj.buttonobj && obj.buttonobj.code == "uploadlist"){
|
me.onPopupByUploadFile(filenamefield, fileidfield, me.dataname, obj.formdata);
|
}else if (obj.buttonobj && obj.buttonobj.code == "delfilebyfile"){
|
me.deleteByFileId(filenamefield, obj.buttonobj.fileobj, obj.formdata);
|
}
|
}
|
}
|
},
|
manage_depart_name: {
|
select: {
|
onchange: function(obj) {
|
obj.data.manage_depart_code = obj.selectoption.code
|
obj.data.manage_depart_name = obj.selectoption.value
|
}
|
},
|
}
|
};
|
|
//表格字段事件设置
|
this.tablefieldClick = {
|
cnt: {
|
input: {
|
onchange: function(obj) {
|
if (obj.row.cnt > obj.row.delivery_cnt) {
|
Root.message({
|
type: 'warning',
|
message: '本次开票数量不可大于可开票数量'
|
});
|
obj.row.cnt = 0
|
}
|
obj.row.total_price_tax = parseFloat(obj.row.delivery_price) * parseFloat(obj.row.cnt)
|
obj.row.final_amt = parseFloat((obj.row.total_price_tax || 0) - obj.row.discount_amt).toFixed(10)
|
me.$forceUpdate()
|
}
|
},
|
},
|
discount_amt: {
|
input: {
|
onchange: function(obj) {
|
obj.row.final_amt = parseFloat((obj.row.total_price_tax || 0) - obj.row.discount_amt).toFixed(10)
|
me.$forceUpdate()
|
}
|
},
|
}
|
};
|
},
|
|
onPopupByUploadFile(filenamefield, fileidfield,dataname,delivery_row) {
|
var me = this;
|
var analysistype_ = "";
|
var delta_ = {filetypelist: []}//".png", ".jpg", ".pdf"
|
var config = {
|
totab: false,
|
width: "500px",
|
icon: "icon-product",
|
text: "附件上传",
|
id: "popupByUploadFile",
|
url: "../tool_new/popup_uploadFile_new.html",
|
data: {
|
dataName: dataname,
|
fileidfieldName: fileidfield,
|
id: me.formData.id,
|
fileNamefieldName: filenamefield,
|
//max_size: "100MB",
|
},
|
delta: delta_,
|
callback: function(obj, callback) {
|
me.$message({
|
showClose: true,
|
message: '上传成功!',
|
type: 'success'
|
});
|
|
var file_ = {
|
id: obj.row[0].id,
|
file_id: obj.row[0].id,
|
file_name: decodeURI(obj.row[0].name),
|
type: filenamefield
|
}
|
if (!delivery_row[filenamefield]) {
|
delivery_row[filenamefield] = []
|
}
|
delivery_row[filenamefield].push(file_);
|
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
this.doPopupByPublic(config);
|
},
|
|
deleteByFileId(filenamefield, fileobj, delivery_row){
|
var me = this;
|
var formData_ = clone(me.formData);
|
Root.confirm('确定删除附件【' + fileobj.file_name + '】吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
delivery_row[filenamefield].remove(fileobj)
|
Root.message({
|
type: 'success',
|
message: '删除成功!'
|
});
|
}).catch(() => {
|
|
});
|
|
},
|
|
showFileImgByFileId(fileobj) {
|
let me = this;
|
var file_id = fileobj.file_id;
|
var file_name = fileobj.file_name;
|
|
this.zzimg = {};
|
this.zzimgList = [];
|
this.file_txt = false;
|
if(file_id) {
|
var fileid = file_id;
|
let fileName = clone(file_name);
|
let index1 = fileName.lastIndexOf(".");
|
let index2 = fileName.length;
|
let suffix = fileName.substring(index1, index2).toLowerCase(); //后缀名
|
if (suffix == ".png" || suffix == ".jpg" || suffix == ".pdf") {
|
var row = {
|
fileid: fileid,
|
filename: fileName
|
}
|
|
var config = {
|
totab: false,
|
width: "1200px",
|
height: 800,
|
icon: "icon-product",
|
text: "附件预览",
|
id: "pdf_" + fileid,
|
url: "module/tool/page/popup_file_pdf.html",
|
data: row,
|
delta: {},
|
callback: function(obj, callback) {
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
this.doPopupByPublic(config);
|
|
}
|
else {//只可下载,不可预览
|
handleDownloadNew(fileid);
|
}
|
}
|
},
|
|
|
|
addTableData() {
|
var table_row = clone(this.newTableData);
|
this.rowChange(table_row, "add", this.table_dataname);
|
},
|
|
delData(scope, delivery_order_list, remark) {
|
let me = this;
|
let row = scope.row;
|
let index_ = scope.$index;
|
|
Root.confirm('确定删除吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
delivery_order_list.remove(row)
|
|
if (remark == "discount") {
|
let discountTotal = 0
|
delivery_order_list.map(e => {
|
if (e.fee_price) {
|
discountTotal += parseFloat(e.fee_price)
|
}
|
})
|
me.discountTotal = discountTotal
|
}
|
}).catch(() => {
|
|
});
|
},
|
|
rowChange(row, type, tablename) {
|
var me = this;
|
if (type == "add") {
|
this.tableData2.unshift(row);
|
}
|
else if (type == "del") {
|
if (row.id) {
|
let param = {
|
dataname: tablename,
|
id: row.id
|
}
|
|
Server.call("root/data/deleteEntity", param, function(result) {
|
console.log(result);
|
if (result && result.data) {
|
me.tableData2.remove(row);
|
|
Root.message({
|
type: 'success',
|
message: '删除成功!'
|
});
|
}
|
});
|
}
|
else {
|
this.tableData2.remove(row);
|
}
|
}
|
else {
|
|
}
|
},
|
|
//提交
|
submitRowTable() {
|
this.iscommit = true;
|
this.saveRowTable();
|
},
|
|
//保存
|
saveRowTable() {
|
var me = this;
|
this.default_newformData.manage_depart_code = this.formData.manage_depart_code || ""
|
this.default_newformData.manage_depart_name = this.formData.manage_depart_name || ""
|
this.default_newformData.business_type = this.formData.business_type || ""
|
|
var operator_ = "save";//保存
|
if(me.iscommit) {
|
operator_ = "commit";//提交
|
|
let re_province = true
|
let re_customer_uscc = true
|
let re_invoice_type = true
|
let re_amt = true
|
if (this.default_newformData.customer_list.length > 0) {
|
this.default_newformData.customer_list.map(e => {
|
if (!e.province_code) {
|
re_province = false
|
}
|
if (!e.customer_uscc) {
|
re_customer_uscc = false
|
}
|
if (e.customer_delivery_list.length > 0) {
|
e.customer_delivery_list.map(s => {
|
if (s.invoice_list.length > 0) {
|
s.invoice_list.map(x => {
|
if (!x.invoice_type) {
|
re_invoice_type = false
|
}
|
if (x.delivery_order_list.length > 0) {
|
let discountTotal = 0
|
x.delivery_order_list.map(y => {
|
discountTotal += y.discount_amt? parseFloat(y.discount_amt) : 0
|
})
|
if (x.discountTotal && discountTotal != x.discountTotal) {
|
re_amt = false
|
}
|
}
|
})
|
}
|
})
|
}
|
})
|
}
|
if (!this.default_newformData.manage_depart_code || !re_province || !re_customer_uscc || !re_invoice_type) {
|
Root.message({
|
type: 'warning',
|
message: '请填写必填项'
|
});
|
|
return
|
}
|
}
|
|
|
let param = {
|
dataname: "pkg_invoice_order",
|
data: {
|
invoice_order: this.default_newformData
|
}
|
}
|
|
Server.call("rootjemin/invoice/saveInvoiceOrder", param, function(result) {
|
console.log(result);
|
if (result.success) {
|
if(me.iscommit){
|
me.iscommit = false;
|
me.doSubmit(result.ids? result.ids : [])
|
}
|
else {
|
Root.message({
|
type: 'success',
|
message: '保存成功'
|
});
|
me.saveAfter();
|
}
|
}
|
});
|
},
|
|
doSubmit(idArr) {
|
let me = this
|
if (idArr.length > 0) {
|
let count = 0
|
idArr.map(s => {
|
let param = {
|
dataName: "do_invoice_order",
|
id: s,
|
flow_id: "",
|
business_type: "openInvoice",
|
}
|
|
Server.call("rootjemin/data/Commit", param, function(result) {
|
count += 1
|
if (result.success && count == idArr.length) {
|
Root.message({
|
type: 'success',
|
message: '提交成功'
|
});
|
me.saveAfter();
|
}
|
});
|
})
|
}
|
}
|
|
}
|
});
|
};
|
|
initVue();
|
</script>
|
|
<style>
|
.a:hover{
|
background-color: #FFFFFF;
|
}
|
.el-input__inner{
|
padding: 0 2px;
|
}
|
.header {
|
height: 21px;
|
}
|
.el-dialog_header {
|
padding: 10px 20px;
|
border-bottom: 1px solid #ccc;
|
right: 10px;
|
left: 10px;
|
top: 0px;
|
position: fixed;
|
}
|
.el-dialog_body{
|
padding: 20px;
|
|
overflow-y: auto;
|
right: 10px;
|
left: 10px;
|
top: 42px;
|
bottom: 50px;
|
position: fixed;
|
}
|
.el-dialog_footer {
|
padding: 10px 20px;
|
border-top: 1px solid #ccc;
|
right: 10px;
|
left: 10px;
|
bottom: 0px;
|
position: fixed;
|
background-color: #fff;
|
z-index: 10;
|
text-align: right;
|
}
|
html{
|
overflow-y: hidden;
|
}
|
|
.h_table {
|
margin-top: 30px;
|
}
|
.marginLeftClass {
|
margin-left: 25px;
|
}
|
</style>
|
|
</body>
|
</html>
|