|
@@ -363,10 +363,32 @@
|
|
|
:modal-append-to-body="false"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
- <div class="check">aaa</div>
|
|
|
+ <div>
|
|
|
+ <el-form>
|
|
|
+ <el-form-item
|
|
|
+ label="审批领导"
|
|
|
+ :rules="{
|
|
|
+ required: true,
|
|
|
+ message: '请选择审批领导',
|
|
|
+ trigger: 'change',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <el-select v-model="leader">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in leaderList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select> </el-form-item
|
|
|
+ ></el-form>
|
|
|
+ </div>
|
|
|
<div slot="footer">
|
|
|
- <el-button type="primary" @click="formSubmit">确 定</el-button>
|
|
|
- <el-button @click="checkLaeder = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="formSubmit(2)"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="checkLaeder = false" size="small">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -402,7 +424,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" style="text-align: right; padding-bottom: 20px">
|
|
|
- <el-button type="primary" @click="formSubmit">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="formSubmit(1)">确 定</el-button>
|
|
|
<el-button @click="checkexa = false">取 消</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -554,6 +576,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
+ "datalist.attList"() {
|
|
|
+ this.number++;
|
|
|
+ },
|
|
|
// tempSave(value) {
|
|
|
// if (value) {
|
|
|
// // 监听编辑状态,每20秒请求一次,注意函数不加()
|
|
@@ -731,30 +756,65 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 表单提交
|
|
|
- formSubmit() {
|
|
|
- if (!this.treeList.length) {
|
|
|
- this.$message.error("请选择审核人员");
|
|
|
- return;
|
|
|
+ formSubmit(type) {
|
|
|
+ if (type === 1) {
|
|
|
+ if (!this.treeList.length) {
|
|
|
+ this.$message.error("请选择审核人员");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!this.leader) {
|
|
|
+ this.$message.error("请选择审核领导");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
- console.log(this.treeList, "dadada");
|
|
|
let request = 0;
|
|
|
let formData = new FormData();
|
|
|
+ let origin_params = {};
|
|
|
+ if (this.infolist.woNo) {
|
|
|
+ origin_params = {
|
|
|
+ // 需求编号
|
|
|
+ woNo: this.infolist.woNo,
|
|
|
+ createId: this.infolist.createId,
|
|
|
+ createName: this.infolist.createName,
|
|
|
+ };
|
|
|
+ }
|
|
|
let params = {
|
|
|
- ...this.infolist,
|
|
|
+ ...origin_params,
|
|
|
+ // 需求名称
|
|
|
+ demandName: this.infolist.demandName,
|
|
|
+ // 紧急程度
|
|
|
+ urgDegree: this.infolist.urgDegree,
|
|
|
+ // 业务主题
|
|
|
+ busiSubject: this.infolist.busiSubject,
|
|
|
+ // 需求类别
|
|
|
+ demandTypeCode: this.infolist.busiSubject,
|
|
|
+ //承载渠道
|
|
|
carryChannelCode: this.infolist.carryChannelCode.join(","),
|
|
|
+ // 加载周期 起止
|
|
|
busiStartTime: this.busiTime[0]
|
|
|
? this.$formatDate(this.busiTime[0], "YYYY-MM-DD HH:mm:ss")
|
|
|
: "",
|
|
|
busiEndTime: this.busiTime[1]
|
|
|
? this.$formatDate(this.busiTime[1], "YYYY-MM-DD HH:mm:ss")
|
|
|
: "",
|
|
|
+ // 需求背景
|
|
|
+ demandBackground: this.infolist.demandBackground,
|
|
|
+ // 需求描述
|
|
|
+ demandDesc: this.infolist.demandDesc,
|
|
|
+ // 审批说明
|
|
|
+ remark: this.remark,
|
|
|
// 审核人员
|
|
|
- loginNameList: this.treeList.map((el) => {
|
|
|
- return el.label;
|
|
|
- }),
|
|
|
- loginNoList: this.treeList.map((el) => {
|
|
|
- return el.loginNoStr;
|
|
|
- }),
|
|
|
+ loginNameList: this.treeList.length
|
|
|
+ ? this.treeList.map((el) => {
|
|
|
+ return el.label;
|
|
|
+ })
|
|
|
+ : [this.leader],
|
|
|
+ loginNoList: this.treeList.length
|
|
|
+ ? this.treeList.map((el) => {
|
|
|
+ return el.loginNoStr;
|
|
|
+ })
|
|
|
+ : [this.leader],
|
|
|
type: this.type,
|
|
|
// fileList: this.file,
|
|
|
};
|
|
@@ -796,7 +856,10 @@ export default {
|
|
|
this.dialogStatus = false;
|
|
|
this.disableStatus = false;
|
|
|
this.checkexa = false;
|
|
|
+ this.checkLaeder = false;
|
|
|
+ this.leader = "";
|
|
|
this.infolist = {};
|
|
|
+ this.handleInit();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -888,22 +951,30 @@ export default {
|
|
|
mkOnlineChannel.busiStartTime,
|
|
|
mkOnlineChannel.busiEndTime,
|
|
|
];
|
|
|
- this.rovaList = mkOnlineChannel.logList;
|
|
|
- this.datalist.attList = mkOnlineChannel.attList;
|
|
|
+ // this.rovaList = mkOnlineChannel.logList;
|
|
|
+ this.datalist = {
|
|
|
+ ...this.datalist,
|
|
|
+ attList: mkOnlineChannel.attList,
|
|
|
+ };
|
|
|
+ //表单编号
|
|
|
this.woNo = mkOnlineChannel.woNo;
|
|
|
+ // 步骤
|
|
|
this.step = mkOnlineChannel.step;
|
|
|
+ // 数组回显
|
|
|
this.infodatas = mkOnlineChannel.logList;
|
|
|
- // if (this.titname === "查看") {
|
|
|
- //
|
|
|
- // return;
|
|
|
- // }
|
|
|
- if (this.step === "0") {
|
|
|
+ this.dialogStatus = true;
|
|
|
+ if (this.titname === "添加") {
|
|
|
+ // 审批说明
|
|
|
this.visionsts = "";
|
|
|
this.disableStatus = false;
|
|
|
} else {
|
|
|
// this.disableStatus = true;
|
|
|
this.disableStatus = true;
|
|
|
- this.visionsts = "2";
|
|
|
+ if (this.titname === "查看") {
|
|
|
+ this.visionsts = "";
|
|
|
+ } else {
|
|
|
+ this.visionsts = "2";
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
);
|
|
@@ -963,6 +1034,8 @@ export default {
|
|
|
closedia() {
|
|
|
this.infolist = {};
|
|
|
this.attList = [];
|
|
|
+ this.file = [];
|
|
|
+ delete this.datalist.attList;
|
|
|
this.fileInfo.fileList = [];
|
|
|
this.dialogStatus = false;
|
|
|
this.checkexa = false;
|
|
@@ -995,7 +1068,6 @@ export default {
|
|
|
},
|
|
|
//申请 // 打开弹出层
|
|
|
dialogCheck(type, data) {
|
|
|
- this.dialogStatus = true;
|
|
|
// let infolist = Object.assign({}, n);
|
|
|
this.vision = "";
|
|
|
this.visionsts = "";
|
|
@@ -1010,6 +1082,7 @@ export default {
|
|
|
this.queryDetails(data.woNo);
|
|
|
} else if (type === 3) {
|
|
|
this.titname = "添加";
|
|
|
+ this.dialogStatus = true;
|
|
|
this.visionchonly = false;
|
|
|
this.disableStatus = false;
|
|
|
// this.$http({
|
|
@@ -1523,8 +1596,9 @@ export default {
|
|
|
.info {
|
|
|
&-footer {
|
|
|
display: flex;
|
|
|
- margin-top: 100px;
|
|
|
+ margin-top: 50px;
|
|
|
justify-content: flex-end;
|
|
|
+ margin-bottom: 50px;
|
|
|
}
|
|
|
&-upload {
|
|
|
width: 500px !important;
|