orderInfoModal.vue 4.7 KB

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