|
@@ -4,7 +4,7 @@ $(function () {
|
|
|
datatype: "json",
|
|
|
colModel: [
|
|
|
{label: 'id', name: 'id', index: 'id', key: true, hidden: true},
|
|
|
- {label: '商家名称', name: 'storeName', index: 'store_name', width: 80},
|
|
|
+ {label: '门店名称', name: 'storeName', index: 'store_name', width: 80},
|
|
|
{label: '快递名称', name: 'expressName', index: 'express_name', width: 80},
|
|
|
{label: '是否启用', name: 'isValid', index: 'is_valid', width: 80,
|
|
|
formatter: function (value) {
|
|
@@ -55,10 +55,12 @@ let vm = new Vue({
|
|
|
title: null,
|
|
|
storeId: '',
|
|
|
expcomId:'',
|
|
|
+ exprTypeId:'',
|
|
|
status:'',
|
|
|
addressInfo: {},
|
|
|
storeList: [],
|
|
|
expressCompanySys:[],
|
|
|
+ machineCodeTypes:[],
|
|
|
ruleValidate: {
|
|
|
/*storeId: [
|
|
|
{required: true, message: '门店不能为空', trigger: 'blur'}
|
|
@@ -81,9 +83,11 @@ let vm = new Vue({
|
|
|
vm.addressInfo = {};
|
|
|
vm.storeList = [];
|
|
|
vm.expressCompanySys=[];
|
|
|
+ vm.machineCodeTypes=[];
|
|
|
vm.status=2;
|
|
|
vm.getStoresByMerch();
|
|
|
vm.getCompantByThirdMerch();
|
|
|
+ vm.mounted();
|
|
|
},
|
|
|
update: function (event) {
|
|
|
let id = getSelectedRow();
|
|
@@ -151,7 +155,8 @@ let vm = new Vue({
|
|
|
let url = "../addressinfo/saveStoreAndComp";
|
|
|
let storesId = vm.addressInfo.storeId;
|
|
|
let expcomId = vm.addressInfo.expcomId;
|
|
|
- let pames={"outletsId":storesId,"exprId":expcomId};
|
|
|
+ let exprTypeId = vm.addressInfo.exprTypeId;
|
|
|
+ let pames={"outletsId":storesId,"exprId":expcomId,"exprTypeId":exprTypeId};
|
|
|
console.log(JSON.stringify(pames));
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
@@ -210,6 +215,11 @@ let vm = new Vue({
|
|
|
vm.addressInfo = r.addressInfo;
|
|
|
});
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ $.get("../sys/macro/queryMacrosByValue?value=exprType", function (r) {
|
|
|
+ vm.machineCodeTypes = r.list;
|
|
|
+ });
|
|
|
+ },
|
|
|
reloadSearch: function() {
|
|
|
vm.q = {
|
|
|
storeId: ''
|