|
@@ -150,7 +150,8 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
return new Promise((res, rej) => {
|
|
return new Promise((res, rej) => {
|
|
- const ret = this.chooseData.filter(item => {
|
|
|
|
|
|
+ const chooseList = JSON.parse(JSON.stringify(this.chooseData))
|
|
|
|
+ const ret = chooseList.filter(item => {
|
|
return item.productEntity.code.indexOf(this.queryParam.productCode) >= 0 &&
|
|
return item.productEntity.code.indexOf(this.queryParam.productCode) >= 0 &&
|
|
item.productEntity.name.indexOf(this.queryParam.productName) >= 0
|
|
item.productEntity.name.indexOf(this.queryParam.productName) >= 0
|
|
})
|
|
})
|
|
@@ -218,7 +219,7 @@ export default {
|
|
const flag = newList.some(item => Object.keys(item).length > 2)
|
|
const flag = newList.some(item => Object.keys(item).length > 2)
|
|
if (flag) {
|
|
if (flag) {
|
|
_this.listInfo = newList.filter(con => Object.keys(con).length > 2)
|
|
_this.listInfo = newList.filter(con => Object.keys(con).length > 2)
|
|
- _this.openGrabOrderModal = !!_this.isShow
|
|
|
|
|
|
+ _this.openGrabOrderModal = !!_this.isShow
|
|
const noShowList = newList.filter(con => Object.keys(con).length <= 2)
|
|
const noShowList = newList.filter(con => Object.keys(con).length <= 2)
|
|
_this.noShowBillSnList = _this.getNewSalesBillList(noShowList)
|
|
_this.noShowBillSnList = _this.getNewSalesBillList(noShowList)
|
|
_this.salesBillSnList = _this.noShowBillSnList ? _this.noShowBillSnList : []
|
|
_this.salesBillSnList = _this.noShowBillSnList ? _this.noShowBillSnList : []
|