-
+
- 评价
-
-
-
1.您对本次维修的质量方面满意吗?
-
-
+ :style="{ background: repairForm.isOkQuality == '0' ? '#3a62d733' : 'rgb(239, 239, 239)', color: repairForm.isOkQuality == '0' ? '#3a62d7' : '#4f4f4f' }">
+ 不满意
-
-
2.您对本次维修的安全方面满意吗?
-
-
+ :style="{ background: repairForm.isOkSecure == '0' ? '#3a62d733' : 'rgb(239, 239, 239)', color: repairForm.isOkSecure == '0' ? '#3a62d7' : '#4f4f4f' }">
+ 不满意
-
-
3.您对本次维修的时效方面满意吗?
-
-
+ :style="{ background: repairForm.isOkValidity == '0' ? '#3a62d733' : 'rgb(239, 239, 239)', color: repairForm.isOkValidity == '0' ? '#3a62d7' : '#4f4f4f' }">
+ 不满意
-
-
+
- 签名
-
-
-
![]()
-
-
-
-
+ 签名
+
+
![]()
+
+
+
+
+
@@ -625,6 +595,11 @@
+
+
+
+
@@ -633,33 +608,38 @@ import statusData from "@/assets/json/status.json"; // 引入状态数据
import { dateFormat } from '../../util/date'
import SelectTree from '../../components/selectTree/tree.vue'
import moment from "moment";
-import { mapGetters } from "vuex";
+import { mapGetters, mapState } from "vuex";
import { getChildList } from '@/api/system/dictbiz'
import requestSub from '../components/requestSub.vue'
import requirement from '../components/requirement.vue'
import { nextTick } from 'vue';
import { getDeviceList } from '@/api/device/device'
import { applyGoods } from '@/api/goodsManagement/goods'
-import { getList, getDetail, editData, getDeptList, getRepairPeople, repairReject, submitReject, clone,serviceman,servicemanReceive,servicemanReject,servicemanSubmit,supervisorConfirm,supervisorReject,
- servicemanRepairSubmit,serviceInvoice,serviceSubmit,sendMess
- } from '@/api/operation/hand'
+import {
+ getList, getDetail, editData, getDeptList, getRepairPeople, repairReject, submitReject, clone, serviceman, servicemanReceive, servicemanReject, servicemanSubmit, supervisorConfirm, supervisorReject,
+ servicemanRepairSubmit, serviceInvoice, serviceSubmit, sendMess
+} from '@/api/operation/hand'
import { getGoodsList } from '@/api/goodsManagement/goods'
+import logDialog from '../../components/order/logDialog.vue'
+import workOrderDialog from '../../components/order/workOrderDialog.vue'
export default {
components: {
requestSub,
requirement,
- SelectTree
+ SelectTree,
+ logDialog,
+ workOrderDialog
},
data() {
return {
- requireForm:{},
+ requireForm: {},
dispatchOptions: {
disabledDate(v) {
return v.getTime() < new Date().getTime() - 86400000;// - 86400000是否包括当天
}
},
- finishForm:{},
- finishVisible:false,
+ finishForm: {},
+ finishVisible: false,
rejectVisible: false,
rejectForm: {},
materialsData: [],
@@ -722,6 +702,11 @@ export default {
prop: "requirementCode",
overHidden: true,
},
+ {
+ label: "维修类型",
+ labelWidth: 120,
+ prop: "repairTypeName",
+ },
{
label: "提报单位",
labelWidth: 120,
@@ -784,7 +769,7 @@ export default {
label: "完成时间",
labelWidth: 120,
prop: "finishTime",
- sortable:true,
+ sortable: true,
},
{
label: "审批时间",
@@ -794,8 +779,8 @@ export default {
},
],
},
- chargeForm:{},
- clientForm:{},
+ chargeForm: {},
+ clientForm: {},
form: {},
data: [],
page: {
@@ -831,31 +816,38 @@ export default {
goodsTotal: 0,
productCurrent: 1,
productSize: 10,
- discount:'',
- totalPrice:'',
- discountPrice:'',
- productInventoryId:'',
- htmlTitle:'需求单报告'
+ discount: '',
+ totalPrice: '',
+ discountPrice: '',
+ productInventoryId: '',
+ htmlTitle: '运维服务单',
+ repairTypeList: [],//维修类型列表
+ logOrderId: '',//获取id
+ infoDialog: false,//流程查看弹框
+ workOrderShow: false,//工单处理弹框
+ workOrderId: '',//id
}
},
computed: {
...mapGetters(["userInfo", "permission"]),
- getStatus(){
- return (type,id,status) =>{
- for(let i in statusData[type]){
- let val
- statusData[type][id].map(item =>{
- if(item.status == status){
- val = item
- }
- })
- return val
+ ...mapState({
+ dataType: state => state.user.dataType,
+ }),
+ getStatus() {
+ return (type, id, status) => {
+ for (let i in statusData[type]) {
+ let val
+ statusData[type][id].map(item => {
+ if (item.status == status) {
+ val = item
+ }
+ })
+ return val
}
}
},
},
created() {
- console.log('statusData=============>',statusData)
this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
getChildList(1, 100, '1846802246527463425').then(res => {
this.typeList = res.data.data
@@ -863,157 +855,139 @@ export default {
getChildList(1, 100, '1848271307123818498').then(res => {
this.treeOptions = res.data.data
})
+ // 维修类型
+ getChildList(1, 100, '1869925082102702082').then(res => {
+ this.repairTypeList = res.data.data
+ })
this.getGoodsList()
this.getProductLists()
},
mounted() {
this.role_id = this.userInfo.role_id
- console.log('role_id---------->', this.role_id)
+ // 获取维修人员列表
getRepairPeople({ isRepair: this.role_id == '1839537055389515777' ? true : false }).then(res => {
this.repairPersonList = res.data.data
})
this.option.column.find(item => item.prop == 'finishTime').hide = false
this.option.column.find(item => item.prop == 'approveTime').hide = true
if (this.role_id == '1839536982874193922') {
- this.onLoad()
this.addRules = {
repairPerson: { required: true, message: '请选择维修人员', trigger: 'blur' },
planCompleteTime: { required: true, message: '计划完成时间', trigger: 'blur' },
}
} else if (this.role_id == '1839537055389515777' || this.role_id == '1839552581620793346') {
- this.onLoad()
this.addRules = {
finishTime: { required: true, message: '请选择计划完成时间', trigger: 'blur' },
repairPerson: { required: true, message: '请选择维修人员', trigger: 'blur' },
}
} else if (this.role_id == '1839600115013713921') {
- this.onLoad()
this.option.column.find(item => item.prop == 'finishTime').hide = true
this.option.column.find(item => item.prop == 'approveTime').hide = false
}
+ this.onLoad()
},
methods: {
- changeDevice(val){
+ // 批量导出报告
+ allExportReport() {
+ if (this.selectList.length == 0) {
+ this.$message.warning('请至少选择一条数据')
+ } else {
+ let tmp = this.selectList.filter(item => { return (item.status == 202 || item.status == 203 || item.status == 204) })
+ if (tmp.length != this.selectList.length) {
+ this.$message.warning('请选择状态为已完成的数据')
+ } else {
+ console.log('批量导出报告', this.selectList)
+ }
+ }
+ },
+ // 打开流程弹框
+ viewLog(row) {
+ this.infoDialog = true
+ this.logOrderId = row.requirementCode
+ },
+ // 查看流程 关闭
+ closeLog() {
+ this.infoDialog = false
+ },
+ changeDevice(val) {
this.repairForm.deviceName = this.deviceList.find(item => item.id == val).name
},
- getDeviceList(limsId){
- getDeviceList({current:1,size:100,limsId:limsId}).then(res =>{
+ getDeviceList(limsId) {
+ getDeviceList({ current: 1, size: 100, limsId: limsId }).then(res => {
this.deviceList = res.data.data.records
})
},
- sortChange(val){
- console.log('val============>',val)
+ sortChange(val) {
+ // console.log('val============>', val)
},
handleInput(value) {
// 使用正则表达式限制只能输入两位小数的数字
const regex = /^(\d+)?(\.\d{1,2})?$/;
- console.log('value----------->',value,regex.test(value))
- console.log('value1----------->',value.match(/(\.\d+)/))
+
// 如果输入值不符合正则表达式,则将其设置为上一个合法的值
if (!regex.test(value)) {
- if(value.indexOf('.') == -1){
+ if (value.indexOf('.') == -1) {
this.discount = this.discount.substring(0, value.length - 1);
- }else if(value.indexOf('.') != -1 && value.match(/(\.\d+)/)[0].length > 3){
+ } else if (value.indexOf('.') != -1 && value.match(/(\.\d+)/)[0].length > 3) {
this.discount = this.discount.substring(0, value.length - 1);
}
}
- },
- changeDiscount(val){
- this.discountPrice = this.totalPrice * val * 0.1;
- },
+ },
+ changeDiscount(val) {
+ this.discountPrice = this.totalPrice * val * 0.1;
+ },
- getProductLists(type, val,inventoryId) {
- console.log('type------------->', type)
- console.log('goodsCurrent------------->', this.productCurrent)
- console.log('goodsSize------------->', this.productSize)
- getGoodsList({ current: this.productCurrent, size: this.productSize, name: val ? val : null,inventoryId:inventoryId ? inventoryId : null }).then(res => {
- // this.productList = res.data.data.records
- if (type == 'more') {
- this.productLists = this.productLists.concat(res.data.data.records)
- this.productTotals = res.data.data.total
- } else {
- this.productLists = res.data.data.records
- this.productTotals = res.data.data.total
- }
+ getProductLists(type, val, inventoryId) {
+
+ getGoodsList({ current: this.productCurrent, size: this.productSize, name: val ? val : null, inventoryId: inventoryId ? inventoryId : null }).then(res => {
+ // this.productList = res.data.data.records
+ if (type == 'more') {
+ this.productLists = this.productLists.concat(res.data.data.records)
+ this.productTotals = res.data.data.total
+ } else {
+ this.productLists = res.data.data.records
+ this.productTotals = res.data.data.total
+ }
- })
- },
- loadmoreProduct() {
- console.log('this.goodsCurrent0', this.productCurrent, this.productSize, this.productTotals)
- if (this.productCurrent * this.productSize >= this.productTotals) return
- this.productCurrent++
- this.getProductLists('more')
- },
- // 维修人提交时切换库存ID
- clickInventoryId(val){
- this.productInventoryId = val
- this.productCurrent = 1
- this.productSize = 10
- this.getProductLists(null,null,val)
- },
- remoteMethodProduct(query) {
- console.log('query----------->', query)
- this.productCurrent = 1
- this.productSize = 10
- this.getProductLists('search', query)
- },
- // 切换是否选择物料
- changeMaterials(val) {
- this.materialsData = []
- },
- // 切换是否选择物料
- changeMaterial(val) {
- this.tableData = []
- },
- // 查看弹窗
- handleView(row) {
- getDetail({ id: row.id }).then(res => {
- this.dialogType = 'view'
- this.repairType = 'view'
- this.repairVisible = true
- this.repairForm = res.data.data
- this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
- this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
- this.tableData = []
- res.data.data.materials.map(item =>{
- this.tableData.push({
- productType: { node: item.bigClassId, data: [] },
- materialName: item.materialName,
- rule: item.rule,
- xh: item.xh,
- unit: item.unit,
- number: item.materialCount,
- price: item.materialPrice,
- inventoryId:item.inventoryId,
- productId: '',
- productList: []
- })
})
- this.repairForm.approveResult = res.data.data.approveResult != -1 ? res.data.data.approveResult : ''
- this.totalPrice = res.data.data.totalPrice == -1 ? res.data.data.materials.reduce((sum, item) => sum + item.materialPrice, 0) : res.data.data.totalPrice
- this.discount = res.data.data.discount == -1 ? '' : res.data.data.discount
- this.discountPrice = res.data.data.discountPrice == -1 ? '' : res.data.data.discountPrice
- })
- },
- // 关闭弹窗
- closeDialog() {
- this.$refs['repairForm'].resetFields()
- },
- // 运维主管审批
- handleExamine(row){
- getDetail({ id: row.id }).then(res => {
- this.repairForm = res.data.data
- this.repairType = 'examine'
- this.dialogType = 'examine'
- this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
- this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
- this.repairForm.isNeedMaterial = (this.repairForm.status == 1 || this.repairForm.status == 2 || this.repairForm.status == 3) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
- this.chargeForm = {}
- if (this.repairForm.isNeedMaterial != '') {
+ },
+ loadmoreProduct() {
+ if (this.productCurrent * this.productSize >= this.productTotals) return
+ this.productCurrent++
+ this.getProductLists('more')
+ },
+ // 维修人提交时切换库存ID
+ clickInventoryId(val) {
+ this.productInventoryId = val
+ this.productCurrent = 1
+ this.productSize = 10
+ this.getProductLists(null, null, val)
+ },
+ remoteMethodProduct(query) {
+ this.productCurrent = 1
+ this.productSize = 10
+ this.getProductLists('search', query)
+ },
+ // 切换是否选择物料
+ changeMaterials(val) {
+ this.materialsData = []
+ },
+ // 切换是否选择物料
+ changeMaterial(val) {
+ this.tableData = []
+ },
+ // 查看弹窗
+ handleView(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.dialogType = 'view'
+ this.repairType = 'view'
+ this.repairVisible = true
+ this.repairForm = res.data.data
+ this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
+ this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
this.tableData = []
- this.repairForm.materials.map(item => {
- let result
+ res.data.data.materials.map(item => {
this.tableData.push({
productType: { node: item.bigClassId, data: [] },
materialName: item.materialName,
@@ -1022,156 +996,197 @@ export default {
unit: item.unit,
number: item.materialCount,
price: item.materialPrice,
- inventoryId:item.inventoryId,
+ inventoryId: item.inventoryId,
productId: '',
productList: []
})
})
- this.totalPrice = this.tableData.reduce((sum, item) => sum + item.price, 0)
- this.discount = res.data.data.discount != -1 ? res.data.data.discount : ''
- this.discountPrice = res.data.data.discountPrice != -1 ? res.data.data.discountPrice : ''
- } else {
- this.tableData = []
- }
- this.repairVisible = true
- // this.$refs['repairForm'].resetFields()
- })
- },
- handleInvoice(row){
- this.$confirm('确认为当前需求单开具发票?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- let query=[{id:row.id}]
- serviceInvoice(query).then(res =>{
- if(res.data.code == 200){
- this.$message.success('发票开具成功')
- this.onLoad()
- }
+ this.repairForm.approveResult = res.data.data.approveResult != -1 ? res.data.data.approveResult : ''
+ this.totalPrice = res.data.data.totalPrice == -1 ? res.data.data.materials.reduce((sum, item) => sum + item.materialPrice, 0) : res.data.data.totalPrice
+ this.discount = res.data.data.discount == -1 ? '' : res.data.data.discount
+ this.discountPrice = res.data.data.discountPrice == -1 ? '' : res.data.data.discountPrice
})
- })
- },
- handleRepair(row) {
- // this.repairForm = row
- // this.repairVisible = true
- this.repairRules = {
- faultCause: { required: true, message: '请输入故障原因', trigger: 'blur' },
- processMethod: { required: true, message: '请输入处理方法', trigger: 'blur' },
- isNeedMaterial: { required: true, message: '请选择是否需要申领物料', trigger: 'blur' },
- }
- getDetail({ id: row.id }).then(res => {
- this.repairForm = res.data.data
- this.repairType = 'repair'
- this.dialogType = 'repair'
- this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
- this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
- this.repairForm.deviceId = this.repairForm.deviceId == -1 ? '' : this.repairForm.deviceId
- this.repairForm.isNeedMaterial = (this.repairForm.status == 201 || this.repairForm.status == 401 || this.repairForm.status == 402) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
- this.getDeviceList(res.data.data.createDept)
- if (this.repairForm.isNeedMaterial != '') {
- this.tableData = []
- this.repairForm.materials.map(item => {
- let result
- this.tableData.push({
- productType: { node: item.bigClassId, data: [] },
- productName: item.materialName,
- inventoryId:item.inventoryId,
- rule: item.rule,
- xh: item.xh,
- unit: item.unit,
- number: item.materialCount,
- price: item.materialPrice,
- unifiedQuotation:item.materialPrice / item.materialCount,
- productId: '',
- productList: []
- })
- })
- this.tableData.map((item, index) => {
- getGoodsList({
- bigClassId: item.productType.node,
- current: 1, //页数
- size: 100,
- }).then(res => {
- this.productLists = res.data.data.records
- item.productList = res.data.data.records
- item.productId = res.data.data.records.find(item1 => item1.name == item.productName).id
- // this.tableData[index].productList = res.data.data.records
- // this.tableData[index].productId = res.data.data.records.find(item1 => item1.name == item.productName).id
- this.repairVisible = true
+ },
+ // 关闭弹窗
+ closeDialog() {
+ this.$refs['repairForm'].resetFields()
+ },
+ // 运维主管审批
+ handleExamine(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.repairForm = res.data.data
+ this.repairType = 'examine'
+ this.dialogType = 'examine'
+ this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
+ this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
+ this.repairForm.isNeedMaterial = (this.repairForm.status == 1 || this.repairForm.status == 2 || this.repairForm.status == 3) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
+ this.chargeForm = {}
+ if (this.repairForm.isNeedMaterial != '') {
+ this.tableData = []
+ this.repairForm.materials.map(item => {
+ let result
+ this.tableData.push({
+ productType: { node: item.bigClassId, data: [] },
+ materialName: item.materialName,
+ rule: item.rule,
+ xh: item.xh,
+ unit: item.unit,
+ number: item.materialCount,
+ price: item.materialPrice,
+ inventoryId: item.inventoryId,
+ productId: '',
+ productList: []
+ })
})
+ this.totalPrice = this.tableData.reduce((sum, item) => sum + item.price, 0)
+ this.discount = res.data.data.discount != -1 ? res.data.data.discount : ''
+ this.discountPrice = res.data.data.discountPrice != -1 ? res.data.data.discountPrice : ''
+ } else {
+ this.tableData = []
+ }
+ this.repairVisible = true
+ // this.$refs['repairForm'].resetFields()
+ })
+ },
+ handleInvoice(row) {
+ this.$confirm('确认为当前需求单开具发票?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ let query = [{ id: row.id }]
+ serviceInvoice(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('发票开具成功')
+ this.onLoad()
+ }
})
- console.log('tableData----------->', this.tableData)
- console.log('productLists----------->', this.productLists)
+ })
+ },
+ handleRepair(row) {
+ // this.repairForm = row
+ // this.repairVisible = true
- } else {
- this.tableData = []
- this.repairVisible = true
+ this.repairRules = {
+ faultCause: { required: true, message: '请输入故障原因', trigger: 'blur' },
+ processMethod: { required: true, message: '请输入处理方法', trigger: 'blur' },
+ isNeedMaterial: { required: true, message: '请选择是否需要申领物料', trigger: 'blur' },
}
- // this.$refs['repairForm'].resetFields()
- })
- },
- // 客服确认付款
- handlePayment(row){
- this.$confirm('请确认当前工单已完成付款?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- clone({id:row.id}).then(res =>{
- if(res.data.code == 200){
- this.$message.success('确认成功')
- this.onLoad()
+ getDetail({ id: row.id }).then(res => {
+ this.repairForm = res.data.data
+ this.repairType = 'repair'
+ this.dialogType = 'repair'
+ this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
+ this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
+ this.repairForm.deviceId = this.repairForm.deviceId == -1 ? '' : this.repairForm.deviceId
+ this.repairForm.isNeedMaterial = (this.repairForm.status == 201 || this.repairForm.status == 401 || this.repairForm.status == 402|| this.repairForm.status == 105) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
+ this.getDeviceList(res.data.data.createDept)
+
+ if (this.repairForm.isNeedMaterial != '') {
+ this.repairVisible = true
+ this.tableData = []
+ this.repairForm.materials.map(item => {
+ let result
+ this.tableData.push({
+ productType: { node: item.bigClassId, data: [] },
+ productName: item.materialName,
+ inventoryId: item.inventoryId,
+ rule: item.rule,
+ xh: item.xh,
+ unit: item.unit,
+ number: item.materialCount,
+ price: item.materialPrice,
+ unifiedQuotation: item.materialPrice / item.materialCount,
+ productId: '',
+ productList: []
+ })
+ })
+ this.tableData.map((item, index) => {
+ getGoodsList({
+ bigClassId: item.productType.node,
+ current: 1, //页数
+ size: 100,
+ }).then(res => {
+ this.productLists = res.data.data.records
+ item.productList = res.data.data.records
+ item.productId = res.data.data.records.find(item1 => item1.name == item.productName).id
+ // this.tableData[index].productList = res.data.data.records
+ // this.tableData[index].productId = res.data.data.records.find(item1 => item1.name == item.productName).id
+
+ })
+ })
+
+
+ } else {
+ this.tableData = []
+ this.repairVisible = true
}
+ // this.$refs['repairForm'].resetFields()
})
- })
- },
- handleExport(row){
- getDetail({id:row.id}).then(res =>{
- this.requireForm = res.data.data
- // this.getPdf()
- setTimeout(() =>{
- this.getPdf()
- },100)
- })
- },
- // 维修人员提交维修结果
- handleRepairFinish(row){
- if(row.status == 401){
- this.finishVisible = true
- this.finishForm = {
- id:row.id
- }
- }else{
- this.$confirm('请确认当前工单是否维修完成?', '提示', {
+ },
+ // 客服确认付款
+ handlePayment(row) {
+ this.$confirm('请确认当前工单已完成付款?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- servicemanRepairSubmit({id:row.id}).then(res =>{
- if(res.data.code == 200){
- this.$message.success('维修完成')
+ clone({ id: row.id }).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('确认成功')
this.onLoad()
}
})
- }).catch(() =>{
+ })
+ },
+ handleExport(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.requireForm = res.data.data
+ // this.getPdf()
+ setTimeout(() => {
+ this.getPdf()
+ }, 100)
+ })
+ },
+ // 维修人员提交维修结果
+ handleRepairFinish(row) {
+ if (row.status == 401) {
+ this.finishVisible = true
+ this.finishForm = {
+ id: row.id
+ }
+ } else {
+ this.$confirm('请确认当前工单是否维修完成?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ let query = {
+ id: row.id,
+ repairType: row.repairType
+ }
+ servicemanRepairSubmit(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('维修完成')
+ this.onLoad()
+ }
+ })
+ }).catch(() => {
+
+ })
+ }
+ },
+ async getProductList(val) {
+ let data = await getGoodsList({
+ bigClassId: val,
+ current: 1, //页数
+ size: 100,
})
- }
-
- },
- async getProductList(val) {
- let data = await getGoodsList({
- bigClassId: val,
- current: 1, //页数
- size: 100,
- })
- console.log('data----------->', data.data.data.records)
- // return data.data.da
- },
- // 切换物品
- changeGoods(val, index) {
- console.log('1111111111111111111',typeof val)
+ // return data.data.da
+ },
+ // 切换物品
+ changeGoods(val, index) {
this.materialsData[index].productName = val
this.materialsData[index].name = this.productList.find(item => item.id == val) ? this.productList.find(item => item.id == val).name : ''
this.materialsData[index].brand = this.productList.find(item => item.id == val) ? this.productList.find(item => item.id == val).brand : ''
@@ -1183,349 +1198,329 @@ export default {
this.goodsCurrent = 1
this.goodsSize = 10
this.getGoodsList()
- },
- // 切换库存ID
- changeInventoryId(val){
- console.log('val============>',val)
- this.getGoodsList(null,null,val)
- },
- // 滚轮分页
- loadmore() {
- console.log('this.goodsCurrent0', this.goodsCurrent, this.goodsSize, this.goodsTotal)
- if (this.goodsCurrent * this.goodsSize >= this.goodsTotal) return
- this.goodsCurrent++
- this.getGoodsList('more')
- },
- getGoodsList(type, val,inventoryId) {
- console.log('goodsCurrent=============>',this.goodsCurrent)
- getGoodsList({ current: this.goodsCurrent, size: this.goodsSize, name: val ? val : null,inventoryId:inventoryId ? inventoryId : null }).then(res => {
- // this.productList = res.data.data.records
- if (type == 'more') {
- this.productList = this.productList.concat(res.data.data.records)
- this.goodsTotal = res.data.data.total
- } else {
- this.productList = res.data.data.records
- this.goodsTotal = res.data.data.total
+ },
+ // 切换库存ID
+ changeInventoryId(val) {
+ this.getGoodsList(null, null, val)
+ },
+ // 滚轮分页
+ loadmore() {
+ if (this.goodsCurrent * this.goodsSize >= this.goodsTotal) return
+ this.goodsCurrent++
+ this.getGoodsList('more')
+ },
+ getGoodsList(type, val, inventoryId) {
+ getGoodsList({ current: this.goodsCurrent, size: this.goodsSize, name: val ? val : null, inventoryId: inventoryId ? inventoryId : null }).then(res => {
+ // this.productList = res.data.data.records
+ if (type == 'more') {
+ this.productList = this.productList.concat(res.data.data.records)
+ this.goodsTotal = res.data.data.total
+ } else {
+ this.productList = res.data.data.records
+ this.goodsTotal = res.data.data.total
+ }
+ })
+ },
+ remoteMethod(query) {
+ this.goodsCurrent = 1
+ this.goodsSize = 10
+ this.getGoodsList('search', query)
+
+ },
+ handleCloseDetail() {
+ this.repairForm = {}
+ this.tableData = []
+ this.repairVisible = false
+ },
+ addColumn() {
+ let arr = JSON.parse(JSON.stringify(this.tableData))
+ arr.push({ productType: { node: undefined, data: {} }, inventoryId: '', productId: '', productName: '', rule: '', xh: '', number: '', unit: '', price: '', productList: [] })
+ this.tableData = arr
+ },
+ deleteColumn(row, index) {
+ this.tableData.splice(index, 1);
+ },
+ addGoodsColumn() {
+ let arr = JSON.parse(JSON.stringify(this.materialsData))
+ arr.push({ productName: '', brand: '', rule: '', xh: '', num: '', unit: '', applyNum: '', returnTime: '' })
+ this.materialsData = arr
+ },
+ deleteGoodsColumn(row, index) {
+ this.materialsData.splice(index, 1);
+ },
+ handleNodeSelectEvent(event, index) {
+ getGoodsList({
+ bigClassId: event.node,
+ current: 1, //页数
+ size: 100,
+ }).then(res => {
+ this.tableData[index].inventoryId = ''
+ this.tableData[index].productName = ''
+ this.tableData[index].productId = ''
+ this.tableData[index].price = ''
+ this.tableData[index].number = ''
+ this.tableData[index].rule = ''
+ this.tableData[index].xh = ''
+ this.tableData[index].unit = ''
+ this.tableData[index].productList = res.data.data.records
+ })
+ },
+ changeProduct(value, index) {
+ if (typeof value == 'string') {
+ this.productLists.find(item => item.id == value).unifiedQuotation = this.productLists.find(item => item.id == value).unifiedQuotation == -1 ? 0 : this.productLists.find(item => item.id == value).unifiedQuotation
+ this.tableData[index].price = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unifiedQuotation * 1 : ''
+ this.tableData[index].number = 1
+ this.tableData[index].rule = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).rule : ''
+ this.tableData[index].xh = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).xh : ''
+ this.tableData[index].unit = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unit : ''
+ this.tableData[index].productName = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).name : ''
+ this.tableData[index].unifiedQuotation = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unifiedQuotation : ''
+ this.tableData[index].inventoryId = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).inventoryId : ''
+ } else if (typeof value == 'object' && value.target.value != '') {
+ this.productLists.find(item => item.id == value).unifiedQuotation = this.productLists.find(item => item.id == value).unifiedQuotation == -1 ? 0 : this.productLists.find(item => item.id == value).unifiedQuotation
+ this.tableData[index].price = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unifiedQuotation * 1 : ''
+ this.tableData[index].number = 1
+ this.tableData[index].rule = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).rule : ''
+ this.tableData[index].xh = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).xh : ''
+ this.tableData[index].unit = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unit : ''
+ this.tableData[index].productName = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).name : ''
+ this.tableData[index].unifiedQuotation = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unifiedQuotation : ''
+ this.tableData[index].inventoryId = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).inventoryId : ''
}
- })
- },
- remoteMethod(query) {
- console.log('query-------------->', query)
- this.goodsCurrent = 1
- this.goodsSize = 10
- this.getGoodsList('search', query)
- },
- handleCloseDetail() {
- this.repairForm = {}
- this.tableData = []
- this.repairVisible = false
- },
- addColumn() {
- let arr = JSON.parse(JSON.stringify(this.tableData))
- arr.push({ productType: { node: undefined, data: {} },inventoryId:'', productId: '', productName: '', rule: '', xh: '', number: '', unit: '', price: '', productList: [] })
- this.tableData = arr
- },
- deleteColumn(row, index) {
- this.tableData.splice(index, 1);
- },
- addGoodsColumn() {
- let arr = JSON.parse(JSON.stringify(this.materialsData))
- arr.push({ productName: '', brand: '', rule: '', xh: '', num: '', unit: '', applyNum: '', returnTime: '' })
- this.materialsData = arr
- },
- deleteGoodsColumn(row, index) {
- this.materialsData.splice(index, 1);
- },
- handleNodeSelectEvent(event, index) {
- getGoodsList({
- bigClassId: event.node,
- current: 1, //页数
- size: 100,
- }).then(res => {
- console.log('res =>', res)
- this.tableData[inddex].inventoryId = ''
- this.tableData[index].productName = ''
- this.tableData[index].productId = ''
- this.tableData[index].price = ''
- this.tableData[index].number = ''
- this.tableData[index].rule = ''
- this.tableData[index].xh = ''
- this.tableData[index].unit = ''
- this.tableData[index].productList = res.data.data.records
- })
- },
- changeProduct(value, index) {
- console.log('val===========>',value)
- if(typeof value == 'string'){
- this.productLists.find(item => item.id == value).unifiedQuotation = this.productLists.find(item => item.id == value).unifiedQuotation == -1 ? 0 : this.productLists.find(item => item.id == value).unifiedQuotation
- this.tableData[index].price = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unifiedQuotation * 1 : ''
- this.tableData[index].number = 1
- this.tableData[index].rule = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).rule : ''
- this.tableData[index].xh = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).xh : ''
- this.tableData[index].unit = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unit : ''
- this.tableData[index].productName = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).name : ''
- this.tableData[index].unifiedQuotation = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).unifiedQuotation : ''
- this.tableData[index].inventoryId = this.productLists.find(item => item.id == value) ? this.productLists.find(item => item.id == value).inventoryId : ''
- }else if(typeof value == 'object' && value.target.value != ''){
- this.productLists.find(item => item.id == value).unifiedQuotation = this.productLists.find(item => item.id == value).unifiedQuotation == -1 ? 0 : this.productLists.find(item => item.id == value).unifiedQuotation
- this.tableData[index].price = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unifiedQuotation * 1 : ''
- this.tableData[index].number = 1
- this.tableData[index].rule = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).rule : ''
- this.tableData[index].xh = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).xh : ''
- this.tableData[index].unit = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unit : ''
- this.tableData[index].productName = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).name : ''
- this.tableData[index].unifiedQuotation = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).unifiedQuotation : ''
- this.tableData[index].inventoryId = this.productLists.find(item => item.id == value.target.value) ? this.productLists.find(item => item.id == value.target.value).inventoryId : ''
- }
- // if(this.productInventoryId != ''){
- // this.productCurrent = 1
- // this.productSize = 10
- // this.getProductLists()
- // }
- },
- changeNumber(val, row) {
- console.log('val------------->', val)
- console.log('row------------->', row)
- // row.price = row.price * val
- // row.price = row.unifiedQuotation * val
- if(row.unifiedQuotation){
- row.price = (row.unifiedQuotation * val).toFixed(2)
- }else{
+ },
+ changeNumber(val, row) {
- }
+ if (row.unifiedQuotation) {
+ row.price = (row.unifiedQuotation * val).toFixed(2)
+ } else {
- },
- beforeOpen(done, type) {
- done();
- },
- beforeClose(done) {
- done();
- },
- // 维修人员驳回操作
- repairReject(row) {
- getDetail({ id: row.id }).then(res => {
- this.rejectForm = res.data.data
- this.rejectVisible = true
- })
+ }
- },
- // 驳回弹窗点击取消按钮
- handleCloseReject() {
- this.rejectVisible = false
- this.rejectForm = {}
- },
- // 驳回弹窗点击提交按钮
- handleReject() {
- this.$refs.rejectForm.validate((valid) => {
- if(valid){
- if(this.role_id == '1839552581620793346'){
- let query = {
- id:this.rejectForm.id,
- repaiRejectReason:this.rejectForm.reason
- }
- servicemanReject(query).then(res =>{
- if (res.data.code == 200) {
- this.$message.success('驳回成功')
- this.rejectForm = {}
- this.rejectVisible = false
- this.onLoad()
+ },
+ beforeOpen(done, type) {
+ done();
+ },
+ beforeClose(done) {
+ done();
+ },
+ // 维修人员驳回操作
+ repairReject(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.rejectForm = res.data.data
+ this.rejectVisible = true
+ })
+
+ },
+ // 驳回弹窗点击取消按钮
+ handleCloseReject() {
+ this.rejectVisible = false
+ this.rejectForm = {}
+ },
+ // 驳回弹窗点击提交按钮
+ handleReject() {
+ this.$refs.rejectForm.validate((valid) => {
+ if (valid) {
+ if (this.role_id == '1839552581620793346') {
+ let query = {
+ id: this.rejectForm.id,
+ repaiRejectReason: this.rejectForm.reason
}
- })
+ servicemanReject(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('驳回成功')
+ this.rejectForm = {}
+ this.rejectVisible = false
+ this.onLoad()
+ }
+ })
+ }
}
- }
- // let query = {
- // id: this.rejectForm.id, //需求id
- // status: this.rejectForm.status == 3 ? 7 : (this.rejectForm.status == 1 || this.rejectForm.status == 7) ? 8 : '', //7已驳回(维修人员)
- // }
- // console.log('query ------------>', query)
- // if (query.status == 7) {
- // let data = {
- // ...query,
- // repaiRejectReason: this.rejectForm.reason, //维修人员驳回原因
-
- // }
- // repairReject(data).then(res => {
- // if (res.data.code == 200) {
- // this.$message.success('驳回成功')
- // this.rejectForm = {}
- // this.rejectVisible = false
- // this.onLoad()
- // }
- // })
- // } else if (query.status == 8) {
- // let data = {
- // ...query,
- // repaiTeamRejectReason: this.rejectForm.reason, //维修人员驳回原因
- // }
- // submitReject(data).then(res => {
- // if (res.data.code == 200) {
- // this.$message.success('驳回成功')
- // this.rejectForm = {}
- // this.rejectVisible = false
- // this.onLoad()
- // }
- // })
- // }
- })
+ })
- },
- // 点击关闭按钮
- handleClone(row) {
- getDetail({ id: row.id }).then(res => {
- this.cloneForm = res.data.data
- this.cloneVisible = true
- })
- },
- // 点击关闭弹窗取消按钮
- handleCancel() {
- this.cloneForm = {}
- this.cloneVisible = false
- },
- handleCancelFinish(){
- this.finishForm = {}
- this.finishVisible = false
- },
- handleFinishSub(){
- let query = {
- id: this.finishForm.id,
- closeReason: this.finishForm.closeReason,
- }
- servicemanRepairSubmit(query).then(res =>{
- if (res.data.code == 200) {
- this.$message.success('关闭成功')
- this.finishForm = {}
- this.finishVisible = false
- this.onLoad()
+ },
+ // 点击关闭按钮
+ handleClone(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.cloneForm = res.data.data
+ this.cloneVisible = true
+ })
+ },
+ // 点击关闭弹窗取消按钮
+ handleCancel() {
+ this.cloneForm = {}
+ this.cloneVisible = false
+ },
+ handleCancelFinish() {
+ this.finishForm = {}
+ this.finishVisible = false
+ },
+ handleFinishSub() {
+ let query = {
+ id: this.finishForm.id,
+ closeReason: this.finishForm.closeReason,
}
- })
- },
- // 点击关闭弹窗提交按钮
- handleCloneSub() {
- let query = {
- id: this.cloneForm.id,
- closeReason: this.cloneForm.reason,
- }
- serviceSubmit(query).then(res => {
- if (res.data.code == 200) {
- this.$message.success('关闭成功')
- this.cloneForm = {}
- this.cloneVisible = false
- this.onLoad()
+ servicemanRepairSubmit(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('关闭成功')
+ this.finishForm = {}
+ this.finishVisible = false
+ this.onLoad()
+ }
+ })
+ },
+ // 点击关闭弹窗提交按钮
+ handleCloneSub() {
+ let query = {
+ id: this.cloneForm.id,
+ closeReason: this.cloneForm.reason,
}
- })
- },
- searchReset(params, done) {
- this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
- // params.releaseTimeRange = dateFormat(new Date(), 'yyyy-MM-dd');
- this.query = params;
- this.onLoad(this.page);
- },
- searchChange(params, done) {
- this.query = params;
- this.page.currentPage = 1;
- this.onLoad(this.page, params);
- done();
- },
- currentChange(currentPage) {
- this.page.currentPage = currentPage;
- this.onLoad()
- },
- sizeChange(pageSize){
- this.page.pageSize = pageSize;
- this.onLoad()
- },
- handleAccept(val) {
- if (this.selectList.length == 0) {
- this.$message.warning('请选择一条数据')
- } else if (this.selectList.length > 1) {
- this.$message.warning('只能选择一条数据')
- } else if (this.selectList[0].status != 2) {
- this.$message.warning('只能选择状态为待确认的数据')
- } else {
- this.dialogTitle = '工单'
- getDetail({ id: this.selectList[0].id }).then(res => {
- this.addForm = res.data.data
- this.addForm.maintenanceTeam = res.data.data.status == 0 ? '' : res.data.data.maintenanceTeam
- this.addForm.repairPerson = this.role_id == '1839537055389515777' ? '' : res.data.data.repairPerson
- this.dialogVisible = true
+ serviceSubmit(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('关闭成功')
+ this.cloneForm = {}
+ this.cloneVisible = false
+ this.onLoad()
+ }
})
- }
- },
- handleApproval(row) {
- this.dialogType = 'approval'
- if (row.id) {
- // this.repairVisible = true
- // this.repairForm = row
- // this.tableData = this.repairForm.tableData
- getDetail({ id: row.id }).then(res => {
- this.repairVisible = true
- this.repairForm = res.data.data
- this.tableData = res.data.data.materials
- this.totalPrice = this.tableData.reduce((sum, item) => sum + item.materialPrice, 0)
- this.repairForm.approveResult = this.repairForm.status == 4 ? '' : this.repairForm.approveResult
- this.repairForm.approveTime = this.repairForm.status == 4 ? '' : this.repairForm.approveTime
- this.repairForm.approveRemark = this.repairForm.status == 4 ? '' : this.repairForm.approveRemark
- this.repairForm.errorVideo = this.repairForm.videoAttaches.length > 0 ? this.repairForm.videoAttaches[0].link : ''
- this.repairForm.errorImg = this.repairForm.picAttaches.map(item => {
- return {
- url: item.link,
- name: item.name
- }
+ },
+ searchReset(params, done) {
+ this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
+ // params.releaseTimeRange = dateFormat(new Date(), 'yyyy-MM-dd');
+ this.query = params;
+ this.onLoad(this.page);
+ },
+ searchChange(params, done) {
+ this.query = params;
+ this.page.currentPage = 1;
+ this.onLoad(this.page, params);
+ done();
+ },
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage;
+ this.onLoad()
+ },
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize;
+ this.onLoad()
+ },
+ handleAccept(val) {
+ if (this.selectList.length == 0) {
+ this.$message.warning('请选择一条数据')
+ } else if (this.selectList.length > 1) {
+ this.$message.warning('只能选择一条数据')
+ } else if (this.selectList[0].status != 2) {
+ this.$message.warning('只能选择状态为待确认的数据')
+ } else {
+ this.dialogTitle = '工单'
+ getDetail({ id: this.selectList[0].id }).then(res => {
+ this.addForm = res.data.data
+ this.addForm.maintenanceTeam = res.data.data.status == 0 ? '' : res.data.data.maintenanceTeam
+ this.addForm.repairPerson = this.role_id == '1839537055389515777' ? '' : res.data.data.repairPerson
+ this.dialogVisible = true
})
- // this.repairForm.approvePerson = this.repairForm.status == 4 ? '' : this.repairForm.approvePerson
- })
- } else if (this.selectList.length == 0) {
- this.$message.warning('请选择一条数据')
- } else if (this.selectList.length > 1) {
- this.$message.warning('只能选择一条数据')
- } else if (this.selectList[0].approvalStatus != 0) {
- this.$message.warning('只能选择状态为待审批的数据')
- } else {
- this.repairForm = this.selectList[0]
- this.tableData = this.repairForm.tableData
- this.repairVisible = true
- }
- },
- handleRepairConfirm() {
- this.$refs.repairForm.validate(valid => {
- if (valid) {
- if (this.repairForm.status == 401 || this.repairForm.status == 300) {
- if (this.repairForm.isNeedMaterial == '1') {
- if (this.tableData.length == 0) {
- this.$message.error('请至少填写一条维修材料信息')
- } else {
- let data = []
- this.tableData.map((item, index) => {
- data.push({
- orderId: this.repairForm.id,
- materialName: item.productName,
- materialCount: item.number,
- materialPrice: item.price,
- bigClassId: item.productType.node,
- rule: item.rule,
- unit: item.unit,
- xh: item.xh,
- inventoryId:item.inventoryId
+ }
+ },
+ handleApproval(row) {
+ this.dialogType = 'approval'
+ if (row.id) {
+ getDetail({ id: row.id }).then(res => {
+ this.repairVisible = true
+ this.repairForm = res.data.data
+ this.tableData = res.data.data.materials
+ this.totalPrice = this.tableData.reduce((sum, item) => sum + item.materialPrice, 0)
+ this.repairForm.approveResult = this.repairForm.status == 4 ? '' : this.repairForm.approveResult
+ this.repairForm.approveTime = this.repairForm.status == 4 ? '' : this.repairForm.approveTime
+ this.repairForm.approveRemark = this.repairForm.status == 4 ? '' : this.repairForm.approveRemark
+ this.repairForm.errorVideo = this.repairForm.videoAttaches.length > 0 ? this.repairForm.videoAttaches[0].link : ''
+ this.repairForm.errorImg = this.repairForm.picAttaches.map(item => {
+ return {
+ url: item.link,
+ name: item.name
+ }
+ })
+ // this.repairForm.approvePerson = this.repairForm.status == 4 ? '' : this.repairForm.approvePerson
+ })
+ } else if (this.selectList.length == 0) {
+ this.$message.warning('请选择一条数据')
+ } else if (this.selectList.length > 1) {
+ this.$message.warning('只能选择一条数据')
+ } else if (this.selectList[0].approvalStatus != 0) {
+ this.$message.warning('只能选择状态为待审批的数据')
+ } else {
+ this.repairForm = this.selectList[0]
+ this.tableData = this.repairForm.tableData
+ this.repairVisible = true
+ }
+ },
+ handleRepairConfirm() {
+ this.$refs.repairForm.validate(valid => {
+ if (valid) {
+ if (this.repairForm.status == 105 ||this.repairForm.status == 401 || this.repairForm.status == 300) {
+ if (this.repairForm.isNeedMaterial == '1') {
+ if (this.tableData.length == 0) {
+ this.$message.error('请至少填写一条维修材料信息')
+ } else {
+ let data = []
+ this.tableData.map((item, index) => {
+ data.push({
+ orderId: this.repairForm.id,
+ materialName: item.productName,
+ materialCount: item.number,
+ materialPrice: item.price,
+ bigClassId: item.productType.node,
+ rule: item.rule,
+ unit: item.unit,
+ xh: item.xh,
+ inventoryId: item.inventoryId
+ })
})
- })
+ let query = {
+ id: this.repairForm.id,
+ faultCause: this.repairForm.faultCause,
+ processMethod: this.repairForm.processMethod,
+ isNeedMaterial: this.repairForm.isNeedMaterial,
+ deviceId: this.repairForm.deviceId,
+ deviceName: this.repairForm.deviceName,
+ materials: data
+ }
+ // 紧急维修
+ if(this.repairForm.repairType==1){
+ query.discountPrice=data.reduce((sum, item) => sum + item.materialPrice, 0)
+ query.totalPrice=data.reduce((sum, item) => sum + item.materialPrice, 0)
+ query.discount=0
+
+ }
+ editData(query).then(res => {
+ if (res.data.code == 200) {
+ servicemanSubmit({
+ id: this.repairForm.id,
+ deviceId: this.repairForm.deviceId,
+ deviceName: this.repairForm.deviceName,
+ repairType:this.repairForm.repairType
+ }).then(res => {
+ this.$message.success("提交成功")
+ this.repairVisible = false
+ this.onLoad()
+ })
+ }
+ })
+ }
+ } else {
let query = {
id: this.repairForm.id,
faultCause: this.repairForm.faultCause,
processMethod: this.repairForm.processMethod,
isNeedMaterial: this.repairForm.isNeedMaterial,
- deviceId:this.repairForm.deviceId,
- deviceName:this.repairForm.deviceName,
- materials: data
}
- console.log('query---------->', query)
editData(query).then(res => {
if (res.data.code == 200) {
- servicemanSubmit({id:this.repairForm.id,
- deviceId:this.repairForm.deviceId,
- deviceName:this.repairForm.deviceName,
- }).then(res =>{
+ servicemanSubmit({
+ id: this.repairForm.id,
+ deviceId: this.repairForm.deviceId,
+ deviceName: this.repairForm.deviceName,
+ }).then(res => {
this.$message.success("提交成功")
this.repairVisible = false
this.onLoad()
@@ -1533,306 +1528,293 @@ export default {
}
})
}
- } else {
+ } else if (this.repairForm.status == 402 || this.repairForm.status == 102) {
let query = {
id: this.repairForm.id,
- faultCause: this.repairForm.faultCause,
- processMethod: this.repairForm.processMethod,
- isNeedMaterial: this.repairForm.isNeedMaterial,
+ approvePerson: this.userInfo.user_id,
+ approveResult: this.chargeForm.approveResult,
+ approveTime: moment().format('YYYY-MM-DD HH:mm:ss'),
+ approveRemark: this.chargeForm.approveRemark
}
- editData(query).then(res => {
- if (res.data.code == 200) {
- servicemanSubmit({id:this.repairForm.id,
- deviceId:this.repairForm.deviceId,
- deviceName:this.repairForm.deviceName,
- }).then(res =>{
- this.$message.success("提交成功")
- this.repairVisible = false
- this.onLoad()
+ if (query.approveResult == 0) {
+ supervisorReject(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success("审批成功")
+ this.repairVisible = false
+ this.onLoad()
+ }
+ })
+ } else {
+ editData({
+ id: this.repairForm.id,
+ totalPrice: this.totalPrice,
+ discount: this.discount,
+ discountPrice: this.discountPrice,
+ }).then(res => {
+ if (res.data.code == 200) {
+ supervisorConfirm(query).then(result => {
+ if (result.data.code == 200) {
+ this.$message.success("审批成功")
+ this.repairVisible = false
+ this.onLoad()
+ }
})
- }
- })
- }
- }else if(this.repairForm.status == 402 || this.repairForm.status == 102){
- let query = {
- id:this.repairForm.id,
- approvePerson:this.userInfo.user_id,
- approveResult:this.chargeForm.approveResult,
- approveTime: moment().format('YYYY-MM-DD HH:mm:ss'),
- approveRemark:this.chargeForm.approveRemark
+ }
+ })
+ }
+
}
- if(query.approveResult == 0){
- supervisorReject(query).then(res =>{
- if(res.data.code == 200){
- this.$message.success("审批成功")
- this.repairVisible = false
- this.onLoad()
- }
- })
- }else{
- editData({
- id:this.repairForm.id,
- totalPrice:this.totalPrice,
- discount:this.discount,
- discountPrice:this.discountPrice,
- }).then(res =>{
- if(res.data.code == 200){
- supervisorConfirm(query).then(result =>{
- console.log('result',result)
- if(result.data.code == 200){
- this.$message.success("审批成功")
- this.repairVisible = false
- this.onLoad()
- }
- })
- }
- })
+ }
+ })
+ },
+ handleSaveRepair() {
+ this.$refs['repairForm'].validate(valid => {
+ if (valid) {
+ if (this.repairForm.isNeedMaterial == '1') {
+ if (this.tableData.length == 0) {
+ this.$message.error('请至少填写一条维修材料信息')
+ }
}
+ }
+ })
+ },
+ closeRequest() {
+ this.requestVisible = false
+ },
+ // 点击编辑按钮
+ handleEdit(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.addForm = res.data.data
+ this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
+ this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
+ this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
+ this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
+ this.addForm = {
+ ...this.addForm,
+ isNeedMaterials: 2,
+ }
+ this.dialogVisible = true
+ })
+ },
+ // 维修人员接单
+ reciveOrder(row) {
+ getDetail({ id: row.id }).then(res => {
+ this.addForm = res.data.data
+ this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
+ this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
+ this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
+ this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
+ this.addForm = {
+ ...this.addForm,
+ isNeedMaterials: 2,
}
+ this.dialogVisible = true
+ })
+ },
+ // 点击删除按钮
+ handleDelete(row) {
+ this.$confirm('请确认是否删除该设备?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.$message({
+ type: 'success',
+ message: '删除成功!'
+ });
+ })
+ },
+ // 点击新增弹窗关闭按钮
+ handleClose() {
+ this.dialogVisible = false
+ this.$refs['form'].resetFields()
+ this.addForm = {}
+ },
+ // 点击新增弹窗中的驳回按钮
+ handleTurndown() {
+ let query = {
+ id: this.addForm.id,
+ repaiRejectReason: this.addForm.remark,
+ status: 7
}
- })
- },
- handleSaveRepair() {
- this.$refs['repairForm'].validate(valid => {
- if (valid) {
- if (this.repairForm.isNeedMaterial == '1') {
- if (this.tableData.length == 0) {
- this.$message.error('请至少填写一条维修材料信息')
- }
+ repairReject(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success("驳回成功")
+ this.dialogVisible = false
+ this.onLoad()
}
- }
- })
- },
- closeRequest() {
- this.requestVisible = false
- },
- // 点击编辑按钮
- handleEdit(row) {
- getDetail({ id: row.id }).then(res => {
- this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
- this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
- this.addForm = {
- ...this.addForm,
- isNeedMaterials: 2,
- }
- this.dialogVisible = true
- })
- },
- // 维修人员接单
- reciveOrder(row){
- getDetail({id:row.id}).then(res =>{
- this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
- this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
- this.addForm = {
- ...this.addForm,
- isNeedMaterials: 2,
+ })
+ },
+ // 点击确定派单按钮
+ handleConfirm() {
+ this.$refs['form'].validate(valid => {
+ if (valid) {
+ let query = {}
+ // 客服提交
+ if (this.dataType == '2') {
+ query = {
+ id: this.addForm.id,
+ reportUnit: this.addForm.reportUnit,
+ faultDescribe: this.addForm.faultDescribe,
+ faultLocation: this.addForm.faultLocation,
+ faultType: this.addForm.faultType,
+ deviceName: this.addForm.deviceName
+ }
+ let manQuery = {
+ id: this.addForm.id,
+ repairPerson: this.role_id == '1839536982874193922' ? this.addForm.repairPerson : null,
+ planCompleteTime: this.addForm.planCompleteTime,
+ dispatchTime: moment().format('YYYY-MM-DD HH:mm:ss'),
+ customerOpinion: this.addForm.customerOpinion,
+ remark: this.addForm.remark,
+ repairType: this.addForm.repairType
+ }
+ console.log(1111111111, manQuery)
+ // editData(query).then(res => {
+ // if (res.data.code == 200) {
+ // serviceman(manQuery).then(result => {
+ // if (result.data.code == 200) {
+ // this.$message.success('派单成功')
+ // this.dialogVisible = false
+ // this.onLoad()
+ // }
+ // })
+ // }
+ // })
+ } else {
+ query = {
+ id: this.addForm.id,
+ reportUnit: this.addForm.reportUnit,
+ dispatchTime: this.addForm.dispatchTime,
+ planCompleteTime: this.addForm.planCompleteTime,
+ repairPerson: this.role_id == '1839536982874193922' ? this.addForm.repairPerson : null,
+ remark: this.addForm.remark,
+ customerOpinion: this.addForm.customerOpinion
+ }
- }
- this.dialogVisible = true
- })
- },
- // 客服人员接单
- takeOrders(row){
- getDetail({id:row.id}).then(res =>{
- this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
- this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
- this.addForm = {
- ...this.addForm,
- isNeedMaterials: 2,
- customerOpinion:'',
- planCompleteTime:''
- }
- console.log('addForm',this.addForm)
- this.dialogVisible = true
- })
- },
- // 点击删除按钮
- handleDelete(row) {
- this.$confirm('请确认是否删除该设备?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$message({
- type: 'success',
- message: '删除成功!'
- });
- })
- },
- // 点击新增弹窗关闭按钮
- handleClose() {
- this.dialogVisible = false
- this.$refs['form'].resetFields()
- this.addForm = {}
- },
- // 点击新增弹窗中的驳回按钮
- handleTurndown() {
- let query = {
- id: this.addForm.id,
- repaiRejectReason: this.addForm.remark,
- status: 7
- }
- repairReject(query).then(res => {
- if (res.data.code == 200) {
- this.$message.success("驳回成功")
- this.dialogVisible = false
- this.onLoad()
- }
- })
- },
- // 点击确定派单按钮
- handleConfirm() {
- this.$refs['form'].validate(valid => {
- if (valid) {
- let query = {}
- if (this.role_id == '1839536982874193922') {
- query = {
- id: this.addForm.id,
- reportUnit: this.addForm.reportUnit,
- faultDescribe: this.addForm.faultDescribe,
- faultLocation: this.addForm.faultLocation,
- faultType: this.addForm.faultType,
- deviceName: this.addForm.deviceName
- }
- let manQuery = {
- id: this.addForm.id,
- repairPerson: this.role_id == '1839536982874193922' ? this.addForm.repairPerson : null,
- planCompleteTime: this.addForm.planCompleteTime,
- dispatchTime: moment().format('YYYY-MM-DD HH:mm:ss'),
- customerOpinion: this.addForm.customerOpinion,
- remark: this.addForm.remark,
- }
- editData(query).then(res =>{
- if(res.data.code == 200){
- serviceman(manQuery).then(result =>{
- if (result.data.code == 200) {
- this.$message.success('派单成功')
+
+ if (this.addForm.isNeedMaterials == 1) {
+ if (this.materialsData.find(item => item.applyNum == 0)) {
+ this.$message.error('申领数量不可为0')
+ } else {
+ let data = []
+ this.materialsData.map(item => {
+ data.push({
+ productId: item.productName, //物资id
+ productName: item.name, //物资名称
+ brand: item.brand, //品牌
+ xh: item.xh, //型号
+ rule: item.rule, //参数
+ applyNum: item.applyNum, //领用数量
+ returnTime: item.returnTime !== '' ? item.returnTime + ' 23:59:59' : ''
+ })
+ })
+ let query1 = {
+ details: data,
+ applyUserId: this.userInfo.user_id, //申领人Id
+ applyUser: this.userInfo.user_name, //申领人
+ applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //申领时间(yyyy-MM-dd HH:mm:ss)
+ status: 0,
+ workId: this.addForm.id,
+ }
+ applyGoods(query1).then(res => {
+ if (res.data.code == 200) {
+ servicemanReceive({ id: this.addForm.id }).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('提交成功')
+ this.dialogVisible = false
+ this.onLoad()
+ }
+ })
+ }
+ })
+ }
+ } else {
+ // 维修人员接单
+ let query = {
+ id: this.addForm.id,
+ repairType: this.addForm.repairType,
+ }
+ servicemanReceive(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('提交成功')
this.dialogVisible = false
this.onLoad()
}
})
}
- })
- } else {
- query = {
- id: this.addForm.id,
- reportUnit: this.addForm.reportUnit,
- dispatchTime: this.addForm.dispatchTime,
- planCompleteTime: this.addForm.planCompleteTime,
- repairPerson: this.role_id == '1839536982874193922' ? this.addForm.repairPerson : null,
- // status: this.role_id == '1839536982874193922' ? 2 : this.role_id == '1839537055389515777' ? 2 : this.role_id == '1839552581620793346' ? 3 : '',
- remark: this.addForm.remark,
- customerOpinion: this.addForm.customerOpinion
}
-
- if (this.addForm.isNeedMaterials == 1) {
- if (this.materialsData.find(item => item.applyNum == 0)) {
- this.$message.error('申领数量不可为0')
+ }
+ })
+ },
+ // 点击新增弹窗保存按钮
+ handleSave() {
+ this.$refs['form'].validate((valid) => {
+ if (valid) {
+ if (this.fileList.length == 0) {
+ this.$message.error('请至少上传一个附件')
} else {
- let data = []
- console.log('this.materialsData', this.materialsData)
- this.materialsData.map(item => {
- data.push({
- productId: item.productName, //物资id
- productName: item.name, //物资名称
- brand: item.brand, //品牌
- xh: item.xh, //型号
- rule: item.rule, //参数
- applyNum: item.applyNum, //领用数量
- returnTime: item.returnTime !== '' ? item.returnTime + ' 23:59:59' : ''
- })
- })
- let query1 = {
- details: data,
- applyUserId: this.userInfo.user_id, //申领人Id
- applyUser: this.userInfo.user_name, //申领人
- applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //申领时间(yyyy-MM-dd HH:mm:ss)
- status: 0,
- workId: this.addForm.id,
- }
- applyGoods(query1).then(res => {
- if (res.data.code == 200) {
- servicemanReceive({id:this.addForm.id}).then(res =>{
- if (res.data.code == 200) {
- this.$message.success('提交成功')
- this.dialogVisible = false
- this.onLoad()
- }
- })
- }
- })
+
}
- }else{
- servicemanReceive({id:this.addForm.id}).then(res =>{
- if (res.data.code == 200) {
- this.$message.success('提交成功')
- this.dialogVisible = false
- this.onLoad()
- }
- })
- }
}
-
+ })
+ },
+ // 附件上传成功
+ handleSuccess(response, file, fileList) {
+ this.fileList = []
+ fileList.map(item => {
+ this.fileList.push({ name: item.name })
+ })
+ },
+ // 附件删除
+ handleRemove(file, fileList) {
+ this.fileList = []
+ fileList.map(item => {
+ this.fileList.push({ name: item.name })
+ })
+ },
+ selectSection(selection) {
+ this.selectList = selection
+ },
+ onLoad(page, params = {}) {
+ let query = {
+ current: this.page.currentPage, //页数
+ size: this.page.pageSize, //条数
+ startTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[0].toString() + ' 00:00:00' : '', //开始时间
+ endTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[1].toString() + ' 23:59:59' : '', //结束时间
+ faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型
+ reportUnitName: this.searchForm.reportUnitName ? this.searchForm.reportUnitName : '',
+ // dataType: this.role_id == '1839536982874193922' || this.role_id == '1839600115013713921' ? 2 : this.role_id == '1839537055389515777' ? 3 : this.role_id == '1839552581620793346' ? 4 : ''
}
- })
- },
- // 点击新增弹窗保存按钮
- handleSave() {
- this.$refs['form'].validate((valid) => {
- if (valid) {
- if (this.fileList.length == 0) {
- this.$message.error('请至少上传一个附件')
- } else {
+ getList(query).then(res => {
+ let data_ = res.data.data.records
+ data_.forEach(item => {
+ if (item.repairType < 0) {
+ item.repairType = null
+ }
+ let repairTypeInfo = this.repairTypeList.filter(v => {
+ return v.dictKey == item.repairType
+ })
+ item.repairTypeName = repairTypeInfo.length > 0 ? repairTypeInfo[0].dictValue : ''
+ })
+ this.data = data_
- }
- }
- })
- },
- // 附件上传成功
- handleSuccess(response, file, fileList) {
- this.fileList = []
- fileList.map(item => {
- this.fileList.push({ name: item.name })
- })
- },
- // 附件删除
- handleRemove(file, fileList) {
- this.fileList = []
- fileList.map(item => {
- this.fileList.push({ name: item.name })
- })
- },
- selectSection(selection) {
- this.selectList = selection
- },
- onLoad(page, params = {}) {
- let query = {
- current: this.page.currentPage, //页数
- size: this.page.pageSize, //条数
- startTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[0].toString() + ' 00:00:00' : '', //开始时间
- endTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[1].toString() + ' 23:59:59' : '', //结束时间
- faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型
- reportUnitName: this.searchForm.reportUnitName ? this.searchForm.reportUnitName : '',
- // dataType: this.role_id == '1839536982874193922' || this.role_id == '1839600115013713921' ? 2 : this.role_id == '1839537055389515777' ? 3 : this.role_id == '1839552581620793346' ? 4 : ''
+ this.page.total = res.data.data.total
+ this.loading = false
+ })
+ },
+ // 客服人员接单
+ takeOrders(row) {
+ this.workOrderShow = true
+ this.workOrderId = row.id
+ },
+ closeWorkOrder() {
+ this.workOrderShow = false
+ this.onLoad()
}
- getList(query).then(res => {
- this.data = res.data.data.records
- this.page.total = res.data.data.total
- this.loading = false
- })
- },
-}
+ }
}
diff --git a/src/views/components/requestSub.vue b/src/views/components/requestSub.vue
index 75ca8dc..61b6821 100644
--- a/src/views/components/requestSub.vue
+++ b/src/views/components/requestSub.vue
@@ -59,7 +59,7 @@
新 增
取 消
- 保 存
+ 保 存
提 交
@@ -340,7 +340,7 @@ export default {
}
console.log('addForm------------->',this.addForm)
this.$forceUpdate()
-
+
},
computed: {
...mapGetters(["userInfo", "permission", "systemTime"]),
@@ -358,8 +358,8 @@ export default {
// faultPosition: { node: this.deviceList.find(item => item.id == this.form.deviceName).position, data: {} },
faultPosition: this.form.faultLocation,
deviceName: this.form.deviceName,
- // faultType: this.deviceList.find(item => item.id == this.form.deviceName).type,
- faultType: this.form.faultType,
+ // faultType: this.deviceList.find(item => item.id == this.form.deviceName).type,
+ faultType: this.form.faultType,
faultDescribe: this.form.faultDescribe,
videoAttaches: this.form.videoAttaches,
picAttaches: this.form.picAttaches,
@@ -693,7 +693,7 @@ export default {
return (file) =>{
console.log('file------>',file)
if(this.addForm[index].form.videoAttaches && this.addForm[index].form.picAttaches && this.addForm[index].form.videoAttaches.length + this.addForm[index].form.picAttaches.length < 3){
- const isLt3M = file.size
+ const isLt3M = file.size
console.log('isLt2M==============>',isLt3M)
if(isLt3M > 1024 * 1024 * 3){
const r = confirm(
@@ -755,7 +755,7 @@ export default {
// 压缩后调用方法进行base64转Blob,方法写在下边
const blobImg = this.dataURItoBlob(compressData)
return blobImg
- },
+ },
/* base64转Blob对象 */
dataURItoBlob(data) {
let byteString
@@ -777,7 +777,7 @@ export default {
if (file) {
let filename = file.name;
let filetype = file.type;
-
+
const videoUrl = ffmpeg.getObjectURL(file);
// const video = document.getElementById('video');
// video.src = videoUrl;
@@ -928,8 +928,8 @@ export default {
});
}
-
-
+
+
}
}
});
@@ -1104,15 +1104,15 @@ export default {
})
this.$emit('close')
}
-
-
+
+
}
}
}
});
});
-
+
},
// 点击确定按钮
handleConfirm(index) {
@@ -1200,8 +1200,8 @@ export default {
})
}
}
-
-
+
+
}
}
}
@@ -1213,4 +1213,4 @@ export default {
}
-
\ No newline at end of file
+
diff --git a/src/views/components/requirement.vue b/src/views/components/requirement.vue
index 13f26e9..b61d90a 100644
--- a/src/views/components/requirement.vue
+++ b/src/views/components/requirement.vue
@@ -1,159 +1,578 @@
-
-
-
- 故障信息
-
-
-
- 填报人:
- {{detailForm.informantName}}
-
-
- 填报人电话:
- {{detailForm.informantPhone}}
-
-
- 故障现象描述:
- {{detailForm.faultDescribe}}
-
-
- 故障位置:
- {{detailForm.faultLocation}}
-
-
- 设备名称:
- {{detailForm.deviceName}}
-
-
- 故障专业类型:
- {{detailForm.faultType}}
-
-
- 提报时间:
- {{detailForm.fillingTime}}
-
-
-
故障图片:
-
-
![]()
-
-
-
-
-
- 处理情况
-
-
-
- 接单时间:
- {{detailForm.dispatchTime}}
-
-
- 客服意见:
- {{detailForm.customerOpinion}}
-
-
-
-
-
- 维修详情
-
-
-
- 填报人:
- {{detailForm.repairPersonName}}
-
-
- 设备名称:
- {{detailForm.deviceName}}
-
-
- 故障原因:
- {{detailForm.faultCause}}
-
-
- 处理方法:
- {{detailForm.processMethod}}
-
-
- 维修材料:
-
-
-
-
-
-
-
- | 总计:{{ detailForm.totalPrice }} 元 |
- 折扣:{{ detailForm.discount }}折 |
- 折后金额:{{ detailForm.discountPrice }}元 |
-
-
-
-
-
-
-
-
+
+
+
+
+ | 运营维护服务单 |
+
+
+
+ | 客户名称 |
+ {{ info.informantName }} |
+ 联系人 |
+ {{ info.informantName }} |
+
+
+ | 联系电话 |
+ {{ info.informantPhone }} |
+ 地址 |
+ {{ info.adress }} |
+
+
+ 故障现象: {{ info.faultDescribe }}
+ |
+
+
+ | 是否在保修期 |
+
+ {{ !info.isMaintain ? '¨' : '√' }}
+ 是
+ |
+
+ {{ info.isMaintain ? '¨' : '√' }}
+ 否
+ |
+
+ 约定服务方式 |
+
+ {{ info.status != 202 ? '√' : '¨' }}
+ 上门
+ |
+
+ {{ info.status == 202 ? '√' : '¨' }}
+ 电话
+ |
+
+
+ 故障产生原因: {{ info.faultCause }}
+ |
+
+
+ | 所 用 维 修 材 料 |
+
+
+ | 序号 |
+ 名称 |
+ 数量 |
+ 单价 |
+ 总价 |
+
+
+
+ | {{ index + 1 }} |
+ {{ item.materialName }} |
+ {{ item.materialCount }} |
+ {{
+ (item.materialPrice / item.materialCount).toFixed(2) }} |
+ {{
+ item.materialPrice }} |
+
+
+
+
+ | {{ info.materials.length > 0 ? info.materials.length + 1 : 1 }} |
+ 合计 |
+ {{ info.totalPrice
+ < 0 ? 0 : info.totalPrice }} |
+
+
+ 保
+ 修 期 内 因 客 户 自
+ 身 原 因 产 生故 障 收 费 |
+
+
+ 维修差旅费:--
+
+
+
+ 0
+ 元; 维修费总计:{{ info.isMaintain ? info.totalPrice < 0 ? '0' : info.totalPrice : '--' }}
+
+
+ 0
+ 元;
+ |
+
+
+ | 保 修 期 外 收 费 |
+
+ 维修差旅费:--
+
+
+ 元; 维修费总计:{{ !info.isMaintain ? info.totalPrice < 0 ? '0' : info.totalPrice : '--' }}
+
+
+ 元;
+ |
+
+
+ 故障排除方法和处理结果(详细描述): {{
+ info.processMethod }}
+ |
+ 客户签字
+
+
+
+ |
+
+
+
+
+
+ 维修工程师签名:{{ info.repairPersonName }}
+
+ 联系方式:{{ info.repairPersonPhone }}
+
+
+
+
+ 日期:{{ info.finishTime }}
+
+ |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
-
\ No newline at end of file
+.container {
+ padding: 20px 150px;
+}
+
+tr {
+ // mso-height-source: auto;
+ // mso-ruby-visibility: none;
+}
+
+col {
+ // mso-width-source: auto;
+ // mso-ruby-visibility: none;
+}
+
+br {
+ // mso-data-placement: same-cell;
+}
+
+ruby {
+ ruby-align: left;
+}
+
+.style0 {
+ // mso-number-format: General;
+ // text-align: general;
+ vertical-align: middle;
+ white-space: nowrap;
+ // mso-rotate: 0;
+ // mso-background-source: auto;
+ // mso-pattern: auto;
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+ border: none;
+ // mso-protection: locked visible;
+ // mso-style-id: 0;
+}
+
+.font0 {
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+}
+
+.font6 {
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ font-family: Wingdings;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 2;
+}
+
+.font8 {
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+}
+
+.font9 {
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+}
+
+.font10 {
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: underline;
+ // text-underline-style: single;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+}
+
+.font11 {
+ color: white;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: underline;
+ // text-underline-style: single;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+}
+
+td {
+ // mso-style-parent: style0;
+ padding-top: 1px;
+ padding-right: 1px;
+ padding-left: 1px;
+ // mso-ignore: padding;
+ color: black;
+ font-size: 11.0pt;
+ font-weight: 400;
+ font-style: normal;
+ text-decoration: none;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 134;
+ // mso-number-format: General;
+ // text-align: general;
+ vertical-align: middle;
+ border: none;
+ // mso-background-source: auto;
+ // mso-pattern: auto;
+ // mso-protection: locked visible;
+ white-space: nowrap;
+ // mso-rotate: 0;
+}
+
+.xl65 {
+ // mso-style-parent: style0;
+ vertical-align: bottom;
+}
+
+.xl66 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border: .5pt solid #000;
+}
+
+.xl67 {
+ // mso-style-parent: style0;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 2;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+}
+
+.xl68 {
+ // font-family: Wingdings;
+ // mso-generic-font-family: auto;
+ // mso-font-charset: 2;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: .5pt solid #000;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+}
+
+.xl69 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl70 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: .5pt solid #000;
+ border-left: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl71 {
+ // mso-style-parent: style0;
+ font-family: "Wingdings 2", serif;
+ // mso-font-charset: 2;
+ text-align: center;
+ border: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl72 {
+ // mso-style-parent: style0;
+ font-size: 20.0pt;
+ text-align: center;
+}
+
+.xl73 {
+ // mso-style-parent: style0;
+ text-align: center;
+}
+
+.xl74 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: .5pt solid black;
+ border-bottom: .5pt solid #000;
+ border-left: .5pt solid #000;
+}
+
+.xl75 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl76 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border: .5pt solid #000;
+}
+
+.xl77 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+ white-space: normal;
+}
+
+.xl78 {
+ // mso-style-parent: style0;
+ text-align: center;
+ border-top: .5pt solid #000;
+ border-right: .5pt solid #000;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+ white-space: normal;
+}
+
+.xl79 {
+ // mso-style-parent: style0;
+ text-align: center;
+ vertical-align: top;
+ border: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl80 {
+ // mso-style-parent: style0;
+ text-align: center;
+ vertical-align: top;
+ border: .5pt solid #000;
+}
+
+.xl81 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: none;
+ border-left: .5pt solid #000;
+ white-space: normal;
+}
+
+.xl82 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: none;
+ border-left: none;
+}
+
+.xl83 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: .5pt solid #000;
+ border-right: .5pt solid #000;
+ border-bottom: none;
+ border-left: none;
+}
+
+.xl84 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: none;
+ border-right: none;
+ border-bottom: .5pt solid #000;
+ border-left: .5pt solid #000;
+}
+
+.xl85 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: none;
+ border-right: none;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+}
+
+.xl86 {
+ // mso-style-parent: style0;
+ text-align: left;
+ vertical-align: top;
+ border-top: none;
+ border-right: .5pt solid #000;
+ border-bottom: .5pt solid #000;
+ border-left: none;
+}
+
+.xl87 {
+ // mso-style-parent: style0;
+ text-align: left;
+ border-top: .5pt solid #000;
+ border-right: none;
+ border-bottom: none;
+ border-left: .5pt solid #000;
+ white-space: normal;
+}
+
diff --git a/src/views/components/routingInspection.vue b/src/views/components/routingInspection.vue
index 8ad15eb..8ec8dbf 100644
--- a/src/views/components/routingInspection.vue
+++ b/src/views/components/routingInspection.vue
@@ -1,193 +1,1030 @@
-
-
-
- 基本信息
-
-
-
- 单位名称:
- {{ detailForm.deptName }}
-
-
-
-
-
- 巡检任务
-
-
-
- 巡检主要内容:
- {{ detailForm.taskContent }}
-
-
-
- 巡检配置:
-
-
-
-
-
-
-
- {{ scope.row.status == 1 ? '异常' : '正常' }}
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
- 处理情况
-
-
-
- 巡检人员:
- {{ detailForm.servicemanId }}
-
-
-
-
-
- 巡检配置
-
-
-
- 预约上门时间:
- {{ detailForm.appointTime }}
-
-
-
-
-
- 巡检异常清单
-
-
-
- 巡检配置:
-
-
-
-
-
-
-
- {{ scope.row.status == 1 ? '异常' : '正常' }}
-
-
-
-
-
- {{ scope.row.isRepair == 1 ? '是' : '否' }}
-
-
-
-
-
-
-
-
+
+
+
+
+ |
+
+
+ {{ detailForm.deptName }}巡检报告
+ |
+
+
+
+ |
+ 巡检项目名称: {{ detailForm.deptName }} |
+ |
+
+
+ |
+ 项目地址: {{ detailForm.address }} |
+
+
+
+ |
+ 巡检主要内容:{{ detailForm.taskContent }}
+ |
+
+
+ |
+ 巡检人员 |
+ {{
+ detailForm.servicemanName }}
+ |
+ {{ detailForm.startTime }} |
+
+
+ |
+ 序号 |
+ 楼层 |
+ 房间 |
+ 专业名称 |
+ 巡检内容 |
+ 状态 |
+ 现场照片 |
+ 使用人签字 |
+ 备注 |
+
+
+
+ | {{ index + 1 }} |
+ {{ item.floorName }} |
+
+ {{ item.deptName }} |
+ {{
+ item.deviceName }}
+ |
+ {{ item.checkContent }} |
+ {{ item.status == 1 ? '异常' : '正常' }} |
+ |
+ {{ detailForm.signUrl }} |
+ {{ detailForm.remark }} |
+
+
+
\ No newline at end of file
+
diff --git a/src/views/dataManagement/dataManagement.vue b/src/views/dataManagement/dataManagement.vue
index 3b7df85..1edee0c 100644
--- a/src/views/dataManagement/dataManagement.vue
+++ b/src/views/dataManagement/dataManagement.vue
@@ -174,7 +174,7 @@
-
\ No newline at end of file
+
diff --git a/src/views/device/deviceSystem.vue b/src/views/device/deviceSystem.vue
index 322edc8..f42caa6 100644
--- a/src/views/device/deviceSystem.vue
+++ b/src/views/device/deviceSystem.vue
@@ -3,7 +3,7 @@
+ @size-change="sizeChange" @refresh-change="refreshChange" @selection-change="selectionChange">
{{ row.produceTime.substring(0, 10) }}
@@ -57,14 +57,20 @@
查看
编辑
- 需求提报
+
生成二维码
查看二维码
删除
-
-
+
+
+
+ 设备详情
+ 维修维保记录
+
+
+
-
+
是否在保
@@ -197,6 +203,72 @@
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
巡检内容
-
-
+
@@ -289,7 +289,7 @@ export default {
handleSuccess(response, file, fileList) {
if (response.code == 200) {
this.filesList.push({
- url: response.data.link, //附件url
+ url: response.data.link, //附件url
name: response.data.originalName, //附件名称
})
}
@@ -300,7 +300,7 @@ export default {
handledrawSuccess(response, file, fileList) {
if (response.code == 200) {
this.drawfiles.push({
- url: response.data.link, //附件url
+ url: response.data.link, //附件url
name: response.data.originalName, //附件名称
})
}
@@ -634,4 +634,4 @@ export default {
}
-
\ No newline at end of file
+
diff --git a/src/views/labManagement/inspectionManagement.vue b/src/views/labManagement/inspectionManagement.vue
index 247d1ee..7aa01eb 100644
--- a/src/views/labManagement/inspectionManagement.vue
+++ b/src/views/labManagement/inspectionManagement.vue
@@ -208,7 +208,7 @@ export default {
overHidden: true,
},
{
- label: "巡检标题",
+ label: "巡检内容",
labelWidth: 120,
prop: "planContent",
overHidden: true,
@@ -578,4 +578,4 @@ export default {
.box .el-scrollbar__wrap {
overflow: scroll;
}
-
\ No newline at end of file
+
diff --git a/src/views/largeScreen/supervisory.vue b/src/views/largeScreen/supervisory.vue
new file mode 100644
index 0000000..0581c7d
--- /dev/null
+++ b/src/views/largeScreen/supervisory.vue
@@ -0,0 +1,1462 @@
+
+
+
+
+
+
+
+ 点击上传
+
+
![]()
+

+
+
+
+
+
+
+
+
每月维修数量
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/operation/hand.vue b/src/views/operation/hand.vue
index 696007c..886cf12 100644
--- a/src/views/operation/hand.vue
+++ b/src/views/operation/hand.vue
@@ -35,7 +35,8 @@
: ""
}}
-->
- {{ getStatus('maintain', role_id, row.status).name
+ {{ getStatus('maintain', role_id,
+ row.status).name
}}
@@ -74,6 +75,7 @@
需求提报
+ 批量导出报告
@@ -82,8 +84,13 @@
编辑
提交
确认
- 评价
- 导出
+ 评价
+
+ 确认
+ 日志
+ 报告
@@ -294,7 +301,7 @@
-
+
-
+
+ v-show="((rowStatus == 403 || rowStatus == 406 || isEvalute) && detailForm.approveResult1 == 1) || rowStatus == 104 || rowStatus == 203 || rowStatus == 202">
确定
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
- 2024-12-13 16:40:46
-
-
-
-
- -
-
-
-
-
-
-
- 2024-12-13 16:38:46
-
-
-
-
- -
-
-
-
-
-
-
- 2024-12-13 16:38:46
-
-
-
-
- -
-
-
-
-
-
-
- 2024-12-13 16:39:43
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -559,23 +482,26 @@ import moment from "moment";
import { dateFormat } from "../../util/date";
import requestSub from '../components/requestSub.vue'
import requirement from '../components/requirement.vue'
-import { servicePage,getList, getDetail, evaluateSign, addFile, saveData, customerConfirm, customerReject, customerRepairConfirm, customerRepairReject, serviceInvoice,getAllUser } from '@/api/operation/hand'
+import { servicePage, getList, getDetail, evaluateSign, addFile, saveData, customerConfirm, customerReject, customerRepairConfirm, customerRepairReject, serviceInvoice, getAllUser, urgentRepairConfirm, urgentRepairReject } from '@/api/operation/hand'
import { getDeviceList } from '@/api/device/device'
import { getChildList } from '@/api/system/dictbiz'
import statusData from "@/assets/json/status.json"; // 引入状态数据
+import logDialog from '../../components/order/logDialog.vue'
import { color } from "echarts";
+import { exportBlob, exportBlob1 } from "@/api/common";
+import { downloadXls } from "@/util/util";
let action = "https://api.avuejs.com/imgupload";
export default {
components: {
requestSub,
requirement,
- vueEasyPrint
+ vueEasyPrint,
+ logDialog
},
// directives: { print },
data() {
return {
- infoDialog: false,
searchForm: {
timeRange: []
},
@@ -636,7 +562,7 @@ export default {
labelWidth: 120,
prop: "requirementCode",
overHidden: true,
- search:true
+ search: true
},
{
label: "设备名称",
@@ -838,7 +764,10 @@ export default {
isFinish: '',
role_id: '',
isClear: false,
- htmlTitle: '需求单报告'
+ htmlTitle: '运维服务单',
+ logOrderId: '',//获取id
+ infoDialog: false,
+ pdfDomShow: false
};
},
@@ -861,14 +790,13 @@ export default {
val = item
}
})
- return val
+ return val ? val : ''
}
}
},
},
created() {
- console.log('userInfo--------->', this.userInfo)
- console.log('route---------->',this.$route)
+
this.searchForm.requirementCode = this.$route.query.requirementCode
this.role_id = this.userInfo.role_id
// 获取设备列表
@@ -878,12 +806,33 @@ export default {
// 获取故障类型
getChildList(1, 100, '1846802246527463425').then(res => {
this.typeList = res.data.data
- console.log('typeList------->', this.typeList)
})
// this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
},
mounted() { },
methods: {
+ // 批量导出报告
+ allExportReport() {
+ if (this.selectionList.length == 0) {
+ this.$message.warning('请至少选择一条数据')
+ } else {
+ let tmp = this.selectionList.filter(item => { return (item.status == 202 || item.status == 203 || item.status == 204) })
+ if (tmp.length != this.selectionList.length) {
+ this.$message.warning('请选择状态为已完成的数据')
+ } else {
+ console.log('批量导出报告', this.selectionList)
+ }
+ }
+ },
+ // 打开流程弹框
+ viewLog(row) {
+ this.infoDialog = true
+ this.logOrderId = row.requirementCode
+ },
+ // 查看流程 关闭
+ closeLog() {
+ this.infoDialog = false
+ },
// 点击签名
clickAssign() {
this.assignVisible = true
@@ -895,7 +844,7 @@ export default {
// 客户选择是否维修完成
changeResult(val) {
this.isFinish = val
- if(val == 0){
+ if (val == 0) {
this.detailForm.approveRemark = ''
}
console.log(this.isFinish)
@@ -1101,12 +1050,18 @@ export default {
})
},
handleExport(row) {
- getDetail({ id: row.id }).then(res => {
- this.requireForm = res.data.data
- setTimeout(() => {
- this.getPdf()
- }, 100)
+ // /report-service
+ let query = JSON.parse(JSON.stringify(row))
+ exportBlob1(`/api/lab-ops/work-order/report-service`, query).then(res => {
+ downloadXls(res.data, "运维服务单.xlsx");
})
+ // this.pdfDomShow = true
+ // getDetail({ id: row.id }).then(res => {
+ // this.requireForm = JSON.parse(JSON.stringify(res.data.data))
+ // setTimeout(() => {
+ // this.getPdf()
+ // }, 100)
+ // })
},
// 评价并签字提交
handleConfirm() {
@@ -1257,17 +1212,17 @@ export default {
faultLocation: this.searchForm.faultLocation ? this.searchForm.faultLocation : '', //设备位置
faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型
dataType: 1,
- requirementCode:this.searchForm.requirementCode
+ requirementCode: this.searchForm.requirementCode
}
console.log('query--------->', query)
- if(this.role_id == '1839536982874193922'){
- servicePage(query).then(res =>{
+ if (this.role_id == '1839536982874193922') {
+ servicePage(query).then(res => {
console.log('res------------->', res.data.data)
this.data = res.data.data.records
this.page.total = res.data.data.total
this.loading = false
})
- }else{
+ } else {
getList(query).then(res => {
console.log('res------------->', res.data.data)
this.data = res.data.data.records
@@ -1275,7 +1230,37 @@ export default {
this.loading = false
})
}
-
+
+ },
+ urgentRepair(row) {
+ let query = {
+ id: row.id,
+ repairType: row.repairType
+ }
+ this.$confirm('请确认当前工单是否维修完成?', '提示', {
+ confirmButtonText: '是',
+ cancelButtonText: '否',
+ type: 'warning'
+ }).then(() => {
+ console.log('是')
+
+ urgentRepairConfirm(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('操作成功')
+ this.onLoad()
+ }
+ })
+
+ }).catch(() => {
+
+
+ urgentRepairReject(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('操作成功')
+ this.onLoad()
+ }
+ })
+ })
},
},
};
diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue
index 1826ad1..cd6f8dd 100644
--- a/src/views/workbench/index.vue
+++ b/src/views/workbench/index.vue
@@ -2,7 +2,7 @@
+ v-show="role_id == '1123598816738675200' || role_id == '1123598816738675201' || role_id == '1846486905193041922'|| role_id == '1846419477876510721'">
账号审核中...
@@ -28,18 +28,18 @@
{{ item.num }}
-
+
-
@@ -116,7 +116,7 @@
-
+
+
+
+
+
+
@@ -406,7 +411,8 @@ export default {
rateData: [],
peopleXdata:[],
peopleNum:[],
- peoplePercent:[]
+ peoplePercent:[],
+ dialogImgVisible:false,//图片预览
}
},
computed: {
@@ -426,11 +432,10 @@ export default {
},
},
mounted() {
- console.log('userInfo=============>',this.userInfo)
this.isShowMask = this.userInfo.detail.status == 1 ? false : true
this.role_id = this.userInfo.role_id
- if (this.role_id == '1123598816738675200' || this.role_id == '1123598816738675201' || this.role_id == '1846419477876510721') {
+ if (this.role_id == '1123598816738675200' || this.role_id == '1123598816738675201' || this.role_id =='1846486905193041922'|| this.role_id == '1846419477876510721') {
// 实验室角色
nextTick(() => {
if(!this.isShowMask){
@@ -482,6 +487,11 @@ export default {
}
},
methods: {
+ // 报警图片预览
+ alarmFn(){
+ console.log(44444444444)
+ this.dialogImgVisible = true
+ },
getPeopleNum(){
maintenancePersonnel({id:this.userInfo.user_id}).then(res =>{
console.log('res ==============>',res)
@@ -498,7 +508,7 @@ export default {
this.$router.push({
path:'/operation/hand',
query:item
- })
+ })
},
getRequirement(){
getList({
@@ -650,6 +660,9 @@ export default {
}
},
+ toPage(){
+ this.$router.push("/wel/supervisory")
+ },
createBarEcharts() {
var myChart = this.$echarts.init(document.getElementById('bar_echart'));
var option = {
@@ -1016,9 +1029,9 @@ export default {
display: flex;
align-items: center;
justify-content: center;
-
+
// flex-direction: column;
-
+
.item_top {
width: 100%;
@@ -1035,7 +1048,7 @@ export default {
background: linear-gradient( 90deg, #375DF9 0%, #6DB5FF 100%);
box-shadow: 0px 5px 5px 0px #B6D8FF;
-
+
.right_item{
display: flex;
@@ -1089,7 +1102,7 @@ export default {
background: linear-gradient( 90deg, #F3AC56 0%, #FFCA68 100%);
box-shadow: 0px 10px 10px 0px #FEEED0;
}
-
+
}
}
}
@@ -1203,7 +1216,7 @@ export default {
background: #FFFFFF;
border-radius: 10px;
border: 1px solid #EBEEF5;
-
+
.left_tit {
font-weight: 550;