Browse Source

修改bug

chenrui 6 months ago
parent
commit
320953d396

+ 1 - 0
src/views/salesManagement/salesQuery/edit.vue

@@ -28,6 +28,7 @@
         <queryPart
         <queryPart
           ref="partQuery"
           ref="partQuery"
           :newLoading="isInster"
           :newLoading="isInster"
+          :sourceType="detailData.sourceType"
           @add="insterProduct"
           @add="insterProduct"
           @isCost="isCost"></queryPart>
           @isCost="isCost"></queryPart>
       </a-card>
       </a-card>

+ 8 - 2
src/views/salesManagement/salesQuery/queryPart.vue

@@ -198,7 +198,8 @@ export default {
   components: { STable, VSelect, Upload, productSalesRecordModal, carInfoModal, ProductType, ProductBrand },
   components: { STable, VSelect, Upload, productSalesRecordModal, carInfoModal, ProductType, ProductBrand },
   mixins: [commonMixin],
   mixins: [commonMixin],
   props: {
   props: {
-    newLoading: Boolean
+    newLoading: Boolean,
+    sourceType: String // 单据来源
   },
   },
   data () {
   data () {
     return {
     return {
@@ -221,7 +222,7 @@ export default {
         productTypeSn3: '', //  产品三级分类
         productTypeSn3: '', //  产品三级分类
         warehouseSn: undefined, //  仓库、
         warehouseSn: undefined, //  仓库、
         enableFlag: '1', // 启用禁用
         enableFlag: '1', // 启用禁用
-        existStockFlag: undefined // 是否存在库存
+        existStockFlag: undefined// 是否存在库存
       },
       },
       priceType: '', // 价格类型
       priceType: '', // 价格类型
       buyerSn: '', // 客户sn
       buyerSn: '', // 客户sn
@@ -253,6 +254,10 @@ export default {
           parameter.sortField = 'warehouseSn'
           parameter.sortField = 'warehouseSn'
           parameter.sortAlias = 'sd'
           parameter.sortAlias = 'sd'
         }
         }
+        // 转单时,productTypeSn3:543766811373752320
+        if (_this.sourceType === 'TRANSFER_ORDER') {
+          _this.queryParam.productTypeSn3 = '543766811373752320'
+        }
         const params = Object.assign(parameter, _this.queryParam)
         const params = Object.assign(parameter, _this.queryParam)
         //  输入vin,查出vin码信息后请求列表数据
         //  输入vin,查出vin码信息后请求列表数据
         if (_this.queryParam.vinCode && _this.queryParam.vinCode.length == 17 && !this.onlyList) {
         if (_this.queryParam.vinCode && _this.queryParam.vinCode.length == 17 && !this.onlyList) {
@@ -411,6 +416,7 @@ export default {
       this.priceType = priceType || ''
       this.priceType = priceType || ''
       this.buyerSn = buyerSn || ''
       this.buyerSn = buyerSn || ''
       this.queryParam.salesBillSn = salesBillSn || ''
       this.queryParam.salesBillSn = salesBillSn || ''
+
       if (this.onlyList) { // 不清空查询条件
       if (this.onlyList) { // 不清空查询条件
         this.$refs.table.refresh()
         this.$refs.table.refresh()
       } else {
       } else {

+ 8 - 0
src/views/salesManagement/salesQueryNew/chooseProductModal.vue

@@ -249,6 +249,10 @@ export default {
     checkedList: { // 已选产品列表
     checkedList: { // 已选产品列表
       type: Array,
       type: Array,
       default: () => []
       default: () => []
+    },
+    sourceType: {
+      type: String,
+      default: ''
     }
     }
   },
   },
   watch: {
   watch: {
@@ -321,6 +325,10 @@ export default {
           parameter.sortField = 'warehouseSn'
           parameter.sortField = 'warehouseSn'
           parameter.sortAlias = 'sd'
           parameter.sortAlias = 'sd'
         }
         }
+        // 转单时,productTypeSn3:543766811373752320
+        if (_this.sourceType === 'TRANSFER_ORDER') {
+          _this.queryParam.productTypeSn3 = '543766811373752320'
+        }
         const params = Object.assign(parameter, _this.queryParam)
         const params = Object.assign(parameter, _this.queryParam)
         if (_this.queryParam.vinCode && _this.queryParam.vinCode.length == 17 && !this.onlyList) { //  输入vin,查出vin码信息后请求列表数据
         if (_this.queryParam.vinCode && _this.queryParam.vinCode.length == 17 && !this.onlyList) { //  输入vin,查出vin码信息后请求列表数据
           _this.disabled = true
           _this.disabled = true

+ 1 - 0
src/views/salesManagement/salesQueryNew/edit.vue

@@ -310,6 +310,7 @@
       :newLoading="isInster"
       :newLoading="isInster"
       :showModal="openChooseProduct"
       :showModal="openChooseProduct"
       :checkedList="checkedProductList"
       :checkedList="checkedProductList"
+      :sourceType="detailData.sourceType"
       @viewRecord="hanldSalesRecord"
       @viewRecord="hanldSalesRecord"
       @close="openChooseProduct=false"
       @close="openChooseProduct=false"
       @add="insterProduct"
       @add="insterProduct"