123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <!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;}
- </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">
- <sa-item type="text" name="主键" v-model="m.id" br></sa-item>
- <sa-item type="text" name="预申报编号" v-model="m.platSeqNo" br></sa-item>
- <sa-item type="text" name="申报单编号" v-model="m.declareId" br></sa-item>
- <sa-item type="text" name="1-边民,2-商铺业主或其代理人,3-合作社代表,4-互助组代表" v-model="m.declareType" br></sa-item>
- <sa-item type="text" name="申报人姓名" v-model="m.declareName" br></sa-item>
- <sa-item type="text" name="身份证号码" v-model="m.idno" br></sa-item>
- <sa-item type="text" name="商铺编码" v-model="m.shopNo" br></sa-item>
- <sa-item type="text" name="商铺名称" v-model="m.shopName" br></sa-item>
- <sa-item type="text" name="申报人类别为3、4时互助组/合作社备案编号" v-model="m.orgPutrecNo" br></sa-item>
- <sa-item type="text" name="申报人类别为3、4时互助组/合租社名称" v-model="m.orgName" br></sa-item>
- <sa-item type="text" name="申报人类别为4时边民合作社社会统一信用代码" v-model="m.orgScc" br></sa-item>
- <sa-item type="text" name="运输工具名称" v-model="m.veNo" br></sa-item>
- <sa-item type="text" name="业务模式,进出口标志为进口时,01区内交易、02落地加工、03原装提离。进出口标志为出口时,04:直接出口,05:出口销售。" v-model="m.btrnbBizModecd" br></sa-item>
- <sa-item type="text" name="商品流向,进出口标志为进口时,必填,01-二次销售;02-生活自用;03-落地加工;" v-model="m.gFlow" br></sa-item>
- <sa-item type="text" name="进出口标志:I进口E出口" v-model="m.iEFlag" br></sa-item>
- <sa-item type="text" name="监管场所编号" v-model="m.fieldCode" br></sa-item>
- <sa-item type="text" name="监管场所名称" v-model="m.fieldName" br></sa-item>
- <sa-item type="text" name="申报口岸代码" v-model="m.customsCode" br></sa-item>
- <sa-item type="text" name="1-是、0-否" v-model="m.carPool" br></sa-item>
- <sa-item type="text" name="总金额" v-model="m.sumAmt" br></sa-item>
- <sa-item type="text" name="总毛重" v-model="m.sumGrossWt" br></sa-item>
- <sa-item type="text" name="总净重" v-model="m.sumNetWt" br></sa-item>
- <sa-item type="text" name="运输方式" v-model="m.trafMode" br></sa-item>
- <sa-item type="text" name="币制" v-model="m.currCode" br></sa-item>
- <sa-item type="text" name="件数,正整数" v-model="m.packNo" br></sa-item>
- <sa-item type="text" name="申报时间:yyyy-MM-ddHH:mm:ss" v-model="m.declTime" br></sa-item>
- <sa-item type="text" name="提运单号" v-model="m.billNo" br></sa-item>
- <sa-item type="text" name="运输工具航次号" v-model="m.voyageNo" br></sa-item>
- <sa-item type="text" name="商品名称,多个用英文逗号分割" v-model="m.goodsNames" br></sa-item>
- <sa-item type="text" name="购买边民列表[{"platSeqNo":"进出境申报单预申报编号","borderName":"边民姓名","idno":"身份证号","borderPutrecNo":"边民备案编号","settleBillNo":"结算单号","buyAmount":"申报金额","netWt":"净重","grossWt":"毛重","buyQty":"申报数量","buyQty1":"第一数量","buyQty2":"第二数量","preIeportNo":"进出口预申报单号"}]" v-model="m.bordersList" br></sa-item>
- <sa-item type="text" name="边民购买商品列表[{"platSeqNo":"进出境申报单预申报编号","borderName":"边民姓名","idno":"身份证号","borderPutrecNo":"边民备案编号","buyAmount":"申报金额","netWt":"净重","grossWt":"毛重","buyQty":"申报数量","buyQty1":"第一数量","buyQty2":"第二数量","preIeportNo":"进出口预申报单号","codeTs":"商品编码","goodsName":"商品名称"}]" v-model="m.borderBuyGoodsList" br></sa-item>
- <sa-item type="text" name="商铺卖货物列表[{"platSeqNo":"进出境申报单预申报编号","gNo":"预申报编号","codeTs":"商品编码","gName":"商品名称","gModel":"规格型号","storageEnvm":"储存条件:常温1:冷藏,2:冷冻:3","useTo":"用途:01食用、02工业用、03药用、04种用、05饲用、06其他","grossWt":"毛重","netWt":"净重","originCountry":"产销国","gQty":"货物数量","qty1":"第一数量","qty2":"第二数量","gUnit":"计量单位","unit1":"第一计量单位","unit2":"第二计量单位","declPrice":"单价","declTotal":"总价"}]" v-model="m.sellGoodsList" br></sa-item>
- <sa-item type="text" name="完成状态" v-model="m.finishStatus" br></sa-item>
- <sa-item type="text" name="创建时间" v-model="m.createTime" br></sa-item>
- <sa-item type="text" name="" v-model="m.preNo" br></sa-item>
- <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: '', // 主键
- platSeqNo: '', // 预申报编号
- declareId: '', // 申报单编号
- declareType: '', // 1-边民,2-商铺业主或其代理人,3-合作社代表,4-互助组代表
- declareName: '', // 申报人姓名
- idno: '', // 身份证号码
- shopNo: '', // 商铺编码
- shopName: '', // 商铺名称
- orgPutrecNo: '', // 申报人类别为3、4 时互助组/合作社备案编号
- orgName: '', // 申报人类别为3、4 时互助组/合租社名称
- orgScc: '', // 申报人类别为4 时边民合作社社会统一信用代码
- veNo: '', // 运输工具名称
- btrnbBizModecd: '', // 业务模式, 进出口标志为进口时,01 区内交易、02 落地加工、03 原装提离。进出口标 志 为 出 口时,04:直接出口,05:出口销售。
- gFlow: '', // 商品流向, 进出口标志为进口时,必填,01-二次销售;02-生活自用;03-落地加工;
- iEFlag: '', // 进出口标志:I进口 E 出口
- fieldCode: '', // 监管场所编号
- fieldName: '', // 监管场所名称
- customsCode: '', // 申报口岸代码
- carPool: '', // 1-是、0-否
- sumAmt: '', // 总金额
- sumGrossWt: '', // 总毛重
- sumNetWt: '', // 总净重
- trafMode: '', // 运输方式
- currCode: '', // 币制
- packNo: '', // 件数,正整数
- declTime: '', // 申 报 时 间 :yyyy-MM-dd HH:mm:ss
- billNo: '', // 提运单号
- voyageNo: '', // 运输工具航次(班)号
- goodsNames: '', // 商品名称,多个用英文逗号分割
- bordersList: '', // 购买边民列表[ { "platSeqNo": "进出境申报单预申报编号", "borderName": "边民姓名", "idno": "身份证号", "borderPutrecNo": "边民备案编号", "settleBillNo": "结算单号", "buyAmount": "申报金额", "netWt": "净重", "grossWt": "毛重", "buyQty": "申报数量", "buyQty1": "第一数量", "buyQty2": "第二数量", "preIeportNo": "进出口预申报单号" }]
- borderBuyGoodsList: '', // 边民购买商品列表[ { "platSeqNo": "进出境申报单预申报编号", "borderName": "边民姓名", "idno": "身份证号", "borderPutrecNo": "边民备案编号", "buyAmount": "申报金额", "netWt": "净重", "grossWt": "毛重", "buyQty": "申报数量", "buyQty1": "第一数量", "buyQty2": "第二数量", "preIeportNo": "进出口预申报单号", "codeTs": "商品编码", "goodsName": "商品名称" }]
- sellGoodsList: '', // 商铺卖货物列表[ { "platSeqNo": "进出境申报单预申报编号", "gNo": "预申报编号", "codeTs": "商品编码", "gName": "商品名称", "gModel": "规格型号", "storageEnvm": "储存条件:常温 1:冷藏,2:冷冻:3", "useTo": "用途:01 食用、02 工业用、03 药用、04 种用、05 饲用、06 其他", "grossWt": "毛重", "netWt": "净重", "originCountry": "产销国", "gQty": "货物数量", "qty1": "第一数量", "qty2": "第二数量", "gUnit": "计量单位", "unit1": "第一计量单位", "unit2": "第二计量单位", "declPrice": "单价", "declTotal": "总价" }]
- finishStatus: '', // 完成状态
- createTime: '', // 创建时间
- preNo: '', //
- }
- },
- // 提交数据
- ok: function(){
- // 表单校验
- let m = this.m;
- sa.checkNull(m.id, '请输入 [主键]');
- sa.checkNull(m.platSeqNo, '请输入 [预申报编号]');
- sa.checkNull(m.declareId, '请输入 [申报单编号]');
- sa.checkNull(m.declareType, '请输入 [1-边民,2-商铺业主或其代理人,3-合作社代表,4-互助组代表]');
- sa.checkNull(m.declareName, '请输入 [申报人姓名]');
- sa.checkNull(m.idno, '请输入 [身份证号码]');
- sa.checkNull(m.shopNo, '请输入 [商铺编码]');
- sa.checkNull(m.shopName, '请输入 [商铺名称]');
- sa.checkNull(m.orgPutrecNo, '请输入 [申报人类别为3、4时互助组/合作社备案编号]');
- sa.checkNull(m.orgName, '请输入 [申报人类别为3、4时互助组/合租社名称]');
- sa.checkNull(m.orgScc, '请输入 [申报人类别为4时边民合作社社会统一信用代码]');
- sa.checkNull(m.veNo, '请输入 [运输工具名称]');
- sa.checkNull(m.btrnbBizModecd, '请输入 [业务模式,进出口标志为进口时,01区内交易、02落地加工、03原装提离。进出口标志为出口时,04:直接出口,05:出口销售。]');
- sa.checkNull(m.gFlow, '请输入 [商品流向,进出口标志为进口时,必填,01-二次销售;02-生活自用;03-落地加工;]');
- sa.checkNull(m.iEFlag, '请输入 [进出口标志:I进口E出口]');
- sa.checkNull(m.fieldCode, '请输入 [监管场所编号]');
- sa.checkNull(m.fieldName, '请输入 [监管场所名称]');
- sa.checkNull(m.customsCode, '请输入 [申报口岸代码]');
- sa.checkNull(m.carPool, '请输入 [1-是、0-否]');
- sa.checkNull(m.sumAmt, '请输入 [总金额]');
- sa.checkNull(m.sumGrossWt, '请输入 [总毛重]');
- sa.checkNull(m.sumNetWt, '请输入 [总净重]');
- sa.checkNull(m.trafMode, '请输入 [运输方式]');
- sa.checkNull(m.currCode, '请输入 [币制]');
- sa.checkNull(m.packNo, '请输入 [件数,正整数]');
- sa.checkNull(m.declTime, '请输入 [申报时间:yyyy-MM-ddHH:mm:ss]');
- sa.checkNull(m.billNo, '请输入 [提运单号]');
- sa.checkNull(m.voyageNo, '请输入 [运输工具航次号]');
- sa.checkNull(m.goodsNames, '请输入 [商品名称,多个用英文逗号分割]');
- sa.checkNull(m.bordersList, '请输入 [购买边民列表[{"platSeqNo":"进出境申报单预申报编号","borderName":"边民姓名","idno":"身份证号","borderPutrecNo":"边民备案编号","settleBillNo":"结算单号","buyAmount":"申报金额","netWt":"净重","grossWt":"毛重","buyQty":"申报数量","buyQty1":"第一数量","buyQty2":"第二数量","preIeportNo":"进出口预申报单号"}]]');
- sa.checkNull(m.borderBuyGoodsList, '请输入 [边民购买商品列表[{"platSeqNo":"进出境申报单预申报编号","borderName":"边民姓名","idno":"身份证号","borderPutrecNo":"边民备案编号","buyAmount":"申报金额","netWt":"净重","grossWt":"毛重","buyQty":"申报数量","buyQty1":"第一数量","buyQty2":"第二数量","preIeportNo":"进出口预申报单号","codeTs":"商品编码","goodsName":"商品名称"}]]');
- sa.checkNull(m.sellGoodsList, '请输入 [商铺卖货物列表[{"platSeqNo":"进出境申报单预申报编号","gNo":"预申报编号","codeTs":"商品编码","gName":"商品名称","gModel":"规格型号","storageEnvm":"储存条件:常温1:冷藏,2:冷冻:3","useTo":"用途:01食用、02工业用、03药用、04种用、05饲用、06其他","grossWt":"毛重","netWt":"净重","originCountry":"产销国","gQty":"货物数量","qty1":"第一数量","qty2":"第二数量","gUnit":"计量单位","unit1":"第一计量单位","unit2":"第二计量单位","declPrice":"单价","declTotal":"总价"}]]');
- sa.checkNull(m.finishStatus, '请输入 [完成状态]');
- sa.checkNull(m.createTime, '请输入 [创建时间]');
- sa.checkNull(m.preNo, '请输入 []');
-
- // 开始增加或修改
- if(this.id <= 0) { // 添加
- sa.ajax('/HtTradeSettlement/add', m, function(res){
- sa.alert('增加成功', this.clean);
- }.bind(this));
- } else { // 修改
- sa.ajax('/HtTradeSettlement/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('/HtTradeSettlement/getById?id=' + this.id, function(res) {
- this.m = res.data;
- if(res.data == null) {
- sa.alert('未能查找到 id=' + this.id + " 详细数据");
- }
- }.bind(this))
- }
- }
- })
-
- </script>
- </body>
- </html>
|