|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
},
|
|
|
/* 获取数据 ,开始查阅记录 */
|
|
|
loadData() {
|
|
|
- repostCurd('select', '{"tableName": "t_lhypb","paramWhere":{"jie_yang_zhuang_t":"待接收"}}').then(response => {
|
|
|
+ repostCurd('select', '{"tableName": "t_lhypb","paramWhere":{"jie_yang_zhuang_t":"待接收","shi_fou_guo_shen_":"1"}}').then(response => {
|
|
|
if (response.variables.data && response.variables.data.length > 0) {
|
|
|
for (let i in response.variables.data) {
|
|
|
response.variables.data[i].jie_yang_shu_lian = 1
|
|
|
@@ -20,9 +20,9 @@ export default {
|
|
|
},
|
|
|
loadDataBySQL(page) {
|
|
|
// 扫码扫到新数据,查询 并分页 回填展示
|
|
|
- let countSQL = `select count(*) as count from t_lhypb where jie_yang_zhuang_t = '待接收'`
|
|
|
+ let countSQL = `select count(*) as count from t_lhypb where jie_yang_zhuang_t = '待接收' and shi_fou_guo_shen_ = '1'`
|
|
|
let str = (page-1)*10
|
|
|
- let fysql = `select * from t_lhypb where jie_yang_zhuang_t = '待接收' limit ${str},10`
|
|
|
+ let fysql = `select * from t_lhypb where jie_yang_zhuang_t = '待接收' and shi_fou_guo_shen_ = '1' limit ${str},10`
|
|
|
Promise.all([repostCurd('sql', countSQL), repostCurd('sql', fysql)]).then(([res1, res]) => {
|
|
|
this.listData = []
|
|
|
this.pageCount = res1.variables.data[0].count
|