finance2.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>申请请款</title>
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <link href="../../css/mui.min.css" rel="stylesheet" />
  9. <link href="../../css/animate.min.css" rel="stylesheet" />
  10. <style>
  11. .mui-bar-nav~.mui-content {
  12. padding-top: 55px;
  13. margin-bottom: 50px;
  14. }
  15. .ht {
  16. margin-top: 11px;
  17. padding: 5px;
  18. background-color: #fffbee;
  19. color: #ed9f2b;
  20. font-size: 11px;
  21. }
  22. .warn {
  23. display: block;
  24. padding-top: 11px;
  25. text-align: center;
  26. }
  27. .name {
  28. font-weight: bold;
  29. font-size: 17px;
  30. }
  31. .icon {
  32. font-size: 20px;
  33. }
  34. .right {
  35. float: right;
  36. color: #FF5722;
  37. }
  38. .yh {
  39. font-size: 11px;
  40. padding: 5px 0px 0px 0px;
  41. color: darkgray;
  42. }
  43. .yh .sp {
  44. padding-right: 15px;
  45. }
  46. .sps {
  47. background: #00B5AD;
  48. padding: 1px 6px;
  49. border-radius: 3px;
  50. color: white;
  51. text-align: center;
  52. }
  53. .s {
  54. color: darkgray;
  55. font-size: 12px;
  56. }
  57. .row {
  58. font-size: 14px;
  59. padding-top: 10px;
  60. }
  61. .sm2 {
  62. color: #4c4848;
  63. }
  64. .dc {
  65. padding-right: 10px;
  66. font-size: 12px;
  67. }
  68. .i {
  69. color: #00a0ea;
  70. }
  71. .item {
  72. border-top: 1px solid #ececec;
  73. margin-top: 10px;
  74. padding-top: 15px;
  75. font-size: 14px;
  76. }
  77. .dd {
  78. padding: 5px;
  79. margin: 0;
  80. border: 0;
  81. }
  82. .dz {
  83. font-size: 12px;
  84. color: darkgray;
  85. }
  86. .gs {
  87. padding-top: 11px;
  88. font-size: 48px;
  89. display: block;
  90. color: #00a0ea;
  91. }
  92. .nr {
  93. font-size: 13px;
  94. color: #4a4747;
  95. }
  96. .lyy {
  97. float: right;
  98. margin-top: 15px;
  99. font-size: 15px;
  100. color: orange;
  101. }
  102. .footer {
  103. color: white;
  104. position: fixed;
  105. background-color: #00a0ea;
  106. padding-top: 15px;
  107. width: 100%;
  108. bottom: 0;
  109. height: 52px;
  110. text-align: center;
  111. }
  112. [v-cloak] {
  113. display: none;
  114. }
  115. </style>
  116. </head>
  117. <body>
  118. <div id="app" v-cloak>
  119. <header class="mui-bar mui-bar-nav">
  120. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  121. <h1 class="mui-title">申请请款</h1>
  122. </header>
  123. <div class="mui-content animated fadeInUp">
  124. <div class="model">
  125. <div class="content" style="margin-top: -5px;">
  126. <div class="yh">
  127. <label>收款方 <span>*</span></label>
  128. <input type="text" v-model="item.Payee" placeholder="输入收款方"
  129. oninput="if(value.length>30)value=value.substr(0,30)">
  130. </div>
  131. <div class="row">
  132. <label>收款日期 <span>*</span></label>
  133. <input type="date" v-model="item.pay_date" placeholder="输入收款日期">
  134. </div>
  135. <div class="row">
  136. <label>金额 <span>*</span></label>
  137. <input type="number" v-model="item.amount" placeholder="输入金额"
  138. oninput="if(value<0)value=1">
  139. </div>
  140. <div class="row">
  141. <label>支付方式 <span>*</span></label>
  142. <select class="mui-btn mui-btn-block" v-model="item.pay_mode">
  143. <option :value="x.name" v-for="(x,index) in pay_list">{{x.name}}</option>
  144. </select>
  145. </div>
  146. <div class="row">
  147. <label>备注 </label>
  148. <textarea rows="3" v-model="item.remark" placeholder="输入备注"></textarea>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <button @click="deliver()">确认发送</button>
  155. <!--<div class="footer" @click="deliver()"><i class="icon">&#xe61a;</i> {{msg}}</div> -->
  156. </div>
  157. <script src="../../js/mui.min.js"></script>
  158. <script src="../../js/app.js"></script>
  159. <script src="../../js/vue.min.js"></script>
  160. <script type="text/javascript">
  161. var vm = new Vue({
  162. el: "#app",
  163. data: {
  164. pay_list: [{
  165. name: '支付宝',
  166. id: '1'
  167. }, {
  168. name: '银行卡',
  169. id: '2'
  170. }, {
  171. name: '微信',
  172. id: '3'
  173. },{
  174. name: '现金',
  175. id: '3'
  176. },{
  177. name: '其他',
  178. id: '3'
  179. }],
  180. item: {userId:getUser().id},
  181. resume: {},
  182. msg: '申请请款'
  183. },
  184. mounted: function() {
  185. mui.plusReady(function() {
  186. vm.item.parttime_id=plus.webview.currentWebview().param.id;
  187. vm.item.contract_id=plus.webview.currentWebview().param.aid;
  188. })
  189. },
  190. methods: {
  191. //投递简历
  192. deliver: function() {
  193. if(!hasLogin()) {
  194. mui.toast("请先登录")
  195. open('login', '/pages/user/login.html', null, 'slide-in-bottom');
  196. return;
  197. }
  198. if(getUser().mType==1){
  199. mui.alert("企业用户不允许投递简历");
  200. return;
  201. }
  202. vm.resume = getResume();
  203. vm.resume.parttime_id = vm.item.id;
  204. vm.resume.recruit_id=vm.item.publisher;
  205. deleteEmptyProperty(vm.resume);
  206. request(urls().parttime_delivery, vm.resume, function(res) {
  207. plus.nativeUI.closeWaiting();
  208. if(res.result == true) {
  209. vm.msg = '已报名'
  210. mui.toast('报名成功');
  211. } else {
  212. mui.alert(res.msg);
  213. }
  214. })
  215. }
  216. }
  217. })
  218. </script>
  219. </body>
  220. </html>