orderInfoModal.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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.settleStyleSnDictValue || '--'}}</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.sourceTypeDictValue || '--'}}</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. <text class="info-item-tit">单据来源:</text>
  54. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  55. </view>
  56. <view>
  57. <text class="info-item-tit">创建时间:</text>
  58. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  59. </view>
  60. <view>
  61. <text class="info-item-tit">审核时间:</text>
  62. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  63. </view>
  64. <view>
  65. <text class="info-item-tit">联系人:</text>
  66. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  67. </view>
  68. <view>
  69. <text class="info-item-tit">联系手机:</text>
  70. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  71. </view>
  72. <view>
  73. <text class="info-item-tit">价格类型:</text>
  74. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  75. </view>
  76. <view>
  77. <text class="info-item-tit">配送方式:</text>
  78. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  79. </view>
  80. <view>
  81. <text class="info-item-tit">铺货出库:</text>
  82. <text class="info-item-txt">{{infoData && infoData.sourceTypeDictValue || '--'}}</text>
  83. </view>
  84. <view>
  85. <text class="info-item-tit">开单人:</text>
  86. <text class="info-item-txt">{{infoData && infoData.operatorName || '--'}}</text>
  87. </view>
  88. </view>
  89. <view class="order-info-footer">
  90. <view class="button-cancel" @click="isShow=false">关闭</view>
  91. </view>
  92. </view>
  93. </u-mask>
  94. </template>
  95. <script>
  96. export default {
  97. props: {
  98. openModal: { // 弹框显示状态
  99. type: Boolean,
  100. default: false
  101. },
  102. infoData: {
  103. tyoe: Object,
  104. default: ()=>{
  105. return null
  106. }
  107. }
  108. },
  109. data() {
  110. return {
  111. isShow: this.openModal, // 是否打开弹框
  112. }
  113. },
  114. methods: {},
  115. watch: {
  116. // 父页面传过来的弹框状态
  117. openModal (newValue, oldValue) {
  118. this.isShow = newValue
  119. },
  120. // 重定义的弹框状态
  121. isShow (newValue, oldValue) {
  122. if (!newValue) {
  123. this.$emit('close')
  124. }
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. .orderInfoModal{
  131. width: 100%;
  132. height: 100%;
  133. .order-info-con{
  134. width: 78%;
  135. margin: 30% auto 0;
  136. background-color: #fff;
  137. border-radius: 24upx;
  138. .order-info-main{
  139. padding: 20upx 20upx;
  140. >view{
  141. padding: 10upx 0;
  142. border-bottom: 1upx solid #e4e7ed;
  143. .info-item-tit{
  144. color: #666;
  145. display: inline-block;
  146. }
  147. }
  148. }
  149. .order-info-footer{
  150. text-align: center;
  151. padding-bottom: 20upx;
  152. }
  153. }
  154. }
  155. </style>