tplus-portaltouch 3.27.5 → 3.27.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dutyandsettle/dutysettlehistory.js +10 -38
- package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
- package/dist/components/header/themeModal.js +31 -2
- package/dist/components/header/themeModal.js.map +1 -1
- package/dist/pages/Portalbc/data.js +80 -17
- package/dist/pages/Portalbc/data.js.map +1 -1
- package/dist/pages/Portalbc/index.js +19 -12
- package/dist/pages/Portalbc/index.js.map +1 -1
- package/dist/pages/dutyandsettle/offDuty.js +49 -76
- package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ var _class; /*
|
|
|
39
39
|
* @Author: chenlongad
|
|
40
40
|
* @Date: 2021-05-12 14:40:27
|
|
41
41
|
* @LastEditors: chenlongad
|
|
42
|
-
* @LastEditTime: 2021-
|
|
42
|
+
* @LastEditTime: 2021-11-15 11:13:39
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
/**打印 */
|
|
@@ -100,11 +100,11 @@ var _default = (0, _mobxReact.observer)(_class = function (_Component) {
|
|
|
100
100
|
_this.props.onAfterPrint && _this.props.onAfterPrint();
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
_this.onPrint = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
103
|
+
_this.onPrint = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
|
104
104
|
var id, curIndex, isShift;
|
|
105
|
-
return _regenerator2.default.wrap(function
|
|
105
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
106
106
|
while (1) {
|
|
107
|
-
switch (
|
|
107
|
+
switch (_context.prev = _context.next) {
|
|
108
108
|
case 0:
|
|
109
109
|
// 马坚 Add start
|
|
110
110
|
id = null;
|
|
@@ -117,52 +117,24 @@ var _default = (0, _mobxReact.observer)(_class = function (_Component) {
|
|
|
117
117
|
// 打印
|
|
118
118
|
|
|
119
119
|
console.log("打印开始:ID:" + id);
|
|
120
|
-
(0, _tplusComponentsTouch.printDispatch)(isShift ? _tplusComponentsTouch.DoNameList.DO_DUTY_PRINT : _tplusComponentsTouch.DoNameList.DO_DIALY_PRINT, id
|
|
121
|
-
electronPrint: function () {
|
|
122
|
-
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
|
123
|
-
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
124
|
-
while (1) {
|
|
125
|
-
switch (_context.prev = _context.next) {
|
|
126
|
-
case 0:
|
|
127
|
-
// 桌面端直接打印
|
|
128
|
-
console.log("桌面" + isShift + "历史打印后事件开始执行");
|
|
129
|
-
_context.next = 3;
|
|
130
|
-
return _PrintProcess.PrintProcess.execute(id, isShift);
|
|
131
|
-
|
|
132
|
-
case 3:
|
|
133
|
-
console.log("桌面" + isShift + "历史打印后事件执行结束");
|
|
134
|
-
_this.props.onAfterPrint && _this.props.onAfterPrint();
|
|
135
|
-
|
|
136
|
-
case 5:
|
|
137
|
-
case 'end':
|
|
138
|
-
return _context.stop();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}, _callee, _this2);
|
|
142
|
-
}));
|
|
143
|
-
|
|
144
|
-
return function electronPrint() {
|
|
145
|
-
return _ref2.apply(this, arguments);
|
|
146
|
-
};
|
|
147
|
-
}()
|
|
148
|
-
}).then(function () {
|
|
120
|
+
(0, _tplusComponentsTouch.printDispatch)(isShift ? _tplusComponentsTouch.DoNameList.DO_DUTY_PRINT : _tplusComponentsTouch.DoNameList.DO_DIALY_PRINT, id).then(function () {
|
|
149
121
|
_this.props.onAfterPrint && _this.props.onAfterPrint();
|
|
150
122
|
});
|
|
151
123
|
|
|
152
124
|
case 6:
|
|
153
125
|
case 'end':
|
|
154
|
-
return
|
|
126
|
+
return _context.stop();
|
|
155
127
|
}
|
|
156
128
|
}
|
|
157
|
-
},
|
|
129
|
+
}, _callee, _this2);
|
|
158
130
|
}));
|
|
159
131
|
|
|
160
132
|
_this.store = new _billHistoryStore2.default();
|
|
161
133
|
_this.state = { date: (0, _moment2.default)() };
|
|
162
134
|
|
|
163
|
-
var
|
|
164
|
-
isHorizontalPad =
|
|
165
|
-
isHorizontalSunMi =
|
|
135
|
+
var _ref2 = _mutantsUtil.platform || {},
|
|
136
|
+
isHorizontalPad = _ref2.isHorizontalPad,
|
|
137
|
+
isHorizontalSunMi = _ref2.isHorizontalSunMi;
|
|
166
138
|
|
|
167
139
|
_this.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
|
|
168
140
|
_this.isHorizontalPad = !!isHorizontalPad;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/components/dutyandsettle/dutysettlehistory.js"],"names":["observer","props","onChange","date","dataString","setTimeout","store","getVouchers","format","DateFormat","type","setState","onCancel","onAfterPrint","onPrint","id","curIndex","vouchers","ID","isShift","console","log","DoNameList","DO_DUTY_PRINT","DO_DIALY_PRINT","
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/components/dutyandsettle/dutysettlehistory.js"],"names":["observer","props","onChange","date","dataString","setTimeout","store","getVouchers","format","DateFormat","type","setState","onCancel","onAfterPrint","onPrint","id","curIndex","vouchers","ID","isShift","console","log","DoNameList","DO_DUTY_PRINT","DO_DIALY_PRINT","then","BillHistoryStore","state","platform","isHorizontalPad","isHorizontalSunMi","isMobileEnvironment","map","voucher","index","setCurIndex","Code","getVoucher","voucherInfo","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAA;;;;;;;;;AAkBA;;;AAVA;;;;AACA;;AACA;;AACA;;;;AACA;;;;AACA;;;;AACA;;AACA;;AACA;;;;AACA;;AAEA;;;;mBAECA,mB;;;AAEA,mBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AAAA,wIACZA,KADY;;AAA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,WAAKV,KAAL,CAAWU,QAAX,GAAoB,CAAC,CAArB,IAAyB,8BAAC,wBAAD,IAAgB,MAAM,KAAKf,KAAL,CAAWS,IAAjC,EAAuC,UAAU,IAAjD,EAAuD,MAAM,KAAKJ,KAAL,CAAW+B,UAAX,CAAsB,KAAK/B,KAAL,CAAWU,QAAjC,CAA7D,EAAyG,aAAa,KAAKV,KAAL,CAAWgC,WAAjI;AAF3B;AAXD,KADD;AAiBC;AAAA;AAAA,OAAK,WAAU,eAAf;AACC;AAAC,kBAAD;AAAA,QAAQ,SAAU,KAAK1B,QAAvB;AAAA;AAAA,MADD;AAEC;AAAC,kBAAD;AAAA,QAAQ,MAAK,SAAb,EAAuB,SAAS,KAAKE,OAArC;AAAA;AAAA;AAFD;AAjBD,IADA;AAuBA;;;EAlE2ByB,gB","file":"dutysettlehistory.js","sourcesContent":["/*\n * @Descripttion: \n * @version: \n * @Author: chenlongad\n * @Date: 2021-05-12 14:40:27\n * @LastEditors: chenlongad\n * @LastEditTime: 2021-11-15 11:13:39\n */\nimport React, { Component } from 'react';\nimport { DatePicker, Button } from 'antd';\nimport { observer } from 'mobx-react';\nimport moment from \"moment\";\nimport classnames from 'classnames'\nimport DutySettleBill from './dutysettlebill';\nimport { Ticon, printDispatch,DoNameList } from 'tplus-components-touch';\nimport { platform } from 'mutants-util';\nimport BillHistoryStore from '../../stores/billHistoryStore';\nimport { DateFormat2 as DateFormat } from '../../dutyService';\n/**打印 */\nimport { PrintProcess } from '../../utils/PrintProcess';\n\n@observer\nexport default class extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.store = new BillHistoryStore();\n\t\tthis.state = { date: moment() };\n\t\tconst { isHorizontalPad, isHorizontalSunMi } = platform || {};\n\t\tthis.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;\n\t\tthis.isHorizontalPad = !!isHorizontalPad;\n\t}\n\tcomponentDidMount(){\n\t\tthis.onChange(moment());\n\t}\n\tonChange = (date, dataString) => {\n\t\tsetTimeout(() => {\n\t\t\tthis.store.getVouchers(date && date.format ? date.format(DateFormat) : \"\", this.props.type);\n\t\t\tif(dataString) this.setState({ date: date })\n\t\t}, 100);\n\t}\n\n\tonCancel = ()=>{\n\t\tthis.props.onAfterPrint && this.props.onAfterPrint();\n\t}\n\n\tonPrint = async ()=>{\n\t\t// 马坚 Add start\n\t\tlet id=null;\n\t\tlet curIndex=this.store.curIndex;\n\t\tif (this.store.vouchers && curIndex>=0) {\n\t\t\tid=this.store.vouchers[curIndex].ID;\n\t\t}\n\t\tlet isShift= this.props.type=='offDuty';\n\t\t// 打印\n\t\tconsole.log(\"打印开始:ID:\"+id);\n\t\tprintDispatch(isShift ? DoNameList.DO_DUTY_PRINT : DoNameList.DO_DIALY_PRINT, id).then(() => {\n\t\t\tthis.props.onAfterPrint && this.props.onAfterPrint();\n\t\t});\n\t}\n\n\n\trender() {\n\t\tconst vouchers = (this.store.curIndex>-1?this.store.vouchers:[]).map((voucher,index)=>{\n\t\t\treturn <div className={classnames({'selected':index==this.store.curIndex})} key={index+''} onClick={()=>{this.store.setCurIndex(index)}}>{voucher.Code}</div>\n\t\t});\n\t\treturn (\n\t\t<div className=\"history\">\n\t\t\t<div className='historybody'>\n\t\t\t\t<div className=\"historyleft\">\n\t\t\t\t\t\t<div className=\"datepicker\">\n\t\t\t\t\t\t\t<DatePicker\n\t\t\t\t\t\t\t\tformat={DateFormat}\n\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t\tvalue={this.state.date}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"vouchers\">{vouchers}</div>\n\t\t\t\t</div>\n\t\t\t\t<div className=\"historyright\">\n\t\t\t\t\t{this.store.curIndex==-1 &&<div className={classnames({\"emptydata\":true, \"historyempty\":true})}>暂无数据</div>}\n\t\t\t\t\t{this.store.curIndex>-1 &&<DutySettleBill type={this.props.type} bhistory={true} bill={this.store.getVoucher(this.store.curIndex)} voucherInfo={this.store.voucherInfo} />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className='historyfooter'>\n\t\t\t\t<Button onClick={ this.onCancel } >取消</Button>\n\t\t\t\t<Button type='primary' onClick={this.onPrint}>打印</Button>\n\t\t\t</div>\n\t\t</div>);\n\t}\n}\n"]}
|
|
@@ -96,7 +96,36 @@ var ThemeModal = function (_Component) {
|
|
|
96
96
|
isPortal = _props.isPortal,
|
|
97
97
|
isVertical = _props.isVertical;
|
|
98
98
|
|
|
99
|
-
return _react2.default.createElement(
|
|
99
|
+
return isVertical ? _react2.default.createElement(
|
|
100
|
+
_tplusComponentsTouch.ModalVertical,
|
|
101
|
+
{
|
|
102
|
+
title: '\u4E3B\u9898',
|
|
103
|
+
visible: visible,
|
|
104
|
+
cancel: this.cancel,
|
|
105
|
+
ok: this.ok,
|
|
106
|
+
closeButton: false,
|
|
107
|
+
modalType: 'big',
|
|
108
|
+
className: 'theme-modal big-modal vertical-theme',
|
|
109
|
+
destroyOnClose: false
|
|
110
|
+
},
|
|
111
|
+
_react2.default.createElement(
|
|
112
|
+
'div',
|
|
113
|
+
{ className: 'theme-body ' + (!isPortal ? 'pos-page' : '') },
|
|
114
|
+
this.themeImgs.map(function (item, index) {
|
|
115
|
+
return _react2.default.createElement(
|
|
116
|
+
'div',
|
|
117
|
+
{ key: index, className: item.className + ' ' + (_this2.state.theme === item.theme ? 'current-theme' : ''), onClick: function onClick() {
|
|
118
|
+
return _this2.toggleTheme(item.theme);
|
|
119
|
+
} },
|
|
120
|
+
_react2.default.createElement(
|
|
121
|
+
'span',
|
|
122
|
+
null,
|
|
123
|
+
item.name
|
|
124
|
+
)
|
|
125
|
+
);
|
|
126
|
+
})
|
|
127
|
+
)
|
|
128
|
+
) : _react2.default.createElement(
|
|
100
129
|
_tplusComponentsTouch.ModalWraper,
|
|
101
130
|
{
|
|
102
131
|
title: '\u4E3B\u9898',
|
|
@@ -105,7 +134,7 @@ var ThemeModal = function (_Component) {
|
|
|
105
134
|
ok: this.ok,
|
|
106
135
|
closeButton: false,
|
|
107
136
|
modalType: 'big',
|
|
108
|
-
className: 'theme-modal
|
|
137
|
+
className: 'theme-modal',
|
|
109
138
|
destroyOnClose: false
|
|
110
139
|
},
|
|
111
140
|
_react2.default.createElement(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/components/header/themeModal.js"],"names":["ThemeModal","props","context","toggleTheme","type","console","log","state","theme","document","body","classList","add","themeClass","remove","setState","stores","portalStore","themeChange","cancel","localTheme","localStorage","getItem","closeFn","ok","setItem","themeVisible","orange","blue","dark","pink","isVertical","themeImgs","className","name","visible","isPortal","map","item","index","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;IAEqBA,U;;;AAEjB,wBAAYC,KAAZ,EAAmBC,OAAnB,EAA4B;AAAA;;AAAA,kJAClBD,KADkB,EACXC,OADW;;AAAA,cAkB5BC,WAlB4B,GAkBd,UAACC,IAAD,EAAU;AACpBC,oBAAQC,GAAR,CAAY,SAAZ,EAAuB,MAAKC,KAAL,CAAWC,KAAlC;AACA,gBAAI,MAAKD,KAAL,CAAWC,KAAX,KAAqBJ,IAAzB,EAA+B;AAC/BK,qBAASC,IAAT,CAAcC,SAAd,CAAwBC,GAAxB,CAA4B,MAAKC,UAAL,CAAgBT,IAAhB,CAA5B;AACAK,qBAASC,IAAT,CAAcC,SAAd,CAAwBG,MAAxB,CAA+B,MAAKD,UAAL,CAAgB,MAAKN,KAAL,CAAWC,KAA3B,CAA/B;AACA,kBAAKO,QAAL,CAAc;AACVP,uBAAOJ;AADG,aAAd;AAGAY,mCAAOC,WAAP,CAAmBC,WAAnB,CAA+Bd,IAA/B;AACH,SA3B2B;;AAAA,cA4B5Be,MA5B4B,GA4BnB,YAAM;AACX,gBAAMC,aAAaC,aAAaC,OAAb,CAAqB,OAArB,CAAnB;AACA,kBAAKrB,KAAL,CAAWsB,OAAX,CAAmB,K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AAO,QAAxC,EAAkD0B,MAAM,KAAxD,EAAD,EAAiE,EAAED,WAAW,gBAAb,EAA+BzB,OAAO,MAAtC,EAA8C0B,MAAM,MAApD,EAAjE,EACX,EAAED,WAAW,gBAAb,EAA+BzB,OAAO,MAAtC,EAA8C0B,MAAM,MAApD,EADW,EACkD,EAAED,WAAW,gBAAb,EAA+BzB,OAAO,MAAtC,EAA8C0B,MAAM,MAApD,EADlD,CAAf;AAEH;AAfuB;AAgB3B;;;;iCA4BQ;AAAA;;AAAA,yBACqC,KAAKjC,KAD1C;AAAA,gBACGkC,OADH,UACGA,OADH;AAAA,gBACYC,QADZ,UACYA,QADZ;AAAA,gBACsBL,UADtB,UACsBA,UADtB;;AAEL,
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/components/header/themeModal.js"],"names":["ThemeModal","props","context","toggleTheme","type","console","log","state","theme","document","body","classList","add","themeClass","remove","setState","stores","portalStore","themeChange","cancel","localTheme","localStorage","getItem","closeFn","ok","setItem","themeVisible","orange","blue","dark","pink","isVertical","themeImgs","className","name","visible","isPortal","map","item","index","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;IAEqBA,U;;;AAEjB,wBAAYC,KAAZ,EAAmBC,OAAnB,EAA4B;AAAA;;AAAA,kJAClBD,KADkB,EACXC,OADW;;AAAA,cAkB5BC,WAlB4B,GAkBd,UAACC,IAAD,EAAU;AACpBC,oBAAQC,GAAR,CAAY,SAAZ,EAAuB,MAAKC,KAAL,CAAWC,KAAlC;AACA,gBAAI,MAAKD,KAAL,CAAWC,KAAX,KAAqBJ,IAAzB,EAA+B;AAC/BK,qBAASC,IAAT,CAAcC,SAAd,CAAwBC,GAAxB,CAA4B,MAAKC,UAAL,CAAgBT,IAAhB,CAA5B;AACAK,qBAASC,IAAT,CAAcC,SAAd,CAAwBG,MAAxB,CAA+B,MAAKD,UAAL,CAAgB,MAAKN,KAAL,CAAWC,KAA3B,CAA/B;AACA,kB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A,2CAAM,OAAKL,WAAL,CAAiBmC,KAAK9B,KAAtB,CAAN;AAAA,iCAApH;AACJ;AAAA;AAAA;AAAO8B,qCAAKJ;AAAZ;AADI,yBAAR;AAGH,qBAJA;AADL;AAVJ,aADA,GAqBA;AAAC,iDAAD;AAAA;AACI,2BAAM,cADV;AAEI,6BAASC,OAFb;AAGI,4BAAQ,KAAKhB,MAHjB;AAII,wBAAI,KAAKK,EAJb;AAKI,iCAAa,KALjB;AAMI,+BAAU,KANd;AAOI,4CAPJ;AAQI,oCAAgB;AARpB;AAUI;AAAA;AAAA,sBAAK,4BAAyB,CAACY,QAAD,GAAY,UAAZ,GAAyB,EAAlD,CAAL;AACK,yBAAKJ,SAAL,CAAeK,GAAf,CAAmB,UAACC,IAAD,EAAOC,KAAP,EAAe;AAC/B,+BAAQ;AAAA;AAAA,8BAAK,KAAKA,KAAV,EAAiB,WAAcD,KAAKL,SAAnB,UAAgC,OAAK1B,KAAL,CAAWC,KAAX,KAAqB8B,KAAK9B,KAA1B,GAAkC,eAAlC,GAAoD,EAApF,CAAjB,EAA2G,SAAS;AAAA,2CAAM,OAAKL,WAAL,CAAiBmC,KAAK9B,KAAtB,CAAN;AAAA,iCAApH;AACJ;AAAA;AAAA;AAAO8B,qCAAKJ;AAAZ;AADI,yBAAR;AAGH,qBAJA;AADL;AAVJ,aAtBJ;AAyCH;;;EAzFmCM,gB;;kBAAnBxC,U","file":"themeModal.js","sourcesContent":["import React, { Component } from 'react';\nimport { stores } from 'mutants-microfx';\nimport { ModalWraper, ModalVertical } from 'tplus-components-touch';\n\nexport default class ThemeModal extends Component {\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n themeVisible: false,\n theme: localStorage.getItem(\"theme\")\n };\n\n this.themeClass = {orange: 'theme-class', blue: 'blue-theme', dark: 'dark-blue-theme', pink: 'pink-theme'};\n\n if (props.isVertical){\n this.themeImgs=[{ className: 'self-orange self-img', theme: 'orange', name: '热力橙' },{ className: 'self-blue self-img', theme: 'blue', name: '智能科技' },\n { className: 'self-pink self-img', theme: 'pink', name: '浪漫樱花' },{ className: 'self-dark self-img', theme: 'dark', name: '商务简洁' }];\n } else {\n this.themeImgs=[{ className: 'pc-orange pc-img', theme: 'orange', name: '热力橙' },{ className: 'pc-blue pc-img', theme: 'blue', name: '智能科技' },\n { className: 'pc-pink pc-img', theme: 'pink', name: '浪漫樱花' },{ className: 'pc-dark pc-img', theme: 'dark', name: '商务简洁' }];\n }\n }\n\n toggleTheme = (type) => {\n console.log('切换主题333', this.state.theme);\n if (this.state.theme === type) return;\n document.body.classList.add(this.themeClass[type]);\n document.body.classList.remove(this.themeClass[this.state.theme]);\n this.setState({\n theme: type\n });\n stores.portalStore.themeChange(type);\n }\n cancel = () => {\n const localTheme = localStorage.getItem(\"theme\");\n this.props.closeFn(false);\n if (localTheme === this.state.theme) return;\n document.body.classList.add(this.themeClass[localTheme]);\n document.body.classList.remove(this.themeClass[this.state.theme]);\n this.setState({\n theme: localTheme\n });\n stores.portalStore.themeChange(localTheme);\n }\n ok = () => {\n localStorage.setItem(\"theme\", this.state.theme);\n this.props.closeFn(false);\n }\n\n render() {\n const { visible, isPortal, isVertical } = this.props;\n return (\n isVertical?\n <ModalVertical\n title=\"主题\"\n visible={visible}\n cancel={this.cancel}\n ok={this.ok}\n closeButton={false}\n modalType=\"big\"\n className={`theme-modal big-modal vertical-theme`}\n destroyOnClose={false}\n >\n <div className={`theme-body ${!isPortal ? 'pos-page' : ''}`}>\n {this.themeImgs.map((item, index)=>{\n return (<div key={index} className={`${item.className} ${this.state.theme === item.theme ? 'current-theme' : ''}`} onClick={() => this.toggleTheme(item.theme)}>\n <span>{item.name}</span>\n </div>)\n })}\n </div>\n\n </ModalVertical>\n :\n <ModalWraper\n title=\"主题\"\n visible={visible}\n cancel={this.cancel}\n ok={this.ok}\n closeButton={false}\n modalType=\"big\"\n className={`theme-modal`}\n destroyOnClose={false}\n >\n <div className={`theme-body ${!isPortal ? 'pos-page' : ''}`}>\n {this.themeImgs.map((item, index)=>{\n return (<div key={index} className={`${item.className} ${this.state.theme === item.theme ? 'current-theme' : ''}`} onClick={() => this.toggleTheme(item.theme)}>\n <span>{item.name}</span>\n </div>)\n })}\n </div>\n </ModalWraper>\n )\n }\n}"]}
|
|
@@ -410,13 +410,7 @@ var centerRightMenu = [{
|
|
|
410
410
|
container: { className: 'worktop-item-center-right-bottom' },
|
|
411
411
|
sub: [{ title: '硬件参数', icon: 'zhiPOS-shouye-yingjiancanshu', className: 'worktop-item-hardware light-white', key: 'portsetting', url: '/portsetting', Name: 'HardwareSetting' }, {
|
|
412
412
|
title: '更多', icon: 'gengduo1', className: 'worktop-item-more light-white', key: 'more', Name: 'More',
|
|
413
|
-
sub_tc: [
|
|
414
|
-
// { title: '预定单配送', icon: 'yudingdanpeisong', className: 'worktop-item-presaleorder light-white', key: 'PresaleOrder', tmenuCode: 'ST1034', Name: 'PresaleOrder', iframe: true, app: 'tc' },
|
|
415
|
-
// { title: '预定取货统计表', icon: 'yudingquhuotongjibiao', className: 'worktop-item-pickupstatistics light-white', key: 'PickupStatistics', tmenuCode: 'ST1034', Name: 'PickupStatistics', iframe: true, app: 'tc' },
|
|
416
|
-
// { title: '预定取货跟踪表', icon: 'yudingquhuogenzongbiao', className: 'worktop-item-pickuptrack light-white', key: 'PickupTrack', tmenuCode: 'ST1034', Name: 'PickupTrack', iframe: true, app: 'tc' },
|
|
417
|
-
{ title: '组装拆卸单', icon: 'zuzhuangchaixiedan', className: 'worktop-item-assemblyorder light-white', key: 'AssemblyOrder', tmenuCode: 'ST1034', Name: 'AssemblyOrder', iframe: true, app: 'tc' }, { title: '形态转换单', icon: 'xingtaizhuanhuandan', className: 'worktop-item-shapevoucher light-white', key: 'ShapeVoucher', tmenuCode: 'ST1033', Name: 'ShapeVoucher', iframe: true, app: 'tc' }],
|
|
418
|
-
sub_cc: [{
|
|
419
|
-
title: '预定单配送', icon: 'yudingdanpeisong', className: 'worktop-item-presaleorder light-white', key: 'PresaleOrder', Name: 'PresaleOrder', iframe: true, app: 'cc',
|
|
413
|
+
sub_tc: [{ title: '预订单配送', icon: 'yudingdanpeisong', className: 'worktop-item-presaleorder light-white', key: 'PresaleOrder', Name: 'PresaleOrder', iframe: true, app: 'cc',
|
|
420
414
|
style: {
|
|
421
415
|
content_only: true,
|
|
422
416
|
bar_bg: '#FFFFFF',
|
|
@@ -433,12 +427,11 @@ var centerRightMenu = [{
|
|
|
433
427
|
pageParams: {},
|
|
434
428
|
path: 'pre-sell',
|
|
435
429
|
tabId: 'pre-sell',
|
|
436
|
-
tabLabel: '
|
|
430
|
+
tabLabel: '预订单配送',
|
|
437
431
|
pageType: 'voucher',
|
|
438
432
|
_k: ''
|
|
439
433
|
}]
|
|
440
|
-
}, {
|
|
441
|
-
title: '预定取货统计表', icon: 'yudingquhuotongjibiao', className: 'worktop-item-pickupstatistics light-white', key: 'PickupStatistics', Name: 'PickupStatistics', iframe: true, app: 'cc',
|
|
434
|
+
}, { title: '预订取货统计表', icon: 'yudingquhuotongjibiao', className: 'worktop-item-pickupstatistics light-white', key: 'PickupStatistics', Name: 'PickupStatistics', iframe: true, app: 'cc',
|
|
442
435
|
style: {
|
|
443
436
|
content_only: true,
|
|
444
437
|
bar_bg: '#FFFFFF',
|
|
@@ -455,12 +448,11 @@ var centerRightMenu = [{
|
|
|
455
448
|
pageParams: {},
|
|
456
449
|
path: 'schedule-pickup-statistics-report',
|
|
457
450
|
tabId: 'schedule-pickup-statistics-report',
|
|
458
|
-
tabLabel: '
|
|
459
|
-
pageType: '
|
|
451
|
+
tabLabel: '预订取货统计表',
|
|
452
|
+
pageType: 'report',
|
|
460
453
|
_k: ''
|
|
461
454
|
}]
|
|
462
|
-
}, {
|
|
463
|
-
title: '预定取货跟踪表', icon: 'yudingquhuogenzongbiao', className: 'worktop-item-pickuptrack light-white', key: 'PickupTrack', Name: 'PickupTrack', iframe: true, app: 'cc',
|
|
455
|
+
}, { title: '预订取货跟踪表', icon: 'yudingquhuogenzongbiao', className: 'worktop-item-pickuptrack light-white', key: 'PickupTrack', Name: 'PickupTrack', iframe: true, app: 'cc',
|
|
464
456
|
style: {
|
|
465
457
|
content_only: true,
|
|
466
458
|
bar_bg: '#FFFFFF',
|
|
@@ -477,11 +469,82 @@ var centerRightMenu = [{
|
|
|
477
469
|
pageParams: {},
|
|
478
470
|
path: 'schedule-obtain-track-report',
|
|
479
471
|
tabId: 'schedule-obtain-track-report',
|
|
480
|
-
tabLabel: '
|
|
481
|
-
pageType: '
|
|
472
|
+
tabLabel: '预订取货跟踪表',
|
|
473
|
+
pageType: 'report',
|
|
482
474
|
_k: ''
|
|
483
475
|
}]
|
|
484
|
-
}, {
|
|
476
|
+
}, { title: '组装拆卸单', icon: 'zuzhuangchaixiedan', className: 'worktop-item-assemblyorder light-white', key: 'AssemblyOrder', tmenuCode: 'ST1034', Name: 'AssemblyOrder', iframe: true, app: 'tc' }, { title: '形态转换单', icon: 'xingtaizhuanhuandan', className: 'worktop-item-shapevoucher light-white', key: 'ShapeVoucher', tmenuCode: 'ST1033', Name: 'ShapeVoucher', iframe: true, app: 'tc' }],
|
|
477
|
+
sub_cc: [
|
|
478
|
+
// {
|
|
479
|
+
// title: '预订单配送', icon: 'yudingdanpeisong', className: 'worktop-item-presaleorder light-white', key: 'PresaleOrder', Name: 'PresaleOrder', iframe: true, app: 'cc',
|
|
480
|
+
// style:{
|
|
481
|
+
// content_only: true,
|
|
482
|
+
// bar_bg: '#FFFFFF',
|
|
483
|
+
// bar_active_bg: '#38D5B0'
|
|
484
|
+
// },
|
|
485
|
+
// search: [{
|
|
486
|
+
// menu: 'pre-sell',
|
|
487
|
+
// activePrompt: false,
|
|
488
|
+
// closePrompt: false,
|
|
489
|
+
// closeable: false,
|
|
490
|
+
// leavePrompt: false,
|
|
491
|
+
// lock: false,
|
|
492
|
+
// pageId: 'pre-sell',
|
|
493
|
+
// pageParams: { },
|
|
494
|
+
// path: 'pre-sell',
|
|
495
|
+
// tabId: 'pre-sell',
|
|
496
|
+
// tabLabel: '预订单配送',
|
|
497
|
+
// pageType: 'voucher',
|
|
498
|
+
// _k: ''
|
|
499
|
+
// }]
|
|
500
|
+
// },
|
|
501
|
+
// {
|
|
502
|
+
// title: '预订取货统计表', icon: 'yudingquhuotongjibiao', className: 'worktop-item-pickupstatistics light-white', key: 'PickupStatistics', Name: 'PickupStatistics', iframe: true, app: 'cc',
|
|
503
|
+
// style:{
|
|
504
|
+
// content_only: true,
|
|
505
|
+
// bar_bg: '#FFFFFF',
|
|
506
|
+
// bar_active_bg: '#38D5B0'
|
|
507
|
+
// },
|
|
508
|
+
// search: [{
|
|
509
|
+
// menu: 'schedule-pickup-statistics-report',
|
|
510
|
+
// activePrompt: false,
|
|
511
|
+
// closePrompt: false,
|
|
512
|
+
// closeable: false,
|
|
513
|
+
// leavePrompt: false,
|
|
514
|
+
// lock: false,
|
|
515
|
+
// pageId: 'schedule-pickup-statistics-report',
|
|
516
|
+
// pageParams: { },
|
|
517
|
+
// path: 'schedule-pickup-statistics-report',
|
|
518
|
+
// tabId: 'schedule-pickup-statistics-report',
|
|
519
|
+
// tabLabel: '预订取货统计表',
|
|
520
|
+
// pageType: 'voucher',
|
|
521
|
+
// _k: ''
|
|
522
|
+
// }]
|
|
523
|
+
// },
|
|
524
|
+
// {
|
|
525
|
+
// title: '预订取货跟踪表', icon: 'yudingquhuogenzongbiao', className: 'worktop-item-pickuptrack light-white', key: 'PickupTrack', Name: 'PickupTrack', iframe: true, app: 'cc',
|
|
526
|
+
// style:{
|
|
527
|
+
// content_only: true,
|
|
528
|
+
// bar_bg: '#FFFFFF',
|
|
529
|
+
// bar_active_bg: '#38D5B0'
|
|
530
|
+
// },
|
|
531
|
+
// search: [{
|
|
532
|
+
// menu: 'schedule-obtain-track-report',
|
|
533
|
+
// activePrompt: false,
|
|
534
|
+
// closePrompt: false,
|
|
535
|
+
// closeable: false,
|
|
536
|
+
// leavePrompt: false,
|
|
537
|
+
// lock: false,
|
|
538
|
+
// pageId: 'schedule-obtain-track-report',
|
|
539
|
+
// pageParams: { },
|
|
540
|
+
// path: 'schedule-obtain-track-report',
|
|
541
|
+
// tabId: 'schedule-obtain-track-report',
|
|
542
|
+
// tabLabel: '预订取货跟踪表',
|
|
543
|
+
// pageType: 'voucher',
|
|
544
|
+
// _k: ''
|
|
545
|
+
// }]
|
|
546
|
+
// },
|
|
547
|
+
{
|
|
485
548
|
title: '组装拆卸单', icon: 'zuzhuangchaixiedan', className: 'worktop-item-assemblyorder light-white', key: 'AssemblyOrder', Name: 'AssemblyOrder', iframe: true, app: 'cc',
|
|
486
549
|
style: {
|
|
487
550
|
content_only: true,
|