commit
This commit is contained in:
@@ -65,7 +65,7 @@ export function meetingByMonth(params) {
|
|||||||
export function addUn(
|
export function addUn(
|
||||||
closeState,standId, standSerialNumber, standName,
|
closeState,standId, standSerialNumber, standName,
|
||||||
itemsNum, itemsName, productType,
|
itemsNum, itemsName, productType,
|
||||||
productLine, productName, reason, responsibleUnit,
|
productLine, productName,productId,reason, responsibleUnit,
|
||||||
dutyEngineer, authEngineer, qaEngineer, planCloseTime) {
|
dutyEngineer, authEngineer, qaEngineer, planCloseTime) {
|
||||||
const data = {
|
const data = {
|
||||||
closeState,
|
closeState,
|
||||||
@@ -77,6 +77,7 @@ export function addUn(
|
|||||||
productType,
|
productType,
|
||||||
productLine, //产品线
|
productLine, //产品线
|
||||||
productName, //项目名称
|
productName, //项目名称
|
||||||
|
productId, //项目编号
|
||||||
reason, //不合规项目
|
reason, //不合规项目
|
||||||
responsibleUnit, //责任部门
|
responsibleUnit, //责任部门
|
||||||
dutyEngineer, //责任工程师
|
dutyEngineer, //责任工程师
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination :page="page" :total="total" @pageChange="pageChange"
|
<!-- <pagination :page="page" :total="total" @pageChange="pageChange"-->
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
<!-- @pageSizeChange="pageSizeChange"></pagination>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--满足-->
|
<!--满足-->
|
||||||
|
|||||||
@@ -456,7 +456,7 @@
|
|||||||
></Role-tree>
|
></Role-tree>
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="批量填写"
|
title="批量填写"
|
||||||
:visible.sync="modalshowflag"
|
:visible.sync="modalShowFlag"
|
||||||
:wrapperClosable="false"
|
:wrapperClosable="false"
|
||||||
size="800px">
|
size="800px">
|
||||||
<div class="demo-drawer-content">
|
<div class="demo-drawer-content">
|
||||||
@@ -531,32 +531,6 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<br>
|
<br>
|
||||||
<!-- <el-divider><span><b>在产产品</b></span></el-divider>-->
|
|
||||||
<!-- <el-formItem label="合规原因" class="add-form-item">-->
|
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- v-model="batchEditForm.zcComplianceReasons"-->
|
|
||||||
<!-- placeholder="请输入合规原因"-->
|
|
||||||
<!-- ></el-input>-->
|
|
||||||
<!-- </el-formItem>-->
|
|
||||||
<!-- <el-form-item label="不合规项目" class="add-form-item">-->
|
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- v-model="batchEditForm.zcNoCompliance"-->
|
|
||||||
<!-- placeholder="请输入不合规项目"-->
|
|
||||||
<!-- ></el-input>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- <el-form-item label="不合规应对措施" class="add-form-item">-->
|
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- v-model="batchEditForm.zcCountermeasures"-->
|
|
||||||
<!-- placeholder="请输入不合规应对措施"-->
|
|
||||||
<!-- ></el-input>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- <el-form-item label="完成时间" class="add-form-item">-->
|
|
||||||
<!-- <el-date-picker-->
|
|
||||||
<!-- v-model="batchEditForm.zcCompletionTime"-->
|
|
||||||
<!-- type="date"-->
|
|
||||||
<!-- placeholder="选择日期">-->
|
|
||||||
<!-- </el-date-picker>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
@@ -628,7 +602,7 @@ export default {
|
|||||||
todoId: "",
|
todoId: "",
|
||||||
showColumn: true,
|
showColumn: true,
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: "", //drawer标题
|
||||||
modalshowflag: false, // drawer开关
|
modalShowFlag: false, // drawer开关
|
||||||
selectList: [],
|
selectList: [],
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
roleForm: {
|
roleForm: {
|
||||||
@@ -723,10 +697,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.modalshowflag = false;
|
this.modalShowFlag = false;
|
||||||
},
|
},
|
||||||
cancelBatchEditForm() {
|
cancelBatchEditForm() {
|
||||||
this.modalshowflag = false;
|
this.modalShowFlag = false;
|
||||||
},
|
},
|
||||||
//批量编辑
|
//批量编辑
|
||||||
batchEdit() {
|
batchEdit() {
|
||||||
@@ -739,15 +713,7 @@ export default {
|
|||||||
this.batchEditForm.countermeasures = "";
|
this.batchEditForm.countermeasures = "";
|
||||||
//完成时间
|
//完成时间
|
||||||
this.batchEditForm.completionTime = "";
|
this.batchEditForm.completionTime = "";
|
||||||
//合规
|
this.modalShowFlag = true;
|
||||||
this.batchEditForm.zcComplianceReasons = "";
|
|
||||||
//不合规
|
|
||||||
this.batchEditForm.zcNoCompliance = "";
|
|
||||||
//应对措施
|
|
||||||
this.batchEditForm.zcCountermeasures = "";
|
|
||||||
//完成时间
|
|
||||||
this.batchEditForm.zcCompletionTime = "";
|
|
||||||
this.modalshowflag = true;
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning("请选择要编辑的数据");
|
this.$message.warning("请选择要编辑的数据");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -425,6 +425,14 @@
|
|||||||
></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"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
|
v-model="addForm.projectNumber"
|
||||||
|
placeholder="请输入项目编号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
|
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -603,6 +611,7 @@ export default {
|
|||||||
itemsNum: "", //条款号
|
itemsNum: "", //条款号
|
||||||
itemsName: "", //条款名称
|
itemsName: "", //条款名称
|
||||||
productType: "",
|
productType: "",
|
||||||
|
projectNumber: "",
|
||||||
productLine: "", //产品线
|
productLine: "", //产品线
|
||||||
productName: "", //项目名称
|
productName: "", //项目名称
|
||||||
reason: "", //不合规项目
|
reason: "", //不合规项目
|
||||||
@@ -634,6 +643,9 @@ export default {
|
|||||||
productName: [
|
productName: [
|
||||||
{ required: true, message: "请输入项目名称", trigger: "change" }
|
{ required: true, message: "请输入项目名称", trigger: "change" }
|
||||||
],
|
],
|
||||||
|
projectNumber: [
|
||||||
|
{ required: true, message: "请输入项目编号", trigger: "change" }
|
||||||
|
],
|
||||||
reason: [
|
reason: [
|
||||||
{ required: true, message: "请输入不合规项目", trigger: "blur" }
|
{ required: true, message: "请输入不合规项目", trigger: "blur" }
|
||||||
],
|
],
|
||||||
@@ -888,6 +900,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 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;
|
||||||
@@ -901,7 +914,7 @@ export default {
|
|||||||
addUn(
|
addUn(
|
||||||
closeState, standId, standSerialNumber,
|
closeState, standId, standSerialNumber,
|
||||||
standName, itemsNum, itemsName, productType,
|
standName, itemsNum, itemsName, productType,
|
||||||
productLine, productName, reason,
|
productLine, productName, productId,reason,
|
||||||
responsibleUnit, dutyEngineer,
|
responsibleUnit, dutyEngineer,
|
||||||
authEngineer, qaEngineer, planCloseTime).then(res => {
|
authEngineer, qaEngineer, planCloseTime).then(res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
@@ -1080,11 +1093,13 @@ 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.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
|
||||||
|
|||||||
Reference in New Issue
Block a user