MaterialManualReplace.qml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. import QtQuick
  2. import QtQuick.Controls
  3. import QtQuick.Layouts
  4. // import com.InteractiveCore 1.0
  5. import com.InteractiveTask 1.0
  6. Item {
  7. id: materialmanualreplace
  8. x: 290
  9. y: 130
  10. width: 1600
  11. height: 920
  12. property bool takebackstat : false
  13. property bool opendoor : false
  14. property bool isHand : false;
  15. signal startReader();
  16. signal signal_openLock();
  17. signal signal_takebackstat(bool stat);
  18. onVisibleChanged:
  19. {
  20. if (visible)
  21. {
  22. proThread.moveCursorTo(0, 0);
  23. waitPromptBox.show();
  24. var taskType = InteractiveTask.TypeMaterialManualReplaceRefreshListModel;
  25. interactiveCore.appendTask(
  26. taskType, null, ()=>{
  27. if (materialreplace_modelMaterialManualReplace.count() === 0) {
  28. }
  29. waitPromptBox.hide();
  30. });
  31. }
  32. }
  33. Rectangle {
  34. id: materialmanualreplace_rect_autoreplace
  35. x: 0
  36. y: 823
  37. width: 300
  38. height: 75 // 减去顶部圆角矩形的高度
  39. color: "#00ffffff"
  40. visible: false
  41. Image {
  42. x: 0
  43. y: 0
  44. width: 75
  45. height: 75
  46. visible: true
  47. source: "qrc:/png/takeback.png"
  48. fillMode: Image.PreserveAspectFit
  49. }
  50. Text {
  51. x: 140
  52. y: 0
  53. width: 220
  54. height: 75
  55. visible: true
  56. text: "等待维修更换物资......"
  57. font.pixelSize: 30
  58. horizontalAlignment: Text.AlignHCenter
  59. verticalAlignment: Text.AlignVCenter
  60. color: "#ffffff"
  61. }
  62. }
  63. // 手动更换 开柜
  64. Button {
  65. id: materialmanualreplace_btn_head_openLock
  66. x: 928
  67. y: 835
  68. width: 192
  69. height: 75
  70. background: Rectangle {
  71. color: "#ff9900"
  72. radius: 10
  73. }
  74. text: qsTr("开柜")
  75. font.pixelSize: 30
  76. palette.buttonText: "white" // 设置字体颜色为绿色
  77. Connections {
  78. target: materialmanualreplace_btn_head_openLock
  79. onClicked: {
  80. materialmanualreplace_rect_autoreplace.visible = true;
  81. takebackstat = true;
  82. pConfig.mtakebackstat = true;
  83. pConfig.imaterworkstat = 1;
  84. signal_openLock();
  85. }
  86. }
  87. }
  88. // 手动更换 提交按钮
  89. Button {
  90. id: materialmanualreplace_btn_head_submit
  91. x: 1168
  92. y: 835
  93. width: 192
  94. height: 75
  95. background: Rectangle {
  96. color: "#ff0000"
  97. radius: 10
  98. }
  99. text: qsTr("提交")
  100. font.pixelSize: 30
  101. palette.buttonText: "white" // 设置字体颜色为绿色
  102. Connections {
  103. target: materialmanualreplace_btn_head_submit
  104. onClicked: {
  105. if (pConfig.sopenDoor)
  106. {
  107. infoPromptBox.title("提示");
  108. infoPromptBox.message("柜门打开时不允许提交");
  109. infoPromptBox.button_clear();
  110. infoPromptBox.button_push("#055eb3", "确定", null, null);
  111. infoPromptBox.show();
  112. }
  113. else
  114. {
  115. // materialmanualreplace_dialog_handsubmit_prompt.open();
  116. infoPromptBox.title("提示");
  117. infoPromptBox.message("确定要提交吗?");
  118. infoPromptBox.button_clear();
  119. infoPromptBox.button_push("red", "取消", null, null);
  120. infoPromptBox.button_push(
  121. "#055eb3", "确定", ()=>{
  122. // 如果点击确定按钮
  123. var taskType = InteractiveTask.TypeMaterialManualReplaceSubmit;
  124. interactiveCore.appendTask(
  125. taskType, null, (json)=>{
  126. var jsonObjRoot = JSON.parse(json);
  127. if (jsonObjRoot.code === 200)
  128. {
  129. infoPromptBox.title("提交成功");
  130. infoPromptBox.message("提交成功");
  131. infoPromptBox.button_clear();
  132. infoPromptBox.button_push(
  133. "#055eb3", "确定", ()=>{
  134. var taskType = InteractiveTask.TypeMaterialInfoListRefresh;
  135. interactiveCore.appendTask(
  136. taskType, "", ()=>{
  137. var taskType = InteractiveTask.TypeMaterialManualReplaceRefreshListModel;
  138. interactiveCore.appendTask(
  139. taskType, null, ()=>{
  140. materialmanualreplace_btn_head_return.clicked();
  141. });
  142. });
  143. }, null);
  144. infoPromptBox.show();
  145. }
  146. else
  147. {
  148. infoPromptBox.title("提交失败");
  149. infoPromptBox.message(jsonObjRoot.msg);
  150. infoPromptBox.button_clear();
  151. infoPromptBox.button_push("#055eb3", "确定", null, null);
  152. infoPromptBox.show();
  153. }
  154. });
  155. }, null);
  156. infoPromptBox.show();
  157. }
  158. }
  159. }
  160. }
  161. // 手动更换 返回按钮
  162. Button {
  163. id: materialmanualreplace_btn_head_return
  164. x: 1408
  165. y: 835
  166. width: 192
  167. height: 75
  168. background: Rectangle {
  169. color: "#055eb3"
  170. radius: 10
  171. }
  172. text: qsTr("返回")
  173. font.pixelSize: 30
  174. palette.buttonText: "white" // 设置字体颜色为绿色
  175. Connections {
  176. target: materialmanualreplace_btn_head_return
  177. onClicked: {
  178. if (pConfig.sopenDoor)
  179. {
  180. infoPromptBox.title("提示");
  181. infoPromptBox.message("柜门打开时不允许返回");
  182. infoPromptBox.button_clear();
  183. infoPromptBox.button_push("#055eb3", "确定", null, null);
  184. infoPromptBox.show();
  185. }
  186. else
  187. {
  188. materialmanualreplace.visible = false;
  189. materialReplace.visible = true;
  190. }
  191. }
  192. }
  193. }
  194. // 手动更换
  195. Rectangle {
  196. id: materialmanualreplace_rect_table_hand
  197. width: 1600
  198. height: 800
  199. color: "#272b7ae9"
  200. radius: 20
  201. clip: true
  202. visible: true
  203. Rectangle {
  204. x: 0
  205. y: 100
  206. width: parent.width
  207. height: parent.height - 100
  208. clip: true
  209. color: "#002b7ae9"
  210. GridView {
  211. width: parent.width
  212. height: parent.height
  213. cellWidth: 800
  214. cellHeight: 700
  215. model: materialreplace_modelMaterialManualReplace
  216. delegate: Rectangle{
  217. width: 800
  218. height: 700
  219. color: "#00ffffff"
  220. Rectangle {
  221. x: 10
  222. y: 30
  223. width: parent.width - 20
  224. height: 636
  225. color: "#055eb3"
  226. border.color: "#47bfff"
  227. Component.onCompleted: {
  228. var oldMaterialsTypeName = model.oldMaterialsTypeName;
  229. var materialsTypeName = model.materialsTypeName;
  230. var oldPropertiesValue = model.oldPropertiesValue;
  231. var propertiesValue = model.propertiesValue;
  232. materialmanualreplace_reusecombobox_oldtype.setModel(model.types);
  233. materialmanualreplace_reusecombobox_oldtype.setValue(oldMaterialsTypeName);
  234. materialmanualreplace_reusecombobox_newtype.setModel(model.types);
  235. materialmanualreplace_reusecombobox_newtype.setValue(materialsTypeName);
  236. materialmanualreplace_reusecombobox_oldprop.setValue(oldPropertiesValue);
  237. materialmanualreplace_reusecombobox_newprop.setValue(propertiesValue);
  238. materialmanualreplace_grid.enabled = (!model.click);
  239. }
  240. // 新旧物资
  241. Rectangle {
  242. width: parent.width
  243. height: 62
  244. clip: true
  245. Row {
  246. anchors.fill: parent
  247. Rectangle {
  248. width: parent.width / 2
  249. height: 62
  250. color: "#3e6aa5"
  251. Text {
  252. anchors.centerIn: parent
  253. font.pixelSize: 25
  254. color: "#d7d7d2"
  255. font.bold: true
  256. text: "旧物资"
  257. }
  258. }
  259. Rectangle {
  260. width: parent.width / 2
  261. height: 62
  262. color: "#3e6aa5"
  263. Text {
  264. anchors.centerIn: parent
  265. font.pixelSize: 25
  266. color: "#d7d7d2"
  267. font.bold: true
  268. text: "新物资"
  269. }
  270. }
  271. }
  272. }
  273. // 确认更换按钮
  274. Rectangle {
  275. y: parent.height - 70;
  276. width: parent.width
  277. height: 70
  278. color: "#272b7ae9"
  279. border.color: "#47bfff"
  280. // 维修
  281. Button {
  282. id: materialmanualreplace_btn_hand_upkeep
  283. x: parent.width - 192 * 2 - 20 * 2
  284. y: 10
  285. width: 192
  286. height: 50
  287. visible: {
  288. return model.status === "1"; // 如果状态是过期,不显示维修按钮
  289. }
  290. hoverEnabled: false
  291. background: Rectangle {
  292. color: "#e5d7d7d7"
  293. radius: 5
  294. }
  295. text: qsTr("维修")
  296. font.pixelSize: 25
  297. palette.buttonText: "white" // 设置字体颜色为绿色
  298. onClicked: {
  299. if (model.click === 1)
  300. {
  301. model.click = 0;
  302. materialmanualreplace_btn_hand_replace.background.color = "#e5d7d7d7";
  303. materialmanualreplace_btn_hand_upkeep.background.color = "#e5d7d7d7";
  304. materialmanualreplace_grid.enabled = true;
  305. }
  306. else
  307. {
  308. model.click = 1;
  309. materialmanualreplace_btn_hand_replace.background.color = "#e5d7d7d7";
  310. materialmanualreplace_btn_hand_upkeep.background.color = "#e5ff0000";
  311. materialmanualreplace_grid.enabled = false;
  312. }
  313. }
  314. }
  315. // 更换
  316. Button {
  317. id: materialmanualreplace_btn_hand_replace
  318. x: parent.width - 192 - 20
  319. y: 10
  320. width: 192
  321. height: 50
  322. hoverEnabled: false
  323. background: Rectangle {
  324. color: "#e5d7d7d7"
  325. radius: 5
  326. }
  327. text: qsTr("更换")
  328. font.pixelSize: 25
  329. palette.buttonText: "white" // 设置字体颜色为绿色
  330. onClicked: {
  331. if (model.click === 2)
  332. {
  333. model.click = 0;
  334. materialmanualreplace_btn_hand_replace.background.color = "#e5d7d7d7";
  335. materialmanualreplace_btn_hand_upkeep.background.color = "#e5d7d7d7";
  336. materialmanualreplace_grid.enabled = true;
  337. }
  338. else
  339. {
  340. model.click = 2;
  341. materialmanualreplace_btn_hand_replace.background.color = "#e5ff0000";
  342. materialmanualreplace_btn_hand_upkeep.background.color = "#e5d7d7d7";
  343. materialmanualreplace_grid.enabled = false;
  344. }
  345. }
  346. }
  347. }
  348. Grid {
  349. id: materialmanualreplace_grid;
  350. x: 0
  351. y: 62
  352. width: parent.width
  353. height: parent.height - 132
  354. spacing: 0
  355. columns: 2
  356. rows: 6
  357. Rectangle {
  358. width: parent.width / 2
  359. height: 214
  360. color: "#272b7ae9"
  361. border.color: "#47bfff"
  362. Image {
  363. id: materialmanualreplace_image_old
  364. x: (parent.width - 150) / 2
  365. y: (parent.height - 150) / 2
  366. width: 150
  367. height: 150
  368. visible: true
  369. source: model.oldMaterialsTypePicture
  370. fillMode: Image.PreserveAspectFit
  371. }
  372. // 异常处理
  373. Rectangle {
  374. x: (parent.width - 120) / 2
  375. y: (parent.height - 40) / 2
  376. width: 120
  377. height: 40
  378. color: {
  379. if (model.status === "0") return "#00ff00"; // 正常 - 绿色
  380. if (model.status === "1") return "#ff0000"; // 损坏 - 红色
  381. if (model.status === "2") return "#ff9900"; // 过期 - 橙色
  382. if (model.status === "3") return "#ff9900"; // 放错柜子 - 橙色
  383. return "gray"; // 默认颜色
  384. }
  385. visible: true
  386. Text {
  387. anchors.centerIn: parent
  388. text: {
  389. if (model.status === "0") return "正常";
  390. if (model.status === "1") return "损坏";
  391. if (model.status === "2") return "过期";
  392. if (model.status === "3") return "放错柜子";
  393. return "未知状态"; // 默认值
  394. }
  395. font.pixelSize: 30
  396. horizontalAlignment: Text.AlignHCenter
  397. verticalAlignment: Text.AlignVCenter
  398. color: "#ffffff"
  399. }
  400. }
  401. }
  402. Rectangle {
  403. width: parent.width / 2
  404. height: 214
  405. color: "#272b7ae9"
  406. border.color: "#47bfff"
  407. Image {
  408. id: materialmanualreplace_image_new
  409. x: (parent.width - 150) / 2
  410. y: (parent.height - 150) / 2
  411. width: 150
  412. height: 150
  413. visible: true
  414. source: model.materialsTypePicture
  415. fillMode: Image.PreserveAspectFit
  416. }
  417. }
  418. Rectangle {
  419. width: parent.width / 2
  420. height: 58
  421. color: "#272b7ae9"
  422. border.color: "#47bfff"
  423. ReuseTextField {
  424. id: materialmanualreplace_reusetextfield_oldname
  425. strTitle: "名称"
  426. strValue: model.oldMaterialsName
  427. enabled: false
  428. }
  429. }
  430. Rectangle {
  431. width: parent.width / 2
  432. height: 58
  433. color: "#272b7ae9"
  434. border.color: "#47bfff"
  435. ReuseTextField {
  436. id: materialmanualreplace_reusetextfield_newname
  437. strTitle: "名称"
  438. strValue: model.materialsName
  439. enabled: true
  440. onStrValueChanged: {
  441. model.materialsName = materialmanualreplace_reusetextfield_newname.strValue
  442. }
  443. }
  444. }
  445. Rectangle {
  446. width: parent.width / 2
  447. height: 58
  448. color: "#272b7ae9"
  449. border.color: "#47bfff"
  450. ReuseComboBox {
  451. id: materialmanualreplace_reusecombobox_oldtype
  452. strTitle: "类型"
  453. enabled: false
  454. onObjChildChanged: {
  455. var item = materialmanualreplace_reusecombobox_oldtype.objChild;
  456. materialmanualreplace_reusecombobox_oldprop.setModel(item.props);
  457. materialmanualreplace_image_old.source = item.materialsTypePicture;
  458. }
  459. }
  460. }
  461. Rectangle {
  462. width: parent.width / 2
  463. height: 58
  464. color: "#272b7ae9"
  465. border.color: "#47bfff"
  466. ReuseComboBox {
  467. id: materialmanualreplace_reusecombobox_newtype
  468. strTitle: "类型"
  469. enabled: true
  470. onObjChildChanged: {
  471. var item = materialmanualreplace_reusecombobox_newtype.objChild;
  472. materialmanualreplace_reusecombobox_newprop.setModel(item.props);
  473. materialmanualreplace_image_new.source = item.materialsTypePicture;
  474. }
  475. onStrValueChanged: {
  476. model.materialsTypeName = materialmanualreplace_reusecombobox_newtype.setValue;
  477. }
  478. }
  479. }
  480. Rectangle {
  481. width: parent.width / 2
  482. height: 58
  483. color: "#272b7ae9"
  484. border.color: "#47bfff"
  485. ReuseComboBox {
  486. id: materialmanualreplace_reusecombobox_oldprop
  487. strTitle: "型号"
  488. enabled: false
  489. }
  490. }
  491. Rectangle {
  492. width: parent.width / 2
  493. height: 58
  494. color: "#272b7ae9"
  495. border.color: "#47bfff"
  496. ReuseComboBox {
  497. id: materialmanualreplace_reusecombobox_newprop
  498. strTitle: "型号"
  499. enabled: true
  500. onStrValueChanged: {
  501. model.materialsPropName = materialmanualreplace_reusecombobox_newprop.strValue;
  502. }
  503. }
  504. }
  505. Rectangle {
  506. width: parent.width / 2
  507. height: 58
  508. color: "#272b7ae9"
  509. border.color: "#47bfff"
  510. ReuseTextField {
  511. id: materialmanualreplace_reusetextfield_oldrfid
  512. strTitle: "RFID"
  513. strValue: model.oldMaterialsRfid
  514. enabled: false
  515. }
  516. }
  517. Rectangle {
  518. width: parent.width / 2
  519. height: 58
  520. color: "#272b7ae9"
  521. border.color: "#47bfff"
  522. ReuseTextField {
  523. id: materialmanualreplace_reusetextfield_newrfid
  524. strTitle: "RFID"
  525. strValue: model.materialsRfid
  526. enabled: true
  527. onStrValueChanged : {
  528. model.materialsRfid = materialmanualreplace_reusetextfield_newrfid.strValue;
  529. }
  530. }
  531. }
  532. Rectangle {
  533. width: parent.width / 2
  534. height: 58
  535. color: "#272b7ae9"
  536. border.color: "#47bfff"
  537. ReuseDateField {
  538. id: materialmanualreplace_reusedatefield_olddate
  539. strTitle: "有效期"
  540. strValue: model.oldExpirationDate
  541. enabled: false
  542. }
  543. }
  544. Rectangle {
  545. width: parent.width / 2
  546. height: 58
  547. color: "#272b7ae9"
  548. border.color: "#47bfff"
  549. ReuseDateField {
  550. id: materialmanualreplace_reusedatefield_newdate
  551. strTitle: "有效期"
  552. strValue: model.expirationDate
  553. enabled: true
  554. onStrValueChanged : {
  555. model.materialsDate = materialmanualreplace_reusedatefield_newdate.strValue;
  556. }
  557. }
  558. }
  559. }
  560. }
  561. }
  562. }
  563. }
  564. }
  565. // 表格头
  566. Rectangle {
  567. id: materialmanualreplace_rect_table_head
  568. width: 1600
  569. height: 100 // 减去顶部圆角矩形的高度
  570. radius: 20
  571. clip: true
  572. color: "#8f2b7ae9"
  573. enabled: false
  574. Grid {
  575. x: 50
  576. y: 0
  577. width: parent.width - 150
  578. height: parent.height
  579. visible: true
  580. verticalItemAlignment: Grid.AlignVCenter
  581. horizontalItemAlignment: Grid.AlignHCenter
  582. columns: 5
  583. spacing: 20
  584. Repeater {
  585. model: materialreplace_modelMaterialType
  586. delegate: Rectangle{
  587. width: 250
  588. height: 100
  589. color: "#00ffffff"
  590. Image {
  591. x: 0
  592. y: 25
  593. width: 50
  594. height: 50
  595. visible: true
  596. source: model.materialsTypeIcon
  597. fillMode: Image.PreserveAspectFit
  598. }
  599. Text {
  600. x: 55
  601. y: 25
  602. width: parent.width - 55
  603. height: 50
  604. visible: true
  605. text: model.materialsTypeName + "(" + model.materialsTypeError + ")"
  606. font.pixelSize: 25
  607. horizontalAlignment: Text.AlignHCenter
  608. verticalAlignment: Text.AlignVCenter
  609. color: "#ffffff"
  610. }
  611. Canvas {
  612. anchors.fill: parent
  613. visible: model.materialsTypeSelected
  614. onPaint: {
  615. var ctx = getContext("2d");
  616. ctx.lineWidth = 10; // 设置线的宽度
  617. ctx.strokeStyle = "skyblue"; // 设置线的颜色为白色
  618. ctx.beginPath();
  619. ctx.moveTo(0, 90); // 直线的起点
  620. ctx.lineTo(parent.width, 90); // 直线的终点
  621. ctx.stroke(); // 绘制直线
  622. }
  623. }
  624. MouseArea {
  625. anchors.fill: parent // 让MouseArea覆盖整个Image区域
  626. onClicked: {
  627. var taskType = InteractiveTask.TypeMaterialReplaceRefreshListModel;
  628. interactiveCore.appendTask(taskType, model.materialsTypeId, null);
  629. mainScreen.resetLogin_timeout();
  630. }
  631. }
  632. }
  633. }
  634. }
  635. Image {
  636. id: viewImage
  637. x: parent.width - 80
  638. y: 20
  639. width: 60
  640. height: 60
  641. source: "qrc:/png/right.png"
  642. fillMode: Image.PreserveAspectFit
  643. MouseArea {
  644. anchors.fill: parent // 让MouseArea覆盖整个Image区域
  645. onClicked: {
  646. var bIsUnfolding = (materialmanualreplace_rect_table_head.height === 100 ? true : false);
  647. if(bIsUnfolding)
  648. {
  649. viewImage.rotation = 90;
  650. materialmanualreplace_rect_table_head.height = 600;
  651. }
  652. else
  653. {
  654. viewImage.rotation = 0;
  655. materialmanualreplace_rect_table_head.height = 100;
  656. }
  657. mainScreen.resetLogin_timeout();
  658. }
  659. }
  660. }
  661. }
  662. function lockStat_callback(left, right)
  663. {
  664. if (pConfig.imaterworkstat === 1)
  665. {
  666. if(left === false || right === false)
  667. {
  668. materialmanualreplace_btn_head_openLock.visible = false; // 柜子开时,开柜按钮隐藏
  669. opendoor = true;
  670. if(takebackstat === true)
  671. {
  672. signal_takebackstat(true);
  673. }
  674. }
  675. else if(left === true && right === true)
  676. {
  677. materialmanualreplace_btn_head_openLock.visible = true; // 柜子关时,开柜按钮隐藏显示
  678. materialmanualreplace_btn_head_submit.enabled = true;
  679. materialmanualreplace_btn_head_return.enabled = true;
  680. console.log("准备读rfid");
  681. opendoor = false;
  682. if(takebackstat === true)
  683. {
  684. startReader();
  685. takebackstat = false;
  686. signal_takebackstat(false);
  687. pConfig.smaterialStock = true;
  688. console.log("盘点界面显示");
  689. // 开始读rfid
  690. // materialReplace.visible = false;
  691. mainScreen.switchViewOffEx();
  692. materialStocktaking.set_userinfo();
  693. materialStocktaking.materiallistclear();
  694. materialStocktaking.visible = true;
  695. materialmanualreplace_rect_autoreplace.visible = false;
  696. console.log("完成!!!!!!");
  697. mainScreen.resetLogin_timeout();
  698. }
  699. }
  700. }
  701. }
  702. function slot_requestertakebackMaterial()
  703. {
  704. }
  705. function slot_updateMaterialHand()
  706. {
  707. var taskType = InteractiveTask.TypeMaterialReplaceRefreshListModel;
  708. interactiveCore.appendTask(taskType, "-1", null);
  709. }
  710. // 刷新 list 视图
  711. function refreshListModel()
  712. {
  713. // 先刷新数据缓存,然后调用视图刷新
  714. var taskType = InteractiveTask.TypeMaterialReplaceRefreshListModel;
  715. interactiveCore.appendTask(taskType, "0", null);
  716. }
  717. }