Commit 8a1e9dfc authored by hubaoshan's avatar hubaoshan

wcp

parent 5d974337
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
<script> <script>
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
import { delPd, getDelList, getDelListCount, getDicts, getPdList, getViewList, updatePd } from '@/api/materialInventory' import { delPd, getDelList, getDelListCount, getDicts, getPdList, getViewList, updatePd } from '@/api/materialInventory'
import { playAudio, successAudio } from '@/utils/common'
export default { export default {
name: 'Inventory', name: 'Inventory',
...@@ -375,7 +376,14 @@ export default { ...@@ -375,7 +376,14 @@ export default {
this.valuePd = 'bacc-red' this.valuePd = 'bacc-red'
this.queryForm.value = '' this.queryForm.value = ''
updatePd(obj).then(res => { updatePd(obj).then(res => {
this.valuePd = res.code === 200 ? 'bacc-green' : 'bacc-red' // this.valuePd = res.code === 200 ? 'bacc-green' : 'bacc-red'
if (res.code === 200) {
successAudio(true)
this.valuePd = 'bacc-green'
} else {
playAudio(true)
this.valuePd = 'bacc-red'
}
this.getList() this.getList()
}) })
this.move() this.move()
......
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