luojie 2 months ago
parent
commit
508f4df61c
18 changed files with 223 additions and 56 deletions
  1. +8
    -0
      src/api/business/public/public.js
  2. +4
    -1
      src/lang/en/business/resource/yq.js
  3. +3
    -0
      src/lang/zh/business/resource/yq.js
  4. +55
    -17
      src/utils/calUnitTools.js
  5. +96
    -0
      src/views/business/comps/select/SelectFridge.vue
  6. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue
  7. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue
  8. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue
  9. +4
    -4
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue
  10. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue
  11. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue
  12. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue
  13. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue
  14. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue
  15. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue
  16. +3
    -3
      src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue
  17. +22
    -3
      src/views/business/resource/yq/list.vue
  18. +1
    -1
      vue.config.js

+ 8
- 0
src/api/business/public/public.js View File

@ -115,3 +115,11 @@ export function public_templateStepList(query) {
params: query params: query
}) })
} }
// 冰箱列表
export function public_fridgeList(query) {
return request({
url: '/system/business/public/fridgeList',
method: 'get',
params: query
})
}

+ 4
- 1
src/lang/en/business/resource/yq.js View File

@ -9,5 +9,8 @@ export default {
yqly: 'Source', yqly: 'Source',
wc: 'Compartment', wc: 'Compartment',
xzyq: 'Add Instrument', xzyq: 'Add Instrument',
bjyq: 'Edit Instrument Information'
bjyq: 'Edit Instrument Information',
sfbx: '是否是冰箱',
yes: 'Yes',
no: 'No',
} }

+ 3
- 0
src/lang/zh/business/resource/yq.js View File

@ -11,4 +11,7 @@ export default {
xgnr: '修改内容', xgnr: '修改内容',
xzyq: '新增仪器', xzyq: '新增仪器',
bjyq: '编辑仪器', bjyq: '编辑仪器',
sfbx: '是否是冰箱',
yes: '是',
no: '否',
} }

+ 55
- 17
src/utils/calUnitTools.js View File

@ -28,8 +28,11 @@ export function addTj(valueArr, unitArr) {
} }
export function addDecimals(a, b) { export function addDecimals(a, b) {
if (Number.isNaN(a) || Number.isNaN(b)) {
return 0
if (Number.isNaN(a)) {
a = 0
}
if (Number.isNaN(b)) {
b = 0
} }
const strA = a.toString() const strA = a.toString()
const strB = b.toString() const strB = b.toString()
@ -77,23 +80,58 @@ export function multiplyDecimals(a, b) {
absStr.substring(absStr.length - totalDecimals) absStr.substring(absStr.length - totalDecimals)
} }
result = result.replace(/\.?0+$/, '') || '0'
result = result.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '')
return (isNegative ? '-' : '') + result return (isNegative ? '-' : '') + result
} }
//模板物资去重 //模板物资去重
export function uniqeResource(oldList,newList) {
for(var i=0;i<newList.length;i++){
let _index= _.findIndex(oldList,function(item){
return item.bh==newList[i].bh&&(item.type==newList[i].type||item.elnType==newList[i].type)
})
if(_index>-1){
const { total, unit }=addTj([oldList[_index].syl,newList[i].syl],[oldList[_index].syldw,newList[i].syldw])
oldList[_index].syl=total
oldList[_index].syldw=unit
}else{
oldList.push(newList[i])
}
}
return oldList;
export function uniqeResource(oldList, newList) {
for (var i = 0; i < newList.length; i++) {
let _index = _.findIndex(oldList, function (item) {
return (
item.bh == newList[i].bh &&
(item.type == newList[i].type ||
item.elnType == newList[i].type ||
item.elnType == newList[i].elnType ||
item.type == newList[i].elnType)
)
})
if (_index > -1) {
const { total, unit } = addTj(
[oldList[_index].syl, newList[i].syl],
[oldList[_index].syldw, newList[i].syldw]
)
oldList[_index].syl = total
oldList[_index].syldw = unit
} else {
oldList.push(newList[i])
}
}
return oldList
}
//模板物资去重
export function uniqeResourceOne(newList) {
let resultList = []
for (var i = 0; i < newList.length; i++) {
let _index = _.findIndex(resultList, function (item) {
return (
item.bh == newList[i].bh &&
(item.type == newList[i].type ||
item.elnType == newList[i].type ||
item.elnType == newList[i].elnType ||
item.type == newList[i].elnType)
)
})
if (_index > -1) {
const { total, unit } = addTj(
[resultList[_index].syl, newList[i].syl],
[resultList[_index].syldw, newList[i].syldw]
)
resultList[_index].syl = total
resultList[_index].syldw = unit
} else {
resultList.push(newList[i])
}
}
return resultList
} }

+ 96
- 0
src/views/business/comps/select/SelectFridge.vue View File

@ -0,0 +1,96 @@
<!-- 冰箱选择器 -->
<template>
<div>
<el-select style="width:100%" v-model="selected" :placeholder="$t('form.placeholderSelect')" :disabled="readonly"
:multiple="multiple" @change="handleChange" :filterable="filterable">
<el-option v-for="item in list" :key="item.id" :label="item.mc" :value="item.id" />
</el-select>
</div>
</template>
<script>
import { public_fridgeList } from "@/api/business/public/public";
export default {
name: "SelectFridge",
components: {},
props: {
value: {
type: [Number, String, Array],
default: '',
},
readonly: {
type: Boolean,
default: false
},
multiple: {
type: Boolean,
default: false
},
filterable: {
type: Boolean,
default: true
},
placeholder: {
type: String,
default: ''
}
},
watch: {
value: {
immediate: true,
handler(v) {
if (!this.multiple) {
this.selected = v ? v : ''
} else {
if (v) {
//,
let arr = v.split(',')
let s = []
_.forEach(arr, a => {
s.push(a)
})
this.selected = s
} else {
this.selected = []
}
}
this.getList();
}
}
},
data() {
return {
selected: '',
list: [],
queryParam: {
}
};
},
mounted() {
this.getList()
},
methods: {
getList() {
this.list = []
public_fridgeList().then(response => {
this.list = response.data || []
})
},
handleChange(val) {
this.$emit('input', this.multiple ? (val && val.length>0 ? val.join(','): ''):(val || ''))
//,
let res;
if(this.multiple){
res = this.list.filter(item=> {
return val.includes(item.id)
})
}else {
res = this.list.find(item=> item.id === val)
}
this.$emit('change', res)
},
}
};
</script>

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue View File

@ -378,7 +378,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -398,7 +398,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -418,7 +418,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 4
- 4
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue View File

@ -241,7 +241,7 @@ export default {
rowIndex:0,// rowIndex:0,//
resource: [], resource: [],
formData: {} formData: {}
}; };
}, },
@ -391,7 +391,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -411,7 +411,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -431,7 +431,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue View File

@ -509,7 +509,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -529,7 +529,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -561,7 +561,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -434,7 +434,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 3
- 3
src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue View File

@ -390,7 +390,7 @@ export default {
let postData = { let postData = {
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.fzsj.mybh, bh:val.fzsj.mybh,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,
@ -410,7 +410,7 @@ export default {
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
} }
console.log("开始配置提交数据:"+JSON.stringify(postData)) console.log("开始配置提交数据:"+JSON.stringify(postData))
sj_startConfiguration(postData).then(() => { sj_startConfiguration(postData).then(() => {
@ -430,7 +430,7 @@ export default {
mc:null, mc:null,
studyId:this.formData.studyId, studyId:this.formData.studyId,
studyFormId:this.formData.id, studyFormId:this.formData.id,
deptId: this.formData.studySubjectId,
studySubjectId: this.formData.studySubjectId,
bh:val.rowData.bh+val.rowData.bhCode, bh:val.rowData.bh+val.rowData.bhCode,
nd:val.rowData.hhwznd, nd:val.rowData.hhwznd,
nddw:val.headerSelectFields.hhwzndUnit, nddw:val.headerSelectFields.hhwzndUnit,

+ 22
- 3
src/views/business/resource/yq/list.vue View File

@ -17,6 +17,12 @@
<el-form-item :label="$t('page.business.resource.yq.ssbm') + ':'" prop="bmMc"> <el-form-item :label="$t('page.business.resource.yq.ssbm') + ':'" prop="bmMc">
<el-input v-model="queryParams.bmMc" placeholder="" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.bmMc" placeholder="" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('page.business.resource.yq.sfbx') + ':'" prop="fridge">
<el-select v-model="queryParams.fridge" :placeholder="$t('form.placeholderSelect')" clearable @change="handleQuery">
<el-option key="1" :label="$t('page.business.resource.yq.yes')" value="1" />
<el-option key="10" :label="$t('page.business.resource.yq.no')" value="10" />
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search')
@ -106,6 +112,14 @@
<BusinessSelect v-model="form.wc" dictType="business_cctj"></BusinessSelect> <BusinessSelect v-model="form.wc" dictType="business_cctj"></BusinessSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.yq.sfbx')" prop="fridge">
<el-select v-model="form.fridge" :placeholder="$t('form.placeholderSelect')">
<el-option key="1" :label="$t('page.business.resource.yq.yes')" value="1" />
<el-option key="10" :label="$t('page.business.resource.yq.no')" value="10" />
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -130,8 +144,8 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('form.signerPsw')" prop="qmrmm"> <el-form-item :label="$t('form.signerPsw')" prop="qmrmm">
<el-input v-model="form.qmrmm" autocomplete="off" auto-complete="new-password" show-password :placeholder="$t('form.placeholderInput')" type="password"
maxlength="20" />
<el-input v-model="form.qmrmm" autocomplete="off" auto-complete="new-password" show-password
:placeholder="$t('form.placeholderInput')" type="password" maxlength="20" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -188,7 +202,8 @@ export default {
ly: null, ly: null,
jzrq: null, jzrq: null,
bmMc: null, bmMc: null,
wc: null
wc: null,
fridge: null,
}, },
// //
form: { form: {
@ -221,6 +236,9 @@ export default {
wc: [ wc: [
{ required: true, message: this.$t('page.business.resource.yq.wc') + this.$t('form.notEmpty'), trigger: "change" }, { required: true, message: this.$t('page.business.resource.yq.wc') + this.$t('form.notEmpty'), trigger: "change" },
], ],
fridge: [
{ required: true, message: '', trigger: "change" },
],
qmrmm: [ qmrmm: [
{ required: true, message: this.$t('form.signerPsw') + this.$t('form.notEmpty'), trigger: "change" }, { required: true, message: this.$t('form.signerPsw') + this.$t('form.notEmpty'), trigger: "change" },
{ min: 0, max: 20, message: this.$t('form.signerPsw') + this.$t('form.lengthLimit') + '20', trigger: 'blur' } { min: 0, max: 20, message: this.$t('form.signerPsw') + this.$t('form.lengthLimit') + '20', trigger: 'blur' }
@ -264,6 +282,7 @@ export default {
jzrq: null, jzrq: null,
bmId: null, bmId: null,
wc: null, wc: null,
fridge: null,
qmyy: this.$t('page.business.resource.yq.xzyq'), qmyy: this.$t('page.business.resource.yq.xzyq'),
} }
this.resetForm('form') this.resetForm('form')

+ 1
- 1
vue.config.js View File

@ -34,7 +34,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`,
// target: `http://localhost:8080`,
target: `http://39.99.251.173:8080`, target: `http://39.99.251.173:8080`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {

Loading…
Cancel
Save