|
@@ -0,0 +1,259 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <title>边民-税务开户信息-添加/修改</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
+ <!-- 所有的 css js 资源 -->
|
|
|
+ <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
|
|
|
+ <link rel="stylesheet" href="../../static/sa.css">
|
|
|
+ <script src="../../static/kj/vue.min.js"></script>
|
|
|
+ <script src="../../static/kj/element-ui/index.js"></script>
|
|
|
+ <script src="../../static/kj/httpVueLoader.js"></script>
|
|
|
+ <script src="../../static/kj/jquery.min.js"></script>
|
|
|
+ <script src="../../static/kj/layer/layer.js"></script>
|
|
|
+ <script src="../../static/sa.js"></script>
|
|
|
+ <style type="text/css">
|
|
|
+ .c-panel .el-form .c-label{width: 7em !important;}
|
|
|
+ .c-panel .el-form .el-input, .c-panel .el-form .el-textarea__inner{width: 250px;}
|
|
|
+ table {
|
|
|
+ font-family: arial, sans-serif;
|
|
|
+ border-collapse: collapse;
|
|
|
+ width: 90%;
|
|
|
+ margin-top: 22px;
|
|
|
+ margin-left: auto;
|
|
|
+ margin-right: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ th {
|
|
|
+ border: 1px solid darkgray;
|
|
|
+ text-align: left;
|
|
|
+ height: 22px;
|
|
|
+ padding: 8px;
|
|
|
+ background-color: #dddddd;
|
|
|
+ }
|
|
|
+
|
|
|
+ td {
|
|
|
+ border: 1px solid darkgray;
|
|
|
+ text-align: left;
|
|
|
+ padding: 8px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="vue-box" :class="{sbot: id}" style="display: none;" :style="'display: block;'">
|
|
|
+ <!-- ------- 内容部分 ------- -->
|
|
|
+ <div class="s-body">
|
|
|
+ <div class="c-panel">
|
|
|
+ <div class="c-title" v-if="id == 0">数据添加</div>
|
|
|
+ <div class="c-title" v-else>数据修改</div>
|
|
|
+ <el-form v-if="m">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <th>经营者</th>
|
|
|
+ <td>{{m.name}}</td>
|
|
|
+ <th>身份证</th>
|
|
|
+ <td>{{m.idCard}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>名称</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.businessName" placeholder="请输入名称"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>社会统一信用代码</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.dutyParagraph" placeholder="请输入社会统一信用代码"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>开户行</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.bankName" placeholder="请输入开户行"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>银行账号</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.bankCode" placeholder="请输入银行账号"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>联系人</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.contacts" placeholder="请输入联系人"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>联系电话</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.phone" placeholder="请输入联系电话"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>组成形式</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.form" placeholder="请输入组成形式"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>经营状态</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.businessStatus" placeholder="请输入经营状态"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>开票商</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.invoiceBusiness" placeholder="请输入开票商"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>开票人</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.invoicePeople" placeholder="请输入开票人"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>收款人</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.payee" placeholder="请输入收款人"></el-input>
|
|
|
+ </td>
|
|
|
+ <th>复核人</th>
|
|
|
+ <td>
|
|
|
+ <el-input type="text" v-model="m.checker" placeholder="请输入复核人"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!--<tr>
|
|
|
+ <th>互市区</th>
|
|
|
+ <td>{{m.tradeAreaName}}</td>
|
|
|
+ <th>创建时间</th>
|
|
|
+ <td>{{sa.forDate(m.createTime, 2)}}</td>
|
|
|
+ </tr>-->
|
|
|
+ <tr>
|
|
|
+ <th>经营场所</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <el-input type="text" v-model="m.businessAddress" placeholder="请输入经营场所" style="width: 95%;"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>经营范围</th>
|
|
|
+ <td colspan="3" >
|
|
|
+ <el-input type="text" v-model="m.businessScope" placeholder="请输入经营范围" style="width: 95%;"></el-input>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <sa-item name="" class="s-ok" br>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" @click="ok()">保存</el-button>
|
|
|
+ </sa-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- ------- 底部按钮 ------- -->
|
|
|
+ <div class="s-foot">
|
|
|
+ <el-button type="primary" @click="ok()">确定</el-button>
|
|
|
+ <el-button @click="sa.closeCurrIframe()">取消</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <script>
|
|
|
+
|
|
|
+ var app = new Vue({
|
|
|
+ components: {
|
|
|
+ "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue')
|
|
|
+ },
|
|
|
+ el: '.vue-box',
|
|
|
+ data: {
|
|
|
+ id: sa.p('id', 0), // 获取超链接中的id参数(0=添加,非0=修改)
|
|
|
+ m: null, // 实体对象
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 创建一个 默认Model
|
|
|
+ createModel: function() {
|
|
|
+ return {
|
|
|
+ id: '', // 主键id
|
|
|
+ peopleId: '', // 边民表ID
|
|
|
+ businessName: '', // 个体户名称
|
|
|
+ dutyParagraph: '', // 社会统一信用代码
|
|
|
+ name: '', // 经营者(边民)
|
|
|
+ address: '', // 地址
|
|
|
+ form: '', // 组成形式
|
|
|
+ contacts: '', // 联系人
|
|
|
+ phone: '', // 联系电话
|
|
|
+ businessAddress: '', // 经营场所
|
|
|
+ businessScope: '', // 经营范围
|
|
|
+ businessStatus: '', // 经营状态
|
|
|
+ idCard: '', // 身份证
|
|
|
+ bankName: '', // 开户行
|
|
|
+ bankCode: '', // 银行账号
|
|
|
+ invoiceBusiness: '', // 开票商
|
|
|
+ invoicePeople: '', // 开票人
|
|
|
+ payee: '', // 收款人
|
|
|
+ checker: '', // 复核人
|
|
|
+ createTime: '', // 创建时间
|
|
|
+ createBy: '', // 创建人编号
|
|
|
+ createName: '', // 创建人名称
|
|
|
+ updateTime: '', // 更新时间
|
|
|
+ updateBy: '', // 更新人编号
|
|
|
+ updateName: '', // 更新人名称
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 提交数据
|
|
|
+ ok: function(){
|
|
|
+ // 表单校验
|
|
|
+ let m = this.m;
|
|
|
+ sa.checkNull(m.id, '请输入 [主键id]');
|
|
|
+ sa.checkNull(m.peopleId, '请输入 [边民表ID]');
|
|
|
+ sa.checkNull(m.businessName, '请输入 [个体户名称]');
|
|
|
+ sa.checkNull(m.dutyParagraph, '请输入 [社会统一信用代码]');
|
|
|
+ sa.checkNull(m.name, '请输入 [经营者]');
|
|
|
+ sa.checkNull(m.address, '请输入 [地址]');
|
|
|
+ sa.checkNull(m.form, '请输入 [组成形式]');
|
|
|
+ sa.checkNull(m.contacts, '请输入 [联系人]');
|
|
|
+ sa.checkNull(m.phone, '请输入 [联系电话]');
|
|
|
+ sa.checkNull(m.businessAddress, '请输入 [经营场所]');
|
|
|
+ sa.checkNull(m.businessScope, '请输入 [经营范围]');
|
|
|
+ sa.checkNull(m.businessStatus, '请输入 [经营状态]');
|
|
|
+ sa.checkNull(m.idCard, '请输入 [身份证]');
|
|
|
+ sa.checkNull(m.bankName, '请输入 [开户行]');
|
|
|
+ sa.checkNull(m.bankCode, '请输入 [银行账号]');
|
|
|
+ sa.checkNull(m.invoiceBusiness, '请输入 [开票商]');
|
|
|
+ sa.checkNull(m.invoicePeople, '请输入 [开票人]');
|
|
|
+ sa.checkNull(m.payee, '请输入 [收款人]');
|
|
|
+ sa.checkNull(m.checker, '请输入 [复核人]');
|
|
|
+ sa.checkNull(m.createTime, '请输入 [创建时间]');
|
|
|
+ sa.checkNull(m.createBy, '请输入 [创建人编号]');
|
|
|
+ sa.checkNull(m.createName, '请输入 [创建人名称]');
|
|
|
+ sa.checkNull(m.updateTime, '请输入 [更新时间]');
|
|
|
+ sa.checkNull(m.updateBy, '请输入 [更新人编号]');
|
|
|
+ sa.checkNull(m.updateName, '请输入 [更新人名称]');
|
|
|
+
|
|
|
+ // 开始增加或修改
|
|
|
+ if(this.id <= 0) { // 添加
|
|
|
+ sa.ajax('/level-one-server/TbPeopleTaxAccount/add', m, function(res){
|
|
|
+ sa.alert('增加成功', this.clean);
|
|
|
+ }.bind(this));
|
|
|
+ } else { // 修改
|
|
|
+ sa.ajax('/level-one-server/TbPeopleTaxAccount/update', m, function(res){
|
|
|
+ sa.alert('修改成功', this.clean);
|
|
|
+ }.bind(this));
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 添加/修改 完成后的动作
|
|
|
+ clean: function() {
|
|
|
+ if(this.id == 0) {
|
|
|
+ this.m = this.createModel();
|
|
|
+ } else {
|
|
|
+ parent.app.f5(); // 刷新父页面列表
|
|
|
+ sa.closeCurrIframe(); // 关闭本页
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted: function(){
|
|
|
+ // 初始化数据
|
|
|
+ if(this.id <= 0) {
|
|
|
+ this.m = this.createModel();
|
|
|
+ } else {
|
|
|
+ sa.ajax('/level-one-server/TbPeopleTaxAccount/getById?id=' + this.id, function(res) {
|
|
|
+ this.m = res.data;
|
|
|
+ if(res.data == null) {
|
|
|
+ sa.alert('未能查找到 id=' + this.id + " 详细数据");
|
|
|
+ }
|
|
|
+ }.bind(this))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ </script>
|
|
|
+ </body>
|
|
|
+</html>
|