lilei 2 years ago
parent
commit
c87e2e5c47

+ 4 - 3
src/views/reportData/salesReturnsReport/list.vue

@@ -81,7 +81,8 @@
         class="sTable"
         ref="table"
         size="small"
-        :rowKey="(record) => record.id"
+        :rowKey="(record) => record.no"
+        rowKeyName="no"
         :columns="columns"
         :data="loadData"
         :scroll="{ x: 1740 }"
@@ -194,10 +195,10 @@ export default {
       if (this.$hasPermissions('M_salesReturnsReportList_salesPrice')) { //  售价权限
         arr.push({ title: '开单退货金额', dataIndex: 'totalAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
       }
-      if (this.$hasPermissions('M_salesReturnsReportList_cityPrice')) {
+      if (this.$hasPermissions('M_salesReturnsReportList_provincePrice')) {
         arr.push({ title: '经销商价', dataIndex: 'totalWholesalePrice2', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
       }
-      if (this.$hasPermissions('M_salesReturnsReportList_provincePrice')) {
+      if (this.$hasPermissions('M_salesReturnsReportList_cityPrice')) {
         arr.push({ title: '服务中心价', dataIndex: 'totalWholesalePrice1', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
       }
       if (this.$hasPermissions('M_salesReturnsReportList_specialPrice')) {

+ 3 - 3
src/views/salesManagement/backorder/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称">
-                <custList ref="custList" id="backorderList-buyerSn" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="custList" id="backorderList-buyerSn" @change="custChange"></dealerSubareaScopeList>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -55,14 +55,14 @@
 <script>
 import { commonMixin } from '@/utils/mixin'
 import rangeDate from '@/views/common/rangeDate.vue'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import { STable, VSelect } from '@/components'
 import backorderDetailModal from './detailModal.vue'
 import { oosList } from '@/api/oos'
 export default {
   name: 'BackorderList',
   mixins: [commonMixin],
-  components: { STable, VSelect, custList, backorderDetailModal, rangeDate },
+  components: { STable, VSelect, dealerSubareaScopeList, backorderDetailModal, rangeDate },
   data () {
     return {
       spinning: false,