rushfee/build/classes/html/tick/satisfac.html

140 lines
6.2 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false" auth="false">
<head>
<title>满意度明细</title>
<style>
</style>
</head>
<body>
<div widget="toolbar" style="padding:4px;border:0;">
<!-- style="width:300px;" -->
<input widget="combox" name="nianfen" label="年份"
data="[{id:'2019',text:'2019'},{id:'2020',text:'2020'},{id:'2021',text:'2021'},{id:'2022',text:'2022'}]"
textField="text" valueField="id" value="2021" />
<input name="yuefen" widget=combox allowinput="f" showNullItem="true" multiSelect="true"
data="[{id:'01',text:'01'},{id:'02',text:'02'},{id:'03',text:'03'},{id:'04',text:'04'},{id:'05',text:'05'},{id:'06',text:'06'},{id:'07',text:'07'},{id:'08',text:'08'},{id:'09',text:'09'},{id:'10',text:'10'},{id:'11',text:'11'},{id:'12',text:'12'}]" label="月份">
<!--<input name="yuefen" widget=combox allowinput="f" showNullItem="true" multiSelect="true"
data="[{id:'201901',text:'201901'},{id:'201902',text:'201902'},{id:'201903',text:'201903'},{id:'201904',text:'201904'},{id:'201905',text:'201905'},{id:'201906',text:'201906'},{id:'201907',text:'201907'},{id:'201908',text:'201908'},{id:'201909',text:'201909'},{id:'201910',text:'201910'},{id:'201911',text:'201911'},{id:'201912',text:'201912'},
{id:'202001',text:'202001'},{id:'202002',text:'202002'},{id:'202003',text:'202003'},{id:'202004',text:'202004'},{id:'202005',text:'202005'},{id:'202006',text:'202006'},{id:'202007',text:'202007'},{id:'202008',text:'202008'},{id:'202009',text:'202009'},{id:'202010',text:'202010'},{id:'202011',text:'202011'},{id:'202012',text:'202012'}]" label="月份">
-->
<input widget="combox" name="company" label="分公司" url="rush/excustomer/getOrgList"
emptyText="请选择" textField="text" valueField="id" allowInput="false"
showNullItem="true" onvaluechanged="getRevenue" />
<!-- <input widget="combox" name="revenue" label="税务机关" emptyText="请选择" textField="text" valueField="id" allowInput="false" showNullItem="true"/> -->
<input widget="edit" name="cust_name" label="客户名称" />
</br>
<input name="yesno" widget=combox allowinput="f" showNullItem="true" multiSelect="false"
data="[{id:'0',text:'是'},{id:'1',text:'否'}]" label="是否在crm" >
<input widget="edit" name="cust_tax_code" label="客户税号" />
<input name="manyi" widget=combox allowinput="f" showNullItem="true" multiSelect="false"
data="[{id:'非常满意',text:'非常满意'},{id:'满意',text:'满意'},{id:'不满意',text:'不满意'}]" label="满意度" >
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<a widget="button" iconCls="icon-import" onclick="imp()">导入数据</a>&nbsp;&nbsp;&nbsp;
<a widget="button" iconCls="icon-export" onclick="exp()">导出数据</a>&nbsp;&nbsp;&nbsp;
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>&nbsp;&nbsp;&nbsp;
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/kaohe/getmanyidu">
<div type="indexcolumn" width="30" header="序号"></div>
<div field="cust_name" width="80" header="客户名称" ></div>
<div field="cust_tax_code" width="70" header="税号" ></div>
<div field="org_name" width="70" header="分公司" ></div>
<div field="aisino_code" width="50" header="金税盘编号"></div>
<div field="quarter" width="40" header="季度"></div>
<div field="degree" width="50" header="满意度"></div>
<div field="opinion" width="80" header="意见"></div>
<div field="kpjh" width="30" header="开票机号"></div>
<div field="org_id" visible="false"></div>
<div field="pjtime" width="60" header="评价时间"></div>
<div field="isyouxiao" width="30" header="是否有效"></div>
<div field="logout" width="60" header="是否注销"></div>
<div field="tel1" width="50" header="电话1"></div>
<div field="tel2" width="50" header="电话2"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
/* var url="rush/org/getRevenueByOrgId?companyid="; */
/* var select=aos.get('isdeal');
var asd ='0,2'; */
//select.setValue(asd);
function search(){
var jidu='';
var yuefens='';
var nianfen = aos.get('nianfen').getValue();
var yuefen = aos.get('yuefen').getValue();
if(yuefen==null||yuefen==''){
yuefens=['01','02','03','04','05','06','07','08','09','10','11','12'];
}else{
yuefens = yuefen.split(',');
}
for (i = 0; i < yuefens.length; i++) {
if(i==0){
jidu=nianfen+yuefens[i];
}else{
jidu=jidu+','+nianfen+yuefens[i];
}
}
var params={
//jidu : aos.get('yuefen').getValue(),
jidu : jidu,
is_crm : aos.get('yesno').getValue(),
cust_name : aos.get('cust_name').getValue(),
company : aos.get('company').getValue(),
manyi : aos.get('manyi').getValue(),
cust_tax_code:aos.get('cust_tax_code').getValue()
}
grid.load(params);
}
function imp(){
aos.showWindow('canvas/authtask/imp_detail', null, '400px', '200px', '满意度数据导入', function(){
});
}
function exp(){
var jidu='';
var yuefens='';
var nianfen = aos.get('nianfen').getValue();
var yuefen = aos.get('yuefen').getValue();
if(yuefen==null||yuefen==''){
yuefens=['01','02','03','04','05','06','07','08','09','10','11','12'];
}else{
yuefens = yuefen.split(',');
}
for (i = 0; i < yuefens.length; i++) {
if(i==0){
jidu=nianfen+yuefens[i];
}else{
jidu=jidu+','+nianfen+yuefens[i];
}
}
var jidu=jidu;
//var jidu = aos.get('yuefen').getValue();
var cust_name = aos.get('cust_name').getValue() ;
var companyname = aos.get('company').getValue() ;
var cust_tax_code = aos.get('cust_tax_code').getValue() ;
var is_crm = aos.get('yesno').getValue() ;
var base = document.getElementsByTagName("base")[0].href;
window.location.href=base+"rush/kaohe/exp_cancel?cust_name="+cust_name+
"&companyname="+companyname+"&cust_tax_code="+cust_tax_code+
"&is_crm="+is_crm+"&jidu="+jidu;
}
</script>
</html>