|
|
|
@ -51,13 +51,13 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<u-popup v-model="show" mode="center" width="98%">
|
|
|
|
|
<u-popup v-model="show" mode="center" width="98%" :closeable="true">
|
|
|
|
|
<view class="selectlist">
|
|
|
|
|
<view class="item" v-for="(item, index) in detaillistceshi" :key="index">
|
|
|
|
|
<div class="item1">项目名称: {{ item.ruleName }}</div>
|
|
|
|
|
<div class="item1">检查结果: {{ item.itemMethod }}</div>
|
|
|
|
|
<div class="item1 item2" v-if="item.propertyCode == '0'">
|
|
|
|
|
<div>检查标准: {{ item.checkStandard }}</div>
|
|
|
|
|
<div class="item1">检查标准: {{ item.checkStandard }}</div>
|
|
|
|
|
<div class="item1 item2 item3" v-if="item.propertyCode == '0'">
|
|
|
|
|
<div>检查结果:</div>
|
|
|
|
|
<div class="select">
|
|
|
|
|
<u-radio-group v-model="item.status" @change="radioGroupChange(item, item.status, index)">
|
|
|
|
|
<u-radio @change="radioChange" :disabled="item.status == n.type ? false : true" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type">
|
|
|
|
@ -67,13 +67,22 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item1 item2" v-if="item.propertyCode == '1'">
|
|
|
|
|
<div @click="checkimg(item, item.actualValue, index)">检查标准: {{ item.checkStandard }}</div>
|
|
|
|
|
<div class="input-box" id="input-box1">
|
|
|
|
|
实际值:
|
|
|
|
|
<input class="input" :disabled="item.actualValue == null ? true : true" v-model="item.actualValue" @focus="focus(item, item.actualValue, index)" @change="changeinput(item)" @input="input(item)" type="text" name="" id="" />
|
|
|
|
|
单位:mm
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item1 item2 item3" v-if="item.propertyCode == '1'">
|
|
|
|
|
<div>检查结果:</div>
|
|
|
|
|
<div class="select">
|
|
|
|
|
<u-radio-group v-model="item.status" @change="radioGroupChange(item, item.status, index)">
|
|
|
|
|
<u-radio @change="radioChange" :disabled="item.status == n.type ? false : true" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type">
|
|
|
|
|
{{ n.name }}
|
|
|
|
|
</u-radio>
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div v-for="(item1, index1) in item.standardList" :key="index1">
|
|
|
|
|
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
|
|
|
|
|
<div>检查标准: {{ item1.standardName }}</div>
|
|
|
|
@ -96,6 +105,23 @@
|
|
|
|
|
</div> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<u-form class="Belowsform3" ref="form" label-width="230rpx" label-position="left">
|
|
|
|
|
<u-form-item label="抽样数量:">
|
|
|
|
|
<u-input v-model="clickitem.sampleQuality" :disabled="clickitem.sampleQuality == null ? true : true" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item v-if="isshow1" label="不合格数量:">
|
|
|
|
|
<u-input v-model="clickitem.noOkQuality" :disabled="clickitem.noOkQuality == null ? true : true" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item v-if="isshow3" label="A类不良:">
|
|
|
|
|
<u-input v-model="clickitem.aNoOkquality" :disabled="clickitem.aNoOkquality == null ? true : true" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item v-if="isshow3" label="B类不良:">
|
|
|
|
|
<u-input v-model="clickitem.bNoOkquality" :disabled="clickitem.bNoOkquality == null ? true : true" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item v-if="isshow3" label="C类不良:">
|
|
|
|
|
<u-input v-model="clickitem.cNoOkquality" :disabled="clickitem.cNoOkquality == null ? true : true" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-form>
|
|
|
|
|
<div style="text-align: center">
|
|
|
|
|
<u-button style="width: 100%; height: 35px; margin: auto" @click="onOk" size="mini" type="primary">确认</u-button>
|
|
|
|
|
</div>
|
|
|
|
@ -223,8 +249,18 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
nodelist: any = '';
|
|
|
|
|
detaillistceshi: any = [];
|
|
|
|
|
clickitem: any = '';
|
|
|
|
|
formdata: any = {
|
|
|
|
|
sampleQuality: null,
|
|
|
|
|
noOkQuality: null,
|
|
|
|
|
aNoOkquality: null,
|
|
|
|
|
bNoOkquality: null,
|
|
|
|
|
cNoOkquality: null,
|
|
|
|
|
};
|
|
|
|
|
isvalue = false;
|
|
|
|
|
isfocus = false;
|
|
|
|
|
isshow1 = false;
|
|
|
|
|
isshow2 = false;
|
|
|
|
|
isshow3 = false;
|
|
|
|
|
//收货按钮
|
|
|
|
|
tagClick(index) {
|
|
|
|
|
this.tagslist.splice(index, 1);
|
|
|
|
@ -270,6 +306,19 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
async onPass(item) {
|
|
|
|
|
console.log('1234567', item);
|
|
|
|
|
this.clickitem = item;
|
|
|
|
|
let labelname = null;
|
|
|
|
|
this.nodelist.forEach((item) => {
|
|
|
|
|
if (item.orderCode == this.selectList.value) {
|
|
|
|
|
labelname = item.checkName;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (labelname == '来料检验') {
|
|
|
|
|
this.isshow1 = true;
|
|
|
|
|
} else if (labelname == '成品入库检验') {
|
|
|
|
|
this.isshow1 = true;
|
|
|
|
|
} else if (labelname == '过程检验') {
|
|
|
|
|
this.isshow3 = true;
|
|
|
|
|
}
|
|
|
|
|
let belongTo = item.recordId;
|
|
|
|
|
await this.model.getCheckTaskList(belongTo);
|
|
|
|
|
this.detaillistceshi = this.model.CheckTaskList;
|
|
|
|
@ -698,9 +747,9 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
.item2 {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-content: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// align-content: center;
|
|
|
|
|
// justify-content: space-between;
|
|
|
|
|
.select {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
@ -715,7 +764,6 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
.input {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
width: 65px;
|
|
|
|
|
padding: 1px 8px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
@ -728,6 +776,11 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.item3 {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-content: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.modal {
|
|
|
|
@ -747,5 +800,101 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.Belowsform3 {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
padding: 7px 8px 7px 12px;
|
|
|
|
|
.u-form-item {
|
|
|
|
|
line-height: 35rpx;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
.photoList {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-top: 12rpx;
|
|
|
|
|
|
|
|
|
|
.chooseBtn {
|
|
|
|
|
width: 202rpx;
|
|
|
|
|
height: 202rpx;
|
|
|
|
|
background: #fafafa;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
border: 2rpx dashed #e2e2e2;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.inner {
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #24252a;
|
|
|
|
|
line-height: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img {
|
|
|
|
|
width: 50rpx;
|
|
|
|
|
height: 50rpx;
|
|
|
|
|
margin-bottom: 6rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.photoBox {
|
|
|
|
|
width: 202rpx;
|
|
|
|
|
height: 202rpx;
|
|
|
|
|
background: #fafafa;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.closeBtn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -12rpx;
|
|
|
|
|
right: -12rpx;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
width: 36rpx;
|
|
|
|
|
height: 36rpx;
|
|
|
|
|
|
|
|
|
|
.img {
|
|
|
|
|
width: 36rpx;
|
|
|
|
|
height: 36rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img {
|
|
|
|
|
width: 202rpx;
|
|
|
|
|
height: 202rpx;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.itemBox {
|
|
|
|
|
flex: 0 0 202rpx;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
::v-deep .input1 .u-input__input {
|
|
|
|
|
//background: rgb(233 231 231 / 38%);
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .uni-input-placeholder {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
left: 10px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .uni-textarea-placeholder {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .Belowsform3 .uni-input-input {
|
|
|
|
|
width: 97%;
|
|
|
|
|
border: 1px solid #dcdfe6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|