orderInfoModal.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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.buyerNameCurrent?infoData.buyerName?infoData.buyerName==infoData.buyerNameCurrent?infoData.buyerNameCurrent:infoData.buyerNameCurrent+'('+infoData.buyerName+')':infoData.buyerNameCurrent:'--' }}</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" v-if="infoData&&infoData.sourceType!='SALES'">
  75. <text class="info-item-tit">采购单号:</text>
  76. <text class="info-item-txt">{{ (infoData && infoData.purchaseBillNo) || '--' }}</text>
  77. </view>
  78. <view class="order-info-list" v-if="infoData&&infoData.sourceType!='XPRH_PURCHASE'&&infoData.sourceType!='SALES'&&infoData.billStatus=='FINISH'">
  79. <text class="info-item-tit">收货状态:</text>
  80. <text class="info-item-txt">{{ (infoData && infoData.receiptStatusDictValue) || '--' }}</text>
  81. </view>
  82. <view class="order-info-list">
  83. <text class="info-item-tit">业务员:</text>
  84. <text class="info-item-txt">{{ (infoData && infoData.salesManName) || '--' }}</text>
  85. </view>
  86. <view class="order-info-list" v-if="infoFlag">
  87. <text class="info-item-tit">铺货出库:</text>
  88. <text class="info-item-txt">{{ (infoData && infoData.distributionFlag)?infoData.distributionFlag==0?'否':'是':'--' }}</text>
  89. </view>
  90. <view class="order-info-list">
  91. <text class="info-item-tit">备注:</text>
  92. <text class="info-item-txt">{{ (infoData && infoData.remarks) || '--' }}</text>
  93. </view>
  94. <view class="order-info-list">
  95. <text class="info-item-tit">{{ infoFlag ? '开单人' : '制单人' }}:</text>
  96. <text class="info-item-txt">{{ (infoData && infoData.operatorName) || '--' }}</text>
  97. </view>
  98. </view>
  99. </scroll-view>
  100. <view class="order-info-footer"><view :class="infoFlag?'button-cancel':''" @click="isShow = false">关闭</view></view>
  101. </view>
  102. </u-mask>
  103. </template>
  104. <script>
  105. export default {
  106. props: {
  107. openModal: {
  108. // 弹框显示状态
  109. type: Boolean,
  110. default: false
  111. },
  112. infoData: {
  113. tyoe: Object,
  114. default: () => {
  115. return null;
  116. }
  117. },
  118. infoFlag: {
  119. type: Boolean,
  120. default: false
  121. }
  122. },
  123. data() {
  124. return {
  125. isShow: this.openModal // 是否打开弹框
  126. };
  127. },
  128. methods: {},
  129. watch: {
  130. // 父页面传过来的弹框状态
  131. openModal(newValue, oldValue) {
  132. this.isShow = newValue;
  133. },
  134. // 重定义的弹框状态
  135. isShow(newValue, oldValue) {
  136. if (!newValue) {
  137. this.$emit('close');
  138. }
  139. }
  140. }
  141. };
  142. </script>
  143. <style lang="scss" scoped>
  144. .orderInfoModal {
  145. width: 100%;
  146. height: 100%;
  147. .order-info-con {
  148. width: 78%;
  149. margin: 30% auto 0;
  150. background-color: #fff;
  151. border-radius: 24upx;
  152. .order-info-main {
  153. padding: 20upx 20upx;
  154. height:800rpx;
  155. .order-info-list {
  156. padding: 20upx 0;
  157. border-bottom: 1upx solid #e4e7ed;
  158. .info-item-tit {
  159. color: #666;
  160. display: inline-block;
  161. }
  162. }
  163. }
  164. .order-info-footer {
  165. text-align: center;
  166. padding: 20upx 0;
  167. text-align: center;
  168. .button-cancel{
  169. width:160rpx;
  170. height: 68rpx;
  171. line-height: 68rpx;
  172. margin:auto;
  173. border-radius: 38rpx;
  174. border:1rpx solid #e4e7ed;
  175. }
  176. }
  177. }
  178. }
  179. </style>