screen.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.docNo" 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.orderNo"
  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-item label="发货单编码:" class="item-form" borderBottom prop="assetType">
  21. <uni-easyinput prefixIcon="search" style="width: 460rpx" v-model="form.keyWord"
  22. placeholder="请输入">
  23. </uni-easyinput>
  24. </u-form-item> -->
  25. </u-form>
  26. </view>
  27. <view class="operate_box rx-bc">
  28. <u-button size="small" class="u-reset-button" @click="reset">
  29. 重置
  30. </u-button>
  31. <u-button type="success" size="small" class="u-reset-button" @click="submit">
  32. 确定
  33. </u-button>
  34. </view>
  35. </u-popup>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. components: {},
  41. props: {},
  42. data() {
  43. return {
  44. form: {
  45. docNo: "",
  46. orderNo: "",
  47. contactName: ""
  48. },
  49. show: false,
  50. }
  51. },
  52. methods: {
  53. open() {
  54. this.show = true;
  55. },
  56. closePopup() {
  57. },
  58. reset() {
  59. this.form = {
  60. docNo: "",
  61. orderNo: "",
  62. contactName: ""
  63. }
  64. this.submit();
  65. },
  66. submit() {
  67. this.$emit('succeed',this.form);
  68. this.show = false;
  69. },
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .search_list {
  75. padding: 0 20rpx;
  76. }
  77. .operate_box {
  78. padding: 10rpx 32rpx;
  79. /deep/ .u-button {
  80. width: 40%;
  81. }
  82. }
  83. .item-form{
  84. /deep/ .u-form-item__body__left__content__label{
  85. font-size: 28rpx;
  86. }
  87. }
  88. </style>