Commit 14163a6f by HuAnYing

8/14

parents 13f46f5f c772a0cb
...@@ -65,6 +65,20 @@ export function PendingWorkOrder(data) { ...@@ -65,6 +65,20 @@ export function PendingWorkOrder(data) {
data, data,
) )
} }
export function ShelveWorkOrder(data) {
return axios.post(
'platform/platformWorkOrder/shelveForPending',
data,
)
}
export function TurnBackToPending(data) {
return axios.post(
'platform/platformWorkOrder/turnBackToPending',
data,
)
}
export function replyTocustomer(id, msg) { export function replyTocustomer(id, msg) {
return axios.post('platform/platformWorkOrderChat/add', { return axios.post('platform/platformWorkOrderChat/add', {
msg: msg, msg: msg,
......
<template>
<i
v-if="unicodeIcon"
class="erpIconfont erp unicode-icon"
v-html="unicodeIcon"
></i>
<svg v-else class="svg-icon erp" aria-hidden="true">
<slot name="title"></slot>
<use :xlink:href="svgIcon"></use>
</svg>
</template>
<script>
export default {
name: 'Icon',
props: {
name: {
type: String,
required: true,
},
},
computed: {
unicodeIcon() {
if (this.name.match(/^x[a-f0-9]{4}$/)) {
return `&#${this.name};`
}
return undefined
},
svgIcon() {
if (this.unicodeIcon) return undefined
return `#erp-${this.name}`
},
},
}
</script>
<style>
.unicode-icon {
width: 1em;
height: 1em;
color: inherit;
}
.svg-icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
\ No newline at end of file
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
children: [] children: []
}, },
] ]
} },
], ],
dialogVisible: false, dialogVisible: false,
oldPwd: '', oldPwd: '',
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
<el-form-item> <el-form-item>
<el-button type="danger" @click="deleteSection()">删除</el-button> <el-button type="danger" @click="deleteSection()">删除</el-button>
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0px">
<el-button type="primary" @click="importExcel">导入</el-button>
</el-form-item>
</el-form> </el-form>
<div class="table_wrap"> <div class="table_wrap">
<my-table <my-table
...@@ -368,6 +371,22 @@ export default { ...@@ -368,6 +371,22 @@ export default {
}, },
methods: { methods: {
importExcel() {
const input = document.createElement('input')
input.style.display = 'none'
input.type = 'file'
input.click()
input.onchange = async () => {
const form = new FormData()
form.append('importExcel', input.files.length > 0 ? input.files[0] : [])
const res = await axios.post('baseProperty/importBaseProperty', form)
console.log(res)
if (res.code === 200) {
this.$message.success('导入成功')
this.getList()
}
}
},
async changeDisableStatus(v, item) { async changeDisableStatus(v, item) {
try { try {
await this.$confirm( await this.$confirm(
......
...@@ -465,6 +465,20 @@ ...@@ -465,6 +465,20 @@
@click="closeForPendingDialog" @click="closeForPendingDialog"
>不受理 >不受理
</el-button> </el-button>
<el-button
size="mini"
type="danger"
v-if="statusCode === 'PRE_HANDLING'"
@click="shelveForPendingDialog"
>转至待定
</el-button>
<el-button
size="mini"
type="danger"
v-if="statusCode === 'PENDING'"
@click="turnBackToPending"
>转至待受理
</el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -743,7 +757,7 @@ ...@@ -743,7 +757,7 @@
</el-dialog> </el-dialog>
<!-- 不受理 --> <!-- 不受理 -->
<el-dialog <el-dialog
title="不受理" :title="pendingTitle"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="pendingVisible" :visible.sync="pendingVisible"
width="800px" width="800px"
...@@ -810,6 +824,8 @@ import { ...@@ -810,6 +824,8 @@ import {
replyTocustomer, replyTocustomer,
acceptanWorkOrder, acceptanWorkOrder,
PendingWorkOrder, PendingWorkOrder,
ShelveWorkOrder,
TurnBackToPending,
getOrderType, getOrderType,
resume, resume,
pause, pause,
...@@ -1004,6 +1020,8 @@ export default { ...@@ -1004,6 +1020,8 @@ export default {
imgPreviewUrl: '', imgPreviewUrl: '',
subscript: 0, subscript: 0,
imgList: [], imgList: [],
pendingTitle: '',
pendingBtn: 0
} }
}, },
mounted() { mounted() {
...@@ -1612,26 +1630,76 @@ export default { ...@@ -1612,26 +1630,76 @@ export default {
this.currentItem = item this.currentItem = item
}, },
closeForPendingDialog() { closeForPendingDialog() {
this.pendingTitle = '不受理'
this.pendingBtn = 7
this.pendingVisible = true this.pendingVisible = true
if (this.$refs.pendingForm) { if (this.$refs.pendingForm) {
this.$refs.pendingForm.resetFields() this.$refs.pendingForm.resetFields()
} }
}, },
shelveForPendingDialog() {
this.pendingTitle = '转至待定'
this.pendingBtn = 9
this.pendingVisible = true
if (this.$refs.pendingForm) {
this.$refs.pendingForm.resetFields()
}
},
turnBackToPending() {
this.pendingBtn = 1
TurnBackToPending({
id: this.detail.id,
...this.pendingForm,
}).then(res => {
if (res.code === 200) {
this.pendingVisible = false
this.detailVisible = false
this.getOrderTree()
this.getlist()
}
})
},
submitPending() { submitPending() {
this.$refs.pendingForm.validate(v => { this.$refs.pendingForm.validate(v => {
if (v) { if (v) {
try { try {
PendingWorkOrder({ if (this.pendingBtn === 9) {
id: this.detail.id, ShelveWorkOrder({
...this.pendingForm, id: this.detail.id,
}).then(res => { ...this.pendingForm,
if (res.code === 200) { }).then(res => {
this.pendingVisible = false if (res.code === 200) {
this.detailVisible = false this.pendingVisible = false
this.getOrderTree() this.detailVisible = false
this.getlist() this.getOrderTree()
} this.getlist()
}) }
})
} else if (this.pendingBtn === 1) {
TurnBackToPending({
id: this.detail.id,
...this.pendingForm,
}).then(res => {
if (res.code === 200) {
this.pendingVisible = false
this.detailVisible = false
this.getOrderTree()
this.getlist()
}
})
} else {
PendingWorkOrder({
id: this.detail.id,
...this.pendingForm,
}).then(res => {
if (res.code === 200) {
this.pendingVisible = false
this.detailVisible = false
this.getOrderTree()
this.getlist()
}
})
}
} catch (error) {} } catch (error) {}
} }
}) })
......
...@@ -9,9 +9,7 @@ module.exports = defineConfig({ ...@@ -9,9 +9,7 @@ module.exports = defineConfig({
target: 'http://10.168.31.142:8070', target: 'http://10.168.31.142:8070',
changeOrigin: true changeOrigin: true
// 路径重写规则,这里将 /api 开头的请求路径替换为空字符串,即去掉 /api 前缀 // 路径重写规则,这里将 /api 开头的请求路径替换为空字符串,即去掉 /api 前缀
} }
} }
} }
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment