orderInfoModal.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <u-mask class="orderInfoModal" :show="isShow" :mask-click-able="false">
  3. <view class="order-info-con">
  4. <scroll-view scroll-y>
  5. <view class="order-info-main">
  6. <view class="order-info-list">
  7. <text class="info-item-tit">销售单号:</text>
  8. <text class="info-item-txt">{{ (infoData && infoData.salesBillNo) || '--' }}</text>
  9. </view>
  10. <view class="order-info-list">
  11. <text class="info-item-tit">客户名称:</text>
  12. <text class="info-item-txt">{{ (infoData && infoData.buyerName) || '--' }}</text>
  13. </view>
  14. <view class="order-info-list">
  15. <text class="info-item-tit">客户地址:</text>
  16. <text
  17. class="info-item-txt"
  18. v-if="
  19. infoData &&
  20. (infoData.shippingAddressProvinceName || infoData.shippingAddressCityName || infoData.shippingAddressCountyName || infoData.shippingAddress)
  21. "
  22. >
  23. {{ infoData.shippingAddressProvinceName || '' }}{{ infoData.shippingAddressCityName || '' }}{{ infoData.shippingAddressCountyName || ''
  24. }}{{ infoData.shippingAddress || '' }}
  25. </text>
  26. <text class="info-item-txt" v-else>--</text>
  27. </view>
  28. <view class="order-info-list">
  29. <text class="info-item-tit">联系电话:</text>
  30. <text class="info-item-txt">{{ (infoData && infoData.consigneeTel) || '--' }}</text>
  31. </view>
  32. <view class="order-info-list">
  33. <text class="info-item-tit">收款方式:</text>
  34. <text class="info-item-txt">{{ (infoData && infoData.settleStyleSnDictValue) || '--' }}</text>
  35. </view>
  36. <view class="order-info-list">
  37. <text class="info-item-tit">{{ infoFlag ? '开单人' : '制单人' }}:</text>
  38. <text class="info-item-txt">{{ (infoData && infoData.operatorName) || '--' }}</text>
  39. </view>
  40. <view class="order-info-list">
  41. <text class="info-item-tit">业务员:</text>
  42. <text class="info-item-txt">{{ (infoData && infoData.salesManName) || '--' }}</text>
  43. </view>
  44. <view class="order-info-list">
  45. <text class="info-item-tit">{{ infoFlag ? '单据来源' : '来源' }}:</text>
  46. <text class="info-item-txt">{{ (infoData && infoData.sourceTypeDictValue) || '--' }}</text>
  47. </view>
  48. <view class="order-info-list">
  49. <text class="info-item-tit">业务状态:</text>
  50. <text class="info-item-txt">{{ (infoData && infoData.billStatusDictValue) || '--' }}</text>
  51. </view>
  52. <view class="order-info-list">
  53. <text class="info-item-tit">财务状态:</text>
  54. <text class="info-item-txt">{{ (infoData && infoData.financialStatusDictValue) || '--' }}</text>
  55. </view>
  56. <view class="order-info-list">
  57. <text class="info-item-tit">备注:</text>
  58. <text class="info-item-txt">{{ (infoData && infoData.remarks) || '--' }}</text>
  59. </view>
  60. <view v-if="infoFlag">
  61. <view class="order-info-list">
  62. <text class="info-item-tit">创建时间:</text>
  63. <text class="info-item-txt">{{ (infoData && infoData.sourceTypeDictValue) || '--' }}</text>
  64. </view>
  65. <view class="order-info-list">
  66. <text class="info-item-tit">审核时间:</text>
  67. <text class="info-item-txt">{{ (infoData && infoData.auditDate) || '--' }}</text>
  68. </view>
  69. <view class="order-info-list">
  70. <text class="info-item-tit">联系人:</text>
  71. <text class="info-item-txt">{{ (infoData && infoData.consigneeName) || '--' }}</text>
  72. </view>
  73. <view class="order-info-list">
  74. <text class="info-item-tit">联系手机:</text>
  75. <text class="info-item-txt">{{ (infoData && infoData.consigneeMobile) || '--' }}</text>
  76. </view>
  77. <view class="order-info-list">
  78. <text class="info-item-tit">价格类型:</text>
  79. <text class="info-item-txt">{{ (infoData && infoData.priceTypeDictValue) || '--' }}</text>
  80. </view>
  81. <view class="order-info-list">
  82. <text class="info-item-tit">配送方式:</text>
  83. <text class="info-item-txt">{{ (infoData && infoData.dispatchType) || '--' }}</text>
  84. </view>
  85. <view class="order-info-list">
  86. <text class="info-item-tit">铺货出库:</text>
  87. <text class="info-item-txt">{{ (infoData && infoData.sourceTypeDictValue)?infoData.sourceTypeDictValue==0?'否':'是':'--' }}</text>
  88. </view>
  89. </view>
  90. </view>
  91. </scroll-view>
  92. <view class="order-info-footer"><view class="button-cancel" @click="isShow = false">关闭</view></view>
  93. </view>
  94. </u-mask>
  95. </template>
  96. <script>
  97. export default {
  98. props: {
  99. openModal: {
  100. // 弹框显示状态
  101. type: Boolean,
  102. default: false
  103. },
  104. infoData: {
  105. tyoe: Object,
  106. default: () => {
  107. return null;
  108. }
  109. },
  110. infoFlag: {
  111. type: Boolean,
  112. default: false
  113. }
  114. },
  115. data() {
  116. return {
  117. isShow: this.openModal // 是否打开弹框
  118. };
  119. },
  120. methods: {},
  121. watch: {
  122. // 父页面传过来的弹框状态
  123. openModal(newValue, oldValue) {
  124. this.isShow = newValue;
  125. },
  126. // 重定义的弹框状态
  127. isShow(newValue, oldValue) {
  128. if (!newValue) {
  129. this.$emit('close');
  130. }
  131. }
  132. }
  133. };
  134. </script>
  135. <style lang="scss" scoped>
  136. .orderInfoModal {
  137. width: 100%;
  138. height: 100%;
  139. .order-info-con {
  140. width: 78%;
  141. margin: 30% auto 0;
  142. background-color: #fff;
  143. border-radius: 24upx;
  144. .order-info-main {
  145. padding: 20upx 20upx;
  146. height:800rpx;
  147. .order-info-list {
  148. padding: 10upx 0;
  149. border-bottom: 1upx solid #e4e7ed;
  150. .info-item-tit {
  151. color: #666;
  152. display: inline-block;
  153. }
  154. }
  155. }
  156. .order-info-footer {
  157. text-align: center;
  158. padding-bottom: 20upx;
  159. }
  160. }
  161. }
  162. </style>