Browse Source

fix:[模板管理]优化

luojie
15881625488@163.com 2 weeks ago
parent
commit
86a2fd13e5
3 changed files with 24 additions and 3 deletions
  1. +3
    -0
      src/views/business/comps/template/comps/dl/DL006.vue
  2. +10
    -2
      src/views/business/comps/template/comps/dl/DL008.vue
  3. +11
    -1
      src/views/business/comps/template/comps/dl/DL009.vue

+ 3
- 0
src/views/business/comps/template/comps/dl/DL006.vue View File

@ -663,6 +663,7 @@ export default {
}, },
// //
clickFinish() { clickFinish() {
let that=this
// //
const { jzs, jlzsl, pxms, qsbh, stepTableFormData = [] } = this.getFilledFormData(); const { jzs, jlzsl, pxms, qsbh, stepTableFormData = [] } = this.getFilledFormData();
// //
@ -738,6 +739,7 @@ export default {
bodyFillType: 'actFill', // bodyTypeFillType bodyFillType: 'actFill', // bodyTypeFillType
}); });
debugger
// 1 // 1
this.rawCzxxColumns = [...columns]; // this.rawCzxxColumns = [...columns]; //
this.$nextTick(() => { // this.$nextTick(() => { //
@ -756,6 +758,7 @@ export default {
const rowData = { const rowData = {
jlzb: stepTableFormData[doseIndex]?.jlzmc || '', jlzb: stepTableFormData[doseIndex]?.jlzmc || '',
gspcdqk: '', gspcdqk: '',
id:that.getuuid()
// undefined // undefined
}; };
newDataSource.push(rowData); newDataSource.push(rowData);

+ 10
- 2
src/views/business/comps/template/comps/dl/DL008.vue View File

@ -471,6 +471,7 @@ export default {
// //
handleCxqkQxbdSelect(row) { handleCxqkQxbdSelect(row) {
let that=this
// //
this.isDataLoaded = false this.isDataLoaded = false
@ -494,10 +495,17 @@ export default {
} }
// 2. // 2.
const tableData = this.generateTableData(
const tableData1 = this.generateTableData(
stepTableFormData_1, stepTableFormData_1,
dynamicColumns.columnKeys dynamicColumns.columnKeys
) )
let tmp=[]
_.forEach(tableData1,function(item){
let a=item
a.id=that.getuuid()
tmp.push(a)
})
const tableData=tmp
if (tableData.length === 0) { if (tableData.length === 0) {
this.clearCxqkTable() this.clearCxqkTable()
return return
@ -521,7 +529,7 @@ export default {
if (columnKeys.length === 0) { if (columnKeys.length === 0) {
return null return null
} }
debugger
const columns = [ const columns = [
{ {
label: 'template.dl.dl008.jlzb', label: 'template.dl.dl008.jlzb',

+ 11
- 1
src/views/business/comps/template/comps/dl/DL009.vue View File

@ -586,6 +586,7 @@ export default {
// //
handleJgxxQxbdSelect(row, savedYqsyData) { handleJgxxQxbdSelect(row, savedYqsyData) {
let that=this
// //
this.isDataLoaded = false this.isDataLoaded = false
@ -614,10 +615,19 @@ export default {
} }
// 2. // 2.
const tableData = this.generateJgxxTableData(
const tableData1 = this.generateJgxxTableData(
stepTableFormData_1, stepTableFormData_1,
dynamicColumns.columnKeys dynamicColumns.columnKeys
) )
let tmp=[]
_.forEach(tableData1,function(item){
let a=item
a.id=that.getuuid()
tmp.push(a)
})
const tableData=tmp
if (tableData.length === 0) { if (tableData.length === 0) {
this.clearJgxxTable() this.clearJgxxTable()
return return

Loading…
Cancel
Save