diff --git a/src/views/business/resource/gyzj/comps/ffjlList.vue b/src/views/business/resource/gyzj/comps/ffjlList.vue
index ab72bfe..23c93b5 100644
--- a/src/views/business/resource/gyzj/comps/ffjlList.vue
+++ b/src/views/business/resource/gyzj/comps/ffjlList.vue
@@ -80,7 +80,7 @@
{{
$t('form.export') }}
-
+
{{ $t('page.business.resource.gyzj.ckl') }}:{{ ckldw != '' ? ckl : '--' }}{{ ckldw }} ;
{{ $t('page.business.resource.gyzj.rkl') }}:{{ rkldw != '' ? rkl : '--' }}{{ rkldw }} ;
{{ $t('page.business.resource.gyzj.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ;
@@ -236,6 +236,7 @@ export default {
daterangeCk: [],
daterangeRk: [],
loading: true,
+ showtj: false,
showDetail: false,
single: true,
multiple: true,
@@ -328,16 +329,17 @@ export default {
this.syl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.syl }), sylCalc)
this.ckl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.ckl }), cklCalc)
this.rkl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.rkl }), rklCalc)
+ this.showtj=true
})
},
getCalc(toUnit) {
let unit = ['pL', 'nL', 'uL', 'mL', 'L']
let result = 1
- for (var i = 1; i < unit.length; i++) {
- result = result*1000
+ for (var i = 0; i < unit.length; i++) {
if (unit[i] == toUnit) {
break
}
+ result = result*1000
}
return result
},
@@ -547,7 +549,11 @@ export default {
list(this.queryParams).then(response => {
this.list = response.rows
this.total = response.total
- this.getyltj()
+ if (this.queryParams.mc && this.queryParams.mc != '') {
+ this.getyltj()
+ }else{
+ this.showtj=false
+ }
this.loading = false
})
},
diff --git a/src/views/business/resource/mjy/comps/ffjlList.vue b/src/views/business/resource/mjy/comps/ffjlList.vue
index 68bbfd9..a09dd13 100644
--- a/src/views/business/resource/mjy/comps/ffjlList.vue
+++ b/src/views/business/resource/mjy/comps/ffjlList.vue
@@ -80,9 +80,9 @@
{{
$t('form.export') }}
-
- {{$t('page.business.resource.mjy.jsl')}}:{{ jsldw!=''? jsl:'--' }}{{ jsldw }} ;
- {{$t('page.business.resource.mjy.syl')}}:{{ syldw!=''? syl:'--' }}{{ syldw }} ;
+
+ {{ $t('page.business.resource.mjy.jsl') }}:{{ jsldw != '' ? jsl : '--' }}{{ jsldw }} ;
+ {{ $t('page.business.resource.mjy.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ;
@@ -116,7 +116,7 @@
{{ scope.row.rkmz }} {{ scope.row.rkmzdw }}
-
{{ scope.row.jsl }} {{ scope.row.jsldw }}
@@ -240,6 +240,7 @@ export default {
daterangeRk: [],
loading: true,
showDetail: false,
+ showtj: false,
single: true,
multiple: true,
total: 0,
@@ -276,7 +277,8 @@ export default {
},
methods: {
getyltj() {
- yltj(this.queryParams).then(response => {
+ let that = this
+ yltj(that.queryParams).then(response => {
// {
// "jsl": 0,
// "jsldw": "mL",
@@ -288,14 +290,14 @@ export default {
let tmpJslUnit = []
let tmpSylUnit = []
_.forEach(deepClone(response.data), function (item) {
- //减少量
- let _indexJsl= _.findIndex(tmpJslUnit, function (fitem) { return fitem.key == item.jsldw })
+ //减少量
+ let _indexJsl = _.findIndex(tmpJslUnit, function (fitem) { return fitem.key == item.jsldw })
if (_indexJsl > -1) {
tmpJslUnit[_indexJsl] = tmpJslUnit[_indexJsl].count + item.count
} else {
tmpJslUnit.push({ key: item.jsldw, count: item.count })
}
- //使用量
+ //使用量
let _indexSyl = _.findIndex(tmpSylUnit, function (fitem) { return fitem.key == item.syldw })
if (_indexSyl > -1) {
tmpSylUnit[_indexSyl] = tmpSylUnit[_indexSyl].count + item.count
@@ -304,27 +306,29 @@ export default {
}
})
//获取最多单位
- let _jsldw=_.maxBy(tmpJslUnit, function(o) { return o.count; })
- this.jsldw=_jsldw!=null?_jsldw.key:'';
+ let _jsldw = _.maxBy(tmpJslUnit, function (o) { return o.count; })
+ that.jsldw = _jsldw != null ? _jsldw.key : '';
- let _syldw=_.maxBy(tmpSylUnit, function(o) { return o.count; })
- this.syldw=_syldw!=null?_syldw.key:'';
+ let _syldw = _.maxBy(tmpSylUnit, function (o) { return o.count; })
+ that.syldw = _syldw != null ? _syldw.key : '';
//计算最终值
- let jslCalc = this.getCalc(this.jsldw)
- let sylCalc = this.getCalc(this.syldw)
- this.syl=_.divide(_.sumBy(deepClone(response.data),function(item){return item.syl}), sylCalc)
- this.jsl=_.divide(_.sumBy(deepClone(response.data),function(item){return item.jsl}), jslCalc)
+ let jslCalc = that.getCalc(that.jsldw)
+ let sylCalc = that.getCalc(that.syldw)
+ that.syl = _.divide(_.sumBy(deepClone(response.data), function (item) { return item.syl }), sylCalc).toString()
+ that.jsl = _.divide(_.sumBy(deepClone(response.data), function (item) { return item.jsl }), jslCalc).toString()
+ this.showtj = true
+
})
},
- getCalc(toUnit) {
+ getCalc(toUnit) {
let unit = ['pL', 'nL', 'uL', 'mL', 'L']
let result = 1
- for (var i = 1; i < unit.length; i++) {
- result = result*1000
+ for (var i = 0; i < unit.length; i++) {
if (unit[i] == toUnit) {
break
}
+ result = result * 1000
}
return result
},
@@ -534,7 +538,11 @@ export default {
list(this.queryParams).then(response => {
this.list = response.rows
this.total = response.total
- this.getyltj()
+ if (this.queryParams.mc && this.queryParams.mc != '') {
+ this.getyltj()
+ }else{
+ this.showtj=false
+ }
this.loading = false
})
},
diff --git a/src/views/business/study/comp/enter.vue b/src/views/business/study/comp/enter.vue
index fd98084..4074183 100644
--- a/src/views/business/study/comp/enter.vue
+++ b/src/views/business/study/comp/enter.vue
@@ -96,6 +96,7 @@ export default {
this.study = row
},
showDetailCallback(val) {
+ this.$tab.refreshPage();
this.showDetail = val
},
changeTab(item) {
diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue
index cfa1c4e..b950501 100644
--- a/src/views/business/study/comp/tbbd/Bj.vue
+++ b/src/views/business/study/comp/tbbd/Bj.vue
@@ -1005,7 +1005,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
- if (!that.cclistYj[i].cctjqt || that.cclistYj[i].cctjqt == '') {
+ if (that.cclistYj[i].cctj == '其他'&& that.cclistYj[i].cctjqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
@@ -1043,7 +1043,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个处置,处置方式不能为空")
return
}
- if (!that.czlist[i].czfsqt || that.czlist[i].czfsqt == '') {
+ if (that.czlist[i].czfs == '其他'&& that.czlist[i].czfsqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,处置方式不能为空")
return
}
@@ -1057,7 +1057,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
- if (!that.cclist[i].cctjqt || that.cclist[i].cctjqt == '') {
+ if (that.cclist[i].cctj=='其他' && that.cclist[i].cctjqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
diff --git a/src/views/business/study/comp/ytbd/Bj.vue b/src/views/business/study/comp/ytbd/Bj.vue
index 80979b2..7547953 100644
--- a/src/views/business/study/comp/ytbd/Bj.vue
+++ b/src/views/business/study/comp/ytbd/Bj.vue
@@ -235,6 +235,8 @@ export default {
studyFormPre_bcOnly(this.form).then(response => {
this.form = response.data
this.templateData = deepClone(this.form)
+ const obj = Object.assign({}, this.$route, { title:this.form.bdmc })
+ this.$tab.updatePage(obj);
this.showIndex = 2
this.$modal.closeLoading()
}).finally(() => {