finance.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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{padding-top: 55px;margin-bottom: 50px;}
  12. .ht{margin-top: 11px;padding: 5px;background-color: #fffbee;color: #ed9f2b;font-size: 11px;}
  13. .warn{display: block;padding-top: 11px;text-align: center;}
  14. .name{font-weight: bold;font-size: 17px;}
  15. .icon{font-size:20px;}
  16. .right{float: right;color: #FF5722;}
  17. .yh{font-size: 11px;padding: 5px 0px 0px 0px;color: darkgray;}
  18. .yh .sp{padding-right: 15px;}
  19. .sps{background: #00B5AD;padding: 1px 6px;border-radius: 3px;color: white;text-align: center;}
  20. .s{color: darkgray;font-size: 12px;}
  21. .row{font-size: 14px;padding-bottom:0px;}
  22. .row input,textarea{font-size: 14px!important;margin-top: 5px;}
  23. .row label span{color: red;}
  24. .sm2{color: #4c4848;}
  25. .dc{padding-right: 10px;font-size: 12px;}
  26. .i{color: #00a0ea;}
  27. .item{border-top: 1px solid #ececec;margin-top: 10px;padding-top: 15px;font-size: 14px;}
  28. .dd{padding:5px;margin:0;border: 0;}
  29. .dz{font-size: 12px;color: darkgray;}
  30. .gs{padding-top: 11px;font-size: 48px;display: block;color: #00a0ea;}
  31. .nr{font-size: 13px;color: #4a4747;}
  32. .lyy{float: right;margin-top: 15px;font-size: 15px;color: orange;}
  33. .footer{color: white;position: fixed;background-color: #00a0ea;padding-top: 15px;width: 100%;bottom: 0;height: 52px;text-align: center;}
  34. .mui-btn{border: 1px solid rgba(0,0,0,.2)!important;height: 40px!important;margin-top: 5px;margin-bottom: 15px;}
  35. [v-cloak] {display: none;}
  36. </style>
  37. </head>
  38. <body>
  39. <div id="app" v-cloak>
  40. <header class="mui-bar mui-bar-nav">
  41. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  42. <h1 class="mui-title">付款申请</h1>
  43. </header>
  44. <div class="mui-content animated fadeInUp">
  45. <div class="ht">凡是要求缴纳费用请提高警惕,谨防受骗!</div>
  46. <div class="model" style="margin-top: 0px;">
  47. <div class="content" style="margin-top: -5px;">
  48. <div class="row">
  49. <label>收款方 <span>*</span></label>
  50. <input type="text" v-model="item.Payee" placeholder="输入收款方"
  51. oninput="if(value.length>30)value=value.substr(0,30)">
  52. </div>
  53. <!--<div class="row">
  54. <label>收款日期 <span>*</span></label>
  55. <input type="date" v-model="item.pay_date" placeholder="输入收款日期">
  56. </div>-->
  57. <div class="row">
  58. <label>金额 <span>*</span></label>
  59. <input type="number" v-model="item.amount" placeholder="输入金额" oninput="if(value<0)value=1">
  60. </div>
  61. <div class="row">
  62. <label>支付方式 <span>*</span></label>
  63. <select class="mui-btn" v-model="item.pay_mode">
  64. <option :value="x.name" v-for="(x,index) in pay_list">{{x.name}}</option>
  65. </select>
  66. </div>
  67. <div class="row">
  68. <label>备注 </label>
  69. <textarea rows="3" v-model="item.remark" placeholder="输入备注"></textarea>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <!--
  75. <div class="model" v-for="(item,index) in item.list">
  76. <div class="item dd">{{item.mz}} {{item.phone}}
  77. <div class="lyy" @click="contract(item)" v-if="item.state=='0' && item.contract=='0'">发送合同</div>
  78. <div class="lyy" style="color: #00B5AD;" v-else-if="item.state=='0' && item.contract=='1'">合同已发送</div>
  79. </div>
  80. </div>
  81. -->
  82. <div class="footer" @click="deliver()"><i class="icon">&#xe62d;</i> {{msg}}</div>
  83. </div>
  84. <script src="../../js/mui.min.js"></script>
  85. <script src="../../js/app.js"></script>
  86. <script src="../../js/vue.min.js"></script>
  87. <script type="text/javascript">
  88. var vm = new Vue({
  89. el: "#app",
  90. data: {
  91. item: {
  92. pay_mode: '支付宝'
  93. },
  94. resume: {},
  95. msg: '申请请款',
  96. pay_list: [{
  97. name: '支付宝',
  98. id: '1'
  99. }, {
  100. name: '银行卡',
  101. id: '2'
  102. }, {
  103. name: '微信',
  104. id: '3'
  105. }, {
  106. name: '现金',
  107. id: '3'
  108. }, {
  109. name: '其他',
  110. id: '3'
  111. }],
  112. },
  113. mounted: function() {
  114. mui.plusReady(function() {
  115. vm.item.parttime_id = plus.webview.currentWebview().param.id;
  116. vm.item.contract_id = plus.webview.currentWebview().param.aid;
  117. console.log("plus.webview.currentWebview().param===" + JSON.stringify(plus.webview
  118. .currentWebview().param));
  119. //request(urls().parttime_detail, {id: plus.webview.currentWebview().param.id}, function(res) {
  120. //vm.item = res;
  121. //vm.item.mTime = vm.item.mTime.substring(0, 11)
  122. //plus.nativeUI.closeWaiting();
  123. // })
  124. })
  125. },
  126. methods: {
  127. //详情
  128. contract: function(id) {
  129. open('detail', 'contract.html', id, 'slide-in-bottom');
  130. },
  131. //申请请款
  132. deliver: function() {
  133. if (!hasLogin()) {
  134. mui.toast("请先登录")
  135. open('login', '/pages/user/login.html', null, 'slide-in-bottom');
  136. return;
  137. }
  138. if (getUser().mType == 1) {
  139. mui.alert("企业用户不允许投递简历");
  140. return;
  141. }
  142. //vm.resume = getResume();
  143. //vm.resume.parttime_id = vm.item.id;
  144. vm.item.userId = getUser().id;
  145. vm.item.type = 0;
  146. vm.item.state = 0;
  147. //deleteEmptyProperty(vm.resume);
  148. console.log("vm.item===" + JSON.stringify(vm.item));
  149. request(urls().finance_app, vm.item, function(res) {
  150. plus.nativeUI.closeWaiting();
  151. if (res.result == true) {
  152. vm.msg = '已申请'
  153. mui.toast('申请成功');
  154. plus.webview.getWebviewById("app_parttime_list").reload(true);
  155. //open('jz_list', '/tab/jz_list.html', {}, 'slide-in-bottom');
  156. } else {
  157. mui.alert(res.msg);
  158. }
  159. })
  160. }
  161. }
  162. })
  163. </script>
  164. </body>
  165. </html>