特易招,招聘小程序
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.

401 lines
7.9 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="记工记账" />
  4. <view class="page-tag">
  5. <uv-tabs :list="tabs"
  6. @click="clickTabsType"
  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"
  41. @click="clickTabsStatus"
  42. lineWidth="0" lineHeight="0" :activeStyle="{
  43. color: '#3796F8',
  44. }"></uv-tabs>
  45. </view>
  46. <view class="list">
  47. <view class="item"
  48. v-for="(item,index) in list"
  49. @click="$utils.navigateTo('/pages_order/kepp/keepAccountsDetail?id=' + item.id)"
  50. :key="index">
  51. <view class="top">
  52. <view class="title">
  53. {{ item.title }}
  54. </view>
  55. <view class="date">
  56. {{ item.createTime }}
  57. </view>
  58. </view>
  59. <view class="btn">
  60. <view class="left"
  61. @click.stop="openUpdate(item)">
  62. <uv-icon
  63. name="setting"
  64. size="40rpx"></uv-icon>
  65. 设置
  66. </view>
  67. <view class="right">
  68. <view class="b1"
  69. @click="$utils.navigateTo('/pages_order/kepp/addWorkEntryRecords?id=' + item.id)">
  70. 记工
  71. </view>
  72. <view class="b2"
  73. @click="$utils.navigateTo('/pages_order/kepp/addPriceEntryRecords?id=' + item.id)">
  74. 记账
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <uv-overlay :show="show">
  81. <view class="warp">
  82. <view class="rect">
  83. <view class="warp-top">
  84. {{ addOrUpdate ? '编辑项目' : '新建项目'}}
  85. </view>
  86. <view class="rect-two">
  87. <view class="designation">项目名称</view>
  88. <view class="wire" />
  89. <!-- <view class="description">请输入项目名称</view> -->
  90. <input class="rect-input"
  91. v-model="form.title"
  92. placeholder="请输入项目名称"/>
  93. <!-- <view class="option">
  94. <select class="select">
  95. <option value="option1">收入 </option>
  96. </select>
  97. </view> -->
  98. <!-- <view class="introduce">
  99. 项目金额1314
  100. </view> -->
  101. <!-- <view class="">
  102. <uv-radio-group v-model="form.status">
  103. <view style="display: flex;">
  104. <uv-radio
  105. :customStyle="{margin: '8px'}"
  106. v-for="(item, index) in statusList"
  107. :key="index"
  108. iconSize="30rpx"
  109. size="40rpx"
  110. labelSize="26rpx"
  111. :label="item.name"
  112. :name="item.value">
  113. </uv-radio>
  114. </view>
  115. </uv-radio-group>
  116. </view> -->
  117. <view class="button">
  118. <view @click="show = false">取消</view>
  119. <view @click="submit">确定</view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </uv-overlay>
  125. <tabber select="1" />
  126. </view>
  127. </template>
  128. <script>
  129. import tabber from '@/components/base/tabbar.vue'
  130. import mixinList from '@/mixins/list.js'
  131. export default {
  132. mixins : [mixinList],
  133. components: {
  134. tabber,
  135. },
  136. data() {
  137. return {
  138. tabs: [
  139. {
  140. name: '个人记工',
  141. },
  142. {
  143. name: '班组记工',
  144. },
  145. ],
  146. tabsSatus : [
  147. {
  148. name: '在建项目',
  149. },
  150. {
  151. name: '结束项目',
  152. },
  153. ],
  154. statusList : [
  155. {
  156. name : '在建',
  157. value : 0,
  158. },
  159. {
  160. name : '结束',
  161. value : 1,
  162. },
  163. ],
  164. show: false,
  165. mixinsListApi : 'commonQueryNotebookList',
  166. addOrUpdate : false,
  167. form : {
  168. title : '',
  169. status : 0,
  170. },
  171. }
  172. },
  173. computed: {
  174. },
  175. onLoad() {
  176. this.queryParams.status = 0
  177. this.queryParams.type = 0
  178. },
  179. methods: {
  180. clickTabsType({index}){
  181. this.queryParams.type = index
  182. this.getData()
  183. },
  184. clickTabsStatus({index}){
  185. this.queryParams.status = index
  186. this.getData()
  187. },
  188. submit(){
  189. if(this.$utils.verificationAll(this.form, {
  190. title : '请输入项目名称',//
  191. })){
  192. return
  193. }
  194. this.form.type = this.queryParams.type
  195. this.$api('addNoteBook', this.form, res => {
  196. if(res.code == 200){
  197. this.show = false
  198. this.form = {
  199. title : '',
  200. status : 0,
  201. }
  202. this.getData()
  203. }
  204. })
  205. },
  206. openUpdate(item){
  207. this.form = {
  208. id : item.id,
  209. title : item.title,
  210. status : item.status,
  211. }
  212. this.addOrUpdate = true
  213. this.show = true
  214. this.getData()
  215. }
  216. }
  217. }
  218. </script>
  219. <style scoped lang="scss">
  220. .page {
  221. .page-tag {
  222. font-weight: 600;
  223. }
  224. .page-picture {
  225. margin-top: 40rpx;
  226. display: flex;
  227. justify-content: space-around;
  228. .page-picture-img {
  229. width: 220rpx;
  230. height: 220rpx;
  231. display: flex;
  232. justify-content: center;
  233. align-items: center;
  234. background-color: #fff;
  235. border-radius: 10rpx;
  236. .page-picture-group {
  237. height: 80rpx;
  238. image {
  239. width: 100%;
  240. height: 100%;
  241. }
  242. }
  243. }
  244. }
  245. .list{
  246. .item{
  247. margin: 30rpx;
  248. background-color: #fff;
  249. padding: 20rpx;
  250. border-radius: 20rpx;
  251. .top{
  252. display: flex;
  253. justify-content: space-between;
  254. padding: 20rpx;
  255. .title{
  256. font-weight: 900;
  257. }
  258. .date{
  259. }
  260. }
  261. .btn{
  262. display: flex;
  263. justify-content: space-between;
  264. padding: 20rpx;
  265. .left{
  266. display: flex;
  267. align-items: center;
  268. }
  269. .right{
  270. display: flex;
  271. view{
  272. padding: 15rpx 40rpx;
  273. margin: 0 10rpx;
  274. border-radius: 10rpx;
  275. }
  276. .b1{
  277. border: 1px solid #FFA011;
  278. color: #FFA011;
  279. }
  280. .b2{
  281. background: $uni-color;
  282. color: #fff;
  283. }
  284. }
  285. }
  286. }
  287. }
  288. .warp {
  289. display: flex;
  290. justify-content: center;
  291. align-items: center;
  292. height: 100%;
  293. .rect {
  294. width: 90%;
  295. background-color: #fff;
  296. border-radius: 20rpx;
  297. overflow: hidden;
  298. .warp-top {
  299. text-align: center;
  300. font-size: 24rpx;
  301. padding: 15rpx 0;
  302. color: #FFFFFF;
  303. background-color: #3796F8;
  304. }
  305. .rect-two {
  306. width: 90%;
  307. margin-left: 5%;
  308. font-size: 28rpx;
  309. .designation {
  310. padding: 20rpx 0;
  311. color: #333;
  312. font-weight: 600;
  313. }
  314. }
  315. .wire {
  316. border-bottom: 4rpx dashed rgb(168, 197, 255);
  317. }
  318. .description {
  319. padding: 20rpx 0;
  320. color: #666666;
  321. }
  322. .rect-input {
  323. height: 40rpx;
  324. background-color: #EBF0FC;
  325. border: 2rpx solid #4280FD;
  326. border-radius: 14rpx;
  327. padding: 10rpx 20rpx;
  328. }
  329. .option {
  330. padding: 40rpx 40rpx 40rpx 0rpx;
  331. .select {
  332. background-color: #EBF0FC;
  333. padding: 10rpx 20rpx;
  334. color: #4280FD;
  335. border: 2rpx solid #4280FD;
  336. border-radius: 5rpx;
  337. }
  338. }
  339. .introduce {
  340. text-align: center;
  341. background-color: #EBF0FC;
  342. padding: 20rpx 0;
  343. color: #4280FD;
  344. }
  345. .button {
  346. display: flex;
  347. justify-content: space-around;
  348. text-align: center;
  349. align-content: center;
  350. margin: 50rpx 0;
  351. view:nth-child(1) {
  352. color: #575757;
  353. border: 2rpx solid #C7C7C7;
  354. }
  355. view:nth-child(2) {
  356. color: #FFFFFF;
  357. background-color: #3796F8;
  358. }
  359. view {
  360. width: 45%;
  361. padding: 15rpx 0;
  362. border-radius: 32rpx;
  363. font-size: 24rpx;
  364. }
  365. }
  366. }
  367. }
  368. }
  369. </style>