productScreen.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view>
  3. <u-popup :show="show" closeOnClickOverlay mode="top" @close="closePopup">
  4. <view class="search_list">
  5. <u-form labelPosition="left" :model="form" labelWidth="180" labelAlign="left" class="baseForm">
  6. <u-form-item label="牌号:" class="item-form" borderBottom prop="assetType">
  7. <uni-easyinput prefixIcon="search" style="width: 460rpx" v-model="form.brandNum" placeholder="请输入">
  8. </uni-easyinput>
  9. </u-form-item>
  10. <u-form-item label="物品编码:" class="item-form" borderBottom prop="assetType">
  11. <uni-easyinput prefixIcon="search" style="width: 460rpx" v-model="form.categoryCode"
  12. placeholder="请输入">
  13. </uni-easyinput>
  14. </u-form-item>
  15. <u-form-item label="物品名称:" class="item-form" borderBottom prop="assetType">
  16. <uni-easyinput prefixIcon="search" style="width: 460rpx" v-model="form.contactName"
  17. placeholder="请输入">
  18. </uni-easyinput>
  19. </u-form-item>
  20. </u-form>
  21. </view>
  22. <view class="operate_box rx-bc">
  23. <u-button size="small" class="u-reset-button" @click="reset">
  24. 重置
  25. </u-button>
  26. <u-button type="success" size="small" class="u-reset-button" @click="submit">
  27. 确定
  28. </u-button>
  29. </view>
  30. </u-popup>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. components: {},
  36. props: [],
  37. data() {
  38. return {
  39. form: {
  40. brandNum: "",
  41. categoryCode: "",
  42. categoryName: ""
  43. },
  44. show: false,
  45. }
  46. },
  47. methods: {
  48. open() {
  49. this.show = true;
  50. },
  51. closePopup() {
  52. },
  53. reset() {
  54. this.form = {
  55. brandNum: "",
  56. categoryCode: "",
  57. contactName: ""
  58. }
  59. this.submit();
  60. },
  61. submit() {
  62. this.$emit('succeed',this.form);
  63. this.show = false;
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .search_list {
  70. padding: 0 20rpx;
  71. }
  72. .operate_box {
  73. padding: 10rpx 32rpx;
  74. /deep/ .u-button {
  75. width: 40%;
  76. }
  77. }
  78. .item-form{
  79. /deep/ .u-form-item__body__left__content__label{
  80. font-size: 28rpx;
  81. }
  82. }
  83. </style>