Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -426,11 +426,11 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="projectNumber" label="项目编号" style="width: 100%; margin-right:10px"
|
<el-form-item prop="productId" label="项目编号" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
v-model="addForm.projectNumber"
|
v-model="addForm.productId"
|
||||||
placeholder="请输入项目编号"
|
placeholder="请输入项目编号"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -612,7 +612,7 @@ export default {
|
|||||||
itemsNum: "", //条款号
|
itemsNum: "", //条款号
|
||||||
itemsName: "", //条款名称
|
itemsName: "", //条款名称
|
||||||
productType: "",
|
productType: "",
|
||||||
projectNumber: "",
|
productId: "",
|
||||||
productLine: "", //产品线
|
productLine: "", //产品线
|
||||||
productName: "", //项目名称
|
productName: "", //项目名称
|
||||||
reason: "", //不合规项目
|
reason: "", //不合规项目
|
||||||
@@ -644,7 +644,7 @@ export default {
|
|||||||
productName: [
|
productName: [
|
||||||
{ required: true, message: "请输入项目名称", trigger: "change" }
|
{ required: true, message: "请输入项目名称", trigger: "change" }
|
||||||
],
|
],
|
||||||
projectNumber: [
|
productId: [
|
||||||
{ required: true, message: "请输入项目编号", trigger: "change" }
|
{ required: true, message: "请输入项目编号", trigger: "change" }
|
||||||
],
|
],
|
||||||
reason: [
|
reason: [
|
||||||
@@ -700,7 +700,10 @@ export default {
|
|||||||
|
|
||||||
// 选择责任部门
|
// 选择责任部门
|
||||||
nodeListZRBM: [],
|
nodeListZRBM: [],
|
||||||
modalshowflagZRBM: false
|
modalshowflagZRBM: false,
|
||||||
|
|
||||||
|
// 储存项目id
|
||||||
|
projectId: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -893,7 +896,7 @@ export default {
|
|||||||
submit() {
|
submit() {
|
||||||
const id = this.addForm.id;
|
const id = this.addForm.id;
|
||||||
const closeState = this.addForm.closeState;
|
const closeState = this.addForm.closeState;
|
||||||
const standId = this.addForm.productId // 此处standId储存项目下的标准的id
|
const standId = this.addForm.standId
|
||||||
const standSerialNumber = this.addForm.standSerialNumber;
|
const standSerialNumber = this.addForm.standSerialNumber;
|
||||||
const standName = this.addForm.standName;
|
const standName = this.addForm.standName;
|
||||||
const itemsNum = this.addForm.itemsNum;
|
const itemsNum = this.addForm.itemsNum;
|
||||||
@@ -901,7 +904,7 @@ export default {
|
|||||||
const productType = this.addForm.productType;
|
const productType = this.addForm.productType;
|
||||||
const productLine = this.addForm.productLine;
|
const productLine = this.addForm.productLine;
|
||||||
const productName = this.addForm.productName;
|
const productName = this.addForm.productName;
|
||||||
const productId = this.addForm.projectNumber;
|
const productId = this.addForm.productId;
|
||||||
const reason = this.addForm.reason;
|
const reason = this.addForm.reason;
|
||||||
const responsibleUnit = this.addForm.responsibleUnit;
|
const responsibleUnit = this.addForm.responsibleUnit;
|
||||||
const dutyEngineer = this.addForm.dutyEngineer;
|
const dutyEngineer = this.addForm.dutyEngineer;
|
||||||
@@ -1013,7 +1016,12 @@ export default {
|
|||||||
projectEdit(row) {
|
projectEdit(row) {
|
||||||
this.drawerTitle = "编辑";
|
this.drawerTitle = "编辑";
|
||||||
this.addForm = row
|
this.addForm = row
|
||||||
let productId = row.standId
|
this.ProjectDatas.forEach(item =>{
|
||||||
|
if(item.projectNumber === row.productId) {
|
||||||
|
this.projectId = item.id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let productId = this.projectId
|
||||||
this.getProjectData()
|
this.getProjectData()
|
||||||
this.getStandData(productId)
|
this.getStandData(productId)
|
||||||
this.serialNumber = false
|
this.serialNumber = false
|
||||||
@@ -1094,13 +1102,12 @@ export default {
|
|||||||
|
|
||||||
/** 项目名称change事件 */
|
/** 项目名称change事件 */
|
||||||
handleChange(val) {
|
handleChange(val) {
|
||||||
console.log(val);
|
|
||||||
if (this.drawerTitle === '编辑') {
|
if (this.drawerTitle === '编辑') {
|
||||||
this.addForm.standName = ''
|
this.addForm.standName = ''
|
||||||
this.addForm.standSerialNumber = ''
|
this.addForm.standSerialNumber = ''
|
||||||
}
|
}
|
||||||
this.addForm.productId = val.id
|
this.addForm.productId = val.id
|
||||||
this.addForm.projectNumber = val.projectNumber
|
this.addForm.productId = val.projectNumber
|
||||||
this.addForm.productLine = val.productLine
|
this.addForm.productLine = val.productLine
|
||||||
this.addForm.productName = val.projectName
|
this.addForm.productName = val.projectName
|
||||||
this.addForm.productType = val.projectPlatfor
|
this.addForm.productType = val.projectPlatfor
|
||||||
@@ -1110,6 +1117,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 标准号change事件 */
|
/** 标准号change事件 */
|
||||||
standChange(item) {
|
standChange(item) {
|
||||||
|
this.addForm.standId = item.standId
|
||||||
this.addForm.standName = item.standName
|
this.addForm.standName = item.standName
|
||||||
this.addForm.standSerialNumber = item.standSort + '-' + item.standNumber + '-' + item.standYear
|
this.addForm.standSerialNumber = item.standSort + '-' + item.standNumber + '-' + item.standYear
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user