|
@@ -926,6 +926,7 @@ export default {
|
|
|
|
|
|
// 获取商品列表
|
|
|
getGoodsList() {
|
|
|
+ console.log(this.goodsList,"000")
|
|
|
getRetailProductList({
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: 10,
|
|
@@ -937,13 +938,14 @@ export default {
|
|
|
price2: this.goodsScreenForm.price2,
|
|
|
customerId: this.listItem ? this.listItem.customerId : ''
|
|
|
}).then(res => {
|
|
|
+ console.log(res.data.records)
|
|
|
const oldGoodsList = this.goodsList
|
|
|
const newGoodsList = res.data.records
|
|
|
for (let i = 0; i < oldGoodsList.length; i++) {
|
|
|
const oldItem = oldGoodsList[i]
|
|
|
for (let j = 0; j < newGoodsList.length; j++) {
|
|
|
const newItem = newGoodsList[j]
|
|
|
- if (`${newItem.number}_${newItem.saleTypeId}` === `${oldItem.number}_${oldItem.saleTypeId}`) {
|
|
|
+ if (`${newItem.materialNumber}_${newItem.saleTypeId}` === `${oldItem.materialNumber}_${oldItem.saleTypeId}`) {
|
|
|
newGoodsList[j].selected = true
|
|
|
break
|
|
|
}
|