From 9d59e53e261008ed5ea8e05a6c253d5976b69abd Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期二, 24 十月 2023 21:11:09 +0800 Subject: [PATCH] 10.24。6 --- cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js | 47 ++++++++++++++++++++--------------------------- 1 files changed, 20 insertions(+), 27 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js index 329797c..047507f 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js @@ -15,11 +15,11 @@ TStoreProvince.initColumn = function () { return [ {field: 'selectItem', checkbox: true}, - {title: '选择', field: '', visible: true, align: 'center', valign: 'middle'}, - {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, - {title: '所属账号', field: 'accountName', visible: true, align: 'center', valign: 'middle'}, + {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, {title: '所在省市', field: 'provinceCity', visible: true, align: 'center', valign: 'middle'}, + {title: '所属运营商', field: 'accountName', visible: true, align: 'center', valign: 'middle'}, {title: '门店名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, + {title: '闸机id', field: 'ids', visible: true, align: 'center', valign: 'middle'}, ]; }; @@ -49,20 +49,26 @@ return false; } var arr = []; - console.log('selected--->',selected) + var name =''; for(var i in selected){ if(typeof selected[i].id != "undefined"){ + console.log( selected[i].ids,55555) + name = selected[0].accountName + if(name!=selected[i].accountName){ + Feng.info("请选择相同运营商门店") + return ; + } arr.push({ id: selected[i].id, provinceCity: typeof selected[i].provinceCity != "undefined" ? selected[i].provinceCity : "", accountName: typeof selected[i].accountName != "undefined" ? selected[i].accountName : "", - name: typeof selected[i].name != "undefined" ? selected[i].name : "" + name: typeof selected[i].name != "undefined" ? selected[i].name : "", + ids:typeof selected[i].ids != "undefined" ? selected[i].ids : "", }) } } - window.parent.TCarInfoDlg.selecUserOpt(arr); + window.parent.TGoodsInfoDlg.selecUserOpt(arr); TStoreProvince.storeOfClosePage(); - } @@ -72,16 +78,9 @@ */ TStoreProvince.search = function () { var queryData = {}; - - var provinceElement = document.getElementById("province"); - var provinceId = provinceElement.value; - - var cityElement = document.getElementById("city"); - var cityElementId = cityElement.value; - - queryData['provinceId'] = provinceId; - queryData['cityId'] = cityElementId; - queryData['cityManagerId'] = $("#userPopulation").val(); + queryData['provinceId'] = $("#pCode").val(); + queryData['cityId'] = $("#cCode").val(); + queryData['operatorId'] = $("#account").val(); queryData['storeName'] = $("#storeName").val(); TStoreProvince.table.refresh({query: queryData}); }; @@ -91,16 +90,10 @@ * 重置搜索 */ TStoreProvince.resetSearch = function () { - var provinceSelect = document.getElementById("province"); - provinceSelect.innerHTML = '<option value="">全部</option>'; - - var citySelect = document.getElementById("city"); - citySelect.innerHTML = '<option value="">全部</option>'; - - queryProvince(); - - $("#userPopulation").val(''); - $("#storeName").val(''); + $("#pCode").val('') + $("#cCode").val('') + $("#account").val('') + $("#storeName").val('') TStoreProvince.search(); }; -- Gitblit v1.7.1