ZZJ 3 жил өмнө
parent
commit
1a3ecca314

+ 3 - 3
src/views/system/jbdScan/js/manualConfirmationJS.js

@@ -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

+ 1 - 1
src/views/system/jbdScan/js/sampleConfirmationJS.js

@@ -28,7 +28,7 @@ export default {
 
       // 扫码扫到新数据,查询 回填展示
       if(flag){
-         repostCurd('select','{"tableName": "t_lhypb","paramWhere":{"yang_pin_bian_hao":"' + id + '"}}').then(res => {
+         repostCurd('select','{"tableName": "t_lhypb","paramWhere":{"yang_pin_bian_hao":"' + id + '","jie_yang_zhuang_t":"待接收"}}').then(res => {
           if (res.variables.data && res.variables.data.length > 0) {
             for (let i in res.variables.data) {
               res.variables.data[i].jie_yang_shu_lian = 1