commit
This commit is contained in:
@@ -223,6 +223,7 @@
|
|||||||
@click.native="handlePrice(scope.row)"
|
@click.native="handlePrice(scope.row)"
|
||||||
v-model="scope.row.completionTime"
|
v-model="scope.row.completionTime"
|
||||||
type="date"
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
placeholder="请选择日期">
|
placeholder="请选择日期">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
@@ -940,10 +941,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// complianceReasons 合规原因
|
|
||||||
// noCompliance 不合规项
|
|
||||||
// countermeasures 应对措施
|
|
||||||
//completionTime 完成时间
|
|
||||||
if(!this.comFlag){
|
if(!this.comFlag){
|
||||||
this.$message.warning('请填写完整的不符合项信息')
|
this.$message.warning('请填写完整的不符合项信息')
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -468,36 +468,70 @@ export default {
|
|||||||
},
|
},
|
||||||
//动态表单读取
|
//动态表单读取
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item));
|
this.listForm = JSON.parse(JSON.stringify(item));
|
||||||
this.listForm.prcNum = this.prcNum;
|
if (item.form === undefined) {
|
||||||
this.listForm.prcName = this.prcName;
|
let dataChildren = []
|
||||||
this.listForm["id"] = item.id;
|
let dataListChildren = []
|
||||||
this.listForm.dataList = item.dataList;
|
this.listForm.prcNum = this.prcNum;
|
||||||
let dataChildren = []
|
this.listForm.prcName = this.prcName;
|
||||||
let dataListChildren = []
|
this.listForm["id"] = item.id;
|
||||||
this.listForm.dataList.forEach(item => {
|
this.listForm.dataList = item.dataList;
|
||||||
item.children.forEach(items=> {
|
this.listForm.dataList.forEach(item => {
|
||||||
if(items.key === item.standId){
|
if(item.children.length < 1 && item.workPeopleId === this.$store.getters.userInfo.userId ){
|
||||||
this.$set(items, "standName", item.standName);
|
this.dataList.push(item)
|
||||||
this.$set(items, "standEnName", item.standEnName);
|
|
||||||
this.$set(items, "standYear", item.standYear);
|
|
||||||
this.$set(items, "standSort", item.standSort);
|
|
||||||
this.$set(items, "standNumber", item.standNumber);
|
|
||||||
}
|
}
|
||||||
|
item.children.forEach(items=> {
|
||||||
|
if(items.key === item.standId){
|
||||||
|
this.$set(items, "standName", item.standName);
|
||||||
|
this.$set(items, "standEnName", item.standEnName);
|
||||||
|
this.$set(items, "standYear", item.standYear);
|
||||||
|
this.$set(items, "standSort", item.standSort);
|
||||||
|
this.$set(items, "standNumber", item.standNumber);
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
this.listForm.dataList.forEach(item => {
|
||||||
this.listForm.dataList.forEach(item => {
|
dataChildren.push(item.children)
|
||||||
dataChildren.push(item.children)
|
})
|
||||||
})
|
dataChildren.forEach((item,index) => {
|
||||||
dataChildren.forEach((item,index) => {
|
dataListChildren = dataListChildren.concat(item)
|
||||||
dataListChildren = dataListChildren.concat(item)
|
})
|
||||||
})
|
dataListChildren = this.dataList.concat(dataListChildren)
|
||||||
this.dataList = dataListChildren
|
this.dataList = dataListChildren
|
||||||
this.total = this.dataList.length;
|
this.total = this.dataList.length;
|
||||||
// this.dataList = item.dataList;
|
} else {
|
||||||
// this.dataList.distributePerson = item.dataList[0].distributePerson;
|
this.listForm = item.form;
|
||||||
// this.listForm.breakdownList = item.breakdownList;
|
let dataChildren = []
|
||||||
|
let dataListChildren = []
|
||||||
|
this.listForm.dataList.forEach(item => {
|
||||||
|
if(item.children.length < 1 && item.workPeopleId === this.$store.getters.userInfo.userId ){
|
||||||
|
this.dataList.push(item)
|
||||||
|
}
|
||||||
|
item.children.forEach(items=> {
|
||||||
|
if(items.key === item.standId){
|
||||||
|
this.$set(items, "standName", item.standName);
|
||||||
|
this.$set(items, "standEnName", item.standEnName);
|
||||||
|
this.$set(items, "standYear", item.standYear);
|
||||||
|
this.$set(items, "standSort", item.standSort);
|
||||||
|
this.$set(items, "standNumber", item.standNumber);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
this.listForm.dataList.forEach(item => {
|
||||||
|
dataChildren.push(item.children)
|
||||||
|
})
|
||||||
|
dataChildren.forEach((item,index) => {
|
||||||
|
dataListChildren = dataListChildren.concat(item)
|
||||||
|
})
|
||||||
|
dataListChildren = this.dataList.concat(dataListChildren)
|
||||||
|
this.dataList = dataListChildren
|
||||||
|
this.total = this.dataList.length;
|
||||||
|
// this.dataList = item.form.dataList[0].children;
|
||||||
|
// this.total = item.form.dataList[0].children.length;
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//驳回事件
|
//驳回事件
|
||||||
|
|||||||
Reference in New Issue
Block a user