|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item class="query-form-item" label="部门:" prop="deptCode">
|
|
|
|
|
<el-select v-model="inspectPlan.deptCode" placeholder="请选择部门" clearable="true"
|
|
|
|
|
:disabled="inspectPlan.id !== null" @change="deptChange" style="width: 90%">
|
|
|
|
|
:disabled="inspectPlan.code != null" @change="deptChange" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in deptList"
|
|
|
|
|
:key="item.name"
|
|
|
|
@ -34,7 +34,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item class="query-form-item" label="仓库:" prop="invCode">
|
|
|
|
|
<el-select v-model="inspectPlan.invCode" :disabled="inspectPlan.id !== null" placeholder="请选择仓库"
|
|
|
|
|
<el-select v-model="inspectPlan.invCode" :disabled="inspectPlan.code != null" placeholder="请选择仓库"
|
|
|
|
|
clearable="true" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
@ -124,16 +124,16 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="计划状态:" prop="planStatus">
|
|
|
|
|
<el-select v-model="inspectPlan.planStatus" style="width: 90%" placeholder="请选择计划级别" clearable>
|
|
|
|
|
<el-option label="不启用" :value=1></el-option>
|
|
|
|
|
<el-option label="启用" :value=2></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <el-row>-->
|
|
|
|
|
<!-- <el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="计划状态:" prop="planStatus">-->
|
|
|
|
|
<!-- <el-select v-model="inspectPlan.planStatus" style="width: 90%" placeholder="请选择计划级别" clearable>-->
|
|
|
|
|
<!-- <el-option label="不启用" :value=1></el-option>-->
|
|
|
|
|
<!-- <el-option label="启用" :value=2></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
@ -248,6 +248,7 @@
|
|
|
|
|
>
|
|
|
|
|
<deviceProjectSelect
|
|
|
|
|
:inputQuery="inputQuery"
|
|
|
|
|
type="1"
|
|
|
|
|
:closeDialog="inspectPlanSetCloseDialog"
|
|
|
|
|
></deviceProjectSelect>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -387,6 +388,9 @@ export default {
|
|
|
|
|
this.$refs["formRef"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let formName = isBlank(this.inspectPlan.id) ? "add" : "edit";
|
|
|
|
|
if(formName == "add"){
|
|
|
|
|
this.inspectPlan.planStatus = 1;
|
|
|
|
|
}
|
|
|
|
|
saveDeviceInspectPlan(this.inspectPlan, formName).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
@ -500,6 +504,9 @@ export default {
|
|
|
|
|
this.$refs["formRef"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let formName = isBlank(this.inspectPlan.id) ? "add" : "edit";
|
|
|
|
|
if(formName == "add"){
|
|
|
|
|
this.inspectPlan.planStatus = 1;
|
|
|
|
|
}
|
|
|
|
|
saveDeviceInspectPlan(this.inspectPlan, formName).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.inspectPlan.id = res.data.id;
|
|
|
|
@ -532,6 +539,9 @@ export default {
|
|
|
|
|
this.$refs["formRef"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let formName = isBlank(this.inspectPlan.id) ? "add" : "edit";
|
|
|
|
|
if(formName == "add"){
|
|
|
|
|
this.inspectPlan.planStatus = 1;
|
|
|
|
|
}
|
|
|
|
|
saveDeviceInspectPlan(this.inspectPlan, formName).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.inspectPlan.id = res.data.id;
|
|
|
|
|