safecheck-client 4.0.1-92 → 4.0.1-96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,6 +203,7 @@
203
203
  </div>
204
204
  <v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
205
205
  :options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
206
+ @change="$parent.$parent.planNameChange"
206
207
  condition="f_plan_name like '%{}%'" close-on-select clear-button>
207
208
  </v-select>
208
209
  </div>
@@ -689,6 +690,31 @@ export default {
689
690
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
690
691
  },
691
692
  methods: {
693
+ planNameChange(val){
694
+ if (val.length > 0 && val[0]){
695
+ this.checkBooks=[]
696
+ let condition = '1=1'
697
+ condition = `tcp.f_plan_name = '${val[0]}' `
698
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
699
+ data: {
700
+ items: 'tcb.id,tcb.f_check_book_name,tcb.f_check_book_type',
701
+ tablename: 't_check_book tcb left join t_check_plan tcp on tcb.id = tcp.f_book_id',
702
+ condition: ` ${condition}`,
703
+ orderitem: 'tcb.id desc'
704
+ }
705
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
706
+ this.checkBooks.push({label: '全部', value: ''})
707
+ res.data.forEach(ress => {
708
+ this.checkBooks.push({
709
+ label: ress.f_check_book_name,
710
+ value: ress.id
711
+ })
712
+ })
713
+ })
714
+ }else {
715
+ this.getCheckBook()
716
+ }
717
+ },
692
718
  getCheckBook(val){
693
719
  this.checkBooks=[]
694
720
  let condition = '1=1'
@@ -10,6 +10,10 @@
10
10
  <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
11
  style="width: 95%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
12
  </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_user_name"
15
+ style="width: 95%" placeholder="用户姓名" condition="ui.f_user_name like '%{}%'">
16
+ </div>
13
17
  <div class="form-group col-sm-1" >
14
18
  <input type="text" class="input_search" v-model="model.f_meternumber"
15
19
  style="width: 95%" placeholder="表号" condition="uf.f_meternumber like '%{}%'">