dd9c3579 by xiaomiao

--no commit message

1 parent 17b0ee6e
......@@ -25,7 +25,7 @@
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item">
<el-input
:disabled="!ableOperation"
:disabled="!ableOperation&&item.show"
type="textarea"
:rows="4"
class="opinion"
......@@ -150,16 +150,20 @@ export default {
this.$endLoading();
if (res.code === 200 && res.result) {
this.tableData = res.result;
if (this.tableData.length == 0) {
if (this.tableData.length == 0&&this.jdmc=="初审") {
console.log(0);
this.tableData.push({ jdmc: "初审" });
}else if(this.tableData[this.tableData.length-1].jdmc=="初审") {
}else if(this.tableData[this.tableData.length-1].jdmc=="初审"&&this.jdmc=="复审") {
console.log(1);
this.tableData.push({ jdmc: "复审" });
}else if(this.tableData[this.tableData.length-1].jdmc=="复审") {
}else if(this.tableData[this.tableData.length-1].jdmc=="复审"&&this.jdmc=="核定") {
console.log(2);
this.tableData.push({ jdmc: "核定" });
}
if(this.$parent.dqhj=="cs"){
this.tableData[0].show=false
}
console.log("this.tableData", this.tableData);
}
});
......
......@@ -25,7 +25,7 @@
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item">
<el-input
:disabled="!ableOperation"
:disabled="!ableOperation&&item.show"
type="textarea"
:rows="4"
class="opinion"
......@@ -54,7 +54,7 @@
<el-form-item class="sjxzq" label="审核时间">
<el-date-picker
:disabled="!ableOperation"
v-model="item.shjssj"
v-model="item.shkssj"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
......@@ -112,7 +112,7 @@ export default {
created() {},
mounted() {
this.propsParam = this.$attrs;
console.log("this.$parent.dqhj", this.$parent.dqhj);
console.log("this.$parent.dqhj111111111111111", this.$parent.dqhj);
this.ableOperation = this.$parent.currentSelectTab.ableOperation;
// this.ableOperation = this.$parent.ableOperation;
this.getShList();
......@@ -151,6 +151,7 @@ export default {
if (res.code === 200 && res.result) {
this.tableData = res.result;
if (this.tableData.length == 0) {
console.log(0);
this.tableData.push({ jdmc: "初审" });
}
console.log("this.tableData", this.tableData);
......@@ -170,13 +171,15 @@ export default {
onSubmit() {
this.tableData.forEach((item, index) => {
item["bsmBusiness"] = this.propsParam.bsmBusiness;
item["bestepid"] = this.$route.query.bestepid;
item["stepid"] = this.$route.query.bestepid;
item["shryxm"] = this.userInfo.name;
item["userid"] = this.userInfo.id;
item["shjssj"] = item.shkssj;
item["czjg"] = "1";
item["jddm"] = this.$parent.dqhj;
item["jdmc"] = this.jdmc;
item["jddm"] = "cs"
item["jdmc"] = "初审"
item["sxh"] = "1"
});
console.log("this.tableData", this.tableData);
......