|
@@ -216,7 +216,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getEnginDetail, getEnginProductList, addEngin, editEngin, submitEngin } from "@/api/supply/engin";
|
|
|
+import { getEnginDetail, getRetailProductList, addEngin, editEngin, submitEngin } from "@/api/supply/engin";
|
|
|
import { getDictList, getTypeList } from '@/api/common'
|
|
|
|
|
|
export default {
|
|
@@ -333,7 +333,7 @@ export default {
|
|
|
this.goodsList = data.items;
|
|
|
|
|
|
for (let i = 0; i < this.goodsList.length; i++) {
|
|
|
- this.getEnginProductList(i);
|
|
|
+ this.getRetailProductList(i);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -356,8 +356,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 获取商品列表
|
|
|
- getEnginProductList(index) {
|
|
|
- getEnginProductList({
|
|
|
+ getRetailProductList(index) {
|
|
|
+ getRetailProductList({
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
saleId: this.goodsList[index].saleTypeId
|
|
@@ -382,7 +382,7 @@ export default {
|
|
|
this.goodsList[index].unit = '';
|
|
|
this.goodsList[index].price = '';
|
|
|
this.goodsList[index].taxRate = '';
|
|
|
- this.getEnginProductList(index);
|
|
|
+ this.getRetailProductList(index);
|
|
|
},
|
|
|
|
|
|
// 修改产品
|