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

master
guoshuang 3 years ago
parent bd8fa1da88
commit 5c0a89e7eb

@ -1,30 +1,72 @@
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from 'vue';
// #ifdef APP-PLUS // #ifdef APP-PLUS
import checkAppUpdate from "@/plugins/app-update"; import checkAppUpdate from '@/plugins/app-update';
// #endif // #endif
export default Vue.extend({ export default Vue.extend({
mpType: "app", mpType: 'app',
onLaunch() { onLaunch() {
console.log("App Launch"); console.log('App Launch');
// #ifdef APP-PLUS // #ifdef APP-PLUS
checkAppUpdate(); checkAppUpdate();
// #endif // #endif
}, },
onShow() { onShow() {
console.log("App Show"); console.log('App Show');
}, },
onHide() { onHide() {
console.log("App Hide"); console.log('App Hide');
}, },
}); });
</script> </script>
<style lang="scss"> <style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */ /* 注意要写在第一行同时给style标签加入lang="scss"属性 */
@import "~uview-ui/index.scss"; @import '~uview-ui/index.scss';
/*每个页面公共css */ /*每个页面公共css */
page { page {
height: 100%; 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> </style>

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

@ -36,7 +36,7 @@
</u-form-item> </u-form-item>
<!-- 成本中心 --> <!-- 成本中心 -->
<u-form-item :label="$t('message.product_costCenter')"> <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>
<!-- 已扫 --> <!-- 已扫 -->
<u-form-item :label="$t('message.product_Swept')"> <u-form-item :label="$t('message.product_Swept')">

@ -37,11 +37,11 @@
</u-row> </u-row>
<!-- 成品描述 --> <!-- 成品描述 -->
<u-form-item :label="$t('message.product_FGDes')"> <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>
<!-- 成品编码 --> <!-- 成品编码 -->
<u-form-item :label="$t('message.product_FGCode')"> <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-item>
</u-form> </u-form>
<!-- 底部Button --> <!-- 底部Button -->

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

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

@ -48,7 +48,7 @@
</view> </view>
<view class="number-right"> <view class="number-right">
<view class="number-right-title">{{ $t('message.Cumulative') }}</view> <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>
</view> </view>
<!-- 库位 --> <!-- 库位 -->
@ -575,39 +575,39 @@ export default class dnReceiptDom extends BasePage {
} }
} }
} }
.library { // .library {
width: 100%; // width: 100%;
height: 100rpx; // height: 100rpx;
display: flex; // display: flex;
.library-left { // .library-left {
width: 50%; // width: 50%;
height: 100%; // height: 100%;
display: flex; // display: flex;
view { // view {
width: 100rpx; // width: 100rpx;
line-height: 100rpx; // line-height: 100rpx;
} // }
.search { // .search {
padding-left: 30px; // padding-left: 30px;
} // }
} // }
.library-right { // .library-right {
width: 50%; // width: 50%;
height: 100%; // height: 100%;
display: flex; // display: flex;
.library-right-title { // .library-right-title {
width: 120rpx; // width: 120rpx;
height: 100%; // height: 100%;
line-height: 100rpx; // line-height: 100rpx;
} // }
.input { // .input {
width: 200rpx; // width: 200rpx;
height: 70rpx; // height: 70rpx;
margin-top: 15rpx; // margin-top: 15rpx;
margin-left: 15rpx; // margin-left: 15rpx;
} // }
} // }
} // }
.add { .add {
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;

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