|
@@ -227,7 +227,12 @@ let vm = new Vue({
|
|
|
orderGoodsList: [],
|
|
|
stores: [],
|
|
|
orderStatusList:[],
|
|
|
- payStatusList:[]
|
|
|
+ payStatusList:[],
|
|
|
+ ruleValidate: {
|
|
|
+ /*name: [
|
|
|
+ {required: true, message: '名称不能为空', trigger: 'blur'}
|
|
|
+ ]*/
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
query: function () {
|
|
@@ -253,6 +258,39 @@ let vm = new Vue({
|
|
|
vm.title = "快递信息";
|
|
|
});
|
|
|
},
|
|
|
+ getExpressInfo: function (event) {
|
|
|
+ let id = getSelectedRow();
|
|
|
+ if (id == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.get("../order/infos/" + id, function (r) {
|
|
|
+ vm.order = r.order;
|
|
|
+ vm.showDiv = 8;
|
|
|
+ vm.title = "修改快递信息";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ updateExpressInfo: function (event) {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: '../order/updateExpressInfo',
|
|
|
+ contentType: "application/json",
|
|
|
+ data: JSON.stringify(vm.order),
|
|
|
+ success: function (r) {
|
|
|
+ if (r.code === 0) {
|
|
|
+ alert('操作成功', function (index) {
|
|
|
+ vm.reload();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ alert(r.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSubmit: function (name) {
|
|
|
+ // handleSubmitValidate(this, name, function () {
|
|
|
+ vm.updateExpressInfo()
|
|
|
+ // });
|
|
|
+ },
|
|
|
getProcess: function (event) {
|
|
|
let orderSn = getSelectedRowData().orderSn;
|
|
|
if (orderSn == null) {
|