修改版本号增加暂存按钮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);
}
///******************
version = '0.0.126'; //
version = '0.0.127'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

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

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

Loading…
Cancel
Save