Browse Source

fix: [模板管理] 编号设置修改

lkf
memorylkf 3 months ago
parent
commit
5a161bbafd
10 changed files with 20 additions and 22 deletions
  1. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYDB.vue
  2. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/CBYHGZYWDX.vue
  3. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/JZXY.vue
  4. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue
  5. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/RXJZXY.vue
  6. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XSKKX.vue
  7. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/XZXHTYX.vue
  8. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZDYBS.vue
  9. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue
  10. +2
    -4
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -289,9 +289,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

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

@ -301,9 +301,9 @@ export default {
count: stepTableFormData.length, count: stepTableFormData.length,
}) })
if(result.code == 200){ if(result.code == 200){
if(stepTableFormData.length===0){
if(stepTableFormData.length===1){
this.$refs.tableRef.updateDataSourceByRowIndex(0,{ this.$refs.tableRef.updateDataSourceByRowIndex(0,{
[bhCode]: result.data,
bhCode: result.data,
}) })
}else{ }else{
for(let i=0;i<stepTableFormData.length;i++){ for(let i=0;i<stepTableFormData.length;i++){

+ 2
- 4
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -14,6 +14,7 @@ export const getSWYPFXFFXYPZBBTableConfig = (
prop: 'bh', prop: 'bh',
bodyType: 'select', bodyType: 'select',
bodyOptions: $this.getDictOptions(selectKey), bodyOptions: $this.getDictOptions(selectKey),
otherCode: 'bhOther',
bodySubType: 'span', bodySubType: 'span',
bodySubKey: 'bhCode', bodySubKey: 'bhCode',
bodyFillType: 'preFill', bodyFillType: 'preFill',
@ -106,10 +107,7 @@ export const getSWYPFXFFXYPZBBTableConfig = (
} }
// 提取回收率-溶液稀释 // 提取回收率-溶液稀释
export const getSWYPFXFFXYPZBBTQHSLTableConfig = (
$this,
selectKey,
) => {
export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => {
let arr = [ let arr = [
{ {
label: 'template.sp.sp008.bh', label: 'template.sp.sp008.bh',

Loading…
Cancel
Save