清单编辑

This commit is contained in:
宋伟佳
2021-12-21 19:15:32 +08:00
parent fe6e040846
commit b628ca7649
3 changed files with 41 additions and 48 deletions
@@ -211,26 +211,19 @@
</template>
</el-table-column>
<el-table-column
prop="xcxssrqgj"
prop="xcxssrq"
sortable
align="center"
width="150"
label="新车型实施日期">
<template slot-scope="scope">
<span v-if="scope.row.xcxssrqgj">{{ scope.row.xcxssrqgj }}</span>
<span v-else-if="scope.row.putTime">{{ scope.row.putTime }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="zccssrqgj"
prop="zccssrq"
sortable
align="center"
width="150"
label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrqgj }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
@@ -341,14 +334,14 @@
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="zccssrqgj"
prop="zccssrq"
sortable
width="210px"
align="center"
label="在产车实施日期">
</el-table-column>
<el-table-column
prop="xcxssrqgj"
prop="xcxssrq"
sortable
align="center"
width="210px"
@@ -464,17 +457,17 @@
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期" prop="zccssrqgj">
<el-form-item label="在产车实施日期" prop="zccssrq">
<el-date-picker
v-model.trim="editRowData.zccssrqgj"
v-model.trim="editRowData.zccssrq"
type="dates"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="新车型实施日期" prop="xcxssrqgj">
<el-form-item label="新车型实施日期" prop="xcxssrq">
<el-date-picker
v-model.trim="editRowData.xcxssrqgj"
v-model.trim="editRowData.xcxssrq"
type="dates"
value-format="yyyy-MM-dd"
placeholder="选择日期">
@@ -575,8 +568,8 @@ export default {
typeApplicable: '',
nylx: '',
ssrq: '',
zccssrqgj: '',
xcxssrqgj: '',
zccssrq: '',
xcxssrq: '',
zrbm: '',
sycpx: '',
cycvppsbm: '',
@@ -1251,11 +1244,11 @@ export default {
if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.split(',')
}
if (this.editRowData.zccssrqgj !== null) {
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(',')
if (this.editRowData.zccssrq !== null) {
this.editRowData.zccssrq = this.editRowData.zccssrq.split(',')
}
if (this.editRowData.xcxssrqgj !== null) {
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(',')
if (this.editRowData.xcxssrq !== null) {
this.editRowData.xcxssrq = this.editRowData.xcxssrq.split(',')
}
this.drawerEdit = true
},
@@ -1263,8 +1256,8 @@ export default {
cancelInfo() {
let Item = JSON.parse(localStorage.getItem('obj'))
this.editRowData.ssrq = Item.ssrq
this.editRowData.xcxssrqgj = Item.xcxssrqgj
this.editRowData.zccssrqgj = Item.zccssrqgj
this.editRowData.xcxssrq = Item.xcxssrq
this.editRowData.zccssrq = Item.zccssrq
this.drawerEdit = false
},
// 抽屉提交按钮
@@ -1272,11 +1265,11 @@ export default {
if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.join(',')
}
if (this.editRowData.xcxssrqgj !== null){
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',')
if (this.editRowData.xcxssrq !== null){
this.editRowData.xcxssrq = this.editRowData.xcxssrq.join(',')
}
if (this.editRowData.zccssrqgj !== null){
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',')
if (this.editRowData.zccssrq !== null){
this.editRowData.zccssrq = this.editRowData.zccssrq.join(',')
}
this.drawerEdit = false
},
@@ -1351,15 +1344,15 @@ export default {
} else {
rowlist1.push(this.sarAccessInfoList[i].ssrq)
}
if (this.sarAccessInfoList[i].xcxssrqgj === null || this.sarAccessInfoList[i].xcxssrqgj === undefined) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-')
if (this.sarAccessInfoList[i].xcxssrq === null || this.sarAccessInfoList[i].xcxssrq === undefined) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrq = '-')
} else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj)
rowlist3.push(this.sarAccessInfoList[i].xcxssrq)
}
if (this.sarAccessInfoList[i].zccssrqgj === null || this.sarAccessInfoList[i].zccssrqgj === undefined) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-')
if (this.sarAccessInfoList[i].zccssrq === null || this.sarAccessInfoList[i].zccssrq === undefined) {
rowlist2.push(this.sarAccessInfoList[i].zccssrq = '-')
} else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj)
rowlist2.push(this.sarAccessInfoList[i].zccssrq)
}
}
console.log(rowlist1)
@@ -369,7 +369,7 @@
width="210px"
label="卡车VPPS中文名称">
</el-table-column>-->
<el-table-column width="240" align="center" fixed="right" label="操作">
<el-table-column width="160" align="center" fixed="right" label="操作">
<template slot-scope="scope">
<el-button
class="common-button-default"
@@ -383,12 +383,12 @@
size="small" @click="moveDown(scope.$index, scope.row)"
v-if="!disabledFlag"
>下移</el-button>
<el-button
size="small"
@click="editTghisRow(scope.row)"
class="common-button-default"
type="warning"
>编辑</el-button>
<!-- <el-button-->
<!-- size="small"-->
<!-- @click="editTghisRow(scope.row)"-->
<!-- class="common-button-default"-->
<!-- type="warning"-->
<!-- >编辑</el-button>-->
</template>
</el-table-column>
</el-table>
@@ -399,7 +399,7 @@
align="center"
label="适用产品线">
</el-table-column>
<el-table-column width="240" align="center" fixed="right" label="操作">
<el-table-column width="160" align="center" fixed="right" label="操作">
<template slot-scope="scope">
<el-button
class="common-button-default"
@@ -415,13 +415,13 @@
v-if="!disabledFlag"
>下移
</el-button>
<el-button
size="small"
@click="editTghisRow(scope.row)"
class="common-button-default"
type="warning"
>编辑
</el-button>
<!-- <el-button-->
<!-- size="small"-->
<!-- @click="editTghisRow(scope.row)"-->
<!-- class="common-button-default"-->
<!-- type="warning"-->
<!-- >编辑-->
<!-- </el-button>-->
</template>
</el-table-column>
</el-table>