This commit is contained in:
zhutianqi
2022-01-10 16:56:52 +08:00
parent 207e276a01
commit 2756f0a435
9 changed files with 98 additions and 27 deletions
@@ -164,12 +164,18 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
width="100" width="100"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :disabled="scope.row.state !== '2'" <!-- :disabled="scope.row.state !== '2'"-->
<el-button
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
type="primary" type="primary"
@@ -315,6 +321,13 @@
maxlength="500" maxlength="500"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="原因" prop="cause" class="add-form-item" >
<el-input
v-model="editForm.cause"
placeholder="请输入原因"
maxlength="500"
></el-input>
</el-form-item>
</el-form> </el-form>
</div> </div>
<div id="roleFormButton3" class="demo-drawer-footer"> <div id="roleFormButton3" class="demo-drawer-footer">
@@ -346,6 +359,10 @@
oldText: '', oldText: '',
newText: '', newText: '',
reason: '', reason: '',
cause: '',
department: '',
responUserName: '',
state: '',
}, },
itermsConditionsFlag: false, itermsConditionsFlag: false,
itermsConditionsTitle: '', itermsConditionsTitle: '',
@@ -436,6 +453,8 @@
this.data[a].oldText = this.editForm.oldText this.data[a].oldText = this.editForm.oldText
this.data[a].newText = this.editForm.newText this.data[a].newText = this.editForm.newText
this.data[a].reason = this.editForm.reason this.data[a].reason = this.editForm.reason
this.data[a].cause = this.editForm.cause
this.$set(this.data, a,this.editForm)
} }
} }
this.modalshowflag2 = false this.modalshowflag2 = false
@@ -452,6 +471,10 @@
oldText: row.oldText, oldText: row.oldText,
newText: row.newText, newText: row.newText,
reason: row.reason, reason: row.reason,
cause: row.cause,
department: row.department,
responUserName: row.responUserName,
state: row.state
} }
}, },
itermsConditionsClose () { itermsConditionsClose () {
@@ -536,7 +559,17 @@
}); });
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true; let a = 0
for (let b = 0; b < this.data.length;b++) {
if (this.data[b].state === '3' && !this.data[b].cause) {
a++
}
}
if (a > 0) {
this.$message.warning('请输入不上报原因')
return;
}
this.isSubmit = true;
var json = this.json; var json = this.json;
json.oldinfo = this.oldData; json.oldinfo = this.oldData;
json.commentText = this.commentText5; json.commentText = this.commentText5;
@@ -567,6 +600,9 @@
this.form.cid = data.form ? data.form.cid : data.cid this.form.cid = data.form ? data.form.cid : data.cid
this.form.endTime = data.form ? data.form.endTime : data.endTime this.form.endTime = data.form ? data.form.endTime : data.endTime
data.info.forEach(item => { data.info.forEach(item => {
if (!item.source) {
item.source = '1'
}
if (item.state) { if (item.state) {
} else { } else {
item.state = "1"; item.state = "1";
@@ -584,6 +620,7 @@
item.chapterNumber = item.partCode; item.chapterNumber = item.partCode;
item.responUserName = item.userName; item.responUserName = item.userName;
item.state = '1' item.state = '1'
item.source = '2'
this.data.push(item); this.data.push(item);
}); });
}); });
@@ -173,6 +173,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -444,12 +449,11 @@
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -165,6 +165,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -406,12 +411,11 @@ export default {
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -439,6 +443,8 @@ export default {
this.active = name this.active = name
}, },
handleSubmit() { handleSubmit() {
console.log(this.data);
return
this.isSubmit = true this.isSubmit = true
var json = this.json var json = this.json
json.bdFlag = '0' json.bdFlag = '0'
@@ -165,6 +165,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -410,12 +415,11 @@ export default {
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -165,6 +165,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -409,12 +414,11 @@ export default {
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -137,6 +137,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -329,12 +334,11 @@
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -357,7 +361,7 @@
handleSave() { handleSave() {
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.hqFlag = '0'; json.hqFlag = '0';
json.commentText = this.commentText; json.commentText = this.commentText;
@@ -137,6 +137,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -329,12 +334,11 @@
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -137,6 +137,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -329,12 +334,11 @@
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {
@@ -137,6 +137,11 @@
<div>{{ stateText(scope.row.state) }}</div> <div>{{ stateText(scope.row.state) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="cause"
align="center"
label="原因">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
@@ -344,12 +349,11 @@
reason: "修改理由", reason: "修改理由",
department: "提出部门", department: "提出部门",
responUserName: "提出人", responUserName: "提出人",
stateText: "处理意见",
cause: "原因",
}, },
dataList: [] dataList: []
}; };
if (title === '上报意见.xls') {
params.columnName.stateText = "处理意见"
}
params.dataList = JSON.parse(JSON.stringify(row)); params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => { params.dataList.forEach(item => {
if (item.state === "1") { if (item.state === "1") {