|
@@ -68,23 +68,23 @@
|
|
</view> -->
|
|
</view> -->
|
|
<view class="resu uni-row">
|
|
<view class="resu uni-row">
|
|
<view class="label">检查结果</view>
|
|
<view class="label">检查结果</view>
|
|
- <input v-if="editable()" v-model="item.checkResult" placeholder="请输入检查结果" maxlength="50" />
|
|
|
|
- <view v-else class="value">{{ item.checkResult }}</view>
|
|
|
|
|
|
+ <input :disabled="!editable()" v-model="item.checkResult" placeholder="请输入检查结果" maxlength="50" />
|
|
|
|
+ <!-- <view v-else class="value">{{ item.checkResult }}</view> -->
|
|
</view>
|
|
</view>
|
|
<view class="resu uni-row">
|
|
<view class="resu uni-row">
|
|
<view class="label">超差范围</view>
|
|
<view class="label">超差范围</view>
|
|
- <input v-if="editable()" v-model="item.exceedLimits" placeholder="请输入超差范围" maxlength="50" />
|
|
|
|
- <view v-else class="value">{{ item.exceedLimits }}</view>
|
|
|
|
|
|
+ <input :disabled="!editable()" v-model="item.exceedLimits" placeholder="请输入超差范围" maxlength="50" />
|
|
|
|
+ <!-- <view v-else class="value">{{ item.exceedLimits }}</view> -->
|
|
</view>
|
|
</view>
|
|
<view class="resu uni-row">
|
|
<view class="resu uni-row">
|
|
<view :class="!editable() ? 'label' : ''">检查量</view>
|
|
<view :class="!editable() ? 'label' : ''">检查量</view>
|
|
- <input v-if="editable()" class="number" type="number" @blur="rejectNumberChange"
|
|
|
|
|
|
+ <input :disabled="!editable()" class="number" type="number" @blur="rejectNumberChange"
|
|
v-model="item.examiningNum" placeholder="" />
|
|
v-model="item.examiningNum" placeholder="" />
|
|
- <view v-else class="number value">{{ item.examiningNum }}</view>
|
|
|
|
|
|
+ <!-- <view v-else class="number value">{{ item.examiningNum }}</view> -->
|
|
<view :class="!editable() ? 'label' : ''">不良品量</view>
|
|
<view :class="!editable() ? 'label' : ''">不良品量</view>
|
|
- <input v-if="editable()" class="number" type="number" @blur="rejectNumberChange"
|
|
|
|
|
|
+ <input :disabled="!editable()" class="number" type="number" @blur="rejectNumberChange"
|
|
v-model="item.disqualificationNum" placeholder="" />
|
|
v-model="item.disqualificationNum" placeholder="" />
|
|
- <view v-else class="value">{{ item.disqualificationNum }}</view>
|
|
|
|
|
|
+ <!-- <view v-else class="value">{{ item.disqualificationNum }}</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -115,23 +115,25 @@
|
|
<view class="daywork-container">
|
|
<view class="daywork-container">
|
|
<view class="result uni-row">
|
|
<view class="result uni-row">
|
|
<view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">交检状态</view>
|
|
<view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">交检状态</view>
|
|
- <uni-data-checkbox style="margin-top: 20rpx;" v-model="processInspecion.status"
|
|
|
|
|
|
+ <uni-data-checkbox :disabled="!editable()" style="margin-top: 20rpx;" v-model="processInspecion.status"
|
|
:localdata="range"></uni-data-checkbox>
|
|
:localdata="range"></uni-data-checkbox>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if="editable()">
|
|
<view v-if="showTransfer" class="list-title uni-row" style="margin-top: 16rpx;">
|
|
<view v-if="showTransfer" class="list-title uni-row" style="margin-top: 16rpx;">
|
|
<text class="label">是否移交仪器室</text><text> 否</text>
|
|
<text class="label">是否移交仪器室</text><text> 否</text>
|
|
- <switch class="switch" @change="switchChange" style="transform:scale(0.7)" color="rgba(255,85,85,1)" />
|
|
|
|
|
|
+ <switch class="switch" @change="switchChange" style="transform:scale(0.7);margin-top: -16rpx;" color="rgba(255,85,85,1)" />
|
|
<text>是</text>
|
|
<text>是</text>
|
|
</view>
|
|
</view>
|
|
<view v-else class="list-title uni-row" style="margin-top: 16rpx;">
|
|
<view v-else class="list-title uni-row" style="margin-top: 16rpx;">
|
|
<text class="label">已经移交给仪器室</text>
|
|
<text class="label">已经移交给仪器室</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
<view class="remark uni-row">
|
|
<view class="remark uni-row">
|
|
<view class="label">备注</view>
|
|
<view class="label">备注</view>
|
|
- <textarea v-model="processInspecion.remark" />
|
|
|
|
|
|
+ <textarea :disabled="!editable()" v-model="processInspecion.remark" />
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="btns-container uni-row">
|
|
|
|
|
|
+ <view v-if="editable()" class="btns-container uni-row">
|
|
<view class="finished-btn" @click="endWork">提交</view>
|
|
<view class="finished-btn" @click="endWork">提交</view>
|
|
<view class="question-btn uni-column" @click.stop="handleAddConsultation">
|
|
<view class="question-btn uni-column" @click.stop="handleAddConsultation">
|
|
<uni-icons type="headphones" size="24" />
|
|
<uni-icons type="headphones" size="24" />
|
|
@@ -253,6 +255,7 @@
|
|
selectInspecion(processInspecion.value).then(res => {
|
|
selectInspecion(processInspecion.value).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
processInspecion.value = res.data;
|
|
processInspecion.value = res.data;
|
|
|
|
+ processInspecion.value.flag = false
|
|
unfitInfos.value = res.data.processInspectionDetails;
|
|
unfitInfos.value = res.data.processInspectionDetails;
|
|
initStatus.value = res.data.status
|
|
initStatus.value = res.data.status
|
|
consultations.value = res.data.dayworkItemConsults;
|
|
consultations.value = res.data.dayworkItemConsults;
|
|
@@ -319,6 +322,13 @@
|
|
url: navigateUrl
|
|
url: navigateUrl
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ function switchChange(event) {
|
|
|
|
+ if (event.detail.value) {
|
|
|
|
+ processInspecion.value.flag = true
|
|
|
|
+ } else {
|
|
|
|
+ processInspecion.value.flag = false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
const rejectNumberChange = () => {
|
|
const rejectNumberChange = () => {
|
|
let sumDisqualificationNum = 0
|
|
let sumDisqualificationNum = 0
|
|
@@ -363,14 +373,6 @@
|
|
function endWork() {
|
|
function endWork() {
|
|
let unf = unfitInfos.value;
|
|
let unf = unfitInfos.value;
|
|
for (var i = 0; i < unfitInfos.value.length; i++) {
|
|
for (var i = 0; i < unfitInfos.value.length; i++) {
|
|
- if (!unf[i].checkResult) {
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: unf[i].checkStandard+ "检查结果不能为空",
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
|
|
if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
|
|
if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -425,7 +427,11 @@
|
|
processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
|
|
processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
|
|
processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
|
|
processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
|
|
console.log(processInspecion.value)
|
|
console.log(processInspecion.value)
|
|
-
|
|
|
|
|
|
+ if(processInspecion.value.flag) {
|
|
|
|
+ //打开选择仪器室的弹窗
|
|
|
|
+ selectInspectionChamber.value.open()
|
|
|
|
+ console.log(processInspecion.value)
|
|
|
|
+ }else{
|
|
saveDeliveryInspecion(processInspecion.value).then(res => {
|
|
saveDeliveryInspecion(processInspecion.value).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
let index = 0;
|
|
let index = 0;
|
|
@@ -449,6 +455,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -743,6 +750,10 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .switch {
|
|
|
|
+ margin-top: -8rpx;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
|
|
.remark {
|
|
.remark {
|
|
margin-top: 24rpx;
|
|
margin-top: 24rpx;
|