修改版本号增加暂存按钮0.0.127

master
lijing 8 months ago
parent e5ab8c2df5
commit a6599bb936

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version); // console.log('Version////', this.Version);
} }
///****************** ///******************
version = '0.0.126'; // version = '0.0.127'; //
//version = '0.0.14'; // //version = '0.0.14'; //
//*************** false true **************** //*************** false true ****************
//isTest = true; //isTest = true;

@ -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;

@ -25,16 +25,16 @@ http.interceptors.request.use(
config.timeout = 1000 * 60 * 60; config.timeout = 1000 * 60 * 60;
//console.log('123456',config) //console.log('123456',config)
//生产请将注释解开重要重要 //生产请将注释解开重要重要
// if (config.url.includes('/api')) { if (config.url.includes('/api')) {
// config.baseURL = 'http://192.168.202.23:5001'; config.baseURL = 'http://192.168.202.23:5001';
// }else if(config.url.includes('http')) { } else if (config.url.includes('http')) {
// //直接使用写死地址 //直接使用写死地址
// }else { } else {
// // config.baseURL = 'http://192.168.202.34:30000'//正式 config.baseURL = 'http://192.168.202.34:30000'; //正式
// config.baseURL = 'http://192.168.202.20:9000'//测试 // config.baseURL = 'http://192.168.202.20:9000'//测试
// //'http://192.168.202.20:9000' ///测试 //'http://192.168.202.20:9000' ///测试
// //'http://192.168.202.34:30000'; //正式 //'http://192.168.202.34:30000'; //正式
// } }
// 所有请求默认提示加载中 // 所有请求默认提示加载中
if (!loading) { if (!loading) {
uni.showLoading({ title: '加载中' }); uni.showLoading({ title: '加载中' });

Loading…
Cancel
Save