orderInfoModal.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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">{{ infoFlag ? '单据来源' : '来源' }}:</text>
  30. <text class="info-item-txt">{{ (infoData && infoData.sourceTypeDictValue) || '--' }}</text>
  31. </view>
  32. <view class="order-info-list">
  33. <text class="info-item-tit">业务状态:</text>
  34. <text class="info-item-txt">{{ (infoData && infoData.billStatusDictValue) || '--' }}</text>
  35. </view>
  36. <view class="order-info-list">
  37. <text class="info-item-tit">财务状态:</text>
  38. <text class="info-item-txt">{{ (infoData && infoData.financialStatusDictValue) || '--' }}</text>
  39. </view>
  40. <view v-if="infoFlag">
  41. <view class="order-info-list">
  42. <text class="info-item-tit">创建时间:</text>
  43. <text class="info-item-txt">{{ (infoData && infoData.createDate) || '--' }}</text>
  44. </view>
  45. <view class="order-info-list">
  46. <text class="info-item-tit">审核时间:</text>
  47. <text class="info-item-txt">{{ (infoData && infoData.auditDate) || '--' }}</text>
  48. </view>
  49. <view class="order-info-list">
  50. <text class="info-item-tit">联系人:</text>
  51. <text class="info-item-txt">{{ (infoData && infoData.consigneeName) || '--' }}</text>
  52. </view>
  53. </view>
  54. <view class="order-info-list">
  55. <text class="info-item-tit">联系电话:</text>
  56. <text class="info-item-txt">{{ (infoData && infoData.consigneeTel) || '--' }}</text>
  57. </view>
  58. <view class="order-info-list">
  59. <text class="info-item-tit">联系手机:</text>
  60. <text class="info-item-txt">{{ (infoData && infoData.consigneeMobile) || '--' }}</text>
  61. </view>
  62. <view class="order-info-list" v-if="infoFlag">
  63. <text class="info-item-tit">价格类型:</text>
  64. <text class="info-item-txt">{{ (infoData && infoData.priceTypeDictValue) || '--' }}</text>
  65. </view>
  66. <view class="order-info-list">
  67. <text class="info-item-tit">收款方式:</text>
  68. <text class="info-item-txt">{{ (infoData && infoData.settleStyleSnDictValue) || '--' }}</text>
  69. </view>
  70. <view class="order-info-list" v-if="infoFlag">
  71. <text class="info-item-tit">配送方式:</text>
  72. <text class="info-item-txt">{{ (infoData && infoData.dispatchTypeDictValue) || '--' }}</text>
  73. </view>
  74. <view class="order-info-list">
  75. <text class="info-item-tit">业务员:</text>
  76. <text class="info-item-txt">{{ (infoData && infoData.salesManName) || '--' }}</text>
  77. </view>
  78. <view class="order-info-list" v-if="infoFlag">
  79. <text class="info-item-tit">铺货出库:</text>
  80. <text class="info-item-txt">{{ (infoData && infoData.distributionFlag)?infoData.distributionFlag==0?'否':'是':'--' }}</text>
  81. </view>
  82. <view class="order-info-list">
  83. <text class="info-item-tit">备注:</text>
  84. <text class="info-item-txt">{{ (infoData && infoData.remarks) || '--' }}</text>
  85. </view>
  86. <view class="order-info-list">
  87. <text class="info-item-tit">{{ infoFlag ? '开单人' : '制单人' }}:</text>
  88. <text class="info-item-txt">{{ (infoData && infoData.operatorName) || '--' }}</text>
  89. </view>
  90. </view>
  91. </scroll-view>
  92. <view class="order-info-footer"><view :class="infoFlag?'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: 20upx 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: 20upx 0;
  159. text-align: center;
  160. .button-cancel{
  161. width:160rpx;
  162. height: 68rpx;
  163. line-height: 68rpx;
  164. margin:auto;
  165. border-radius: 38rpx;
  166. border:1rpx solid #e4e7ed;
  167. }
  168. }
  169. }
  170. }
  171. </style>