MobileMySmart.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. 
  2. @{
  3. ViewBag.Title = "MobileMySmart";
  4. Layout = "~/Views/MobileProblem/_APPMain.cshtml";
  5. }
  6. <link href="~/Content/Style/MobileProductRegist/iconfont.css" rel="stylesheet" />
  7. <link href="~/Content/Style/MobileProductRegist/ProblemDeatail.css" rel="stylesheet" />
  8. <link href="~/Content/Scripts/plugins/mui/css/mui.imageviewer.css" rel="stylesheet" />
  9. <script src="~/Content/Scripts/plugins/mui/js/mui.zoom.js"></script>
  10. <script src="~/Content/Scripts/plugins/mui/js/mui.previewimage.js"></script>
  11. <style>
  12. .message-title {
  13. font-size: 16px;
  14. font-weight: 500;
  15. padding: 1rem 1rem;
  16. }
  17. .message-detail {
  18. font-size: 14px;
  19. padding: 1rem 1rem;
  20. display: inline-block
  21. }
  22. .message-person {
  23. font-size: 12px;
  24. padding: 0 1rem;
  25. color: #adadb5;
  26. }
  27. .mui-search .mui-placeholder {
  28. font-size: 13px;
  29. }
  30. .mui-content {
  31. background-color: white
  32. }
  33. div {
  34. word-wrap: break-word;
  35. word-break: break-all;
  36. }
  37. p {
  38. word-wrap: break-word;
  39. word-break: break-all;
  40. }
  41. input::-webkit-input-placeholder {
  42. color: white;
  43. font-size: 17px;
  44. }
  45. .icon-soushuo {
  46. color: white;
  47. }
  48. </style>
  49. <div id="pullrefresh">
  50. <header class="mui-bar mui-bar-nav">
  51. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color:#ffffff"></a>
  52. <h1 class="mui-title" style="color:white">
  53. <input type="search" class="mui-input-clear" v-model="smartname" placeholder="请输入表单或项目名称搜索" style="background-color: #0af;">
  54. </h1>
  55. <a href="javascript:;" class="mui-icon iconfont icon-soushuo mui-pull-right" v-on:click="Search()" id="title-right"></a>
  56. </header>
  57. <div class="mui-content mui-scroll-wrapper">
  58. <div class="mui-scroll">
  59. <ul class="mui-table-view" v-for="pc in SmartData">
  60. <li class="mui-table-view-cell" v-on:tap="formDetails(pc.ID,pc.TBZT)" v-if="pc.TBZT==0">
  61. <img class="mui-media-object mui-pull-left" src="~/Content/Images/smart.png">
  62. {{pc.BDM}}
  63. <p class='mui-ellipsis'>项目: {{pc.XMMC}}</p>
  64. <span class="mui-badge mui-badge-primary">已填报</span>
  65. </li>
  66. <li class="mui-table-view-cell" v-on:tap="formDetails(pc.ID,pc.TBZT)" v-else-if="pc.TBZT==1">
  67. <img class="mui-media-object mui-pull-left" src="~/Content/Images/smart.png">
  68. {{pc.BDM}}
  69. <p class='mui-ellipsis'>项目: {{pc.XMMC}}</p>
  70. <span class="mui-badge mui-badge-success">已通过</span>
  71. </li>
  72. <li class="mui-table-view-cell" v-on:tap="formDetails(pc.ID,pc.TBZT)" v-else-if="pc.TBZT==2">
  73. <img class="mui-media-object mui-pull-left" src="~/Content/Images/smart.png">
  74. {{pc.BDM}}
  75. <p class='mui-ellipsis'>项目: {{pc.XMMC}}</p>
  76. <span class="mui-badge">已退回</span>
  77. </li>
  78. <li class="mui-table-view-cell" v-on:tap="formDetails(pc.ID,pc.TBZT)" v-else="pc.TBZT==3">
  79. <img class="mui-media-object mui-pull-left" src="~/Content/Images/smart.png">
  80. {{pc.BDM}}
  81. <p class='mui-ellipsis'>项目: {{pc.XMMC}}</p>
  82. <span class="mui-badge mui-badge-purple">已暂存</span>
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. </div>
  88. <script>
  89. var vm = new Vue({
  90. el: '#pullrefresh',
  91. data: {
  92. /// 表单数据
  93. SmartData: [],
  94. smartname: "",
  95. },
  96. computed: {},
  97. methods: {
  98. init: function init() {
  99. var that = this;
  100. $.post('/SmartForm/MyRecordList', { TBRID: '@ViewBag.TBRID', BDM: that.smartname }, function (data) {
  101. that.SmartData = data;
  102. })
  103. },
  104. //表单明细
  105. formDetails: function formDetails(id, TBZT) {
  106. if (TBZT == 2 || TBZT == 3) {
  107. window.location.href = '/SmartForm/EditMobileSmartDetail/' + id;
  108. }
  109. else {
  110. window.location.href = '/SmartForm/MobileSmartDetailPreview/' + id;
  111. }
  112. },//搜索
  113. Search: function Search() {
  114. var that = this;
  115. $.post('/SmartForm/MyRecordList', { TBRID: '@ViewBag.TBRID', BDM: that.smartname}, function (data) {
  116. that.SmartData = data;
  117. })
  118. }
  119. },
  120. watch: {
  121. },
  122. mounted: function mounted() {
  123. this.init();
  124. mui.init({
  125. swipeBack: true //启用右滑关闭功能
  126. });
  127. mui.previewImage();
  128. mui('.mui-scroll-wrapper').scroll();
  129. }
  130. });
  131. </script>