lilei 2 年之前
父节点
当前提交
01905c0bbe

+ 5 - 1
src/views/salesReturnManagement/receiveCheck/chooseProductsModal.vue

@@ -12,7 +12,7 @@
       <div class="products-con">
         <div>
           <!-- 查询配件列表 -->
-          <queryPart ref="partQuery" :returnReasonList="returnReasonList" :newLoading="isInster" @add="saveProduct"></queryPart>
+          <queryPart ref="partQuery" :isShowPrice="isShowPrice" :returnReasonList="returnReasonList" :newLoading="isInster" @add="saveProduct"></queryPart>
         </div>
       </div>
     </a-spin>
@@ -38,6 +38,10 @@ export default {
     buyerSn: {
       type: String,
       default: ''
+    },
+    isShowPrice: { //  弹框显示状态
+      type: Boolean,
+      default: true
     }
   },
   data () {

+ 7 - 1
src/views/salesReturnManagement/receiveCheck/receiving.vue

@@ -95,7 +95,13 @@
       </a-card>
     </a-spin>
     <!-- 添加产品 -->
-    <chooseProductsModal ref="chooseProduct" :openModal="openModal" :buyerSn="$route.params.buyerSn" @close="openModal=false" @addProduct="addProduct"></chooseProductsModal>
+    <chooseProductsModal
+      ref="chooseProduct"
+      :isShowPrice="false"
+      :openModal="openModal"
+      :buyerSn="$route.params.buyerSn"
+      @close="openModal=false"
+      @addProduct="addProduct"></chooseProductsModal>
   </div>
 </template>
 

+ 6 - 2
src/views/salesReturnManagement/salesReturn/queryPart.vue

@@ -96,7 +96,11 @@ export default {
   components: { STable, VSelect },
   props: {
     newLoading: Boolean,
-    returnReasonList: Array
+    returnReasonList: Array,
+    isShowPrice: {
+      type: Boolean,
+      default: true
+    }
   },
   data () {
     return {
@@ -161,7 +165,7 @@ export default {
         { title: '退货原因', dataIndex: 'returnReason', width: '10%', align: 'center', scopedSlots: { customRender: 'returnReason' } },
         { slots: { title: 'customTitle' }, scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
       ]
-      if (this.$hasPermissions('B_isShowPrice')) { //  售价权限
+      if (this.$hasPermissions('B_isShowPrice') && this.isShowPrice) { //  售价权限
         arr.splice(4, 0, { title: '当前售价', dataIndex: 'productPrice', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
       }
       this.columns = arr