|
|
@ -211,6 +211,9 @@
|
|
|
|
<!-- remark:不合格描述 -->
|
|
|
|
<!-- remark:不合格描述 -->
|
|
|
|
<div class="item1">不合格描述:</div>
|
|
|
|
<div class="item1">不合格描述:</div>
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 10px 5px" v-model="item.remark" placeholder="" type="textarea" />
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 10px 5px" v-model="item.remark" placeholder="" type="textarea" />
|
|
|
|
|
|
|
|
<view class="boder-icon-rigth2">
|
|
|
|
|
|
|
|
<u-button @click="SaveDraft()" type="primary">暂存</u-button>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- sampleQuality:抽样数量
|
|
|
|
<!-- sampleQuality:抽样数量
|
|
|
@ -1847,36 +1850,18 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
closepopup() {
|
|
|
|
closepopup() {
|
|
|
|
//是否关闭弹窗
|
|
|
|
//是否关闭弹窗
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
|
|
content: '是否退出?',
|
|
|
|
|
|
|
|
showCancel: true,
|
|
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
|
|
this.SaveDraft();
|
|
|
|
this.SaveDraft();
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
} else if (res.cancel) {
|
|
|
|
this.show = false;
|
|
|
|
console.log('不关闭');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onBackPress(e) {
|
|
|
|
onBackPress(e) {
|
|
|
|
if (e.from === 'backbutton') {
|
|
|
|
if (e.from === 'backbutton') {
|
|
|
|
if (this.show === true) {
|
|
|
|
if (this.show === true) {
|
|
|
|
uni.showModal({
|
|
|
|
|
|
|
|
content: '是否退出?',
|
|
|
|
|
|
|
|
showCancel: true,
|
|
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
|
|
this.SaveDraft();
|
|
|
|
this.SaveDraft();
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
//this.sampleQuality = null;
|
|
|
|
this.show = false;
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
|
|
|
console.log('不关闭');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -2002,14 +1987,14 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
//qc主管
|
|
|
|
//qc主管
|
|
|
|
qczg: this.formdata.qcFrom,
|
|
|
|
qczg: this.formdata.qcFrom,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//console.log('草稿params', params);
|
|
|
|
console.log('草稿params', params);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await model.commitDraft(params); //99999
|
|
|
|
await model.commitDraft(params); //99999
|
|
|
|
if (model.commitDraftCode == 200) {
|
|
|
|
if (model.commitDraftCode == 200) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
title: '保存成功',
|
|
|
|
title: '保存成功',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.show = false;
|
|
|
|
// this.show = false;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
title: '保存失败,请网络通畅了再试',
|
|
|
|
title: '保存失败,请网络通畅了再试',
|
|
|
@ -2115,6 +2100,15 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
margin-top: 10rpx;
|
|
|
|
margin-top: 10rpx;
|
|
|
|
padding: 10rpx;
|
|
|
|
padding: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 暂存按钮
|
|
|
|
|
|
|
|
.boder-icon-rigth2 {
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
|
|
|
.u-btn {
|
|
|
|
|
|
|
|
width: 280rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.page-product-receipt {
|
|
|
|
.page-product-receipt {
|
|
|
|
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
|
|
|
|
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
|
|
|
|
background-size: 100% 600rpx;
|
|
|
|
background-size: 100% 600rpx;
|
|
|
|