数据表对其,读写底色区分

master
guoshuang 3 years ago
parent bd8fa1da88
commit 5c0a89e7eb

@ -1,30 +1,72 @@
<script lang="ts">
import Vue from "vue";
import Vue from 'vue';
// #ifdef APP-PLUS
import checkAppUpdate from "@/plugins/app-update";
import checkAppUpdate from '@/plugins/app-update';
// #endif
export default Vue.extend({
mpType: "app",
mpType: 'app',
onLaunch() {
console.log("App Launch");
console.log('App Launch');
// #ifdef APP-PLUS
checkAppUpdate();
// #endif
},
onShow() {
console.log("App Show");
console.log('App Show');
},
onHide() {
console.log("App Hide");
console.log('App Hide');
},
});
</script>
<style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */
@import "~uview-ui/index.scss";
@import '~uview-ui/index.scss';
/*每个页面公共css */
page {
height: 100%;
}
.library {
width: 100%;
height: 100rpx;
display: flex;
.library-left {
width: 45%;
height: 100%;
display: flex;
view {
// width: 120rpx;
line-height: 100rpx;
}
.search {
padding-left: 30px;
}
}
.library-right {
width: 55%;
height: 100%;
display: flex;
.library-right-title {
width: 140rpx;
height: 100%;
line-height: 100rpx;
}
.input {
width: 200rpx;
height: 70rpx;
margin-top: 15rpx;
margin-left: 15rpx;
}
}
}
// .uni-input-input:disabled{
// background:red;
// }
.uni-input-input[disabled] {
//background: rgb(233 231 231 / 38%);
background: #ecefefb3;
color: rgb(158, 157, 157);
}
</style>

@ -406,6 +406,10 @@ export default class stoOutboundDom extends BasePage {
</script>
<style lang="scss" scoped>
.uni-input-input:disabled {
-webkit-text-fill-color: currentcolor;
background-color: #1753ea;
}
.page-raw-returning {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
background-size: 100% 600rpx;
@ -467,4 +471,18 @@ export default class stoOutboundDom extends BasePage {
// .button-bar {
// }
}
.input[disabled] {
background-color: rgb(228, 143, 143); //
color: #666;
opacity: 1; //0.3
-webkit-text-fill-color: #666; //IOS
-webkit-opacity: 1; //IOS
}
.disabled{
background-color: rgb(228, 143, 143); //
color: #666;
opacity: 1; //0.3
-webkit-text-fill-color: #666; //IOS
-webkit-opacity: 1; //IOS
}
</style>

@ -36,7 +36,7 @@
</u-form-item>
<!-- 成本中心 -->
<u-form-item :label="$t('message.product_costCenter')">
<u-input v-model="Some.costCenter" :disabled="true" :placeholder="$t('message.po_PleaseInput')" />
<u-input v-model="Some.costCenter" placeholder="" :disabled="true" />
</u-form-item>
<!-- 已扫 -->
<u-form-item :label="$t('message.product_Swept')">

@ -37,11 +37,11 @@
</u-row>
<!-- 成品描述 -->
<u-form-item :label="$t('message.product_FGDes')">
<u-input v-model="productDescZh" :placeholder="$t('message.po_PleaseInput')" style="overflow: hidden" />
<u-input v-model="productDescZh" placeholder="" :disabled="true" style="overflow: hidden" />
</u-form-item>
<!-- 成品编码 -->
<u-form-item :label="$t('message.product_FGCode')">
<u-input v-model="productCode" :placeholder="$t('message.po_PleaseInput')" />
<u-input v-model="productCode" placeholder="" :disabled="true" />
</u-form-item>
</u-form>
<!-- 底部Button -->

@ -47,12 +47,12 @@
</view>
<!-- 工厂 -->
<u-row gutter="0">
<u-col :span="7">
<u-col :span="6">
<u-form-item :label="$t('message.Pi_factory')" prop="sapFactoryCode">
<u-input :disabled="true" v-model="model.orderInInfo.sapFactoryCode" placeholder="" />
</u-form-item>
</u-col>
<u-col :span="5">
<u-col :span="6">
<u-form-item :required="true" :label="$t('message.Summary_Number')" prop="amount" label-width="80rpx">
<u-input v-model="form.amount" type="number" :placeholder="$t('message.po_PleaseInput')" style="margin-left: 12px" />
</u-form-item>

@ -48,7 +48,7 @@
</view>
<view class="number-right">
<view class="number-right-title">{{ $t('message.Cumulative') }}</view>
<u-input v-model="every.receiptAmount" :placeholder="$t('message.po_PleaseInput')" :type="type" :border="border" class="input" disabled />
<u-input v-model="every.receiptAmount" placeholder="" :type="type" :border="border" class="input" disabled />
</view>
</view>
<!-- 库位 -->
@ -548,39 +548,39 @@ export default class dnReceiptDom extends BasePage {
}
}
}
.library {
width: 100%;
height: 100rpx;
display: flex;
.library-left {
width: 50%;
height: 100%;
display: flex;
view {
width: 100rpx;
line-height: 100rpx;
}
.search {
padding-left: 30px;
}
}
.library-right {
width: 50%;
height: 100%;
display: flex;
.library-right-title {
width: 120rpx;
height: 100%;
line-height: 100rpx;
}
.input {
width: 200rpx;
height: 70rpx;
margin-top: 15rpx;
margin-left: 15rpx;
}
}
}
// .library {
// width: 100%;
// height: 100rpx;
// display: flex;
// .library-left {
// width: 50%;
// height: 100%;
// display: flex;
// view {
// width: 100rpx;
// line-height: 100rpx;
// }
// .search {
// padding-left: 30px;
// }
// }
// .library-right {
// width: 50%;
// height: 100%;
// display: flex;
// .library-right-title {
// width: 120rpx;
// height: 100%;
// line-height: 100rpx;
// }
// .input {
// width: 200rpx;
// height: 70rpx;
// margin-top: 15rpx;
// margin-left: 15rpx;
// }
// }
// }
.add {
width: 100%;
height: 100rpx;

@ -48,7 +48,7 @@
</view>
<view class="number-right">
<view class="number-right-title">{{ $t('message.Cumulative') }}</view>
<u-input v-model="every.receiptAmount" :placeholder="$t('message.po_PleaseInput')" :type="type" :border="border" class="input" :disabled="true" style="background-color: #f4f5f5" />
<u-input v-model="every.receiptAmount" placeholder="" :type="type" :border="border" class="input" :disabled="true" style="background-color: #f4f5f5" />
</view>
</view>
<!-- 库位 -->
@ -575,39 +575,39 @@ export default class dnReceiptDom extends BasePage {
}
}
}
.library {
width: 100%;
height: 100rpx;
display: flex;
.library-left {
width: 50%;
height: 100%;
display: flex;
view {
width: 100rpx;
line-height: 100rpx;
}
.search {
padding-left: 30px;
}
}
.library-right {
width: 50%;
height: 100%;
display: flex;
.library-right-title {
width: 120rpx;
height: 100%;
line-height: 100rpx;
}
.input {
width: 200rpx;
height: 70rpx;
margin-top: 15rpx;
margin-left: 15rpx;
}
}
}
// .library {
// width: 100%;
// height: 100rpx;
// display: flex;
// .library-left {
// width: 50%;
// height: 100%;
// display: flex;
// view {
// width: 100rpx;
// line-height: 100rpx;
// }
// .search {
// padding-left: 30px;
// }
// }
// .library-right {
// width: 50%;
// height: 100%;
// display: flex;
// .library-right-title {
// width: 120rpx;
// height: 100%;
// line-height: 100rpx;
// }
// .input {
// width: 200rpx;
// height: 70rpx;
// margin-top: 15rpx;
// margin-left: 15rpx;
// }
// }
// }
.add {
width: 100%;
height: 100rpx;

@ -113,18 +113,41 @@ http.interceptors.response.use(
} else if (error) {
switch (error.statusCode) {
/* eslint-disable */
case 400: error.message = vm.$t('message.request_Tip1') as string; break
case 401: error.message = vm.$t('message.request_Tip2') as string; break
case 403: error.message = vm.$t('message.request_Tip3') as string; break
case 404: error.message = vm.$t('message.request_Tip4') as string + error.config.url; break
case 408: error.message = vm.$t('message.request_Tip5') as string; break
case 500: error.message = vm.$t('message.request_Tip6') as string; break
case 501: error.message = vm.$t('message.request_Tip7') as string; break
case 502: error.message = vm.$t('message.request_Tip8') as string; break
case 503: error.message = vm.$t('message.request_Tip9') as string; break
case 504: error.message = vm.$t('message.request_Tip10') as string; break
case 505: error.message = vm.$t('message.request_Tip11') as string; break
default: break
case 400:
error.message = vm.$t('message.request_Tip1') as string;
break;
case 401:
error.message = vm.$t('message.request_Tip2') as string;
break;
case 403:
error.message = vm.$t('message.request_Tip3') as string;
break;
case 404:
error.message = (vm.$t('message.request_Tip4') as string) + error.config.url;
break;
case 408:
error.message = vm.$t('message.request_Tip5') as string;
break;
case 500:
error.message = vm.$t('message.request_Tip6') as string;
break;
case 501:
error.message = vm.$t('message.request_Tip7') as string;
break;
case 502:
error.message = vm.$t('message.request_Tip8') as string;
break;
case 503:
error.message = vm.$t('message.request_Tip9') as string;
break;
case 504:
error.message = vm.$t('message.request_Tip10') as string;
break;
case 505:
error.message = vm.$t('message.request_Tip11') as string;
break;
default:
break;
/* eslint-enable */
}
}
@ -149,9 +172,16 @@ function errorLog(error: Error, hideError: boolean) {
}
// 显示提示
hideError ||
uni.showToast({
icon: 'none',
title: error.message,
// uni.showToast({
// icon: 'none',
// title: error.message,
// });
uni.showModal({
title: '',
content: error.message,
confirmText: vm.$t('message.workArea_Confirm') as string,
cancelText: vm.$t('message.Cancel') as string,
showCancel: false,
});
}

Loading…
Cancel
Save