|
@@ -227,7 +227,6 @@ import Print from '@/views/common/print.vue'
|
|
|
import { hdPrint } from '@/libs/JGPrint'
|
|
|
import ProductType from '../../common/productType.js'
|
|
|
import importGuideModal from './importGuideModal.vue'
|
|
|
-import { productList } from '@/api/product'
|
|
|
import {
|
|
|
purchaseReturnDetailList,
|
|
|
purchaseReturnDetail,
|
|
@@ -239,7 +238,8 @@ import {
|
|
|
purchaseReturnSubmit,
|
|
|
purchaseReturnApplyPrint,
|
|
|
purchaseReturnApplyExport,
|
|
|
- purchaseReturnApplyCreateList } from '@/api/purchaseReturnApply'
|
|
|
+ purchaseReturnApplyCreateList,
|
|
|
+ queryDealerScopeProductPage } from '@/api/purchaseReturnApply'
|
|
|
export default {
|
|
|
name: 'PurchaseReturnEdit',
|
|
|
components: { STable, VSelect, Print, ProductType, importGuideModal },
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.queryParam.sysFlag = '1' // 剪冠产品
|
|
|
- return productList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ return queryDealerScopeProductPage(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
const data = res.data
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
@@ -438,7 +438,7 @@ export default {
|
|
|
fun(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- _this.$refs.table.refresh()
|
|
|
+ // _this.$refs.table.refresh()
|
|
|
_this.$refs.chooseTable.refresh()
|
|
|
_this.spinning = false
|
|
|
_this.getDetail()
|