123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457 |
- define(function (require) {
- return function (context) {
- var $dlg, $form, $s1, $s2;
- //
- function queryGrid1() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "男"
- },{
- "id": 2,
- "text": "女"
- });
- return _datas2;
- }
- function queryGrid3() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无"
- },{
- "id": 1,
- "text": "确诊"
- },{
- "id": 2,
- "text": "疑似"
- },{
- "id": 3,
- "text": "有接触史"
- },{
- "id": 4,
- "text": "解除隔离"
- })
- return _datas2;
- }
- function queryGrid4() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无咳嗽"
- },{
- "id": 1,
- "text": "偶有短暂咳嗽"
- },{
- "id": 2,
- "text": "咳嗽轻度影响生活"
- },{
- "id": 3,
- "text": "咳嗽严重影响生活"
- })
- return _datas2;
- }
- function queryGrid5() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无"
- },{
- "id": 1,
- "text": "按压有"
- },{
- "id": 2,
- "text": "偶尔"
- },{
- "id": 3,
- "text": "持续有"
- })
- return _datas2;
- }
- function queryGrid6() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无"
- },{
- "id": 1,
- "text": "急走或上坡气短"
- },{
- "id": 2,
- "text": "气短而走路变慢"
- },{
- "id": 3,
- "text": "走路数分钟后气短"
- },{
- "id": 4,
- "text": "气短无法离开房间"
- })
- return _datas2;
- }
- function queryGrid7() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无"
- },{
- "id": 1,
- "text": "体力劳动后不能恢复"
- },{
- "id": 2,
- "text": "轻体力活非常累"
- },{
- "id": 3,
- "text": "不能正常生活"
- })
- return _datas2;
- }
- function queryGrid8() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "无"
- },{
- "id": 1,
- "text": "轻度腹泻少于于3次"
- },{
- "id": 2,
- "text": "中度腹泻4-6次"
- },{
- "id": 3,
- "text": "重度腹泻超过6次"
- })
- return _datas2;
- }
- function queryGrid9() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "武汉市"
- },{
- "id": 2,
- "text": "宜昌市"
- },{
- "id": 3,
- "text": "当阳市"
- },{
- "id": 4,
- "text": "其它地点"
- })
- return _datas2;
- }
- function queryGrid10() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "武汉市"
- },{
- "id": 2,
- "text": "宜昌市"
- },{
- "id": 3,
- "text": "当阳市"
- },{
- "id": 4,
- "text": "其它地点"
- })
- return _datas2;
- }
- function queryGrid11() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "武汉市"
- },{
- "id": 2,
- "text": "宜昌市"
- },{
- "id": 3,
- "text": "当阳市"
- },{
- "id": 4,
- "text": "其它地点"
- })
- return _datas2;
- }
- function queryGrid12() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "武汉市"
- },{
- "id": 2,
- "text": "宜昌市"
- },{
- "id": 3,
- "text": "当阳市"
- },{
- "id": 4,
- "text": "其它地点"
- })
- return _datas2;
- }
- function queryGrid13() {
- var _datas2 = [];
- _datas2.push({
- "id": 0,
- "text": "否"
- },{
- "id": 1,
- "text": "是"
- })
- return _datas2;
- }
- function queryGrid14() {
- var _datas2 = [];
- _datas2.push({
- "id": 1,
- "text": "长途汽车"
- },{
- "id": 2,
- "text": "火车"
- },{
- "id": 3,
- "text": "飞机"
- })
- return _datas2;
- }
- return {
- xtype: 'dialog',
- dialogId: 'dialogOutsideXzId',
- title:'修改',
- width: 420,
- height: 460,
- onOpen: function () {
- $dlg = $(this);
- },
- center: {
- items: {
- xtype: 'formgroup',
- //字数过多加上后可让字显示出来
- subLabelWidth: '100',
- subControlWidth: '200',
- onRender: function () {
- $form = $(this);
- },
- items: [
- [
- [{
- name: 'suspectedId',
- label: '疑似id',
- labelWidth: 150, required: true,
- width: 350,
- xtype: "hidden",
- value: context.row.suspectedId,
- },
- {
- name: 'userName',
- label: '姓名',
- labelWidth: 150,
- width: 350,
- required: true,
- value: context.row.userName
- },
- {
- name: 'grender',
- label: '性别',
- labelWidth: 150,
- width: 350,
- required: true,
- data: queryGrid1(),
- xtype: 'yvselect',
- value:context.row.grender
- },
- {
- name: 'age',
- label: '岁数',
- labelWidth: 150,
- required: true,
- width: 350,
- value: context.row.age
- }],
- [{
- name: 'familyStatus',
- label: '基本情况',
- labelWidth: 150,
- width: 350, required: true,
- value: context.row.familyStatus,
- }],
- [{
- label: '新冠肺炎',
- name: 'medical',
- labelWidth: 150,
- width: 350,
- xtype: 'yvselect',
- required: true,
- data: queryGrid3(),
- value:context.row.medical
- },
- {
- name: 'temperature',
- label: "体温",
- labelWidth: 150,
- width: 350,required: true,
- data: queryGrid3(),
- value:context.row.temperature
- }],
- [{
- name: 'cough',
- label: "咳嗽现象",
- xtype: 'yvselect',
- labelWidth: 150, required: true,
- data: queryGrid4(),
- width: 350,
- value:context.row.cough
- }],
- [{
- name: 'muscle',
- label: '肌肉酸疼',
- labelWidth: 150,
- width: 350,
- maxlength: 10,
- xtype: 'yvselect', required: true,
- data: queryGrid5(),
- value:context.row.muscle
- }],
- [{
- name: 'dyspnea',
- label: '呼吸困难', labelWidth: 150,width: 350,
- xtype: 'yvselect',
- data: queryGrid6(),
- required: true, value:context.row.dyspnea,
- }],
- [{
- name: 'fatigue',
- label: '乏力现象',
- xtype: 'yvselect',
- data: queryGrid7(),
- labelWidth: 150, width: 350, required: true,
- value:context.row.fatigue
- }],
- [{
- name: 'diarrhea',
- label: '腹泻现象',
- xtype: 'yvselect',
- data: queryGrid8(),
- labelWidth: 150, width: 350, required: true,
- value:context.row.diarrhea
- }],
- [{
- name: 'others',
- label: '其它描述', labelWidth: 150, width: 350, height: '70px',
- required: true, value:context.row.others,
- maxlength: 200, validType: 'isBlank'
- }],
- [{
- name: 'workLocal',
- label: '工作驻地', labelWidth: 150, width: 350, xtype: 'yvselect',
- data: queryGrid9(),
- required: true, value:context.row.workLocal,
- }],
- [{
- name: 'workLocalOther',
- label: '工作驻地', labelWidth: 150, width: 350,
- value:context.row.workLocalOther,
- }],
- [{
- name: 'todayLocal',
- label: '今晚驻地', labelWidth: 150, width: 350,
- required: true, value:context.row.todayLocal,xtype: 'yvselect',
- data: queryGrid10(),
- }],
- [{
- name: 'todayLocalOther',
- label: '今晚驻地', labelWidth: 150, width: 350,
- value:context.row.todayLocalOther,
- }],
- [{
- name: 'isTrip',
- label: '是否出行', labelWidth: 150, width: 350,
- required: true, value:context.row.isTrip,xtype: 'yvselect',
- data: queryGrid13(),
- }],
- [{
- name: 'startLocal',
- label: '出发地', labelWidth: 150, width: 350,
- value:context.row.startLocal,xtype: 'yvselect',
- data: queryGrid11(),
- }],
- [{
- name: 'startLocalOther',
- label: '出发地', labelWidth: 150, width: 350,
- value:context.row.startLocalOther,
- }],
- [{
- name: 'endLocal',
- label: '目的地', labelWidth: 150, width: 350,
- value:context.row.endLocal,xtype: 'yvselect',
- data: queryGrid12(),
- }],
- [{
- name: 'endLocalOther',
- label: '目的地', labelWidth: 150, width: 350,
- value:context.row.endLocalOther
- }],
- [{
- name: 'tripType',
- label: '出行方式', labelWidth: 150, width: 350,
- value:context.row.tripType,xtype: 'yvselect',
- data: queryGrid14(),
- }],
- [{
- name: 'tripTypeDesp',
- label: '车次/车牌号/航班', labelWidth: 150, width: 350,
- value:context.row.tripTypeDesp,
- }],
- ]
- ]
- }
- },
- buttons:
- [
- {
- text: "保存", iconCls: "fa fa-save", onClick: function () {
- $.yvan.postForm($form, {
- url: api('/home/addRibaoTripxq'),
- success: function () {
- $.yvan.msg('操作成功');
- $dlg.window('close');
- if ($.type(context.confirm) === 'function') {
- context.confirm();
- }
- }
- });
- }
- }, {
- text: "关闭", iconCls: "fa fa-times", onClick: function () {
- $dlg.dialog('close');
- if ($.type(context.confirm) === 'function') {
- context.confirm();
- }
- }
- }]
- }
- ;
- }
- ;
- }
- );
|