合并分支 'dev_20230216' 到 'master'

Dev 20230216

查看合并请求 laws-foton-slrs/foton-laws-system-front!86
This commit is contained in:
高嵩
2023-05-25 17:53:56 +08:00
5 changed files with 29 additions and 16 deletions
@@ -314,7 +314,7 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
row-key="id" row-key="id"
:data="form.infoList" :data="modelData"
border border
default-expand-all> default-expand-all>
<el-table-column <el-table-column
@@ -503,6 +503,9 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
modelData: {
type: Array
}
}, },
filters: { filters: {
ellipsis (value) { ellipsis (value) {
@@ -611,7 +614,7 @@ export default {
}, },
exportAll() { exportAll() {
const arr = JSON.stringify(this.form.infoList) const arr = JSON.stringify(this.modelData)
axios({ axios({
method: 'post', method: 'post',
url: 'api/lawss/actSarItemsBuss/exportAllBZZXDJSBZ', url: 'api/lawss/actSarItemsBuss/exportAllBZZXDJSBZ',
@@ -179,7 +179,7 @@
</span> </span>
<span style="width: 20%;margin-left: 15px;" <span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')"> v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')">
<el-button type="primary" size="mini" <el-button type="primary" size="mini" :disabled="disabledXX"
plain icon="el-icon-edit" plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button> @click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span> </span>
@@ -189,6 +189,7 @@
<!-- :disabled="disabledXX"--> <!-- :disabled="disabledXX"-->
<!-- disabled--> <!-- disabled-->
<el-button <el-button
:disabled="disabledXX"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@@ -2062,14 +2063,18 @@
this.form.modelData[this.zrIndex].zrUserId = data[0].id this.form.modelData[this.zrIndex].zrUserId = data[0].id
this.form.modelData[this.zrIndex].zrUserIdName = data[0].name this.form.modelData[this.zrIndex].zrUserIdName = data[0].name
} else { } else {
this.form.modelData.forEach(item => { try {
this.form.modelData.forEach(item => {
this.zrIdList.forEach(items => { this.zrIdList.forEach(items => {
if (item.id === items) { if (item.id === items) {
item.zrUserId = data[0].id item.zrUserId = data[0].id
item.zrUserIdName = data[0].name item.zrUserIdName = data[0].name
} }
}) })
}) })
}catch (e) {
console.log(e)
}
} }
if (this.userType === 'bzhUserId') { if (this.userType === 'bzhUserId') {
this.roleForm.bzhUserId = data[0].id this.roleForm.bzhUserId = data[0].id
@@ -21,6 +21,7 @@
<formList <formList
:form = "form" :form = "form"
:FBGBUSSFileList = "FBGBUSSFileList" :FBGBUSSFileList = "FBGBUSSFileList"
:modelData="modelData"
:LSBBBUSSFileList = "LSBBBUSSFileList" :LSBBBUSSFileList = "LSBBBUSSFileList"
:BZSMBUSSFileList = "BZSMBUSSFileList" :BZSMBUSSFileList = "BZSMBUSSFileList"
:QTWJBUSSFileList = "QTWJBUSSFileList" :QTWJBUSSFileList = "QTWJBUSSFileList"
@@ -2245,7 +2246,7 @@
}, },
getData() { getData() {
if(this.taskIds && this.pId){ if(this.taskIds && this.pId){
return new Promise((resolve, reject) => { // return new Promise((resolve, reject) => {
inboundLiaisonDetail({ inboundLiaisonDetail({
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
@@ -2266,10 +2267,14 @@
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName); this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName);
this.$nextTick(()=>{
this.form.modelData = processForm.modelData
this.modelData = processForm.modelData
})
} }
}).catch(e => { }).catch(e => {
}) })
}) // })
} }
}, },
processTable () { processTable () {
@@ -2325,7 +2330,7 @@
}) })
}, },
}, },
mounted () { created () {
this.getData() this.getData()
this.processTable() this.processTable()
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
@@ -2844,7 +2844,7 @@ export default {
standNumber: [ standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'}, {required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'}, {type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
{type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'} // {type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'}
], ],
synopsis: [ synopsis: [
{type: 'string', max: 500, message: '文本说明不能超过500个字符', trigger: 'change'} {type: 'string', max: 500, message: '文本说明不能超过500个字符', trigger: 'change'}
@@ -2879,7 +2879,7 @@ export default {
standNumber: [ standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'}, {required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'}, {type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
{validator: this.verify.validateStandardItem2, trigger: 'change'} // {validator: this.verify.validateStandardItem2, trigger: 'change'}
], ],
standYear: [ standYear: [
{required: true, message: '标准年份不能为空', trigger: 'change'}, {required: true, message: '标准年份不能为空', trigger: 'change'},
@@ -2434,7 +2434,7 @@ export default {
standNumber: [ standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'}, {required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'}, {type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
{type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'} // {type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'}
], ],
synopsis: [ synopsis: [
{type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'} {type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'}
@@ -2468,7 +2468,7 @@ export default {
standNumber: [ standNumber: [
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'}, {required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'}, {type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
{type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'} // {type: 'string', validator: this.verify.validateStandardItem2, trigger: 'change'}
], ],
standYear: [ standYear: [
// {required: true, message: '标准年份/系列不能为空', trigger: 'change'}, // {required: true, message: '标准年份/系列不能为空', trigger: 'change'},