diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue
index 0cfdf49c..be611e6e 100644
--- a/src/views/EquipmentEntryApply/equipmentInput/index.vue
+++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue
@@ -25,276 +25,291 @@
label-width="auto"
size="small"
>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
- 查询
-
-
- 重置
-
-
-
-
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 重置
+
+
+
+
+
- 新增装备
-
+ type="primary"
+ size="mini"
+ @click="equipmentDeployment"
+ v-show="!isAddVisible"
+ >
+ 新增装备
+
+
+ 批量导入
+
-
-
-
-
-
-
-
- {{ scope.row.mainProcess }}{{ scope.row.subProcess ? '>' + scope.row.subProcess : '' }}
-
-
-
-
-
- {{ scope.row.mainCategory ? scope.row.mainCategory + '>' : '' }}
- {{ scope.row.branch ? scope.row.subCategory + '>' : scope.row.subCategory }}{{ scope.row.branch }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
- 查看
-
-
-
-
- 查看
-
-
-
-
- 查看
-
-
-
+
-
+
+
+
+
+
+ {{ scope.row.mainProcess }}{{ scope.row.subProcess ? '>' + scope.row.subProcess : '' }}
+
+
+
+
+
+ {{ scope.row.mainCategory ? scope.row.mainCategory + '>' : '' }}
+ {{ scope.row.branch ? scope.row.subCategory + '>' : scope.row.subCategory }}{{ scope.row.branch }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+ 查看
+
+
+
+
+ 查看
+
+
+
+
+ 查看
+
+
+
+
{{ getFeatureValue(row, item.prop) }}
-
-
-
-
-
-
- 待审批
- 已通过
- 已驳回
- 草稿
-
-
-
-
-
- 查看
-
-
- 编辑
-
-
- 删除
-
+
+
+
+
+
+
+ 待审批
+ 已通过
+ 已驳回
+ 草稿
+
+
+
+
+
+ 查看
+
+
+ 编辑
+
+
+ 删除
+
-
-
-
-
-
+
+
+
+
+
-
+
@@ -317,7 +332,43 @@
关 闭
-
+
+
+
+ 将文件拖到此处,或点击上传
+
+ 仅允许导入xls、xlsx格式文件。
+ 下载模板
+
+
+
+
+
@@ -334,6 +385,7 @@ import {
removeDeviceApi
} from '@/api/EquipmentEntryApply'
import { getManufacturerSelectApi } from '@/api/EquipmentLedger/index.js'
+import { getToken } from '@/utils/auth'
export default {
name: 'EquipmentInput',
@@ -342,7 +394,7 @@ export default {
created() {
console.log(this.$route)
this.orderId = this.$route.query && this.$route.query.orderId
- this.isAddVisible = this.$route.query && this.$route.query.isAddVisible == 'true'
+ this.isAddVisible = this.$route.query && this.$route.query.isAddVisible
this.isApprovalVisible = this.$route.query && this.$route.query.isApprovalVisible
if (!this.orderId) {
this.pageTitle = '新增设备录入'
@@ -367,6 +419,20 @@ export default {
// 表格数据
tableData: [],
total: 0,
+ upload: {
+ // 是否显示弹出层(用户导入)
+ open: false,
+ // 弹出层标题(用户导入)
+ title: '',
+ // 是否禁用上传
+ isUploading: false,
+ // 是否更新已经存在的用户数据
+
+ // 设置上传的请求头部
+ headers: { Authorization: 'Bearer ' + getToken() },
+ // 上传的地址
+ url: process.env.VUE_APP_BASE_API + '/material-mall/order/importData'
+ },
queryParams: {
orderCreateUser: '',
orderCreateTime: '',
@@ -391,7 +457,7 @@ export default {
quantity: 1
},
isViewMode: false, // 添加查看模式标识
- pageTitle:'',
+ pageTitle: '',
submitButtonText: '',
columns: [
{ key: 26, label: `特征项1`, prop: 'featureItem1', visible: true },
@@ -411,11 +477,11 @@ export default {
{ key: 40, label: `特征项8`, prop: 'featureItem8', visible: true },
{ key: 41, label: `特征值8`, prop: 'featureValue8', visible: true },
{ key: 42, label: `特征项9`, prop: 'featureItem9', visible: true },
- { key: 43, label: `特征值9`, prop: 'featureValue9', visible: true },
+ { key: 43, label: `特征值9`, prop: 'featureValue9', visible: true }
],
dialogVisible: false,
dialogTitle: '',
- dialogList: [],
+ dialogList: []
}
},
watch: {
@@ -429,6 +495,22 @@ export default {
this.getManufacturerSelectList()
},
methods: {
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false
+ this.upload.isUploading = false
+ this.$refs.upload.clearFiles()
+ this.$alert('' + response.msg + '
', '导入结果', { dangerouslyUseHTMLString: true })
+ this.getList()
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit()
+ },
// 获取厂家
getManufacturerSelectList() {
getManufacturerSelectApi().then((res) => {
@@ -525,7 +607,7 @@ export default {
* 处理表单提交
*/
handleSubmit() {
- if(this.isSubmit) return
+ if (this.isSubmit) return
this.isSubmit = true
const loading = this.$loading()
equipmentSubmitApiNew({ id: this.orderId, status: 0 }).then(res => {
@@ -582,7 +664,10 @@ export default {
}
}
},
-
+ handleImport() {
+ this.upload.title = '导入'
+ this.upload.open = true
+ },
//编辑
editRowInfo(row) {
// this.orderId = orderId.toString()
@@ -638,7 +723,7 @@ export default {
this.dialogList = row.purchaseInvoices || []
}
this.dialogVisible = true
- },
+ }
}
}
@@ -717,7 +802,7 @@ export default {
padding-top: 6px;
margin-top: auto;
- ::v-deep .pagination-container {
+ ::v-deep .pagination-container {
padding: 0px 20px !important;
margin-bottom: 30px;
}
@@ -742,11 +827,12 @@ export default {
}
}
- &.el-table--striped .el-table__body tr.el-table__row:hover>td.el-table__cell {
+ &.el-table--striped .el-table__body tr.el-table__row:hover > td.el-table__cell {
background-color: #CCF1E9 !important;
}
+
.el-table__body tr.hover-row > td.el-table__cell {
- background-color: #ccf1e9 !important;
+ background-color: #ccf1e9 !important;
}
}
}
diff --git a/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue b/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue
index 25e3f1b8..e16c799c 100644
--- a/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue
+++ b/src/views/EquipmentRoamRecord/maintenanceRecord/index.vue
@@ -44,7 +44,7 @@
-
+
@@ -124,7 +124,8 @@
+ style="width: 100%; border-collapse: collapse; text-align: center;"
+ >
| 序号 |
@@ -138,11 +139,11 @@
| {{ index + 1 }} |
- {{ item.type === '1' ? '工具' : (item.type === '2' ? '装备' : '未知类型') }} |
+ {{ item.type === '1' ? '工具' : (item.type === '2' ? '装备' : '未知类型') }} |
{{ item.devName }} |
{{ item.devModel }} |
{{ item.devCode }} |
- {{item.devNum}} |
+ {{ item.devNum }} |
@@ -164,7 +165,7 @@