|
@@ -0,0 +1,197 @@
|
|
|
|
+$(function () {
|
|
|
|
+ $("#jqGrid").jqGrid({
|
|
|
|
+ url: '../haikongsendorderinforecord/list',
|
|
|
|
+ datatype: "json",
|
|
|
|
+ colModel: [
|
|
|
|
+ {label: 'id', name: 'id', index: 'id', key: true, hidden: true},
|
|
|
|
+ {label: '订单编号', name: 'outerOrderNo', index: 'outer_order_no', width: 80},
|
|
|
|
+ {label: '支付方式', name: 'payApp', index: 'pay_app', width: 80},
|
|
|
|
+ {label: '配送方式', name: 'dlytypeCode', index: 'dlytype_code', width: 80},
|
|
|
|
+ {label: '收货人', name: 'consigneeName', index: 'consignee_name', width: 80},
|
|
|
|
+ {label: '收货地址省份', name: 'consigneeAreaProvince', index: 'consignee_area_province', width: 80},
|
|
|
|
+ {label: '收货地址城市', name: 'consigneeAreaCity', index: 'consignee_area_city', width: 80},
|
|
|
|
+ {label: '收货地址地区', name: 'consigneeAreaCounty', index: 'consignee_area_county', width: 80},
|
|
|
|
+ {label: '收货地址详细地址', name: 'consigneeAddress', index: 'consignee_address', width: 80},
|
|
|
|
+ {label: '收货人的邮编', name: 'consigneeZip', index: 'consignee_zip', width: 80},
|
|
|
|
+ {label: '收货人的联系电话', name: 'consigneeTel', index: 'consignee_tel', width: 80},
|
|
|
|
+ {label: '收货人的邮箱', name: 'consigneeEmail', index: 'consignee_email', width: 80},
|
|
|
|
+ {label: '收货人的手机号', name: 'consigneeMobile', index: 'consignee_mobile', width: 80},
|
|
|
|
+ {label: '订单商品总重量(克)', name: 'weight', index: 'weight', width: 80},
|
|
|
|
+ {label: '订单包含商品数量', name: 'quantity', index: 'quantity', width: 80},
|
|
|
|
+ {label: '订单应付总金额', name: 'orderTotal', index: 'order_total', width: 80},
|
|
|
|
+ {label: '下单的平台', name: 'platform', index: 'platform', width: 80},
|
|
|
|
+ {label: '支付货币金额', name: 'money', index: 'money', width: 80},
|
|
|
|
+ {label: '付款方式', name: 'payMode', index: 'pay_mode', width: 80,
|
|
|
|
+ formatter: function (value) {
|
|
|
|
+ if (value == 'online') {
|
|
|
|
+ return '在线支付';
|
|
|
|
+ } else if (value == 'offline') {
|
|
|
|
+ return '线下支付';
|
|
|
|
+ } else if (value == 'deposit') {
|
|
|
|
+ return '预付款支付';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {label: '发送给支付企业的原始请求', name: 'request', index: 'request', width: 80},
|
|
|
|
+ {label: '支付成功后回调的原始请求', name: 'response', index: 'response', width: 80},
|
|
|
|
+ {label: '支付平台流水号', name: 'outTradeNo', index: 'out_trade_no', width: 80},
|
|
|
|
+ {label: '口岸代码', name: 'seaportCode', index: 'seaport_code', width: 80},
|
|
|
|
+ {label: '跨境商品平台来源', name: 'seaportPlatform', index: 'seaport_platform', width: 80,
|
|
|
|
+ formatter: function (value) {
|
|
|
|
+ if (value == '1') {
|
|
|
|
+ return '广州跨境通保税';
|
|
|
|
+ } else if (value == '2') {
|
|
|
|
+ return '自营保税';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {label: '订购人身份证号码', name: 'identityCard', index: 'identity_card', width: 80},
|
|
|
|
+ {label: '订购人姓名', name: 'identityName', index: 'identity_name', width: 80},
|
|
|
|
+ {label: '订购人手机号', name: 'identityMobile', index: 'identity_mobile', width: 80},
|
|
|
|
+ {label: '订单产品信息', name: 'orderProductInfo', index: 'order_product_info', width: 80},
|
|
|
|
+ {label: '重发状态', name: 'resendStatus', index: 'resend_status', width: 80,
|
|
|
|
+ formatter: function (value) {
|
|
|
|
+ if (value == '0') {
|
|
|
|
+ return '等待重发';
|
|
|
|
+ } else if (value == '1') {
|
|
|
|
+ return '重发成功';
|
|
|
|
+ } else if (value == '2') {
|
|
|
|
+ return '重发失败';
|
|
|
|
+ } else if (value == '3') {
|
|
|
|
+ return '无需重发';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }],
|
|
|
|
+ viewrecords: true,
|
|
|
|
+ height: 550,
|
|
|
|
+ rowNum: 10,
|
|
|
|
+ rowList: [10, 30, 50],
|
|
|
|
+ rownumbers: true,
|
|
|
|
+ rownumWidth: 25,
|
|
|
|
+ autowidth: true,
|
|
|
|
+ multiselect: true,
|
|
|
|
+ shrinkToFit: false,
|
|
|
|
+ pager: "#jqGridPager",
|
|
|
|
+ jsonReader: {
|
|
|
|
+ root: "page.list",
|
|
|
|
+ page: "page.currPage",
|
|
|
|
+ total: "page.totalPage",
|
|
|
|
+ records: "page.totalCount"
|
|
|
|
+ },
|
|
|
|
+ prmNames: {
|
|
|
|
+ page: "page",
|
|
|
|
+ rows: "limit",
|
|
|
|
+ order: "order"
|
|
|
|
+ },
|
|
|
|
+ gridComplete: function () {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+let vm = new Vue({
|
|
|
|
+ el: '#rrapp',
|
|
|
|
+ data: {
|
|
|
|
+ showList: true,
|
|
|
|
+ title: null,
|
|
|
|
+ haikongSendOrderInfoRecord: {},
|
|
|
|
+ ruleValidate: {
|
|
|
|
+ name: [
|
|
|
|
+ {required: true, message: '名称不能为空', trigger: 'blur'}
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ q: {
|
|
|
|
+ outerOrderNo: ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ query: function () {
|
|
|
|
+ vm.reload();
|
|
|
|
+ },
|
|
|
|
+ add: function () {
|
|
|
|
+ vm.showList = false;
|
|
|
|
+ vm.title = "新增";
|
|
|
|
+ vm.haikongSendOrderInfoRecord = {};
|
|
|
|
+ },
|
|
|
|
+ update: function (event) {
|
|
|
|
+ let id = getSelectedRow();
|
|
|
|
+ if (id == null) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ vm.showList = false;
|
|
|
|
+ vm.title = "修改";
|
|
|
|
+
|
|
|
|
+ vm.getInfo(id)
|
|
|
|
+ },
|
|
|
|
+ saveOrUpdate: function (event) {
|
|
|
|
+ let url = vm.haikongSendOrderInfoRecord.id == null ? "../haikongsendorderinforecord/save" : "../haikongsendorderinforecord/update";
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: "POST",
|
|
|
|
+ url: url,
|
|
|
|
+ contentType: "application/json",
|
|
|
|
+ data: JSON.stringify(vm.haikongSendOrderInfoRecord),
|
|
|
|
+ success: function (r) {
|
|
|
|
+ if (r.code === 0) {
|
|
|
|
+ alert('操作成功', function (index) {
|
|
|
|
+ vm.reload();
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ alert(r.msg);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ del: function (event) {
|
|
|
|
+ let ids = getSelectedRows();
|
|
|
|
+ if (ids == null){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ confirm('确定要删除选中的记录?', function () {
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: "POST",
|
|
|
|
+ url: "../haikongsendorderinforecord/delete",
|
|
|
|
+ contentType: "application/json",
|
|
|
|
+ data: JSON.stringify(ids),
|
|
|
|
+ success: function (r) {
|
|
|
|
+ if (r.code == 0) {
|
|
|
|
+ alert('操作成功', function (index) {
|
|
|
|
+ $("#jqGrid").trigger("reloadGrid");
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ alert(r.msg);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getInfo: function(id){
|
|
|
|
+ $.get("../haikongsendorderinforecord/info/"+id, function (r) {
|
|
|
|
+ vm.haikongSendOrderInfoRecord = r.haikongSendOrderInfoRecord;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ reloadSearch: function() {
|
|
|
|
+ vm.q = {
|
|
|
|
+ outerOrderNo: ''
|
|
|
|
+ }
|
|
|
|
+ vm.reload();
|
|
|
|
+ },
|
|
|
|
+ reload: function (event) {
|
|
|
|
+ vm.showList = true;
|
|
|
|
+ let page = $("#jqGrid").jqGrid('getGridParam', 'page');
|
|
|
|
+ $("#jqGrid").jqGrid('setGridParam', {
|
|
|
|
+ postData: {'outerOrderNo': vm.q.outerOrderNo},
|
|
|
|
+ page: page
|
|
|
|
+ }).trigger("reloadGrid");
|
|
|
|
+ vm.handleReset('formValidate');
|
|
|
|
+ },
|
|
|
|
+ handleSubmit: function (name) {
|
|
|
|
+ handleSubmitValidate(this, name, function () {
|
|
|
|
+ vm.saveOrUpdate()
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleReset: function (name) {
|
|
|
|
+ handleResetForm(this, name);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+});
|