标准库 - 分解单 - 日期多选

This commit is contained in:
yanyizhou
2021-12-22 20:50:42 +08:00
parent 2830437b47
commit 0122532e22
@@ -2515,17 +2515,24 @@ export default {
if (this.selectedItemList.length>0){ if (this.selectedItemList.length>0){
this.editResolveListShowflag = true this.editResolveListShowflag = true
let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0]))
console.log('2518',editItem)
this.resolveListForm = editItem this.resolveListForm = editItem
this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):''
// this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):''
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.split(',')
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.split(',')
}else { }else {
this.$message.warning('请选择一条数据') this.$message.warning('请选择一条数据')
} }
}, },
saveEditInfo(){ saveEditInfo(){
console.log('2530',this.resolveListForm) console.log('2530',typeof this.resolveListForm.xccssrq)
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') if (typeof this.resolveListForm.xccssrq !== 'string'){
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',')
}
if (typeof this.resolveListForm.zccssrq !== 'string'){
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',')
}
this.$http.putData( this.$http.putData(
'SarStandItems/sar-stand-items/updateSarItemAndInterpretation', 'SarStandItems/sar-stand-items/updateSarItemAndInterpretation',
this.resolveListForm, this.resolveListForm,