Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yanyizhou
2021-12-27 14:56:46 +08:00
4 changed files with 45 additions and 38 deletions
@@ -1315,6 +1315,14 @@ export default {
this.$message.warning("请勿重复添加数据"); this.$message.warning("请勿重复添加数据");
} else { } else {
this.dataList.push(item); this.dataList.push(item);
this.dataList.forEach(item => {
if(item.XCXSSRQ === null){
item.XCXSSRQ = ''
}
if(item.ZCCSSRQ === null){
item.ZCCSSRQ = ''
}
})
exits.push(item.id); exits.push(item.id);
} }
}); });
@@ -1368,11 +1376,13 @@ export default {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){
item.xcxssrqgj = '' item.xcxssrqgj = ''
this.$set(item, "XCXSSRQ", item.xcxssrqgj)
}else{ }else{
this.$set(item, "XCXSSRQ", item.xcxssrqgj) this.$set(item, "XCXSSRQ", item.xcxssrqgj)
} }
if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){
item.zccssrqgj = '' item.zccssrqgj = ''
this.$set(item, "ZCCSSRQ", item.zccssrqgj)
}else{ }else{
this.$set(item, "ZCCSSRQ", item.zccssrqgj) this.$set(item, "ZCCSSRQ", item.zccssrqgj)
} }
@@ -1308,11 +1308,13 @@ export default {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){
item.xcxssrqgj = '' item.xcxssrqgj = ''
this.$set(item, "XCXSSRQ", item.xcxssrqgj)
}else{ }else{
this.$set(item, "XCXSSRQ", item.xcxssrqgj) this.$set(item, "XCXSSRQ", item.xcxssrqgj)
} }
if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){
item.zccssrqgj = '' item.zccssrqgj = ''
this.$set(item, "ZCCSSRQ", item.zccssrqgj)
}else{ }else{
this.$set(item, "ZCCSSRQ", item.zccssrqgj) this.$set(item, "ZCCSSRQ", item.zccssrqgj)
} }
@@ -815,7 +815,7 @@ export default {
this.listForm.commentText = this.commentText this.listForm.commentText = this.commentText
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true // this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -454,6 +454,7 @@
</el-form-item> </el-form-item>
<el-form-item label="在产车实施日期" prop="zccssrqgj"> <el-form-item label="在产车实施日期" prop="zccssrqgj">
<el-date-picker <el-date-picker
clearable
v-model.trim="editRowData.zccssrqgj" v-model.trim="editRowData.zccssrqgj"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -462,6 +463,7 @@
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期" prop="xcxssrqgj"> <el-form-item label="新车型实施日期" prop="xcxssrqgj">
<el-date-picker <el-date-picker
clearable
v-model.trim="editRowData.xcxssrqgj" v-model.trim="editRowData.xcxssrqgj"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -1162,46 +1164,25 @@ export default {
addSarAccess() { addSarAccess() {
//判断是否是清单类型 //判断是否是清单类型
if (this.selectedAccInfoSearchList.length > 0) { if (this.selectedAccInfoSearchList.length > 0) {
//为空转换
for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
//适用车型为空
if (this.selectedAccInfoSearchList[i].typeApplicable === "[]"){
this.selectedAccInfoSearchList[i].typeApplicable = null
}
//能源类型为空
if (this.selectedAccInfoSearchList[i].nylx === "[]"){
this.selectedAccInfoSearchList[i].nylx = null
}
//责任部门为空
if (this.selectedAccInfoSearchList[i].zrbm === "[]"){
this.selectedAccInfoSearchList[i].zrbm = null
}
//试用产品线为空
if (this.selectedAccInfoSearchList[i].sycpx === "[]"){
this.selectedAccInfoSearchList[i].sycpx = null
}
}
// 追加字段 // 追加字段
this.selectedAccInfoSearchList.map(item => { this.selectedAccInfoSearchList.map(item => {
let addList; let addList;
addList = this.sarAccessInfoList.findIndex(items => { addList = this.sarAccessInfoList.findIndex(items => {
return items.id === item.id return items.id === item.id;
}) });
if (addList > -1) { if (addList > -1) {
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection();
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
this.$message.warning('请勿添加重复数据') this.$message.warning('请勿添加重复数据')
} else { } else {
this.sarAccessInfoList.push(item) this.sarAccessInfoList.push(item)
this.sarAccessInfoList.forEach(item => { this.sarAccessInfoList.forEach(item => {
this.$set(item, 'xcxssrqgj', item.xcxssrq) this.$set(item, "xcxssrqgj", item.xcxssrq);
this.$set(item, 'zccssrqgj', item.zccssrq) this.$set(item, "zccssrqgj", item.zccssrq);
if (item.attrInfoCaseMap !== undefined) { if (item.attrInfoCaseMap !== undefined) {
this.$set(item, 'typeApplicable', item.attrInfoCaseMap.cllx) this.$set(item, "typeApplicable", item.attrInfoCaseMap.cllx);
this.$set(item, 'nylx', item.attrInfoCaseMap.nylx) this.$set(item, "nylx", item.attrInfoCaseMap.nylx);
} }
// 能源类型转换 // 能源类型转换
if (item.nylx !== null) { if (item.nylx !== null) {
@@ -1231,6 +1212,20 @@ export default {
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
this.sarAccessInfoList.forEach(item => {
if(item.nylx === '[]'){
item.nylx = ''
}
if(item.typeApplicable === '[]'){
item.typeApplicable = ''
}
if(item.zrbm === '[]'){
item.zrbm = ''
}
if(item.sycpx === '[]'){
item.sycpx = ''
}
})
} }
}) })
} else { } else {