改回来104

This commit is contained in:
蔡玲
2025-01-03 11:25:55 +08:00
parent bac78b2d60
commit 87ae089be9
3 changed files with 11 additions and 35 deletions

View File

@@ -2,8 +2,8 @@
"name" : "龙电宁鑫",
"appid" : "__UNI__759339F",
"description" : "龙电宁鑫手持系统",
"versionName" : "1.0.3",
"versionCode" : 103,
"versionName" : "1.0.4",
"versionCode" : 104,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -11,28 +11,8 @@
<zxz-uni-data-select v-model="index" :localdata="options" @change="selectChange"></zxz-uni-data-select>
</view>
</view>
<view class="zd-row">
<view class="zd-col-7">
<span class="filter_label">上轴子卷号</span>
</view>
<view class="zd-col-17">
<search-box
v-model="val1"
/>
</view>
</view>
<view class="zd-row">
<view class="zd-col-7">
<span class="filter_label">下轴子卷号</span>
</view>
<view class="zd-col-17">
<search-box
v-model="val2"
/>
</view>
</view>
</view>
<!-- <view class="zd_wrapper">
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">上轴子卷号</span>
@@ -51,11 +31,11 @@
</view>
<view class="zd-col-17 filter_msg">{{obj.msg}}</view>
</view>
</view> -->
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !index || !val1 || !val2}" :disabled="disabled" @tap="_slitterDown">确认下卷</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !index}" :disabled="disabled" @tap="_slitterDown">确认下卷</button>
</view>
</view>
</template>
@@ -74,8 +54,6 @@
title: '',
options: [],
index: '',
val1: '',
val2: '',
obj: {up: '-', down: '-', msg: '-'},
disabled: false
};
@@ -90,7 +68,7 @@
this.options = [...res]
},
selectChange (e) {
// this._querySlitterDeviceSubVolumeInfos(e)
this._querySlitterDeviceSubVolumeInfos(e)
},
async _querySlitterDeviceSubVolumeInfos (e) {
try {
@@ -102,19 +80,17 @@
},
clearUp () {
this.index = ''
this.val1 = ''
this.val2 = ''
// this.obj = {up: '-', down: '-', msg: '-'}
this.obj = {up: '-', down: '-', msg: '-'}
this.disabled = false
},
async _slitterDown () {
this.disabled = true
if (!this.index || !this.val1 || !this.val2) {
if (!this.index) {
this.disabled = false
return
}
try {
let res = await slitterDown(this.index, this.val1, this.val2)
let res = await slitterDown(this.index)
this.clearUp()
uni.showToast({
title: res.message,

View File

@@ -140,9 +140,9 @@ export const querySlitterDeviceSubVolumeInfos = (code) => request({
url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos',
data: {point_code: code}
})
export const slitterDown = (code, cn1, cn2) => request({
export const slitterDown = (code) => request({
url:'api/pda/slitter/slitterDown',
data: {point_code: code, container1: cn1, container2: cn2}
data: {point_code: code}
})
// 子卷绑定
export const devicePointQuery = (code) => request({