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

120 lines
2.1 KiB

4 months ago
  1. <template>
  2. <!-- 记工记账 -->
  3. <view class="page">
  4. <navbar title="记工"
  5. bgColor="#F9FEFE"
  6. leftClick @leftClick="$utils.navigateBack" />
  7. <uv-cell
  8. title="选择日期"
  9. rightIconStyle="fontSize: 30rpx;"
  10. :value="form.date || '请选择选择日期'"
  11. @click="$refs.datetimePicker.open()"
  12. isLink
  13. ></uv-cell>
  14. <view class="form-sheet-cell">
  15. <view class="label">
  16. 上班时间
  17. </view>
  18. <!-- <input placeholder="请输入上班时间"
  19. type="number"
  20. v-model="form.phone" /> -->
  21. <uv-number-box v-model="form.time"
  22. :step="0.5"
  23. :min="0.5"
  24. ></uv-number-box>
  25. </view>
  26. <view class="form-sheet-cell">
  27. <view class="label">
  28. 备注
  29. </view>
  30. <uv-textarea
  31. v-model="form.workDetail"
  32. count
  33. :maxlength="300"
  34. autoHeight
  35. placeholder="请输入备注"></uv-textarea>
  36. </view>
  37. <view class="uni-color-btn"
  38. @click="submit">
  39. 确认
  40. </view>
  41. <uv-datetime-picker
  42. ref="datetimePicker"
  43. mode="date"
  44. v-model="dateValue"
  45. @confirm="datetimePickerConfim"/>
  46. </view>
  47. </template>
  48. <script>
  49. import mixinList from '@/mixins/list.js'
  50. export default {
  51. mixins : [mixinList],
  52. data() {
  53. return {
  54. form : {
  55. date : '',
  56. time : 0.5,
  57. },
  58. id : 0,
  59. dateValue : new Date().getTime()
  60. }
  61. },
  62. onLoad({id}) {
  63. this.id = id
  64. },
  65. onShow() {},
  66. methods: {
  67. datetimePickerConfim(e){
  68. this.form.date = this.$dayjs(e.value).format('YYYY-MM-DD')
  69. },
  70. submit(){
  71. },
  72. }
  73. }
  74. </script>
  75. <style scoped lang="scss">
  76. .page {
  77. background-color: #fff;
  78. .form-sheet-cell{
  79. display: flex;
  80. background-color: #fff;
  81. padding: 20rpx 30rpx;
  82. align-items: center;
  83. .label{
  84. width: 160rpx;
  85. }
  86. .price{
  87. display: flex;
  88. text-align: center;
  89. input{
  90. width: 150rpx;
  91. border: 1px solid $uni-color;
  92. margin: 0 10rpx;
  93. }
  94. }
  95. input{
  96. flex: 1;
  97. background-color: rgba($uni-color, 0.1);
  98. padding: 10rpx 20rpx;
  99. border-radius: 10rpx;
  100. }
  101. .right-icon{
  102. margin-left: auto;
  103. }
  104. }
  105. /deep/ .uv-textarea{
  106. background-color: rgba($uni-color, 0.1) !important;
  107. min-height: 400rpx;
  108. }
  109. }
  110. </style>