NonPreSale.js 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.scm.sale.NonPreSale', {
  3. extend: 'Ext.app.Controller',
  4. FormUtil: Ext.create('erp.util.FormUtil'),
  5. BaseUtil: Ext.create('erp.util.BaseUtil'),
  6. views:[
  7. 'scm.sale.NonPreSale','core.form.Panel','core.form.MultiField',
  8. 'core.button.Add','core.button.Save','core.button.Update','core.button.Delete','core.button.Submit','core.button.ResSubmit',
  9. 'core.button.Audit','core.button.ResAudit','core.button.Close','core.button.TurnSale','core.form.FileField',
  10. 'core.trigger.TextAreaTrigger','core.trigger.DbfindTrigger','core.form.YnField','core.form.CheckBoxGroup','core.form.CheckBoxContainer',
  11. 'scm.sale.buttons.Buttons1','scm.sale.buttons.Buttons2','scm.sale.buttons.Buttons3','scm.sale.buttons.Buttons4','scm.sale.buttons.Buttons5',
  12. 'scm.sale.buttons.Buttons6','scm.sale.buttons.Buttons7','scm.sale.buttons.Buttons8','scm.sale.buttons.Buttons9','scm.sale.buttons.Buttons10',
  13. 'scm.sale.buttons.Buttons11','scm.sale.buttons.Buttons12','scm.sale.buttons.Buttons13','scm.sale.buttons.Buttons14',
  14. 'core.form.RadioGroup','core.form.SplitTextField','core.button.TurnAbNormalSale'
  15. ],
  16. init:function(){
  17. var me = this;
  18. this.control({
  19. 'erpFormPanel': {/*
  20. afterrender: function(){
  21. var panel = parent.Ext.getCmp('tree-tab');
  22. if(panel && !panel.collapsed) {
  23. panel.toggleCollapse();
  24. }
  25. }
  26. */
  27. /* beforerender : function(){
  28. var panel = parent.Ext.getCmp('tree-tab');
  29. if(panel && !panel.collapsed) {
  30. panel.toggleCollapse();
  31. // window.location.reload();
  32. }
  33. }*/
  34. },
  35. 'erpPreSaleButton1': {
  36. click: function(){
  37. me.updateButton(1);
  38. }
  39. },
  40. 'erpPreSaleButton2': {
  41. click: function(){
  42. me.updateButton(2);
  43. }
  44. },
  45. 'erpPreSaleButton3': {
  46. click: function(){
  47. me.updateButton(3);
  48. }
  49. },
  50. 'erpPreSaleButton4': {
  51. click: function(){
  52. me.updateButton(4);
  53. }
  54. },
  55. 'erpPreSaleButton5': {
  56. click: function(){
  57. me.updateButton(5);
  58. }
  59. },
  60. 'erpPreSaleButton6': {
  61. click: function(){
  62. me.updateButton(6);
  63. }
  64. },
  65. 'erpPreSaleButton7': {
  66. click: function(){
  67. me.updateButton(7);
  68. }
  69. },
  70. 'erpPreSaleButton8': {
  71. click: function(){
  72. me.updateButton(8);
  73. }
  74. },
  75. 'erpPreSaleButton9': {
  76. click: function(){
  77. me.updateButton(9);
  78. }
  79. },
  80. 'erpPreSaleButton10': {
  81. click: function(){
  82. me.updateButton(10);
  83. }
  84. },
  85. 'erpSaveButton': {
  86. click: function(btn){
  87. var form = me.getForm(btn);
  88. if(Ext.getCmp(form.codeField).value == null || Ext.getCmp(form.codeField).value == ''){
  89. me.BaseUtil.getRandomNumber('Sale');//自动添加编号
  90. }
  91. // me.beforeSave(form);
  92. this.FormUtil.beforeSave(this);
  93. }
  94. },
  95. 'erpDeleteButton' : {
  96. afterrender: function(btn){
  97. var status = Ext.getCmp('ps_statuscode');
  98. if(status && status.value != 'ENTERING'){
  99. btn.hide();
  100. }
  101. },
  102. click: function(btn){
  103. me.FormUtil.onDelete(Ext.getCmp('ps_id').value);
  104. }
  105. },
  106. 'erpUpdateButton': {
  107. afterrender: function(btn){
  108. var status = Ext.getCmp('ps_statuscode');
  109. if(status && status.value != 'ENTERING'){
  110. btn.hide();
  111. }
  112. },
  113. click: function(btn){
  114. this.FormUtil.onUpdate(this);
  115. }
  116. },
  117. 'erpAddButton': {
  118. click: function(){
  119. me.FormUtil.onAdd('addPreSale', '新增订单评审', 'jsps/scm/sale/preSale.jsp');
  120. }
  121. },
  122. 'erpCloseButton': {
  123. click: function(btn){
  124. me.FormUtil.beforeClose(me);
  125. },
  126. afterrender: function(){
  127. var panel = parent.Ext.getCmp('tree-tab');
  128. if(panel && !panel.collapsed) {
  129. panel.toggleCollapse();
  130. }
  131. }
  132. },
  133. 'erpSubmitButton': {
  134. afterrender: function(btn){
  135. var status = Ext.getCmp('ps_statuscode');
  136. if(status && status.value != 'ENTERING'){
  137. btn.hide();
  138. }
  139. },
  140. click: function(btn){
  141. me.FormUtil.onSubmit(Ext.getCmp('ps_id').value);
  142. }
  143. },
  144. 'erpResSubmitButton': {
  145. afterrender: function(btn){
  146. var status = Ext.getCmp('ps_statuscode');
  147. if(status && status.value != 'COMMITED'){
  148. btn.hide();
  149. }
  150. },
  151. click: function(btn){
  152. me.FormUtil.onResSubmit(Ext.getCmp('ps_id').value);
  153. }
  154. },
  155. 'erpAuditButton': {
  156. afterrender: function(btn){
  157. var status = Ext.getCmp('ps_statuscode');
  158. if(status && status.value != 'COMMITED'){
  159. btn.hide();
  160. }
  161. },
  162. click: function(btn){
  163. me.FormUtil.onAudit(Ext.getCmp('ps_id').value);
  164. }
  165. },
  166. 'erpResAuditButton': {
  167. afterrender: function(btn){
  168. var status = Ext.getCmp('ps_statuscode');
  169. if(status && status.value != 'AUDITED'){
  170. btn.hide();
  171. }
  172. },
  173. click: function(btn){
  174. me.FormUtil.onResAudit(Ext.getCmp('ps_id').value);
  175. }
  176. },
  177. 'dbfindtrigger[name=ps_address]': {
  178. afterrender:function(trigger){
  179. trigger.dbKey='ps_custcode';
  180. trigger.mappingKey='cu_code';
  181. trigger.dbMessage='请先选客户编号!';
  182. }
  183. },
  184. 'combo[name=ps_type]': {
  185. delay: 200,
  186. change: function(m){
  187. this.hidecolumns(m);
  188. }
  189. },
  190. 'erpTurnAbNormalSaleButton':{
  191. click: function(m){
  192. warnMsg("确定要转入销售单吗?", function(btn){
  193. if(btn == 'yes'){
  194. Ext.Ajax.request({
  195. url: basePath + 'scm/sale/turnPreSaleToSale.action',
  196. params: {
  197. type:'nonsale',
  198. ps_id:Ext.getCmp('ps_id').value
  199. },
  200. waitMsg: '转单中...',
  201. method: 'post',
  202. callback: function(options, success, response) {
  203. var localJson = new Ext.decode(response.responseText);
  204. if (localJson.success) {
  205. turnSuccess(function() {
  206. //add成功后刷新页面进入可编辑的页面
  207. // this.loadSplitData(originaldetno, said, record);
  208. if(localJson.clickurl){
  209. showError(localJson.clickurl);
  210. window.location.reload();
  211. }
  212. });
  213. } else if (localJson.exceptionInfo) {
  214. showError(localJson.exceptionInfo);
  215. } else {
  216. saveFailure();
  217. }
  218. }
  219. });
  220. }
  221. });
  222. },
  223. afterrender: function(btn){
  224. var status = Ext.getCmp('ps_statuscode');
  225. if(status && status.value != 'AUDITED'&&status.value !='TURNSA'){
  226. btn.hide();
  227. }
  228. }
  229. },
  230. 'erpTurnSaleButton':{
  231. afterrender: function(btn){
  232. var status = Ext.getCmp('ps_statuscode');
  233. if(status && status.value != 'AUDITED'){
  234. btn.hide();
  235. }
  236. },
  237. click: function(btn){
  238. warnMsg("确定要转入销售单吗?", function(btn){
  239. if(btn == 'yes'){
  240. me.FormUtil.getActiveTab().setLoading(true);//loading...
  241. Ext.Ajax.request({
  242. url : basePath + 'scm/sale/preSaleToSale.action',
  243. params: {
  244. id: Ext.getCmp('ps_id').value
  245. },
  246. method : 'post',
  247. callback : function(options,success,response){
  248. me.FormUtil.getActiveTab().setLoading(false);
  249. var localJson = new Ext.decode(response.responseText);
  250. if(localJson.exceptionInfo){
  251. showError(localJson.exceptionInfo);
  252. }
  253. if(localJson.success){
  254. turnSuccess(function(){
  255. var id = localJson.id;
  256. var url = "jsps/scm/sale/sale.jsp?whoami=Sale&formCondition=sa_id=" + id + "&gridCondition=sd_said=" + id;
  257. me.FormUtil.onAdd('Sale' + id, '销售单' + id, url);
  258. });
  259. }
  260. }
  261. });
  262. }
  263. });
  264. }
  265. }
  266. });
  267. },
  268. getForm: function(btn){
  269. return btn.ownerCt.ownerCt;
  270. },
  271. /**
  272. * 单据保存
  273. * @param param 传递过来的数据,比如gridpanel的数据
  274. */
  275. onSave: function(param){
  276. var me = this;
  277. var form = Ext.getCmp('form');
  278. if(form.getForm().isValid()){
  279. //form里面数据
  280. Ext.each(form.items.items, function(item){
  281. if(item.xtype == 'numberfield'){
  282. //number类型赋默认值,不然sql无法执行
  283. if(item.value == null || item.value == ''){
  284. item.setValue(0);
  285. }
  286. }
  287. });
  288. var r = form.getValues();
  289. //去除ignore字段
  290. var keys = Ext.Object.getKeys(r), f;
  291. var reg = /[!@#$%^&*()'":,\/?]/;
  292. Ext.each(keys, function(k){
  293. f = form.down('#' + k);
  294. if(f && f.logic == 'ignore') {
  295. delete r[k];
  296. }
  297. //codeField值强制大写,自动过滤特殊字符
  298. if(k == form.codeField && !Ext.isEmpty(r[k])) {
  299. r[k] = r[k].trim().toUpperCase().replace(reg, '');
  300. }
  301. });
  302. if(!me.FormUtil.contains(form.saveUrl, '?caller=', true)){
  303. form.saveUrl = form.saveUrl + "?caller=" + caller;
  304. }
  305. me.save(r, param);
  306. }else{
  307. me.FormUtil.checkForm();
  308. }
  309. },
  310. save: function(){
  311. var params = new Object();
  312. var r = arguments[0];
  313. Ext.each(Ext.Object.getKeys(r), function(k){//去掉页面非表单定义字段
  314. if(contains(k, 'ext-', true)){
  315. delete r[k];
  316. }
  317. });
  318. params.formStore = unescape(Ext.JSON.encode(r).replace(/\\/g,"%"));
  319. var me = this;
  320. var form = Ext.getCmp('form');
  321. me.FormUtil.setLoading(true);
  322. Ext.Ajax.request({
  323. url : basePath + form.saveUrl,
  324. params : params,
  325. method : 'post',
  326. callback : function(options,success,response){
  327. me.FormUtil.setLoading(false);
  328. var localJson = new Ext.decode(response.responseText);
  329. if(localJson.success){
  330. saveSuccess(function(){
  331. //add成功后刷新页面进入可编辑的页面
  332. var value = r[form.keyField];
  333. var formCondition = form.keyField + "IS" + value ;
  334. var gridCondition = '';
  335. if(me.FormUtil.contains(window.location.href, '?', true)){
  336. window.location.href = window.location.href + '&formCondition=' +
  337. formCondition + '&gridCondition=' + gridCondition;
  338. } else {
  339. window.location.href = window.location.href + '?formCondition=' +
  340. formCondition + '&gridCondition=' + gridCondition;
  341. }
  342. });
  343. } else if(localJson.exceptionInfo){
  344. var str = localJson.exceptionInfo;
  345. if(str.trim().substr(0, 12) == 'AFTERSUCCESS'){//特殊情况:操作成功,但是出现警告,允许刷新页面
  346. str = str.replace('AFTERSUCCESS', '');
  347. saveSuccess(function(){
  348. //add成功后刷新页面进入可编辑的页面
  349. var value = r[form.keyField];
  350. var formCondition = form.keyField + "IS" + value ;
  351. var gridCondition = '';
  352. if(me.FormUtil.contains(window.location.href, '?', true)){
  353. window.location.href = window.location.href + '&formCondition=' +
  354. formCondition + '&gridCondition=' + gridCondition;
  355. } else {
  356. window.location.href = window.location.href + '?formCondition=' +
  357. formCondition + '&gridCondition=' + gridCondition;
  358. }
  359. });
  360. showError(str);
  361. } else {
  362. showError(str);
  363. return;
  364. }
  365. } else{
  366. saveFailure();//@i18n/i18n.js
  367. }
  368. }
  369. });
  370. },
  371. /**
  372. * 检查form未完善的字段
  373. */
  374. checkForm: function(){
  375. var s = '';
  376. var form = Ext.getCmp('form');
  377. form.getForm().getFields().each(function (item, index, length){
  378. if(!item.isValid()){
  379. if(s != ''){
  380. s += ',';
  381. }
  382. if(item.fieldLabel || item.ownerCt.fieldLabel){
  383. s += item.fieldLabel || item.ownerCt.fieldLabel;
  384. }
  385. }
  386. });
  387. if(s == ''){
  388. return true;
  389. }
  390. showError($I18N.common.form.necessaryInfo1 + '(<font color=green>' + s.replace(/&nbsp;/g,'') +
  391. '</font>)' + $I18N.common.form.necessaryInfo2);
  392. return false;
  393. },
  394. getAddItems:function(){
  395. var returnItems = [
  396. {
  397. xtype:'fieldset',
  398. title:'<h2>销售部</h2>',
  399. columnWidth:1,
  400. collapsible: true,
  401. frame:true,
  402. group:2,
  403. groupName:'评审状态',
  404. items:[
  405. {
  406. // frame:true,
  407. layout:'column',
  408. style: {background:'#FFFAFA'},
  409. items:[ {
  410. xtype : 'radiogroup',
  411. name : 'rg_1',
  412. id : 'rg_1',
  413. logic:'ignore',
  414. frame:true,
  415. columnWidth:0.4,
  416. fieldLabel:'价格',
  417. items: [
  418. { boxLabel:'通过',name:'rg_1',inputValue:'1'},
  419. { boxLabel:'不通过',name:'rg_1',inputValue:'2'},
  420. { boxLabel:'条件通过',name:'rg_1',inputValue:'3'}
  421. ],
  422. listeners:{
  423. change: function(rg){
  424. var v = rg.getValue();
  425. if(v.rg_1 == '3'){
  426. if(Ext.getCmp('ta_1')&&Ext.getCmp('tf_1')){
  427. Ext.getCmp('ta_1').setReadOnly(false);
  428. Ext.getCmp('tf_1').setReadOnly(false);
  429. }
  430. }else {
  431. Ext.getCmp('ta_1').setReadOnly(true);
  432. Ext.getCmp('tf_1').setReadOnly(true);
  433. }
  434. }
  435. }
  436. },
  437. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_1',id:'tf_1' },
  438. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_1',id:'ta_1'}]
  439. },{
  440. layout:'column',
  441. frame:false,
  442. items:[ {
  443. xtype : 'radiogroup',
  444. name : 'rg_2',
  445. id : 'rg_2',
  446. logic:'ignore',
  447. columnWidth:0.4,
  448. fieldStyle: "background:#FFFAFA;color:#515151;",
  449. fieldLabel:'交货方式',
  450. items: [
  451. { boxLabel:'通过',name:'rg_2',inputValue:'1'},
  452. { boxLabel:'不通过',name:'rg_2',inputValue:'2'},
  453. { boxLabel:'条件通过',name:'rg_2',inputValue:'3'}],
  454. listeners:{
  455. change: function(rg){
  456. var v = rg.getValue();
  457. if(v.rg_2 == '3'){
  458. if(Ext.getCmp('ta_2')&&Ext.getCmp('tf_2')){
  459. Ext.getCmp('ta_2').setReadOnly(false);
  460. Ext.getCmp('tf_2').setReadOnly(false);
  461. }
  462. }else {
  463. Ext.getCmp('ta_2').setReadOnly(true);
  464. Ext.getCmp('tf_2').setReadOnly(true);
  465. }
  466. }
  467. }
  468. },
  469. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_2',id:'tf_2' },
  470. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_2',id:'ta_2'}]
  471. }
  472. ]
  473. }, {
  474. xtype:'fieldset',
  475. title:'<h2>研发中心(硬件)</h2>',
  476. columnWidth:1,
  477. collapsible: true,
  478. frame:true,
  479. name:'nongroup',
  480. group:2,
  481. groupName:'评审状态',
  482. items:[
  483. {
  484. layout:'column',
  485. style: {background:'#FFFAFA'},
  486. items:[ {
  487. xtype : 'radiogroup',
  488. name : 'rg_33',
  489. id : 'rg_33',
  490. logic:'ignore',
  491. columnWidth:0.4,
  492. fieldLabel:'产品符合客户要求',
  493. items: [
  494. { boxLabel:'通过',name:'rg_33',inputValue:'1'},
  495. { boxLabel:'不通过',name:'rg_33',inputValue:'2'},
  496. { boxLabel:'条件通过',name:'rg_33',inputValue:'3'}
  497. ],
  498. listeners:{
  499. change: function(rg){
  500. var v = rg.getValue();
  501. if(v.rg_33 == '3'){
  502. if(Ext.getCmp('ta_33')&&Ext.getCmp('tf_33')){
  503. Ext.getCmp('ta_33').setReadOnly(false);
  504. Ext.getCmp('tf_33').setReadOnly(false);
  505. }
  506. }else {
  507. Ext.getCmp('ta_33').setReadOnly(true);
  508. Ext.getCmp('tf_33').setReadOnly(true);
  509. }
  510. }
  511. }
  512. },
  513. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_33',id:'tf_33' },
  514. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_33',id:'ta_33'}]
  515. }
  516. ]
  517. },{
  518. xtype:'fieldset',
  519. title:'<h2>研发中心(软件)</h2>',
  520. columnWidth:1,
  521. collapsible: true,
  522. frame:true,
  523. name:'nongroup',
  524. group:2,
  525. groupName:'评审状态',
  526. items:[
  527. {
  528. layout:'column',
  529. style: {background:'#FFFAFA'},
  530. items:[ {
  531. xtype : 'radiogroup',
  532. name : 'rg_34',
  533. id : 'rg_34',
  534. logic:'ignore',
  535. columnWidth:0.4,
  536. fieldLabel:'软件可达成客户要求',
  537. items: [
  538. { boxLabel:'通过',name:'rg_34',inputValue:'1'},
  539. { boxLabel:'不通过',name:'rg_34',inputValue:'2'},
  540. { boxLabel:'条件通过',name:'rg_34',inputValue:'3'}
  541. ],
  542. listeners:{
  543. change: function(rg){
  544. var v = rg.getValue();
  545. if(v.rg_34 == '3'){
  546. if(Ext.getCmp('ta_34')&&Ext.getCmp('tf_33')){
  547. Ext.getCmp('ta_34').setReadOnly(false);
  548. Ext.getCmp('tf_34').setReadOnly(false);
  549. }
  550. }else {
  551. Ext.getCmp('ta_34').setReadOnly(true);
  552. Ext.getCmp('tf_34').setReadOnly(true);
  553. }
  554. }
  555. }
  556. },
  557. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_34',id:'tf_34' },
  558. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_34',id:'ta_34'}]
  559. }
  560. ]
  561. },{
  562. xtype:'fieldset',
  563. title:'<h2>研发中心(包装)</h2>',
  564. columnWidth:1,
  565. collapsible: true,
  566. frame:true,
  567. name:'nongroup',
  568. group:2,
  569. groupName:'评审状态',
  570. items:[
  571. {
  572. layout:'column',
  573. style: {background:'#FFFAFA'},
  574. items:[ {
  575. xtype : 'radiogroup',
  576. name : 'rg_35',
  577. id : 'rg_35',
  578. logic:'ignore',
  579. columnWidth:0.4,
  580. fieldLabel:'结构承认',
  581. items: [
  582. { boxLabel:'通过',name:'rg_35',inputValue:'1'},
  583. { boxLabel:'不通过',name:'rg_35',inputValue:'2'},
  584. { boxLabel:'条件通过',name:'rg_35',inputValue:'3'}
  585. ],
  586. listeners:{
  587. change: function(rg){
  588. var v = rg.getValue();
  589. if(v.rg_35 == '3'){
  590. if(Ext.getCmp('ta_35')&&Ext.getCmp('tf_33')){
  591. Ext.getCmp('ta_35').setReadOnly(false);
  592. Ext.getCmp('tf_35').setReadOnly(false);
  593. }
  594. }else {
  595. Ext.getCmp('ta_35').setReadOnly(true);
  596. Ext.getCmp('tf_35').setReadOnly(true);
  597. }
  598. }
  599. }
  600. },
  601. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_35',id:'tf_35' },
  602. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_35',id:'ta_35'}]
  603. }, {
  604. layout:'column',
  605. style: {background:'#FFFAFA'},
  606. items:[ {
  607. xtype : 'radiogroup',
  608. name : 'rg_36',
  609. id : 'rg_36',
  610. logic:'ignore',
  611. columnWidth:0.4,
  612. fieldLabel:'包材承认',
  613. items: [
  614. { boxLabel:'通过',name:'rg_36',inputValue:'1'},
  615. { boxLabel:'不通过',name:'rg_36',inputValue:'2'},
  616. { boxLabel:'条件通过',name:'rg_36',inputValue:'3'}
  617. ],
  618. listeners:{
  619. change: function(rg){
  620. var v = rg.getValue();
  621. if(v.rg_36 == '3'){
  622. if(Ext.getCmp('ta_36')&&Ext.getCmp('tf_33')){
  623. Ext.getCmp('ta_36').setReadOnly(false);
  624. Ext.getCmp('tf_36').setReadOnly(false);
  625. }
  626. }else {
  627. Ext.getCmp('ta_36').setReadOnly(true);
  628. Ext.getCmp('tf_36').setReadOnly(true);
  629. }
  630. }
  631. }
  632. },
  633. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_36',id:'tf_36' },
  634. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_36',id:'ta_36'}]
  635. }
  636. ]
  637. },{
  638. xtype:'fieldset',
  639. title:'<h2>研发中心(项目)</h2>',
  640. columnWidth:1,
  641. collapsible: true,
  642. frame:true,
  643. name:'nongroup',
  644. group:2,
  645. groupName:'评审状态',
  646. items:[
  647. {
  648. layout:'column',
  649. style: {background:'#FFFAFA'},
  650. items:[ {
  651. xtype : 'radiogroup',
  652. name : 'rg_37',
  653. id : 'rg_37',
  654. logic:'ignore',
  655. columnWidth:0.4,
  656. fieldLabel:'开发完成时间',
  657. items: [
  658. { boxLabel:'通过',name:'rg_37',inputValue:'1'},
  659. { boxLabel:'不通过',name:'rg_37',inputValue:'2'},
  660. { boxLabel:'条件通过',name:'rg_37',inputValue:'3'}
  661. ],
  662. listeners:{
  663. change: function(rg){
  664. var v = rg.getValue();
  665. if(v.rg_37 == '3'){
  666. if(Ext.getCmp('ta_37')&&Ext.getCmp('tf_33')){
  667. Ext.getCmp('ta_37').setReadOnly(false);
  668. Ext.getCmp('tf_37').setReadOnly(false);
  669. }
  670. }else {
  671. Ext.getCmp('ta_37').setReadOnly(true);
  672. Ext.getCmp('tf_37').setReadOnly(true);
  673. }
  674. }
  675. }
  676. },
  677. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_37',id:'tf_37' },
  678. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_37',id:'ta_37'}]
  679. }, {
  680. layout:'column',
  681. style: {background:'#FFFAFA'},
  682. items:[ {
  683. xtype : 'radiogroup',
  684. name : 'rg_38',
  685. id : 'rg_38',
  686. logic:'ignore',
  687. columnWidth:0.4,
  688. fieldLabel:'BOM完成时间',
  689. items: [
  690. { boxLabel:'通过',name:'rg_38',inputValue:'1'},
  691. { boxLabel:'不通过',name:'rg_38',inputValue:'2'},
  692. { boxLabel:'条件通过',name:'rg_38',inputValue:'3'}
  693. ],
  694. listeners:{
  695. change: function(rg){
  696. var v = rg.getValue();
  697. if(v.rg_38 == '3'){
  698. if(Ext.getCmp('ta_38')&&Ext.getCmp('tf_33')){
  699. Ext.getCmp('ta_38').setReadOnly(false);
  700. Ext.getCmp('tf_38').setReadOnly(false);
  701. }
  702. }else {
  703. Ext.getCmp('ta_38').setReadOnly(true);
  704. Ext.getCmp('tf_38').setReadOnly(true);
  705. }
  706. }
  707. }
  708. },
  709. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_38',id:'tf_38' },
  710. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_38',id:'ta_38'}]
  711. }, {
  712. layout:'column',
  713. style: {background:'#FFFAFA'},
  714. items:[ {
  715. xtype : 'radiogroup',
  716. name : 'rg_39',
  717. id : 'rg_39',
  718. logic:'ignore',
  719. columnWidth:0.4,
  720. fieldLabel:'产品认证要求',
  721. items: [
  722. { boxLabel:'通过',name:'rg_39',inputValue:'1'},
  723. { boxLabel:'不通过',name:'rg_39',inputValue:'2'},
  724. { boxLabel:'条件通过',name:'rg_39',inputValue:'3'}
  725. ],
  726. listeners:{
  727. change: function(rg){
  728. var v = rg.getValue();
  729. if(v.rg_39 == '3'){
  730. if(Ext.getCmp('ta_39')&&Ext.getCmp('tf_33')){
  731. Ext.getCmp('ta_39').setReadOnly(false);
  732. Ext.getCmp('tf_39').setReadOnly(false);
  733. }
  734. }else {
  735. Ext.getCmp('ta_39').setReadOnly(true);
  736. Ext.getCmp('tf_39').setReadOnly(true);
  737. }
  738. }
  739. }
  740. },
  741. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_39',id:'tf_39' },
  742. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_39',id:'ta_39'}]
  743. }
  744. ]
  745. },
  746. {
  747. xtype:'fieldset',
  748. title:'<h2>PMC</h2>',
  749. columnWidth:1,
  750. collapsible: true,
  751. frame:false,
  752. name:'psgroup',
  753. group:2,
  754. groupName:'评审状态',
  755. items:[
  756. {
  757. layout:'column',
  758. columnWidth:1,
  759. xtype:'form',
  760. frame:true,
  761. id:'panel1',
  762. bodyStyle:'border:1px solid #CDC5BF;background-color:#f0f0f0',
  763. bodyBorder:true,
  764. border:true,
  765. columnWidth:1,
  766. title:'长交期物料评审',
  767. bodyPadding: 5,
  768. items:[{ xtype : 'textfield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'LCD',maxLength:100,name:'tf_19',id:'tf_19' },
  769. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'TP',maxLength:100,name:'tf_20',id:'tf_20' },
  770. { xtype : 'textfield',logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'电源',maxLength:100,name:'tf_21',id:'tf_21' },
  771. { xtype : 'textfield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'壳料',maxLength:100,name:'tf_22',id:'tf_22' },
  772. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'电池',maxLength:100,name:'tf_23',id:'tf_23' },
  773. { xtype : 'textfield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'摄像头',maxLength:100,name:'tf_24',id:'tf_24' },
  774. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'PCB',maxLength:100,name:'tf_25',id:'tf_25' },
  775. {
  776. xtype : 'radiogroup',
  777. id:'rg_3',
  778. name:'rg_3',
  779. logic:'ignore',
  780. columnWidth:0.4,
  781. fieldLabel:'评审',
  782. items: [
  783. { boxLabel:'通过',name:'rg_3',inputValue:'1'},
  784. { boxLabel:'不通过',name:'rg_3',inputValue:'2'},
  785. { boxLabel:'条件通过',name:'rg_3',inputValue:'3'}],
  786. listeners:{
  787. change: function(rg){
  788. var v = rg.getValue();
  789. if(v.rg_3 == '3'){
  790. if(Ext.getCmp('ta_3')&&Ext.getCmp('tf_3')){
  791. Ext.getCmp('ta_3').setReadOnly(false);
  792. Ext.getCmp('tf_3').setReadOnly(false);
  793. }
  794. }else {
  795. Ext.getCmp('ta_3').setReadOnly(true);
  796. Ext.getCmp('tf_3').setReadOnly(true);
  797. }
  798. }
  799. }
  800. },
  801. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_3',id:'tf_3' },
  802. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_3',id:'ta_3'}
  803. ]
  804. },{
  805. layout:'column',
  806. columnWidth:1,
  807. xtype:'form',
  808. frame:true,
  809. id:'panel2',
  810. bodyStyle:'border:1px solid #CDC5BF;background-color:#f0f0f0',
  811. bodyBorder:true,
  812. border:true,
  813. columnWidth:1,
  814. title:'生产交期评估',
  815. bodyPadding: 5,
  816. items:[{ xtype : 'textfield', logic:'ignore',columnWidth:0.20, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'产能(组装)',maxLength:100,name:'tf_26',id:'tf_26' },
  817. { xtype : 'label', logic:'ignore',columnWidth:0.05, text:'(K/天)'},
  818. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'SMT时间',maxLength:100,name:'tf_27',id:'tf_27' },
  819. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'后焊时间',maxLength:100,name:'tf_28',id:'tf_28' },
  820. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'前加工时间',maxLength:100,name:'tf_29',id:'tf_29' },
  821. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'组装时间',maxLength:100 ,name:'tf_30',id:'tf_30'},
  822. { xtype : 'textfield',logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'包装时间',maxLength:100 ,name:'tf_31',id:'tf_31'},
  823. { xtype : 'textfield', logic:'ignore',columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'可验货时间',maxLength:100 ,name:'tf_32',id:'tf_32'},
  824. {
  825. xtype : 'radiogroup',
  826. name : 'rg_4',
  827. id : 'rg_4',
  828. logic:'ignore',
  829. columnWidth:0.4,
  830. fieldLabel:'评审',
  831. items: [
  832. { boxLabel:'通过',name:'rg_4',inputValue:'1'},
  833. { boxLabel:'不通过',name:'rg_4',inputValue:'2'},
  834. { boxLabel:'条件通过',name:'rg_4',inputValue:'3'}],
  835. listeners:{
  836. change: function(rg){
  837. var v = rg.getValue();
  838. if(v.rg_4 == '3'){
  839. if(Ext.getCmp('ta_4')&&Ext.getCmp('tf_4')){
  840. Ext.getCmp('ta_4').setReadOnly(false);
  841. Ext.getCmp('tf_4').setReadOnly(false);
  842. }
  843. }else {
  844. Ext.getCmp('ta_4').setReadOnly(true);
  845. Ext.getCmp('tf_4').setReadOnly(true);
  846. }
  847. }
  848. }
  849. },
  850. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_4',id:'tf_4' },
  851. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_4',id:'ta_4'}
  852. ]
  853. }
  854. ]
  855. },
  856. {
  857. xtype:'fieldset',
  858. title:'<h2>采购</h2>',
  859. columnWidth:1,
  860. collapsible: true,
  861. frame:false,
  862. group:2,
  863. groupName:'评审状态',
  864. items:[
  865. {
  866. layout:'column',
  867. style: {background:'#FFFAFA'},
  868. items:[ {
  869. xtype : 'radiogroup',
  870. name : 'rg_5',
  871. id : 'rg_5',
  872. logic:'ignore',
  873. columnWidth:0.4,
  874. fieldLabel:'物料供应评估',
  875. items: [
  876. { boxLabel:'通过',name:'rg_5',inputValue:'1'},
  877. { boxLabel:'不通过',name:'rg_5',inputValue:'2'},
  878. { boxLabel:'条件通过',name:'rg_5',inputValue:'3'}],
  879. listeners:{
  880. change: function(rg){
  881. var v = rg.getValue();
  882. if(v.rg_5 == '3'){
  883. if(Ext.getCmp('ta_5')&&Ext.getCmp('tf_5')){
  884. Ext.getCmp('ta_5').setReadOnly(false);
  885. Ext.getCmp('tf_5').setReadOnly(false);
  886. }
  887. }else {
  888. Ext.getCmp('ta_5').setReadOnly(true);
  889. Ext.getCmp('tf_5').setReadOnly(true);
  890. }
  891. }
  892. }
  893. },
  894. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_5',id:'tf_5' },
  895. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_5',id:'ta_5'}]
  896. }
  897. ]
  898. },
  899. {
  900. xtype:'fieldset',
  901. title:'<h2>生产</h2>',
  902. columnWidth:1,
  903. collapsible: true,
  904. frame:false,
  905. group:2,
  906. groupName:'评审状态',
  907. items:[
  908. {
  909. layout:'column',
  910. style: {background:'#FFFAFA'},
  911. items:[ {
  912. xtype : 'radiogroup',
  913. name : 'rg_6',
  914. id : 'rg_6',
  915. logic:'ignore',
  916. columnWidth:0.4,
  917. fieldLabel:'人员准备',
  918. items: [
  919. { boxLabel:'通过',name:'rg_6',inputValue:'1'},
  920. { boxLabel:'不通过',name:'rg_6',inputValue:'2'},
  921. { boxLabel:'条件通过',name:'rg_6',inputValue:'3'}],
  922. listeners:{
  923. change: function(rg){
  924. var v = rg.getValue();
  925. if(v.rg_6 == '3'){
  926. if(Ext.getCmp('ta_6')&&Ext.getCmp('tf_6')){
  927. Ext.getCmp('ta_6').setReadOnly(false);
  928. Ext.getCmp('tf_6').setReadOnly(false);
  929. }
  930. }else {
  931. Ext.getCmp('ta_6').setReadOnly(true);
  932. Ext.getCmp('tf_6').setReadOnly(true);
  933. }
  934. }
  935. }
  936. },
  937. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_6',id:'tf_6' },
  938. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_6',id:'ta_6'}]
  939. },{
  940. layout:'column',
  941. items:[ {
  942. xtype : 'radiogroup',
  943. name : 'rg_7',
  944. id : 'rg_7',
  945. logic:'ignore',
  946. columnWidth:0.4,
  947. fieldStyle: "background:#FFFAFA;color:#515151;",
  948. fieldLabel:'产品培训',
  949. items: [
  950. { boxLabel:'通过',name:'rg_7',inputValue:'1'},
  951. { boxLabel:'不通过',name:'rg_7',inputValue:'2'},
  952. { boxLabel:'条件通过',name:'rg_7',inputValue:'3'}],
  953. listeners:{
  954. change: function(rg){
  955. var v = rg.getValue();
  956. if(v.rg_7 == '3'){
  957. if(Ext.getCmp('ta_7')&&Ext.getCmp('tf_7')){
  958. Ext.getCmp('ta_7').setReadOnly(false);
  959. Ext.getCmp('tf_7').setReadOnly(false);
  960. }
  961. }else {
  962. Ext.getCmp('ta_7').setReadOnly(true);
  963. Ext.getCmp('tf_7').setReadOnly(true);
  964. }
  965. }
  966. }
  967. },
  968. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_7',id:'tf_7' },
  969. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_7',id:'ta_7'}]
  970. },{
  971. layout:'column',
  972. items:[ {
  973. xtype : 'radiogroup',
  974. name : 'rg_8',
  975. id : 'rg_8',
  976. logic:'ignore',
  977. columnWidth:0.4,
  978. fieldStyle: "background:#FFFAFA;color:#515151;",
  979. fieldLabel:'产能预估',
  980. items: [
  981. { boxLabel:'通过',name:'rg_8',inputValue:'1'},
  982. { boxLabel:'不通过',name:'rg_8',inputValue:'2'},
  983. { boxLabel:'条件通过',name:'rg_8',inputValue:'3'}],
  984. listeners:{
  985. change: function(rg){
  986. var v = rg.getValue();
  987. if(v.rg_8 == '3'){
  988. if(Ext.getCmp('ta_8')&&Ext.getCmp('tf_8')){
  989. Ext.getCmp('ta_8').setReadOnly(false);
  990. Ext.getCmp('tf_8').setReadOnly(false);
  991. }
  992. }else {
  993. Ext.getCmp('ta_8').setReadOnly(true);
  994. Ext.getCmp('tf_8').setReadOnly(true);
  995. }
  996. }
  997. }
  998. },
  999. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_8',id:'tf_8' },
  1000. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_8',id:'ta_8'}]
  1001. }
  1002. ]
  1003. },
  1004. {
  1005. xtype:'fieldset',
  1006. title:'<h2>配套中心</h2>',
  1007. columnWidth:1,
  1008. collapsible: true,
  1009. frame:false,
  1010. group:2,
  1011. groupName:'评审状态',
  1012. items:[
  1013. {
  1014. layout:'column',
  1015. style: {background:'#FFFAFA'},
  1016. items:[ {
  1017. xtype : 'radiogroup',
  1018. name : 'rg_9',
  1019. id : 'rg_9',
  1020. logic:'ignore',
  1021. columnWidth:0.4,
  1022. fieldLabel:'已量产',
  1023. items: [
  1024. { boxLabel:'通过',name:'rg_9',inputValue:'1'},
  1025. { boxLabel:'不通过',name:'rg_9',inputValue:'2'},
  1026. { boxLabel:'条件通过',name:'rg_9',inputValue:'3'}],
  1027. listeners:{
  1028. change: function(rg){
  1029. var v = rg.getValue();
  1030. if(v.rg_9 == '3'){
  1031. if(Ext.getCmp('ta_9')&&Ext.getCmp('tf_9')){
  1032. Ext.getCmp('ta_9').setReadOnly(false);
  1033. Ext.getCmp('tf_9').setReadOnly(false);
  1034. }
  1035. }else {
  1036. Ext.getCmp('ta_9').setReadOnly(true);
  1037. Ext.getCmp('tf_9').setReadOnly(true);
  1038. }
  1039. }
  1040. }
  1041. },
  1042. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_9',id:'tf_9' },
  1043. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_9',id:'ta_9'}]
  1044. },{
  1045. layout:'column',
  1046. items:[ {
  1047. xtype : 'radiogroup',
  1048. name : 'rg_10',
  1049. id : 'rg_10',
  1050. logic:'ignore',
  1051. columnWidth:0.4,
  1052. fieldStyle: "background:#FFFAFA;color:#515151;",
  1053. fieldLabel:'模具产能',
  1054. items: [
  1055. { boxLabel:'通过',name:'rg_10',inputValue:'1'},
  1056. { boxLabel:'不通过',name:'rg_10',inputValue:'2'},
  1057. { boxLabel:'条件通过',name:'rg_10',inputValue:'3'}],
  1058. listeners:{
  1059. change: function(rg){
  1060. var v = rg.getValue();
  1061. if(v.rg_10 == '3'){
  1062. if(Ext.getCmp('ta_10')&&Ext.getCmp('tf_10')){
  1063. Ext.getCmp('ta_10').setReadOnly(false);
  1064. Ext.getCmp('tf_10').setReadOnly(false);
  1065. }
  1066. }else {
  1067. Ext.getCmp('ta_10').setReadOnly(true);
  1068. Ext.getCmp('tf_10').setReadOnly(true);
  1069. }
  1070. }
  1071. }
  1072. },
  1073. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_10',id:'tf_10' },
  1074. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_10',id:'ta_10'}]
  1075. }
  1076. ]
  1077. },
  1078. {
  1079. xtype:'fieldset',
  1080. title:'<h2>工程部</h2>',
  1081. columnWidth:1,
  1082. collapsible: true,
  1083. frame:false,
  1084. group:2,
  1085. groupName:'评审状态',
  1086. items:[
  1087. {
  1088. layout:'column',
  1089. style: {background:'#FFFAFA'},
  1090. items:[ {
  1091. xtype : 'radiogroup',
  1092. name : 'rg_11',
  1093. id : 'rg_11',
  1094. logic:'ignore',
  1095. columnWidth:0.4,
  1096. // fieldStyle: "background:#FFFAFA;color:#515151;",
  1097. fieldLabel:'已完成PP',
  1098. items: [
  1099. { boxLabel:'通过',name:'rg_11',inputValue:'1'},
  1100. { boxLabel:'不通过',name:'rg_11',inputValue:'2'},
  1101. { boxLabel:'条件通过',name:'rg_11',inputValue:'3'}],
  1102. listeners:{
  1103. change: function(rg){
  1104. var v = rg.getValue();
  1105. if(v.rg_11 == '3'){
  1106. if(Ext.getCmp('ta_11')&&Ext.getCmp('tf_11')){
  1107. Ext.getCmp('ta_11').setReadOnly(false);
  1108. Ext.getCmp('tf_11').setReadOnly(false);
  1109. }
  1110. }else {
  1111. Ext.getCmp('ta_11').setReadOnly(true);
  1112. Ext.getCmp('tf_11').setReadOnly(true);
  1113. }
  1114. }
  1115. }
  1116. },
  1117. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_11',id:'tf_11' },
  1118. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_11',id:'ta_11'}]
  1119. },{
  1120. layout:'column',
  1121. items:[ {
  1122. xtype : 'radiogroup',
  1123. name : 'rg_12',
  1124. id : 'rg_12',
  1125. logic:'ignore',
  1126. columnWidth:0.4,
  1127. fieldStyle: "background:#FFFAFA;color:#515151;",
  1128. fieldLabel:'具备量产性',
  1129. items: [
  1130. { boxLabel:'通过',name:'rg_12',inputValue:'1'},
  1131. { boxLabel:'不通过',name:'rg_12',inputValue:'2'},
  1132. { boxLabel:'条件通过',name:'rg_12',inputValue:'3'}],
  1133. listeners:{
  1134. change: function(rg){
  1135. var v = rg.getValue();
  1136. if(v.rg_12 == '3'){
  1137. if(Ext.getCmp('ta_12')&&Ext.getCmp('tf_12')){
  1138. Ext.getCmp('ta_12').setReadOnly(false);
  1139. Ext.getCmp('tf_12').setReadOnly(false);
  1140. }
  1141. }else {
  1142. Ext.getCmp('ta_12').setReadOnly(true);
  1143. Ext.getCmp('tf_12').setReadOnly(true);
  1144. }
  1145. }
  1146. }
  1147. },
  1148. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_12',id:'tf_12' },
  1149. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_12',id:'ta_12'}]
  1150. },{
  1151. layout:'column',
  1152. items:[ {
  1153. xtype : 'radiogroup',
  1154. name : 'rg_13',
  1155. id : 'rg_13',
  1156. logic:'ignore',
  1157. columnWidth:0.4,
  1158. fieldStyle: "background:#FFFAFA;color:#515151;",
  1159. fieldLabel:'治具等已准备',
  1160. items: [
  1161. { boxLabel:'通过',name:'rg_13',inputValue:'1'},
  1162. { boxLabel:'不通过',name:'rg_13',inputValue:'2'},
  1163. { boxLabel:'条件通过',name:'rg_13',inputValue:'3'}],
  1164. listeners:{
  1165. change: function(rg){
  1166. var v = rg.getValue();
  1167. if(v.rg_13 == '3'){
  1168. if(Ext.getCmp('ta_13')&&Ext.getCmp('tf_13')){
  1169. Ext.getCmp('ta_13').setReadOnly(false);
  1170. Ext.getCmp('tf_13').setReadOnly(false);
  1171. }
  1172. }else {
  1173. Ext.getCmp('ta_13').setReadOnly(true);
  1174. Ext.getCmp('tf_13').setReadOnly(true);
  1175. }
  1176. }
  1177. }
  1178. },
  1179. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_13',id:'tf_13' },
  1180. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_13',id:'ta_13'}]
  1181. }
  1182. ]
  1183. },{
  1184. xtype:'fieldset',
  1185. title:'<h2>法务</h2>',
  1186. columnWidth:1,
  1187. collapsible: true,
  1188. frame:false,
  1189. group:2,
  1190. groupName:'评审状态',
  1191. items:[
  1192. {
  1193. layout:'column',
  1194. style: {background:'#FFFAFA'},
  1195. items:[ {
  1196. xtype : 'radiogroup',
  1197. name : 'rg_14',
  1198. id : 'rg_14',
  1199. logic:'ignore',
  1200. columnWidth:0.4,
  1201. fieldLabel:'订单合同',
  1202. items: [
  1203. { boxLabel:'通过',name:'rg_14',inputValue:'1'},
  1204. { boxLabel:'不通过',name:'rg_14',inputValue:'2'},
  1205. { boxLabel:'条件通过',name:'rg_14',inputValue:'3'}],
  1206. listeners:{
  1207. change: function(rg){
  1208. var v = rg.getValue();
  1209. if(v.rg_14 == '3'){
  1210. if(Ext.getCmp('ta_14')&&Ext.getCmp('tf_14')){
  1211. Ext.getCmp('ta_14').setReadOnly(false);
  1212. Ext.getCmp('tf_14').setReadOnly(false);
  1213. }
  1214. }else {
  1215. Ext.getCmp('ta_14').setReadOnly(true);
  1216. Ext.getCmp('tf_14').setReadOnly(true);
  1217. }
  1218. }
  1219. }
  1220. },
  1221. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_14',id:'tf_14' },
  1222. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_14',id:'ta_14'}]
  1223. }
  1224. ]
  1225. },{
  1226. xtype:'fieldset',
  1227. title:'<h2>质量部</h2>',
  1228. columnWidth:1,
  1229. collapsible: true,
  1230. frame:false,
  1231. group:2,
  1232. groupName:'评审状态',
  1233. items:[
  1234. {
  1235. layout:'column',
  1236. style: {background:'#FFFAFA'},
  1237. items:[ {
  1238. xtype : 'radiogroup',
  1239. name : 'rg_15',
  1240. id : 'rg_15',
  1241. logic:'ignore',
  1242. columnWidth:0.4,
  1243. fieldLabel:'产品标准是否明确',
  1244. items: [
  1245. { boxLabel:'通过',name:'rg_15',inputValue:'1'},
  1246. { boxLabel:'不通过',name:'rg_15',inputValue:'2'},
  1247. { boxLabel:'条件通过',name:'rg_15',inputValue:'3'}],
  1248. listeners:{
  1249. change: function(rg){
  1250. var v = rg.getValue();
  1251. if(v.rg_15 == '3'){
  1252. if(Ext.getCmp('ta_15')&&Ext.getCmp('tf_15')){
  1253. Ext.getCmp('ta_15').setReadOnly(false);
  1254. Ext.getCmp('tf_15').setReadOnly(false);
  1255. }
  1256. }else {
  1257. Ext.getCmp('ta_15').setReadOnly(true);
  1258. Ext.getCmp('tf_15').setReadOnly(true);
  1259. }
  1260. }
  1261. }
  1262. },
  1263. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_15',id:'tf_15' },
  1264. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_15',id:'ta_15'}]
  1265. },
  1266. {
  1267. layout:'column',
  1268. style: {background:'#FFFAFA'},
  1269. items:[ {
  1270. xtype : 'radiogroup',
  1271. name : 'rg_40',
  1272. id : 'rg_40',
  1273. logic:'ignore',
  1274. name:'nongroup',
  1275. columnWidth:0.4,
  1276. fieldLabel:'满足环保要求',
  1277. items: [
  1278. { boxLabel:'通过',name:'rg_40',inputValue:'1'},
  1279. { boxLabel:'不通过',name:'rg_40',inputValue:'2'},
  1280. { boxLabel:'条件通过',name:'rg_40',inputValue:'3'}],
  1281. listeners:{
  1282. change: function(rg){
  1283. var v = rg.getValue();
  1284. if(v.rg_40 == '3'){
  1285. if(Ext.getCmp('ta_40')&&Ext.getCmp('tf_15')){
  1286. Ext.getCmp('ta_40').setReadOnly(false);
  1287. Ext.getCmp('tf_40').setReadOnly(false);
  1288. }
  1289. }else {
  1290. Ext.getCmp('ta_40').setReadOnly(true);
  1291. Ext.getCmp('tf_40').setReadOnly(true);
  1292. }
  1293. }
  1294. }
  1295. },
  1296. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_40',id:'tf_40' },
  1297. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_40',id:'ta_40'}]
  1298. }
  1299. ]
  1300. },{
  1301. xtype:'fieldset',
  1302. title:'<h2>财务部</h2>',
  1303. columnWidth:1,
  1304. collapsible: true,
  1305. frame:false,
  1306. group:2,
  1307. groupName:'评审状态',
  1308. items:[
  1309. {
  1310. layout:'column',
  1311. style: {background:'#FFFAFA'},
  1312. items:[ {
  1313. xtype : 'radiogroup',
  1314. name : 'rg_16',
  1315. id : 'rg_16',
  1316. logic:'ignore',
  1317. columnWidth:0.4,
  1318. fieldLabel:'价格',
  1319. items: [
  1320. { boxLabel:'通过',name:'rg_16',inputValue:'1'},
  1321. { boxLabel:'不通过',name:'rg_16',inputValue:'2'},
  1322. { boxLabel:'条件通过',name:'rg_16',inputValue:'3'}],
  1323. listeners:{
  1324. change: function(rg){
  1325. var v = rg.getValue();
  1326. if(v.rg_16 == '3'){
  1327. if(Ext.getCmp('ta_16')&&Ext.getCmp('tf_16')){
  1328. Ext.getCmp('ta_16').setReadOnly(false);
  1329. Ext.getCmp('tf_16').setReadOnly(false);
  1330. }
  1331. }else {
  1332. Ext.getCmp('ta_16').setReadOnly(true);
  1333. Ext.getCmp('tf_16').setReadOnly(true);
  1334. }
  1335. }
  1336. }
  1337. },
  1338. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_16',id:'tf_16' },
  1339. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_16',id:'ta_16'}]
  1340. }, {
  1341. layout:'column',
  1342. style: {background:'#FFFAFA'},
  1343. items:[ {
  1344. xtype : 'radiogroup',
  1345. name : 'rg_17',
  1346. id : 'rg_17',
  1347. logic:'ignore',
  1348. columnWidth:0.4,
  1349. fieldLabel:'付款方式',
  1350. items: [
  1351. { boxLabel:'通过',name:'rg_17',inputValue:'1'},
  1352. { boxLabel:'不通过',name:'rg_17',inputValue:'2'},
  1353. { boxLabel:'条件通过',name:'rg_17',inputValue:'3'}],
  1354. listeners:{
  1355. change: function(rg){
  1356. var v = rg.getValue();
  1357. if(v.rg_17 == '3'){
  1358. if(Ext.getCmp('ta_17')&&Ext.getCmp('tf_17')){
  1359. Ext.getCmp('ta_17').setReadOnly(false);
  1360. Ext.getCmp('tf_17').setReadOnly(false);
  1361. }
  1362. }else {
  1363. Ext.getCmp('ta_17').setReadOnly(true);
  1364. Ext.getCmp('tf_17').setReadOnly(true);
  1365. }
  1366. }
  1367. }
  1368. },
  1369. { xtype : 'datefield',logic:'ignore', columnWidth:0.25, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'完成时间',maxLength:100,name:'tf_17',id:'tf_17' },
  1370. { xtype : 'textareafield', logic:'ignore',columnWidth:0.75, fieldStyle: "background:#FFFAFA;color:#515151;", fieldLabel:'条件说明',maxLength:1000,name: 'ta_17',id:'ta_17'}]
  1371. }
  1372. ]
  1373. },{
  1374. xtype:'fieldset',
  1375. title:'<h2>总经理</h2>',
  1376. columnWidth:1,
  1377. collapsible: true,
  1378. frame:false,
  1379. // name:'psgroup',
  1380. group:2,
  1381. groupName:'评审状态',
  1382. items:[
  1383. {
  1384. layout:'column',
  1385. style: {background:'#FFFAFA'},
  1386. items:[ {
  1387. xtype : 'radiogroup',
  1388. name : 'rg_18',
  1389. id : 'rg_18',
  1390. logic:'ignore',
  1391. columnWidth:0.4,
  1392. fieldLabel:'评审',
  1393. items: [
  1394. { boxLabel:'通过',name:'rg_18',inputValue:'1'},
  1395. { boxLabel:'不通过',name:'rg_18',inputValue:'2'}]
  1396. }]
  1397. }
  1398. ]
  1399. }
  1400. ];
  1401. return returnItems;
  1402. }
  1403. });