<template>
|
<u-modal
|
v-model="show"
|
ref="uModal"
|
title=""
|
:show-cancel-button="true"
|
@confirm="confirm"
|
@cancel="cancel"
|
:async-close="true"
|
>
|
<view class="packing-registration-param">
|
<scroll-view scroll-y="true" style="height: 100%">
|
<view class="packing-registration-param-view">
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">长度</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.overallLength" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">库位</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input
|
class="item-one item-two"
|
v-model="form.proposedLocation"
|
disabled
|
/>
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">盘号</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.reelNumber" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">毛重</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.grossWeight" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">净重</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.theoryWeight" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">工序</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.name" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">成品外径测量值</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.outerDiameter" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">退火电压</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.voltage" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">转速</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.speed" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one">外部气压</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.pressure" />
|
</view>
|
</view>
|
<view class="packing-registration-param-item param-extra">
|
<view class="packing-registration-param-item-left">
|
<text class="item-one item-two">生产速度</text>
|
</view>
|
<view class="packing-registration-param-item-right">
|
<u-input class="item-one item-two" v-model="form.productionSpeed" />
|
</view>
|
</view>
|
</view>
|
</scroll-view>
|
</view>
|
</u-modal>
|
</template>
|
|
<script>
|
export default {
|
props: {
|
operationTaskId: {
|
type: Object,
|
required: true,
|
default: () => ({}),
|
},
|
},
|
data() {
|
return {
|
show: false,
|
form: {},
|
};
|
},
|
methods: {
|
confirm() {
|
if (!this.form.outerDiameter) {
|
this.$u.toast("请输入成品外径测量值");
|
this.$refs.uModal.clearLoading(); // 清除加载状态
|
return;
|
}
|
if (!this.form.voltage) {
|
this.$u.toast("请输入退火电压");
|
this.$refs.uModal.clearLoading(); // 清除加载状态
|
return;
|
}
|
if (!this.form.speed) {
|
this.$u.toast("请输入转速");
|
this.$refs.uModal.clearLoading(); // 清除加载状态
|
return;
|
}
|
if (!this.form.pressure) {
|
this.$u.toast("请输入外部气压");
|
this.$refs.uModal.clearLoading(); // 清除加载状态
|
return;
|
}
|
if (!this.form.productionSpeed) {
|
this.$u.toast("请输入生产速度");
|
this.$refs.uModal.clearLoading(); // 清除加载状态
|
return;
|
}
|
this.$u.api.workReporting
|
.submitPDA({ ...this.form, operationTaskId: this.operationTaskId.id })
|
.then((res) => {
|
console.log("res", res);
|
this.$emit('update')
|
this.$refs.uModal.cancel();
|
});
|
},
|
cancel() {
|
this.show = false;
|
this.form = {};
|
},
|
open(val) {
|
console.log('11daidecanshuskk',val)
|
this.show = true;
|
this.form = val;
|
},
|
},
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
::v-deep .u-model__title {
|
padding-top: 0 !important;
|
}
|
|
::v-deep .u-input__input {
|
text-align: right !important;
|
}
|
.packing-registration-param {
|
padding: 40rpx 30rpx 10rpx 30rpx;
|
height: 350px;
|
overflow: hidden;
|
|
.packing-registration-param-title {
|
display: flex;
|
flex-direction: row;
|
align-items: center;
|
margin-bottom: 30rpx;
|
|
.title-label {
|
margin-left: 14rpx;
|
font-size: 34rpx;
|
font-weight: bold;
|
color: #283e65;
|
}
|
}
|
|
.packing-registration-param-view {
|
height: 177rpx;
|
background-color: #fff;
|
border-radius: 10rpx;
|
padding: 0rpx 23rpx;
|
margin-bottom: 30rpx;
|
|
.packing-registration-param-item {
|
height: 90rpx;
|
border: 1px solid #adc8e4;
|
line-height: 90rpx;
|
display: flex;
|
justify-content: space-between;
|
border: none;
|
|
.packing-registration-param-item-left {
|
.item-one {
|
font-size: 30rpx;
|
color: #666666;
|
}
|
}
|
|
.packing-registration-param-item-right {
|
display: flex;
|
justify-content: space-between;
|
|
.item-one {
|
font-size: 15rpx;
|
color: #060505;
|
margin-right: 6rpx;
|
}
|
|
.item-two {
|
font-size: 15rpx;
|
color: #a6b4cc;
|
margin-right: 6rpx;
|
}
|
|
.item-three {
|
font-size: 30rpx;
|
color: #214ded;
|
margin-right: 6rpx;
|
}
|
}
|
}
|
|
.param-extra {
|
border-bottom: 1px solid #ededed;
|
}
|
}
|
}
|
</style>
|