From 6fbac01dc5f4359d961653119d314b7e801d611c Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 2 Feb 2026 21:09:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=20=E8=AE=A1=E7=AE=97=E6=88=90=E7=BB=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/calUnitTools.js | 72 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 17 deletions(-) diff --git a/src/utils/calUnitTools.js b/src/utils/calUnitTools.js index 1f0aa08..6de2ec5 100644 --- a/src/utils/calUnitTools.js +++ b/src/utils/calUnitTools.js @@ -28,8 +28,11 @@ export function addTj(valueArr, unitArr) { } 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 strB = b.toString() @@ -77,23 +80,58 @@ export function multiplyDecimals(a, b) { absStr.substring(absStr.length - totalDecimals) } - result = result.replace(/\.?0+$/, '') || '0' + result = result.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '') return (isNegative ? '-' : '') + result } //模板物资去重 -export function uniqeResource(oldList,newList) { - for(var i=0;i-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 } From bd2180f9526de15641fd82e05651e8176627efdc Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Mon, 2 Feb 2026 21:23:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:[=E8=AF=95=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E5=88=86=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/public/public.js | 8 ++ src/lang/en/business/resource/yq.js | 5 +- src/lang/zh/business/resource/yq.js | 3 + src/views/business/comps/select/SelectFridge.vue | 96 ++++++++++++++++++++++ .../template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue | 6 +- .../comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue | 8 +- .../template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue | 6 +- .../template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue | 6 +- .../comps/template/comps/sp/SWYPFXFFXZKPZB.vue | 6 +- src/views/business/resource/yq/list.vue | 25 +++++- vue.config.js | 2 +- 17 files changed, 168 insertions(+), 39 deletions(-) create mode 100644 src/views/business/comps/select/SelectFridge.vue diff --git a/src/api/business/public/public.js b/src/api/business/public/public.js index babc904..12642a9 100644 --- a/src/api/business/public/public.js +++ b/src/api/business/public/public.js @@ -115,3 +115,11 @@ export function public_templateStepList(query) { params: query }) } +// 冰箱列表 +export function public_fridgeList(query) { + return request({ + url: '/system/business/public/fridgeList', + method: 'get', + params: query + }) +} diff --git a/src/lang/en/business/resource/yq.js b/src/lang/en/business/resource/yq.js index 3515c24..cd11baf 100644 --- a/src/lang/en/business/resource/yq.js +++ b/src/lang/en/business/resource/yq.js @@ -9,5 +9,8 @@ export default { yqly: 'Source', wc: 'Compartment', xzyq: 'Add Instrument', - bjyq: 'Edit Instrument Information' + bjyq: 'Edit Instrument Information', + sfbx: '是否是冰箱', + yes: 'Yes', + no: 'No', } diff --git a/src/lang/zh/business/resource/yq.js b/src/lang/zh/business/resource/yq.js index a5ebc04..0175734 100644 --- a/src/lang/zh/business/resource/yq.js +++ b/src/lang/zh/business/resource/yq.js @@ -11,4 +11,7 @@ export default { xgnr: '修改内容', xzyq: '新增仪器', bjyq: '编辑仪器', + sfbx: '是否是冰箱', + yes: '是', + no: '否', } \ No newline at end of file diff --git a/src/views/business/comps/select/SelectFridge.vue b/src/views/business/comps/select/SelectFridge.vue new file mode 100644 index 0000000..4cac181 --- /dev/null +++ b/src/views/business/comps/select/SelectFridge.vue @@ -0,0 +1,96 @@ + + + + diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue index f058dbe..bbd378d 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue index a5a59f5..88b40f9 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue index 133bc44..954ad02 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue @@ -378,7 +378,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -398,7 +398,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -418,7 +418,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue index 3c9b76a..16a43c7 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue @@ -241,7 +241,7 @@ export default { rowIndex:0,//当前表格点击的行数 resource: [], - + formData: {} }; }, @@ -391,7 +391,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -411,7 +411,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -431,7 +431,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue index d52f57f..08e19df 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue index 1b3a6b2..dfa3cd1 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue @@ -509,7 +509,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -529,7 +529,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -561,7 +561,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue index 74e1607..648fd36 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -434,7 +434,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue index 9a92c36..67206b6 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue index 82ba37f..4a0d0d2 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue index 40881ca..10abc71 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue index 76bdc87..a70aa50 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXZKPZB.vue @@ -390,7 +390,7 @@ export default { let postData = { studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.fzsj.mybh, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, @@ -410,7 +410,7 @@ export default { bh:val.rowData.bh+val.rowData.bhCode, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, } console.log("开始配置提交数据:"+JSON.stringify(postData)) sj_startConfiguration(postData).then(() => { @@ -430,7 +430,7 @@ export default { mc:null, studyId:this.formData.studyId, studyFormId:this.formData.id, - deptId: this.formData.studySubjectId, + studySubjectId: this.formData.studySubjectId, bh:val.rowData.bh+val.rowData.bhCode, nd:val.rowData.hhwznd, nddw:val.headerSelectFields.hhwzndUnit, diff --git a/src/views/business/resource/yq/list.vue b/src/views/business/resource/yq/list.vue index cee213a..c077226 100644 --- a/src/views/business/resource/yq/list.vue +++ b/src/views/business/resource/yq/list.vue @@ -17,6 +17,12 @@ + + + + + + {{ $t('form.search') @@ -106,6 +112,14 @@ + + + + + + + + @@ -130,8 +144,8 @@ - + @@ -188,7 +202,8 @@ export default { ly: null, jzrq: null, bmMc: null, - wc: null + wc: null, + fridge: null, }, // 表单参数 form: { @@ -221,6 +236,9 @@ export default { wc: [ { required: true, message: this.$t('page.business.resource.yq.wc') + this.$t('form.notEmpty'), trigger: "change" }, ], + fridge: [ + { required: true, message: '', trigger: "change" }, + ], qmrmm: [ { 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' } @@ -264,6 +282,7 @@ export default { jzrq: null, bmId: null, wc: null, + fridge: null, qmyy: this.$t('page.business.resource.yq.xzyq'), } this.resetForm('form') diff --git a/vue.config.js b/vue.config.js index 79b422b..bf3ddf1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,7 +34,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - // target: `http://localhost:8080`, + // target: `http://localhost:8080`, target: `http://39.99.251.173:8080`, changeOrigin: true, pathRewrite: {