orderInfoModal.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <u-mask class="orderInfoModal" :show="isShow" :mask-click-able="false">
  3. <view class="order-info-con">
  4. <view class="order-info-main">
  5. <view>
  6. <text class="info-item-tit">销售单号:</text>
  7. <text class="info-item-txt">{{infoData && infoData.salesBillNo || '--'}}</text>
  8. </view>
  9. <view>
  10. <text class="info-item-tit">客户名称:</text>
  11. <text class="info-item-txt">{{infoData && infoData.buyerName || '--'}}</text>
  12. </view>
  13. <view>
  14. <text class="info-item-tit">客户地址:</text>
  15. <text class="info-item-txt" v-if="infoData && (infoData.shippingAddressProvinceName || infoData.shippingAddressCityName || infoData.shippingAddressCountyName || infoData.shippingAddress)">
  16. {{infoData.shippingAddressProvinceName || ''}}{{infoData.shippingAddressCityName || ''}}{{infoData.shippingAddressCountyName || ''}}{{infoData.shippingAddress || ''}}
  17. </text>
  18. <text class="info-item-txt" v-else>--</text>
  19. </view>
  20. <view>
  21. <text class="info-item-tit">联系电话:</text>
  22. <text class="info-item-txt">{{infoData && infoData.consigneeTel || '--'}}</text>
  23. </view>
  24. <view>
  25. <text class="info-item-tit">收款方式:</text>
  26. <text class="info-item-txt">{{infoData && infoData.settleStyleEntity && infoData.settleStyleEntity.name || '--'}}</text>
  27. </view>
  28. <view>
  29. <text class="info-item-tit">制单人:</text>
  30. <text class="info-item-txt">{{infoData && infoData.operatorName || '--'}}</text>
  31. </view>
  32. <view>
  33. <text class="info-item-tit">业务员:</text>
  34. <text class="info-item-txt">{{infoData && infoData.salesManName || '--'}}</text>
  35. </view>
  36. <view>
  37. <text class="info-item-tit">来源:</text>
  38. <text class="info-item-txt">{{infoData && infoData.salesBillSourceDictValue || '--'}}</text>
  39. </view>
  40. <view>
  41. <text class="info-item-tit">业务状态:</text>
  42. <text class="info-item-txt">{{infoData && infoData.billStatusDictValue || '--'}}</text>
  43. </view>
  44. <view>
  45. <text class="info-item-tit">财务状态:</text>
  46. <text class="info-item-txt">{{infoData && infoData.financialStatusDictValue || '--'}}</text>
  47. </view>
  48. <view>
  49. <text class="info-item-tit">备注:</text>
  50. <text class="info-item-txt">{{infoData && infoData.remarks || '--'}}</text>
  51. </view>
  52. </view>
  53. <view class="order-info-footer">
  54. <view class="button-cancel" @click="isShow=false">关闭</view>
  55. </view>
  56. </view>
  57. </u-mask>
  58. </template>
  59. <script>
  60. export default {
  61. props: {
  62. openModal: { // 弹框显示状态
  63. type: Boolean,
  64. default: false
  65. },
  66. infoData: {
  67. tyoe: Object,
  68. default: ()=>{
  69. return null
  70. }
  71. }
  72. },
  73. data() {
  74. return {
  75. isShow: this.openModal, // 是否打开弹框
  76. }
  77. },
  78. methods: {},
  79. watch: {
  80. // 父页面传过来的弹框状态
  81. openModal (newValue, oldValue) {
  82. this.isShow = newValue
  83. },
  84. // 重定义的弹框状态
  85. isShow (newValue, oldValue) {
  86. if (!newValue) {
  87. this.$emit('close')
  88. }
  89. }
  90. }
  91. }
  92. </script>
  93. <style lang="scss" scoped>
  94. .orderInfoModal{
  95. width: 100%;
  96. height: 100%;
  97. .order-info-con{
  98. width: 78%;
  99. margin: 30% auto 0;
  100. background-color: #fff;
  101. border-radius: 24upx;
  102. .order-info-main{
  103. padding: 20upx 20upx;
  104. >view{
  105. padding: 10upx 0;
  106. border-bottom: 1upx solid #e4e7ed;
  107. .info-item-tit{
  108. color: #666;
  109. display: inline-block;
  110. }
  111. }
  112. }
  113. .order-info-footer{
  114. text-align: center;
  115. padding-bottom: 20upx;
  116. }
  117. }
  118. }
  119. </style>