|
@@ -268,6 +268,7 @@
|
|
|
size="mini"
|
|
|
filterable
|
|
|
@change="setText($event, scope.$index, scope.row, 'priceType')"
|
|
|
+ @focus="handlePriceType(scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in priceList"
|
|
@@ -525,7 +526,7 @@ import {
|
|
|
updatePolicy,
|
|
|
setStauts
|
|
|
} from '@/api/policy_list'
|
|
|
-import { getProductPriceListV2 } from '@/api/priceType'
|
|
|
+import { getPriceSalesRelaListV2 } from '@/api/priceType'
|
|
|
|
|
|
import { downloadFiles, handleImport } from '@/utils/util'
|
|
|
// import Transfer from './Transfer'
|
|
@@ -764,12 +765,6 @@ export default {
|
|
|
const typeData = await getTypeList(params)
|
|
|
|
|
|
this.typeList = typeData.data.records
|
|
|
- getProductPriceListV2({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1
|
|
|
- }).then(res => {
|
|
|
- this.priceList = res.data.records
|
|
|
- })
|
|
|
},
|
|
|
handleSalesType(e, row, index, name) {
|
|
|
let item
|
|
@@ -937,7 +932,6 @@ export default {
|
|
|
.then(result => {
|
|
|
result.data.records.forEach(k => {
|
|
|
k.fang = true
|
|
|
-
|
|
|
k.walletIds = []
|
|
|
k.rebateWalletIds = []
|
|
|
if (!k.specification) {
|
|
@@ -1137,6 +1131,24 @@ export default {
|
|
|
this.isCondition = 0
|
|
|
|
|
|
this.$emit('upDataIsFlag')
|
|
|
+ },
|
|
|
+ getPriceSalesRelaListV2(val) {
|
|
|
+ getPriceSalesRelaListV2({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [
|
|
|
+ {
|
|
|
+ 'param': 'b.sale_code',
|
|
|
+ 'compare': 'like',
|
|
|
+ 'value': val
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.priceList = res.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handlePriceType(e) {
|
|
|
+ this.getPriceSalesRelaListV2(e.saleTypeCode)
|
|
|
}
|
|
|
|
|
|
},
|