修改料盅重量
This commit is contained in:
@@ -204,3 +204,21 @@ export const loamCompareDoCheck = (pcode, code) => post('api/pda/manual/loamComp
|
|||||||
point_code: pcode,
|
point_code: pcode,
|
||||||
vehicle_code: code
|
vehicle_code: code
|
||||||
})
|
})
|
||||||
|
/**
|
||||||
|
* 修改料盅重量/数量
|
||||||
|
*/
|
||||||
|
export const updateInfo = (code) => post('api/pda/manual/updateInfo/getInfo', {
|
||||||
|
vehicle_code: code,
|
||||||
|
vehicle_type: '1'
|
||||||
|
})
|
||||||
|
export const updateWeight = (code, weight) => post('api/pda/manual/updateInfo/updateWeight', {
|
||||||
|
vehicle_code: code,
|
||||||
|
vehicle_type: '1',
|
||||||
|
current_weight: weight
|
||||||
|
})
|
||||||
|
export const updateQty = (code, qty, weight) => post('api/pda/manual/updateInfo/updateQty', {
|
||||||
|
vehicle_code: code,
|
||||||
|
vehicle_type: '1',
|
||||||
|
current_qty: qty,
|
||||||
|
current_weight: weight
|
||||||
|
})
|
||||||
|
|||||||
@@ -158,3 +158,11 @@ export const loamCompareDoCheck = () => {
|
|||||||
let res = {code: '1', desc: 'ok'}
|
let res = {code: '1', desc: 'ok'}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
export const updateInfo = () => {
|
||||||
|
let res = {"result":{"qty":"0","weight":"3002","material_brick_type":"镁碳砖","material_code":"GBMCZ3039M423166GM016ZX25-30","single_weight":"11.18"},"code":"1","desc":"操作成功!"}
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
export const updateWeight = () => {
|
||||||
|
let res = {code: '1', desc: 'ok'}
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
|||||||
101
src/pages/manual/UpdateWeight.vue
Normal file
101
src/pages/manual/UpdateWeight.vue
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<template>
|
||||||
|
<section>
|
||||||
|
<nav-bar title="修改料盅重量"></nav-bar>
|
||||||
|
<section class="content mgt86 mgb110">
|
||||||
|
<div class="filter-wraper">
|
||||||
|
<search-box
|
||||||
|
label="载具"
|
||||||
|
v-model="val1"
|
||||||
|
:seaShow="false"
|
||||||
|
></search-box>
|
||||||
|
<div class="bottom-filter-tip filter-disabled">
|
||||||
|
<div class="filter-label">泥料名称</div>
|
||||||
|
<div class="fxcol mgl20">
|
||||||
|
<input type="text" class="filter-input filter-scan-input" v-model="result.material_code" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bottom-filter-tip filter-disabled">
|
||||||
|
<div class="filter-label">泥料重量</div>
|
||||||
|
<div class="fxcol mgl20">
|
||||||
|
<input type="number" class="filter-input filter-scan-input" v-model="result.weight" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bottom-filter-tip">
|
||||||
|
<div class="filter-label">修改重量</div>
|
||||||
|
<div class="fxcol mgl20">
|
||||||
|
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="submit-bar">
|
||||||
|
<button class="btn submit-button" @click="clearUp">清空</button>
|
||||||
|
<button class="btn submit-button" @click="_updateInfo">查询</button>
|
||||||
|
<button class="btn submit-button" :class="{'btn-disabled' : !val1 || !val2}" @click="toSure">确认</button>
|
||||||
|
</section>
|
||||||
|
<modal :mdShow="show" @closeModalCallback="show = false" @comfirmCallback="comfirmCallback">
|
||||||
|
<div class="msg_txt">是否确认修改物料名称[{{result.material_code}}],规格[{{result.material_brick_type}}],原重量[{{result.weight}}],修改为[{{val2}}]?</div>
|
||||||
|
</modal>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@components/NavBar.vue'
|
||||||
|
import SearchBox from '@components/SearchBox.vue'
|
||||||
|
import Modal from '@components/Modal.vue'
|
||||||
|
import {updateInfo, updateWeight} from '@config/getData2'
|
||||||
|
export default {
|
||||||
|
name: 'BindPalletPoint',
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox,
|
||||||
|
Modal
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
result: {},
|
||||||
|
show: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _updateInfo () {
|
||||||
|
let res = await updateInfo(this.val1)
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.result = res.result
|
||||||
|
} else {
|
||||||
|
this.Dialog(res.desc)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.result = {}
|
||||||
|
},
|
||||||
|
toSure () {
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.show = true
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
comfirmCallback () {
|
||||||
|
this._updateWeight()
|
||||||
|
},
|
||||||
|
async _updateWeight () {
|
||||||
|
try {
|
||||||
|
let res = await updateWeight(this.val1, this.val2)
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.toast(res.desc)
|
||||||
|
} else {
|
||||||
|
this.Dialog(res.desc)
|
||||||
|
}
|
||||||
|
this.show = false
|
||||||
|
} catch (e) {
|
||||||
|
this.show = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -422,10 +422,11 @@ header
|
|||||||
background-color #fff
|
background-color #fff
|
||||||
// box-sizing border-box
|
// box-sizing border-box
|
||||||
&:disabled
|
&:disabled
|
||||||
color #929292
|
color #c0c4cc
|
||||||
background-color #f5f7fa
|
background-color #f5f7fa
|
||||||
border .02rem solid #e4e7ed
|
|
||||||
cursor not-allowed
|
cursor not-allowed
|
||||||
|
.filter-disabled
|
||||||
|
background-color #f5f7fa
|
||||||
.bottom-input
|
.bottom-input
|
||||||
width 100%
|
width 100%
|
||||||
_font(.28rem,.6rem,#929292,,center)
|
_font(.28rem,.6rem,#929292,,center)
|
||||||
@@ -548,6 +549,9 @@ header
|
|||||||
opacity .2
|
opacity .2
|
||||||
background #000
|
background #000
|
||||||
z-index 99
|
z-index 99
|
||||||
|
.msg_txt
|
||||||
|
_font(14px,16px,#606266)
|
||||||
|
margin-bottom 0.3rem
|
||||||
.msg_item
|
.msg_item
|
||||||
height 50px
|
height 50px
|
||||||
line-height 50px
|
line-height 50px
|
||||||
|
|||||||
Reference in New Issue
Block a user