add重量维护

This commit is contained in:
蔡玲
2024-09-05 13:09:39 +08:00
parent 9e0e2b208d
commit 383c989e65
5 changed files with 30 additions and 30 deletions

View File

@@ -67,7 +67,7 @@
} }
,{ ,{
"path" : "pages/manage/fill-tray", "path" : "pages/manage/weight-bind",
"style" : "style" :
{ {
"navigationStyle": "custom" "navigationStyle": "custom"

View File

@@ -28,7 +28,7 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th class="th_2">母卷号</th> <th>母卷号</th>
<th>子卷号</th> <th>子卷号</th>
<th>机台编号</th> <th>机台编号</th>
<th>分切组</th> <th>分切组</th>

View File

@@ -5,7 +5,7 @@
<view class="zd_wrapper"> <view class="zd_wrapper">
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
<view class="zd-col-5"> <view class="zd-col-5">
<span class="filter_label">当前点位</span> <span class="filter_label">子卷号</span>
</view> </view>
<view class="zd-col-19"> <view class="zd-col-19">
<search-box <search-box
@@ -13,22 +13,27 @@
/> />
</view> </view>
</view> </view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">管芯重量</span>
</view>
<view class="zd-col-19">
<input v-model="val2" type="number" class="filter_input">
</view>
</view>
<view class="zd-row"> <view class="zd-row">
<view class="zd-col-5"> <view class="zd-col-5">
<span class="filter_label">载具类型</span> <span class="filter_label">子卷重量</span>
</view> </view>
<view class="zd-col-17 filter_picker"> <view class="zd-col-19">
<picker @change="pickerChange" :value="index1" :range="options1" range-key="text"> <input v-model="val3" type="number" class="filter_input">
<view class="uni-input">{{index1 !== '' ? options1[index1].text : ''}}</view>
</picker>
</view> </view>
<uni-icons type="right" size="14" color="#999"></uni-icons>
</view> </view>
</view> </view>
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<button class="zd-col-7 button-default" @tap="clearUp">清空</button> <button class="zd-col-7 button-default" @tap="clearUp">清空</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || index1 === ''}" :disabled="disabled" @tap="_handheldStorehouse">确认</button> <button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_doSubVolumeBindingWeight">绑定重量</button>
</view> </view>
</view> </view>
</template> </template>
@@ -36,7 +41,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {vehicleType, handheldStorehouse} from '@/utils/getData2.js' import {doSubVolumeBindingWeight} from '@/utils/getData2.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -46,8 +51,8 @@
return { return {
title: '', title: '',
val1: '', val1: '',
options1: [], val2: '',
index1: '', val3: '',
disabled: false disabled: false
}; };
}, },
@@ -56,25 +61,14 @@
this._vehicleType() this._vehicleType()
}, },
methods: { methods: {
/** 载具类型下拉框 */ async _doSubVolumeBindingWeight () {
async _vehicleType () {
let res = await vehicleType()
this.options1 = [...res.content]
this.options1.map(el => {
this.$set(el, 'text', el.label)
})
},
pickerChange (e) {
this.index1 = e.detail.value
},
async _handheldStorehouse () {
this.disabled = true this.disabled = true
if (!this.val1 || this.index1 === '') { if (!this.val1 || !this.val2 || !this.val3) {
this.disabled1 = false this.disabled = false
return return
} }
try { try {
let res = await handheldStorehouse(this.val1, this.options1[this.index1].value) let res = await doSubVolumeBindingWeight(this.val1, this.val2, this.val3)
this.clearUp() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
@@ -85,8 +79,9 @@
} }
}, },
clearUp () { clearUp () {
this.index1 = ''
this.val1 = '' this.val1 = ''
this.val2 = ''
this.val3 = ''
this.disabled = false this.disabled = false
} }
} }

View File

@@ -91,4 +91,9 @@ export const doBindingGx = (code, row) => request({
export const toCleanCutCacheInventory = (code) => request({ export const toCleanCutCacheInventory = (code) => request({
url:'api/pda/nbj/toCleanCutCacheInventory', url:'api/pda/nbj/toCleanCutCacheInventory',
data: {point_code: code} data: {point_code: code}
})
// 重量维护
export const doSubVolumeBindingWeight = (cn, roll, paper) => request({
url:'api/pda/nbj/doSubVolumeBindingWeight',
data: {container_name: cn, roll_weight: roll, paper_weight: paper}
}) })

View File

@@ -8,7 +8,7 @@ export const authority = () => {
{path: 'RF01', title: '收卷辊库', sonTree: [{title: '收卷辊管理', path: '/pages/manage/roll-manage'}]}, {path: 'RF01', title: '收卷辊库', sonTree: [{title: '收卷辊管理', path: '/pages/manage/roll-manage'}]},
{path: 'RF01', title: '检测取样', sonTree: [{title: '呼叫取样', path: '/pages/manage/call-sampling'}]}, {path: 'RF01', title: '检测取样', sonTree: [{title: '呼叫取样', path: '/pages/manage/call-sampling'}]},
{path: 'RF01', title: '废箔处理', sonTree: [{title: '废箔搬运', path: '/pages/manage/waste-foil-move'}]}, {path: 'RF01', title: '废箔处理', sonTree: [{title: '废箔搬运', path: '/pages/manage/waste-foil-move'}]},
{path: 'RF01', title: '内包间', sonTree: [{title: '管芯入库', path: '/pages/manage/tube-core-storage'}, {title: '管芯出库', path: '/pages/manage/tube-core-out'}, {title: '套轴绑定', path: '/pages/manage/axis-bind'}]} {path: 'RF01', title: '内包间', sonTree: [{title: '管芯入库', path: '/pages/manage/tube-core-storage'}, {title: '管芯出库', path: '/pages/manage/tube-core-out'}, {title: '套轴绑定', path: '/pages/manage/axis-bind'}, {title: '重量维护', path: '/pages/manage/weight-bind'}]}
] ]
} }
}} }}