特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

338 lines
6.5 KiB

8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="记工记账" />
  4. <view class="page-tag">
  5. <uv-tabs :list="tabs"
  6. @click="clickTabs"
  7. lineWidth="55"
  8. lineHeight="8" :activeStyle="{
  9. color: '#3796F8',
  10. }" :inactiveStyle="{
  11. color: '#999999',
  12. }" itemStyle="padding:60rpx 20rpx 20rpx 20rpx;width: 44%;"></uv-tabs>
  13. </view>
  14. <view class="page-picture">
  15. <view class="page-picture-img">
  16. <view class="page-picture-group" @click="show = true">
  17. <image src="../../static/image/keepAccounts/artisan.png" mode="aspectFit" />
  18. <view>
  19. 新建账本
  20. </view>
  21. </view>
  22. </view>
  23. <view class="page-picture-img"
  24. @click="$utils.navigateTo('/pages_order/kepp/AnnualExpenditure')">
  25. <view class="page-picture-group">
  26. <image src="../../static/image/keepAccounts/wallet.png" mode="aspectFit" />
  27. <view>全年收支</view>
  28. </view>
  29. </view>
  30. <view class="page-picture-img" @click="$utils.navigateTo('/pages_order/kepp/MechanicProblem')">
  31. <view class="page-picture-group">
  32. <image src="../../static/image/keepAccounts/accountBook.png" mode="aspectFit" />
  33. <view>
  34. 技工问题
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view style="font-weight: 500; margin-top: 20rpx;">
  40. <uv-tabs :list="tabsSatus" lineWidth="0" lineHeight="0" :activeStyle="{
  41. color: '#3796F8',
  42. }"></uv-tabs>
  43. </view>
  44. <view class="list">
  45. <view class="item"
  46. v-for="(item,index) in list"
  47. @click="$utils.navigateTo('/pages_order/kepp/keepAccountsDetail?id=' + item.id)"
  48. :key="index">
  49. <view class="top">
  50. <view class="title">
  51. {{ item.title }}
  52. </view>
  53. <view class="date">
  54. {{ item.createTime }}
  55. </view>
  56. </view>
  57. <view class="btn">
  58. <view class="left">
  59. <uv-icon
  60. name="setting"
  61. size="40rpx"></uv-icon>
  62. 设置
  63. </view>
  64. <view class="right">
  65. <view class="b1">
  66. 记工
  67. </view>
  68. <view class="b2">
  69. 记账
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <uv-overlay :show="show">
  76. <view class="warp">
  77. <view class="rect">
  78. <view class="warp-top">
  79. {{ addOrUpdate ? '编辑项目' : '新建项目'}}
  80. </view>
  81. <view class="rect-two">
  82. <view class="designation">项目名称</view>
  83. <view class="wire" />
  84. <!-- <view class="description">请输入项目名称</view> -->
  85. <input class="rect-input"
  86. v-model="form.title"
  87. placeholder="请输入项目名称"/>
  88. <view class="wire" style="margin-top: 20rpx;" />
  89. <!-- <view class="option">
  90. <select class="select">
  91. <option value="option1">收入 </option>
  92. </select>
  93. </view> -->
  94. <!-- <view class="introduce">
  95. 项目金额1314
  96. </view> -->
  97. <view class="button">
  98. <view @click="isShohw">取消</view>
  99. <view>确定</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </uv-overlay>
  105. <tabber select="1" />
  106. </view>
  107. </template>
  108. <script>
  109. import tabber from '@/components/base/tabbar.vue'
  110. import mixinList from '@/mixins/list.js'
  111. export default {
  112. mixins : [mixinList],
  113. components: {
  114. tabber,
  115. },
  116. data() {
  117. return {
  118. tabs: [
  119. {
  120. name: '个人记工',
  121. },
  122. {
  123. name: '班组记工',
  124. },
  125. ],
  126. tabsSatus : [
  127. {
  128. name: '在建项目',
  129. },
  130. {
  131. name: '结束项目',
  132. },
  133. ],
  134. show: false,
  135. mixinsListApi : 'commonQueryStrartJobLists',
  136. apiType : '',
  137. addOrUpdate : false,
  138. form : {
  139. title : '',
  140. },
  141. }
  142. },
  143. computed: {
  144. },
  145. onReady() {
  146. },
  147. methods: {
  148. isShohw(){
  149. this.show = false
  150. },
  151. clickTabs({index}){
  152. this.apiType = index ? 's' : ''
  153. this.getData()
  154. },
  155. }
  156. }
  157. </script>
  158. <style scoped lang="scss">
  159. .page {
  160. .page-tag {
  161. font-weight: 600;
  162. }
  163. .page-picture {
  164. margin-top: 40rpx;
  165. display: flex;
  166. justify-content: space-around;
  167. .page-picture-img {
  168. width: 220rpx;
  169. height: 220rpx;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. background-color: #fff;
  174. border-radius: 10rpx;
  175. .page-picture-group {
  176. height: 80rpx;
  177. image {
  178. width: 100%;
  179. height: 100%;
  180. }
  181. }
  182. }
  183. }
  184. .list{
  185. .item{
  186. margin: 30rpx;
  187. background-color: #fff;
  188. padding: 20rpx;
  189. border-radius: 20rpx;
  190. .top{
  191. display: flex;
  192. justify-content: space-between;
  193. padding: 20rpx;
  194. .title{
  195. font-weight: 900;
  196. }
  197. .date{
  198. }
  199. }
  200. .btn{
  201. display: flex;
  202. justify-content: space-between;
  203. padding: 20rpx;
  204. .left{
  205. display: flex;
  206. align-items: center;
  207. }
  208. .right{
  209. display: flex;
  210. view{
  211. padding: 15rpx 40rpx;
  212. margin: 0 10rpx;
  213. border-radius: 10rpx;
  214. }
  215. .b1{
  216. border: 1px solid #FFA011;
  217. color: #FFA011;
  218. }
  219. .b2{
  220. background: $uni-color;
  221. color: #fff;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. .warp {
  228. display: flex;
  229. justify-content: center;
  230. align-items: center;
  231. height: 100%;
  232. .rect {
  233. width: 90%;
  234. background-color: #fff;
  235. border-radius: 20rpx;
  236. overflow: hidden;
  237. .warp-top {
  238. text-align: center;
  239. font-size: 24rpx;
  240. padding: 15rpx 0;
  241. color: #FFFFFF;
  242. background-color: #3796F8;
  243. }
  244. .rect-two {
  245. width: 90%;
  246. margin-left: 5%;
  247. font-size: 28rpx;
  248. .designation {
  249. padding: 20rpx 0;
  250. color: #333;
  251. font-weight: 600;
  252. }
  253. }
  254. .wire {
  255. border-bottom: 4rpx dashed rgb(168, 197, 255);
  256. }
  257. .description {
  258. padding: 20rpx 0;
  259. color: #666666;
  260. }
  261. .rect-input {
  262. height: 40rpx;
  263. background-color: #EBF0FC;
  264. border: 2rpx solid #4280FD;
  265. border-radius: 14rpx;
  266. padding: 10rpx 20rpx;
  267. }
  268. .option {
  269. padding: 40rpx 40rpx 40rpx 0rpx;
  270. .select {
  271. background-color: #EBF0FC;
  272. padding: 10rpx 20rpx;
  273. color: #4280FD;
  274. border: 2rpx solid #4280FD;
  275. border-radius: 5rpx;
  276. }
  277. }
  278. .introduce {
  279. text-align: center;
  280. background-color: #EBF0FC;
  281. padding: 20rpx 0;
  282. color: #4280FD;
  283. }
  284. .button {
  285. display: flex;
  286. justify-content: space-around;
  287. text-align: center;
  288. align-content: center;
  289. margin: 50rpx 0;
  290. view:nth-child(1) {
  291. color: #575757;
  292. border: 2rpx solid #C7C7C7;
  293. }
  294. view:nth-child(2) {
  295. color: #FFFFFF;
  296. background-color: #3796F8;
  297. }
  298. view {
  299. width: 45%;
  300. padding: 15rpx 0;
  301. border-radius: 32rpx;
  302. font-size: 24rpx;
  303. }
  304. }
  305. }
  306. }
  307. }
  308. </style>