fix: BUG修改
This commit is contained in:
parent
a33495c12f
commit
6db9107fe7
@ -341,7 +341,7 @@ const remove = (row: UploadFile) => {
|
|||||||
|
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
fileList.value.splice(i, 1);
|
fileList.value.splice(i, 1);
|
||||||
|
successList.value.splice(i, 1);
|
||||||
/** 释放创建的图像资源 */
|
/** 释放创建的图像资源 */
|
||||||
if (row.url) window.URL.revokeObjectURL(row.url);
|
if (row.url) window.URL.revokeObjectURL(row.url);
|
||||||
}
|
}
|
||||||
@ -464,6 +464,7 @@ const reset = () => {
|
|||||||
* TODO: 关闭前操作
|
* TODO: 关闭前操作
|
||||||
*/
|
*/
|
||||||
const beforeClose = () => {
|
const beforeClose = () => {
|
||||||
|
console.log(successList.value);
|
||||||
emit("update:files", [...successList.value]);
|
emit("update:files", [...successList.value]);
|
||||||
|
|
||||||
props.reset && reset();
|
props.reset && reset();
|
||||||
|
|||||||
@ -593,8 +593,24 @@ const onUpload = async (row: any, index: any) => {
|
|||||||
if (row.fileList.length > 0) {
|
if (row.fileList.length > 0) {
|
||||||
let arr: any = [];
|
let arr: any = [];
|
||||||
row.fileList.map(item => {
|
row.fileList.map(item => {
|
||||||
|
if (item.response) {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item.response, url: item.response.url },
|
||||||
|
name: item.response.originalFilename,
|
||||||
|
url: item.response.url,
|
||||||
|
size: +item.response.size,
|
||||||
|
type: item.response.contentType
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item, url: item.fileUrl },
|
||||||
|
name: item.fileName,
|
||||||
|
url: item.fileUrl,
|
||||||
|
size: +item.fileSize,
|
||||||
|
type: item.contentType
|
||||||
|
});
|
||||||
|
}
|
||||||
delete item.response;
|
delete item.response;
|
||||||
arr.push(item);
|
|
||||||
});
|
});
|
||||||
current.value.files = arr;
|
current.value.files = arr;
|
||||||
console.log(current.value.files);
|
console.log(current.value.files);
|
||||||
@ -714,6 +730,7 @@ watch(
|
|||||||
towerPermanentDown: "",
|
towerPermanentDown: "",
|
||||||
towerPermanentStandard: ""
|
towerPermanentStandard: ""
|
||||||
};
|
};
|
||||||
|
activeName.value = "first";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -117,7 +117,11 @@
|
|||||||
prop="removeUnit"
|
prop="removeUnit"
|
||||||
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
||||||
>
|
>
|
||||||
<el-input v-model="formData.removeUnit" placeholder="请输入" :disabled="formData.installationType == 7" />
|
<el-input
|
||||||
|
v-model="formData.removeUnit"
|
||||||
|
placeholder="请输入"
|
||||||
|
:disabled="formData.installationType == 7 && formData.examineState == 1"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="拆卸日期:"
|
label="拆卸日期:"
|
||||||
@ -125,7 +129,7 @@
|
|||||||
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
||||||
>
|
>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
:disabled="formData.installationType == 7"
|
:disabled="formData.installationType == 7 && formData.examineState == 1"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="formData.removeTime"
|
v-model="formData.removeTime"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
@ -139,14 +143,22 @@
|
|||||||
prop="removeContact"
|
prop="removeContact"
|
||||||
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
||||||
>
|
>
|
||||||
<el-input v-model="formData.removeContact" placeholder="请输入" :disabled="formData.installationType == 7" />
|
<el-input
|
||||||
|
v-model="formData.removeContact"
|
||||||
|
placeholder="请输入"
|
||||||
|
:disabled="formData.installationType == 7 && formData.examineState == 1"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="拆卸单位联系电话:"
|
label="拆卸单位联系电话:"
|
||||||
prop="removePhone"
|
prop="removePhone"
|
||||||
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
v-if="(formData.examineState == 1 && formData.installationType == 6) || formData.installationType == 7"
|
||||||
>
|
>
|
||||||
<el-input v-model="formData.removePhone" placeholder="请输入" :disabled="formData.installationType == 7" />
|
<el-input
|
||||||
|
v-model="formData.removePhone"
|
||||||
|
placeholder="请输入"
|
||||||
|
:disabled="formData.installationType == 7 && formData.examineState == 1"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@ -392,15 +404,31 @@ const onDownLoad = async (row: any) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 上传附件按钮
|
// 上传附件按钮
|
||||||
const onUpload = async (row: any) => {
|
const onUpload = async (row: any, index: any) => {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
showFilesUpload.value = true;
|
showFilesUpload.value = true;
|
||||||
documentDataIndex.value = index;
|
documentDataIndex.value = index;
|
||||||
if (row.fileList.length > 0) {
|
if (row.fileList.length > 0) {
|
||||||
let arr: any = [];
|
let arr: any = [];
|
||||||
row.fileList.map(item => {
|
row.fileList.map(item => {
|
||||||
|
if (item.response) {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item.response, url: item.response.url },
|
||||||
|
name: item.response.originalFilename,
|
||||||
|
url: item.response.url,
|
||||||
|
size: +item.response.size,
|
||||||
|
type: item.response.contentType
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item, url: item.fileUrl },
|
||||||
|
name: item.fileName,
|
||||||
|
url: item.fileUrl,
|
||||||
|
size: +item.fileSize,
|
||||||
|
type: item.contentType
|
||||||
|
});
|
||||||
|
}
|
||||||
delete item.response;
|
delete item.response;
|
||||||
arr.push(item);
|
|
||||||
});
|
});
|
||||||
current.value.files = arr;
|
current.value.files = arr;
|
||||||
console.log(current.value.files);
|
console.log(current.value.files);
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
v-for="(item, i) in stepOptions"
|
v-for="(item, i) in stepOptions"
|
||||||
:key="item.dictCode"
|
:key="item.dictCode"
|
||||||
|
:icon="item.icon"
|
||||||
:title="item.dictValue"
|
:title="item.dictValue"
|
||||||
@click="changeStep(i)"
|
@click="changeStep(i)"
|
||||||
/>
|
/>
|
||||||
@ -193,7 +194,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
||||||
<el-input v-model="formData.equipmentUseType" placeholder="请输入" disabled />
|
<el-select v-model="formData.equipmentUseType" disabled placeholder="请选择" style="width: 100%">
|
||||||
|
<el-option v-for="item in useList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -573,11 +576,16 @@ import FilesUploadPlus from "@/components/FilesUploadPlus/FilesUpload.vue";
|
|||||||
import DownLoad from "@/utils/annexDowload";
|
import DownLoad from "@/utils/annexDowload";
|
||||||
import type { FormInstance, FormRules } from "element-plus";
|
import type { FormInstance, FormRules } from "element-plus";
|
||||||
import { getRelevanceList } from "@/api/modules/common";
|
import { getRelevanceList } from "@/api/modules/common";
|
||||||
|
import { Document, Setting, MessageBox, SwitchButton } from "@element-plus/icons-vue";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
operateDialog: Boolean,
|
operateDialog: Boolean,
|
||||||
relativeId: String
|
relativeId: String
|
||||||
});
|
});
|
||||||
const emits = defineEmits(["update:operateDialog"]);
|
const emits = defineEmits(["update:operateDialog"]);
|
||||||
|
const useList = ref([
|
||||||
|
{ label: "自用", value: 1 },
|
||||||
|
{ label: "租赁", value: 2 }
|
||||||
|
]);
|
||||||
const detailsData = ref({});
|
const detailsData = ref({});
|
||||||
const operateTitle = ref("新增");
|
const operateTitle = ref("新增");
|
||||||
const formRef = ref<FormInstance>();
|
const formRef = ref<FormInstance>();
|
||||||
@ -641,11 +649,11 @@ const rules = ref({
|
|||||||
const typeList = ref([]);
|
const typeList = ref([]);
|
||||||
const formData = ref<any>({});
|
const formData = ref<any>({});
|
||||||
const active = ref(0),
|
const active = ref(0),
|
||||||
stepOptions = ref<ResDictData["result"]>([
|
stepOptions = ref([
|
||||||
{ dictValue: "产权备案", dictCode: 1 },
|
{ dictValue: "产权备案", dictCode: 1, icon: Document },
|
||||||
{ dictValue: "安装拆卸", dictCode: 2 },
|
{ dictValue: "安装拆卸", dictCode: 2, icon: Setting },
|
||||||
{ dictValue: "报废", dictCode: 3 },
|
{ dictValue: "报废", dictCode: 3, icon: MessageBox },
|
||||||
{ dictValue: "注销", dictCode: 4 }
|
{ dictValue: "注销", dictCode: 4, icon: SwitchButton }
|
||||||
]);
|
]);
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const engineeringList = ref([]);
|
const engineeringList = ref([]);
|
||||||
@ -653,14 +661,24 @@ const searchSn = ref("");
|
|||||||
// 控制新增操作
|
// 控制新增操作
|
||||||
const disableOperate = () => {
|
const disableOperate = () => {
|
||||||
if (active.value == 0) {
|
if (active.value == 0) {
|
||||||
if (formData.value.equipmentType == 1 || formData.value.equipmentType == 2 || formData.value.equipmentType == 3) {
|
if (
|
||||||
|
formData.value.equipmentType == 1 ||
|
||||||
|
formData.value.equipmentType == 2 ||
|
||||||
|
formData.value.equipmentType == 3 ||
|
||||||
|
formData.value.equipmentType == 6 ||
|
||||||
|
formData.value.equipmentType == 7
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (active.value == 1) {
|
} else if (active.value == 1) {
|
||||||
if (
|
if (
|
||||||
(formData.value.equipmentType == 1 || formData.value.equipmentType == 2 || formData.value.equipmentType == 3) &&
|
(formData.value.equipmentType == 1 ||
|
||||||
|
formData.value.equipmentType == 2 ||
|
||||||
|
formData.value.equipmentType == 3 ||
|
||||||
|
formData.value.equipmentType == 6 ||
|
||||||
|
formData.value.equipmentType == 7) &&
|
||||||
!formData.value.engineeringSn
|
!formData.value.engineeringSn
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
@ -668,7 +686,13 @@ const disableOperate = () => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (active.value == 2) {
|
} else if (active.value == 2) {
|
||||||
if (formData.value.equipmentType == 1 || formData.value.equipmentType == 2 || formData.value.equipmentType == 3) {
|
if (
|
||||||
|
formData.value.equipmentType == 1 ||
|
||||||
|
formData.value.equipmentType == 2 ||
|
||||||
|
formData.value.equipmentType == 3 ||
|
||||||
|
formData.value.equipmentType == 6 ||
|
||||||
|
formData.value.equipmentType == 7
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@ -678,7 +702,9 @@ const disableOperate = () => {
|
|||||||
formData.value.equipmentType == 1 ||
|
formData.value.equipmentType == 1 ||
|
||||||
formData.value.equipmentType == 2 ||
|
formData.value.equipmentType == 2 ||
|
||||||
formData.value.equipmentType == 3 ||
|
formData.value.equipmentType == 3 ||
|
||||||
formData.value.equipmentType == 5
|
formData.value.equipmentType == 5 ||
|
||||||
|
formData.value.equipmentType == 6 ||
|
||||||
|
formData.value.equipmentType == 7
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -753,8 +779,24 @@ const onUpload = async (row: any, index: any) => {
|
|||||||
if (row.fileList.length > 0) {
|
if (row.fileList.length > 0) {
|
||||||
let arr: any = [];
|
let arr: any = [];
|
||||||
row.fileList.map(item => {
|
row.fileList.map(item => {
|
||||||
|
if (item.response) {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item.response, url: item.response.url },
|
||||||
|
name: item.response.originalFilename,
|
||||||
|
url: item.response.url,
|
||||||
|
size: +item.response.size,
|
||||||
|
type: item.response.contentType
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
arr.push({
|
||||||
|
response: { ...item, url: item.fileUrl },
|
||||||
|
name: item.fileName,
|
||||||
|
url: item.fileUrl,
|
||||||
|
size: +item.fileSize,
|
||||||
|
type: item.contentType
|
||||||
|
});
|
||||||
|
}
|
||||||
delete item.response;
|
delete item.response;
|
||||||
arr.push(item);
|
|
||||||
});
|
});
|
||||||
current.value.files = arr;
|
current.value.files = arr;
|
||||||
console.log(current.value.files);
|
console.log(current.value.files);
|
||||||
@ -843,19 +885,32 @@ const cancelApply = (arr: any, index: any) => {
|
|||||||
const addApplyRecord = () => {
|
const addApplyRecord = () => {
|
||||||
if (active.value == 0) {
|
if (active.value == 0) {
|
||||||
if (activeName.value == "first") {
|
if (activeName.value == "first") {
|
||||||
|
let findItem = delayApplyRecord.value.find(item => {
|
||||||
|
return item.type == "insert";
|
||||||
|
});
|
||||||
|
if (!findItem) {
|
||||||
delayApplyRecord.value.unshift({
|
delayApplyRecord.value.unshift({
|
||||||
applyReason: "",
|
applyReason: "",
|
||||||
fileList: []
|
fileList: [],
|
||||||
|
type: "insert"
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
let findItem = missAppendRecord.value.find(item => {
|
||||||
|
return item.type == "insert";
|
||||||
|
});
|
||||||
|
if (!findItem) {
|
||||||
missAppendRecord.value.unshift({
|
missAppendRecord.value.unshift({
|
||||||
applyReason: "",
|
applyReason: "",
|
||||||
fileList: []
|
fileList: [],
|
||||||
|
type: "insert"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (active.value == 1) {
|
} else if (active.value == 1) {
|
||||||
operateTitle.value = "新增";
|
operateTitle.value = "新增";
|
||||||
detailsDialog.value = true;
|
detailsDialog.value = true;
|
||||||
|
current.value.files = [];
|
||||||
// operateRecord.value.unshift({
|
// operateRecord.value.unshift({
|
||||||
// installRegion: "",
|
// installRegion: "",
|
||||||
// addTime: "",
|
// addTime: "",
|
||||||
@ -866,16 +921,28 @@ const addApplyRecord = () => {
|
|||||||
// formRef.value[0].resetFields();
|
// formRef.value[0].resetFields();
|
||||||
// }, 200);
|
// }, 200);
|
||||||
} else if (active.value == 2) {
|
} else if (active.value == 2) {
|
||||||
|
let findItem = scrapRecord.value.find(item => {
|
||||||
|
return item.type == "insert";
|
||||||
|
});
|
||||||
|
if (!findItem) {
|
||||||
scrapRecord.value.unshift({
|
scrapRecord.value.unshift({
|
||||||
applyReason: "",
|
applyReason: "",
|
||||||
fileList: []
|
fileList: [],
|
||||||
|
type: "insert"
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} else if (active.value == 3) {
|
} else if (active.value == 3) {
|
||||||
|
let findItem = cancelRecord.value.find(item => {
|
||||||
|
return item.type == "insert";
|
||||||
|
});
|
||||||
|
if (!findItem) {
|
||||||
cancelRecord.value.unshift({
|
cancelRecord.value.unshift({
|
||||||
applyReason: "",
|
applyReason: "",
|
||||||
fileList: []
|
fileList: [],
|
||||||
|
type: "insert"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// 获取安/拆申请记录列表
|
// 获取安/拆申请记录列表
|
||||||
const getInstallRecordList = async () => {
|
const getInstallRecordList = async () => {
|
||||||
@ -923,6 +990,29 @@ const getApplyRecordList = async (type: number = 2) => {
|
|||||||
operateRecord.value = result;
|
operateRecord.value = result;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
switch (type) {
|
||||||
|
case 2:
|
||||||
|
// 延期申请记录
|
||||||
|
delayApplyRecord.value = [];
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
// 遗失补证记录
|
||||||
|
missAppendRecord.value = [];
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// 报废记录
|
||||||
|
scrapRecord.value = [];
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
// 报废记录
|
||||||
|
cancelRecord.value = [];
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
// 安装/拆卸记录
|
||||||
|
operateRecord.value = [];
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 类型转换
|
// 类型转换
|
||||||
@ -1048,6 +1138,7 @@ watch(
|
|||||||
getTypeDicMainList();
|
getTypeDicMainList();
|
||||||
getInfo();
|
getInfo();
|
||||||
getApplyRecordList();
|
getApplyRecordList();
|
||||||
|
active.value = 0;
|
||||||
}
|
}
|
||||||
visible.value = n;
|
visible.value = n;
|
||||||
}
|
}
|
||||||
@ -1365,4 +1456,11 @@ onMounted(() => {
|
|||||||
:deep(#tab-second) {
|
:deep(#tab-second) {
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
}
|
}
|
||||||
|
:deep() {
|
||||||
|
.el-step__head.is-finish > .el-step__line > .el-step__line-inner {
|
||||||
|
width: 100% !important;
|
||||||
|
border-width: 1px !important;
|
||||||
|
background-color: #008bff;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -115,12 +115,15 @@ const columns: ColumnProps[] = [
|
|||||||
prop: "equipmentType",
|
prop: "equipmentType",
|
||||||
label: "设备状态",
|
label: "设备状态",
|
||||||
enum: [
|
enum: [
|
||||||
|
{ label: "已驳回", value: -1 },
|
||||||
{ label: "提交未审核", value: 0 },
|
{ label: "提交未审核", value: 0 },
|
||||||
{ label: "正常", value: 1 },
|
{ label: "产权备案", value: 1 },
|
||||||
{ label: "临期", value: 2 },
|
{ label: "临期", value: 2 },
|
||||||
{ label: "延期", value: 3 },
|
{ label: "延期", value: 3 },
|
||||||
{ label: "注销禁用", value: 4 },
|
{ label: "报废", value: 4 },
|
||||||
{ label: "报废", value: 5 }
|
{ label: "注销禁用", value: 5 },
|
||||||
|
{ label: "已安装", value: 6 },
|
||||||
|
{ label: "已拆卸", value: 7 }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
|||||||
@ -10,10 +10,12 @@
|
|||||||
<el-step
|
<el-step
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
v-for="(item, i) in stepOptions"
|
v-for="(item, i) in stepOptions"
|
||||||
:key="item.dictCode"
|
:key="item.dictValue"
|
||||||
|
:icon="item.icon"
|
||||||
:title="item.dictValue"
|
:title="item.dictValue"
|
||||||
@click="changeStep(i)"
|
@click="changeStep(i)"
|
||||||
/>
|
>
|
||||||
|
</el-step>
|
||||||
</el-steps>
|
</el-steps>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-data" v-if="active != 1">
|
<div class="info-data" v-if="active != 1">
|
||||||
@ -187,7 +189,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
||||||
<el-input v-model="formData.equipmentUseType" placeholder="请输入" />
|
<el-select v-model="formData.equipmentUseType" disabled placeholder="请选择" style="width: 100%">
|
||||||
|
<el-option v-for="item in useList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -481,8 +485,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="audit-footer">
|
<span class="audit-footer">
|
||||||
<el-button v-if="active == 0" class="btn btn-cancel" @click="applyAudit(2, formData)">驳回</el-button>
|
<el-button v-if="active == 0 && formData.equipmentType == 0" class="btn btn-cancel" @click="applyAudit(2, formData)"
|
||||||
<el-button v-if="active == 0" class="btn btn-submit" type="primary" @click="applyAudit(1, formData)">通过</el-button>
|
>驳回</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
v-if="active == 0 && formData.equipmentType == 0"
|
||||||
|
class="btn btn-submit"
|
||||||
|
type="primary"
|
||||||
|
@click="applyAudit(1, formData)"
|
||||||
|
>通过</el-button
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -537,11 +549,16 @@ import FilesUploadPlus from "@/components/FilesUploadPlus/FilesUpload.vue";
|
|||||||
import DownLoad from "@/utils/annexDowload";
|
import DownLoad from "@/utils/annexDowload";
|
||||||
import type { FormInstance, FormRules } from "element-plus";
|
import type { FormInstance, FormRules } from "element-plus";
|
||||||
import { getRelevanceList } from "@/api/modules/common";
|
import { getRelevanceList } from "@/api/modules/common";
|
||||||
|
import { Document, Setting, MessageBox, SwitchButton } from "@element-plus/icons-vue";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
operateDialog: Boolean,
|
operateDialog: Boolean,
|
||||||
relativeId: String
|
relativeId: String
|
||||||
});
|
});
|
||||||
const emits = defineEmits(["update:operateDialog", "confirm"]);
|
const emits = defineEmits(["update:operateDialog", "confirm"]);
|
||||||
|
const useList = ref([
|
||||||
|
{ label: "自用", value: 1 },
|
||||||
|
{ label: "租赁", value: 2 }
|
||||||
|
]);
|
||||||
const detailsData = ref({});
|
const detailsData = ref({});
|
||||||
const operateTitle = ref("新增");
|
const operateTitle = ref("新增");
|
||||||
const formRef = ref<FormInstance>();
|
const formRef = ref<FormInstance>();
|
||||||
@ -605,11 +622,11 @@ const rules = ref({
|
|||||||
const typeList = ref([]);
|
const typeList = ref([]);
|
||||||
const formData = ref<any>({});
|
const formData = ref<any>({});
|
||||||
const active = ref(0),
|
const active = ref(0),
|
||||||
stepOptions = ref<ResDictData["result"]>([
|
stepOptions = ref([
|
||||||
{ dictValue: "产权备案", dictCode: 1 },
|
{ dictValue: "产权备案", dictCode: 1, icon: Document },
|
||||||
{ dictValue: "安装拆卸", dictCode: 2 },
|
{ dictValue: "安装拆卸", dictCode: 2, icon: Setting },
|
||||||
{ dictValue: "报废", dictCode: 3 },
|
{ dictValue: "报废", dictCode: 3, icon: MessageBox },
|
||||||
{ dictValue: "注销", dictCode: 4 }
|
{ dictValue: "注销", dictCode: 4, icon: SwitchButton }
|
||||||
]);
|
]);
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const engineeringList = ref([]);
|
const engineeringList = ref([]);
|
||||||
@ -630,7 +647,7 @@ const applyAudit = async (state: number, obj: any) => {
|
|||||||
} else {
|
} else {
|
||||||
getApplyRecordList(requestData.type);
|
getApplyRecordList(requestData.type);
|
||||||
}
|
}
|
||||||
if (requestData.type == 1) {
|
if (formData.value.equipmentType == 0) {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
emits("confirm");
|
emits("confirm");
|
||||||
}
|
}
|
||||||
@ -873,6 +890,7 @@ watch(
|
|||||||
getTypeDicMainList();
|
getTypeDicMainList();
|
||||||
getInfo();
|
getInfo();
|
||||||
getApplyRecordList();
|
getApplyRecordList();
|
||||||
|
active.value = 0;
|
||||||
}
|
}
|
||||||
visible.value = n;
|
visible.value = n;
|
||||||
}
|
}
|
||||||
@ -1199,4 +1217,11 @@ onMounted(() => {
|
|||||||
:deep(#tab-second) {
|
:deep(#tab-second) {
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
}
|
}
|
||||||
|
:deep() {
|
||||||
|
.el-step__head.is-finish > .el-step__line > .el-step__line-inner {
|
||||||
|
width: 100% !important;
|
||||||
|
border-width: 1px !important;
|
||||||
|
background-color: #008bff;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -159,12 +159,15 @@ const columns: ColumnProps[] = [
|
|||||||
prop: "equipmentType",
|
prop: "equipmentType",
|
||||||
label: "设备状态",
|
label: "设备状态",
|
||||||
enum: [
|
enum: [
|
||||||
|
{ label: "已驳回", value: -1 },
|
||||||
{ label: "提交未审核", value: 0 },
|
{ label: "提交未审核", value: 0 },
|
||||||
{ label: "正常", value: 1 },
|
{ label: "产权备案", value: 1 },
|
||||||
{ label: "临期", value: 2 },
|
{ label: "临期", value: 2 },
|
||||||
{ label: "延期", value: 3 },
|
{ label: "延期", value: 3 },
|
||||||
{ label: "注销禁用", value: 4 },
|
{ label: "报废", value: 4 },
|
||||||
{ label: "报废", value: 5 }
|
{ label: "注销禁用", value: 5 },
|
||||||
|
{ label: "已安装", value: 6 },
|
||||||
|
{ label: "已拆卸", value: 7 }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@ -276,7 +279,7 @@ const getTableList = (params: any) => {
|
|||||||
delete newParams.timeLimit;
|
delete newParams.timeLimit;
|
||||||
}
|
}
|
||||||
if (selectedIndex.value != 0) {
|
if (selectedIndex.value != 0) {
|
||||||
newParams.identification = statisticsOption.value[selectedIndex.value].value;
|
newParams.equipmentType = statisticsOption.value[selectedIndex.value].value;
|
||||||
}
|
}
|
||||||
return hoistEquipPage(newParams);
|
return hoistEquipPage(newParams);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
v-for="(item, i) in stepOptions"
|
v-for="(item, i) in stepOptions"
|
||||||
:key="item.dictCode"
|
:key="item.dictCode"
|
||||||
|
:icon="item.icon"
|
||||||
:title="item.dictValue"
|
:title="item.dictValue"
|
||||||
@click="changeStep(i)"
|
@click="changeStep(i)"
|
||||||
/>
|
/>
|
||||||
@ -187,7 +188,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
<el-form-item label="设备用途:" prop="equipmentUseType" required>
|
||||||
<el-input v-model="formData.equipmentUseType" placeholder="请输入" />
|
<el-select v-model="formData.equipmentUseType" disabled placeholder="请选择" style="width: 100%">
|
||||||
|
<el-option v-for="item in useList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -510,11 +513,16 @@ import FilesUploadPlus from "@/components/FilesUploadPlus/FilesUpload.vue";
|
|||||||
import DownLoad from "@/utils/annexDowload";
|
import DownLoad from "@/utils/annexDowload";
|
||||||
import type { FormInstance, FormRules } from "element-plus";
|
import type { FormInstance, FormRules } from "element-plus";
|
||||||
import { getRelevanceList } from "@/api/modules/common";
|
import { getRelevanceList } from "@/api/modules/common";
|
||||||
|
import { Document, Setting, MessageBox, SwitchButton } from "@element-plus/icons-vue";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
operateDialog: Boolean,
|
operateDialog: Boolean,
|
||||||
relativeId: String
|
relativeId: String
|
||||||
});
|
});
|
||||||
const emits = defineEmits(["update:operateDialog"]);
|
const emits = defineEmits(["update:operateDialog"]);
|
||||||
|
const useList = ref([
|
||||||
|
{ label: "自用", value: 1 },
|
||||||
|
{ label: "租赁", value: 2 }
|
||||||
|
]);
|
||||||
const detailsData = ref({});
|
const detailsData = ref({});
|
||||||
const operateTitle = ref("新增");
|
const operateTitle = ref("新增");
|
||||||
const formRef = ref<FormInstance>();
|
const formRef = ref<FormInstance>();
|
||||||
@ -578,11 +586,11 @@ const rules = ref({
|
|||||||
const typeList = ref([]);
|
const typeList = ref([]);
|
||||||
const formData = ref<any>({});
|
const formData = ref<any>({});
|
||||||
const active = ref(0),
|
const active = ref(0),
|
||||||
stepOptions = ref<ResDictData["result"]>([
|
stepOptions = ref([
|
||||||
{ dictValue: "产权备案", dictCode: 1 },
|
{ dictValue: "产权备案", dictCode: 1, icon: Document },
|
||||||
{ dictValue: "安装拆卸", dictCode: 2 },
|
{ dictValue: "安装拆卸", dictCode: 2, icon: Setting },
|
||||||
{ dictValue: "报废", dictCode: 3 },
|
{ dictValue: "报废", dictCode: 3, icon: MessageBox },
|
||||||
{ dictValue: "注销", dictCode: 4 }
|
{ dictValue: "注销", dictCode: 4, icon: SwitchButton }
|
||||||
]);
|
]);
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const engineeringList = ref([]);
|
const engineeringList = ref([]);
|
||||||
@ -816,6 +824,7 @@ watch(
|
|||||||
getTypeDicMainList();
|
getTypeDicMainList();
|
||||||
getInfo();
|
getInfo();
|
||||||
getApplyRecordList();
|
getApplyRecordList();
|
||||||
|
active.value = 0;
|
||||||
}
|
}
|
||||||
visible.value = n;
|
visible.value = n;
|
||||||
}
|
}
|
||||||
@ -1142,4 +1151,11 @@ onMounted(() => {
|
|||||||
:deep(#tab-second) {
|
:deep(#tab-second) {
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
}
|
}
|
||||||
|
:deep() {
|
||||||
|
.el-step__head.is-finish > .el-step__line > .el-step__line-inner {
|
||||||
|
width: 100% !important;
|
||||||
|
border-width: 1px !important;
|
||||||
|
background-color: #008bff;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -121,12 +121,15 @@ const columns: ColumnProps[] = [
|
|||||||
prop: "equipmentType",
|
prop: "equipmentType",
|
||||||
label: "设备状态",
|
label: "设备状态",
|
||||||
enum: [
|
enum: [
|
||||||
|
{ label: "已驳回", value: -1 },
|
||||||
{ label: "提交未审核", value: 0 },
|
{ label: "提交未审核", value: 0 },
|
||||||
{ label: "正常", value: 1 },
|
{ label: "产权备案", value: 1 },
|
||||||
{ label: "临期", value: 2 },
|
{ label: "临期", value: 2 },
|
||||||
{ label: "延期", value: 3 },
|
{ label: "延期", value: 3 },
|
||||||
{ label: "注销禁用", value: 4 },
|
{ label: "报废", value: 4 },
|
||||||
{ label: "报废", value: 5 }
|
{ label: "注销禁用", value: 5 },
|
||||||
|
{ label: "已安装", value: 6 },
|
||||||
|
{ label: "已拆卸", value: 7 }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user