diff --git a/src/views/business/comps/select/SelectStudy.vue b/src/views/business/comps/select/SelectStudy.vue index bb2127a..f4c76fc 100644 --- a/src/views/business/comps/select/SelectStudy.vue +++ b/src/views/business/comps/select/SelectStudy.vue @@ -2,9 +2,11 @@ @@ -30,6 +32,10 @@ export default { type: Number, default: 0 }, + showSn: { + type: Boolean, + default: false + } }, watch: { value: { @@ -43,7 +49,8 @@ export default { return { selected: { id: '', - name: '' + name: '', + sn: '' }, }; }, @@ -60,6 +67,7 @@ export default { handleChange(obj) { this.selected.name = obj.name this.selected.id = obj.id + this.selected.sn = obj.sn this.$emit('change', _.merge({}, obj, { key: this.selectkey })) this.$emit('input', obj.id) }, diff --git a/src/views/business/comps/select/SelectStudyDialog.vue b/src/views/business/comps/select/SelectStudyDialog.vue index f202e0a..a2fc7f6 100644 --- a/src/views/business/comps/select/SelectStudyDialog.vue +++ b/src/views/business/comps/select/SelectStudyDialog.vue @@ -68,6 +68,10 @@ export default { name: "SelectStudyDialog", components: { SelectDeptUser }, props: { + showSn: { + type: Boolean, + default: false + } }, watch: { }, @@ -106,11 +110,13 @@ export default { this.selectList = selection this.selectedId = _.map(this.selectList, 'id').join(',') this.selectedName = _.map(this.selectList, 'name').join(',') + this.selectedSn = _.map(this.selectList, 'sn').join(',') }, show(val) { this.searchForm = _.merge({}, this.searchForm, val) this.selectedId = '' this.selectedName = '' + this.selectedSn = '' this.checkedOther = false this.others = '' this.$emit('callback', { id: '', name: '', other: '' }) @@ -121,6 +127,7 @@ export default { this.open = true this.selectedId = '' this.selectedName = '' + this.selectedSn = '' this.checkedOther = false this.others = '' this.$emit('callback', { id: '', name: '', other: '' }) @@ -146,12 +153,15 @@ export default { }, handleSelect() { let name='' + let sn = '' if(this.selectedName!=''&&this.others!=''){ name=this.selectedName+','+this.others + sn=this.selectedSn+','+this.others }else{ name=this.selectedName+this.others + sn=this.selectedSn+this.others } - this.$emit('callback', { id: this.selectedId, name: name, mdOther: this.others }) + this.$emit('callback', { id: this.selectedId, name: name, mdOther: this.others, sn: sn }) this.open = false } } diff --git a/src/views/business/resource/gsp/comps/ffjlList.vue b/src/views/business/resource/gsp/comps/ffjlList.vue index 379a36d..5af0833 100644 --- a/src/views/business/resource/gsp/comps/ffjlList.vue +++ b/src/views/business/resource/gsp/comps/ffjlList.vue @@ -78,12 +78,11 @@ {{ $t('form.export') }} - -
- {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl }} - {{ $t('page.business.resource.gsp.ckl') }}:{{ ckl }} - {{ $t('page.business.resource.gsp.syl') }}:{{ syl }} -
+ + + {{ $t('page.business.resource.gsp.ckl') }}:{{ ckl !== '' ? ckl : '--' }}; + {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl != '' ? rkl : '--' }}; + {{ $t('page.business.resource.gsp.syl') }}:{{ syl != '' ? syl : '--' }}; @@ -225,9 +224,9 @@ export default { single: true, multiple: true, total: 0, - rkl: null, - ckl: null, - syl: null, + ckl: '', + rkl: '', + syl: '', list: [], //勾选列表 selectList: [], @@ -466,19 +465,16 @@ export default { this.total = response.total this.loading = false }) - if (this.queryParams.startDateCk || this.queryParams.startDateRk || this.queryParams.mc || this.queryParams.ph - || this.queryParams.gg || this.queryParams.jlzt || this.queryParams.jyzt || this.queryParams.md) { - statistics(this.queryParams).then(response => { - this.rkl = response.data.rkl - this.ckl = response.data.rkl - this.syl = response.data.rkl - }) - } else { - this.rkl = null - this.ckl = null - this.syl = null - } + this.getStatistics() }, + getStatistics() { + statistics(this.queryParams).then(response => { + this.syl = response.data.syl + this.ckl = response.data.ckl + this.rkl = response.data.rkl + }) + }, + //查询 handleQuery() { this.queryParams.pageNum = 1 diff --git a/src/views/business/resource/gsp/comps/gsp/Bj.vue b/src/views/business/resource/gsp/comps/gsp/Bj.vue index 076fe95..b1ecc2f 100644 --- a/src/views/business/resource/gsp/comps/gsp/Bj.vue +++ b/src/views/business/resource/gsp/comps/gsp/Bj.vue @@ -26,16 +26,16 @@
- + - + @@ -53,8 +53,8 @@ - - + + @@ -156,11 +156,11 @@ export default { message: ' ', trigger: 'blur' }], - jsrq: [{ - required: true, - message: ' ', - trigger: 'blur' - }], + // jsrq: [{ + // required: true, + // message: ' ', + // trigger: 'blur' + // }], cctj: [{ required: true, message: ' ', diff --git a/src/views/business/resource/gsp/comps/gsp/Ff.vue b/src/views/business/resource/gsp/comps/gsp/Ff.vue index cb8f9c7..c011bc8 100644 --- a/src/views/business/resource/gsp/comps/gsp/Ff.vue +++ b/src/views/business/resource/gsp/comps/gsp/Ff.vue @@ -17,7 +17,7 @@ @@ -80,8 +80,7 @@ - + @@ -127,7 +126,7 @@ - + @@ -301,8 +300,7 @@ export default { methods: { selectStudyChange(val) { console.log(val) - - this.form.mdMcs = val.name + this.form.mdMcs = val.sn this.form.mdOther = val.mdOther }, selectStudyChangeBatch(val) { @@ -310,7 +308,7 @@ export default { if (val && val.id && val.id !== '') { const _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key }) if (_index > -1) { - that.selectList[_index].mdMcs = val.name + that.selectList[_index].mdMcs = val.sn that.selectList[_index].mdOther = val.mdOther } } diff --git a/src/views/business/resource/gsp/comps/gsp/Gh.vue b/src/views/business/resource/gsp/comps/gsp/Gh.vue index dfa39f3..8a252b2 100644 --- a/src/views/business/resource/gsp/comps/gsp/Gh.vue +++ b/src/views/business/resource/gsp/comps/gsp/Gh.vue @@ -26,8 +26,7 @@ - + @@ -74,7 +73,7 @@ - + diff --git a/src/views/business/resource/gsp/comps/gsp/Shbj.vue b/src/views/business/resource/gsp/comps/gsp/Shbj.vue index 6b3149f..4e8a397 100644 --- a/src/views/business/resource/gsp/comps/gsp/Shbj.vue +++ b/src/views/business/resource/gsp/comps/gsp/Shbj.vue @@ -26,7 +26,7 @@ - + diff --git a/src/views/business/resource/gsp/comps/gsp/Xq.vue b/src/views/business/resource/gsp/comps/gsp/Xq.vue index dc7b271..8da842b 100644 --- a/src/views/business/resource/gsp/comps/gsp/Xq.vue +++ b/src/views/business/resource/gsp/comps/gsp/Xq.vue @@ -38,14 +38,17 @@
{{ $t('page.business.resource.gsp.gg') }}
- +
-
+ +
+
{{ $t('page.business.resource.gsp.yxq') }}
+
{{ $t('page.business.resource.gsp.kcl') }}
@@ -54,12 +57,9 @@
+
-
{{ $t('page.business.resource.gsp.yxq') }}
- -
-
-
{{ $t('page.business.resource.gsp.zjzt') }}
+
{{ $t('page.business.resource.gsp.zjzt') }}
diff --git a/src/views/business/resource/gsp/comps/gsp/Xz.vue b/src/views/business/resource/gsp/comps/gsp/Xz.vue index 3336ad1..8a804ec 100644 --- a/src/views/business/resource/gsp/comps/gsp/Xz.vue +++ b/src/views/business/resource/gsp/comps/gsp/Xz.vue @@ -26,16 +26,16 @@ - + - + @@ -47,7 +47,7 @@ + dictType="business_zldw,business_tjdw,business_kcdw_other"> @@ -65,13 +65,13 @@ - + @@ -166,11 +166,11 @@ export default { message: ' ', trigger: 'blur' }], - jsrq: [{ - required: true, - message: ' ', - trigger: 'blur' - }], + // jsrq: [{ + // required: true, + // message: ' ', + // trigger: 'blur' + // }], cctj: [{ required: true, message: ' ', diff --git a/src/views/business/resource/gsp/comps/gspList.vue b/src/views/business/resource/gsp/comps/gspList.vue index 6503a99..2a1a871 100644 --- a/src/views/business/resource/gsp/comps/gspList.vue +++ b/src/views/business/resource/gsp/comps/gspList.vue @@ -104,7 +104,7 @@ :show-overflow-tooltip="true" /> @@ -113,7 +113,7 @@ - + @@ -315,7 +315,7 @@ export default { '' + this.$t('page.business.resource.gsp.gg') + '' + '' + this.$t('page.business.resource.gsp.kcl') + '' + '' + this.$t('page.business.resource.gsp.ph') + '' + - '' + this.$t('page.business.resource.gsp.jsrq') + '' + + // '' + this.$t('page.business.resource.gsp.jsrq') + '' + '' + this.$t('page.business.resource.gsp.cctj') + '' + '' + this.$t('page.business.resource.gsp.zjzt') + '' + '' + this.$t('page.business.resource.gsp.jyzt') + '' + @@ -370,16 +370,14 @@ export default { ' '+value.bh + '' + ' ' + - value.gg + value.ggdw + + value.gg + '' + ' ' + value.kc + value.kcdw + '' + ' ' + value.ph + - '' + - ' ' + - value.jsrq + + '' + ' ' + value.cctj + @@ -513,8 +511,8 @@ export default { //获取列表 getList() { if (this.daterange != null && this.daterange.length > 0) { - this.queryParams.startDate = this.daterange[0] + ' 00:00:00' - this.queryParams.endDate = this.daterange[1] + ' 23:59:59' + this.queryParams.startDate = this.daterange[0] + this.queryParams.endDate = this.daterange[1] } else { this.queryParams.startDate = '' this.queryParams.endDate = '' diff --git a/src/views/business/resource/gsp/comps/rkjlList.vue b/src/views/business/resource/gsp/comps/rkjlList.vue index 3deaf3d..15e6600 100644 --- a/src/views/business/resource/gsp/comps/rkjlList.vue +++ b/src/views/business/resource/gsp/comps/rkjlList.vue @@ -82,8 +82,8 @@ {{ $t('form.export') }} - -
{{ $t('page.business.resource.gsp.rkl') }}:{{ rkl }}
+ + {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl != '' ? rkl : '--' }} ; @@ -423,15 +423,12 @@ export default { this.loading = false }) - if (this.queryParams.startDate || this.queryParams.endDate || this.queryParams.mc || this.queryParams.ph - || this.queryParams.gg || this.queryParams.jlzt || this.queryParams.jyzt) { - sumRkl(this.queryParams).then(response => { + this.getStatistics() + }, + getStatistics() { + sumRkl(this.queryParams).then(response => { this.rkl = response.data.rkl - }) - } else { - this.rkl = null - } - + }) }, //查询 handleQuery() {