From c89544954db0254978c1fabcb175d622db28551c Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 30 三月 2026 08:14:39 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
---
pages/index/tab2.vue | 7
pages/MJGL/shangmudan/MouldUpperBill.vue | 155
pages/MJGL/style/MJBillStyle.scss | 32
pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill.vue | 249
pages/index/tab1.vue | 66
pages/caigouruku/POStockInBill.vue | 85
pages/tiaomamingxi/tiaomamingxi.vue | 509 +++
pages/ZLGL/mojianjianyan/ProcessCheckBill.vue | 7
pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill.vue | 283
main.js | 52
pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue | 309 +
pages/index/login.vue | 3
components/ba-tree-picker/ba-tree-picker.vue | 624 +++
pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport.vue | 520 +++
pages/ZLGL/shoujianjianyan/firstCheckBill.vue | 10
pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue | 173
pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport.vue | 520 +++
pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue.vue | 370 ++
pages.json | 167
pages/xiaoshouchuku/SellOutBill.vue | 85
pages/index/tab4.vue | 7
uni_modules/uni-tag/components/uni-tag/uni-tag.vue | 7
pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill.vue | 271
pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMainList.vue | 8
pages/ZLGL/style/MJBillStyle.scss | 37
pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport.vue | 520 +++
pages/ZLGL/xunjianjianyan/PatrolProcCheckBill.vue | 7
pages/zhijiediaobo/MoveStockBill.vue | 85
pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill.vue | 245
pages/shengchanlingliao/PPickingCheckBill.vue | 85
pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2.vue | 4
pages/MJGL/xiamodan/MouldLowerBill.vue | 122
pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport.vue | 520 +++
pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport.vue | 520 +++
uni_modules/uni-tag/package.json | 99
pages/fenbushidiaorudan/table.vue | 104
locale/zh-Hans.json | 10
pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue | 118
pages/weiwairuku/EntrustInBill.vue | 84
pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source.vue | 371 ++
utils/common.js | 13
components/ba-tree-picker/README.md | 124
pages/fenbushidiaorudan/form_test.vue | 84
pages/fenbushidiaochudan/form_out.vue | 85
pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue | 162
pages/shengchanlingliaoshengdan/Kf_MateOutBill.vue | 86
pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBill.vue | 342 +
pages/fenbushidiaorudan/form.vue | 86
pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast.vue | 10
pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMain.vue | 1368 ++++++++
pages/shengchanrukushengdan/Kf_ProductInBill.vue | 84
pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue | 61
uni_modules/uni-tag/changelog.md | 4
53 files changed, 8,370 insertions(+), 1,589 deletions(-)
diff --git a/components/ba-tree-picker/README.md b/components/ba-tree-picker/README.md
new file mode 100644
index 0000000..59d99f9
--- /dev/null
+++ b/components/ba-tree-picker/README.md
@@ -0,0 +1,124 @@
+## 鏍戝舰灞傜骇閫夋嫨鍣�
+### 绠�浠�
+涓虹粺涓�鏍峰紡鑰岀敓锛屾爲褰㈠眰绾ч�夋嫨鍣紝picker寮圭獥褰㈠紡鐨勶紝鏍峰紡鍜屾瘮渚嬪弬鐓niapp鐨刾icker鍜寀ni-data-picker缁勪欢
+* 鏀寔鍗曢�夈�佸閫夈�佺埗绾ч�夋嫨锛屽綋鐒朵篃鏀寔鍗曞眰閫夋嫨
+* 鏀寔Object瀵硅薄灞炴�ц嚜瀹氫箟鏄犲皠
+* 鏀寔鏄剧ず鍏ㄩ儴閫変腑銆侀儴鍒嗛�変腑銆佹湭閫変腑涓夌鐘舵��
+* 鏀寔蹇�熻嚜瀹氫箟绠�鍗曟牱寮忥紙鍒嗗壊绾裤�佹寜閽�佹爣棰樸�佸榻愮瓑锛夛紝娣卞叆鏍峰紡鍙鍐檆ss
+
+### 浣跨敤鏂规硶
+鍦� `script` 涓紩鍏ョ粍浠�
+``` javascript
+ import baTreePicker from "@/components/ba-tree-picker/ba-tree-picker.vue"
+ export default {
+ components: {
+ baTreePicker
+ }
+```
+鍦� `template` 涓娇鐢ㄧ粍浠�
+``` javascript
+ <ba-tree-picker ref="treePicker" :multiple='false' @select-change="selectChange" title="閫夋嫨鍩庡競"
+ :localdata="listData" valueKey="value" textKey="label" childrenKey="children" />
+```
+鍦� `script` 涓畾涔夋墦寮�鏂规硶锛屽拰閫夋嫨鐩戝惉
+``` javascript
+ methods: {
+ // 鏄剧ず閫夋嫨鍣�
+ showPicker() {
+ this.$refs.treePicker._show();
+ },
+ //鐩戝惉閫夋嫨锛坕ds涓烘暟缁勶級
+ selectChange(ids, names) {
+ console.log(ids, names)
+ }
+ }
+```
+鍦� `template` 涓皟鐢ㄦ墦寮�
+``` javascript
+ <view @click="showPicker">璋冪敤閫夋嫨鍣�</view>
+```
+
+### 灞炴��
+|灞炴�у悕|绫诲瀷|榛樿鍊紎璇存槑|
+|:-|:-:|:--:|-:|
+|localdata|Array|[]|婧愭暟鎹紝鐩墠鏀寔tree缁撴瀯锛屽悗缁細鑰冭檻鏀寔鎵佸钩鍖栫粨鏋剕
+|valueKey|String|id|鎸囧畾 Object 涓� key 鐨勫�间綔涓鸿妭鐐规暟鎹甶d|
+|textKey|String|name|鎸囧畾 Object 涓� key 鐨勫�间綔涓鸿妭鐐规樉绀哄唴瀹箌
+|childrenKey|String|children|鎸囧畾 Object 涓� key 鐨勫�间綔涓鸿妭鐐瑰瓙闆唡
+|multiple|Boolean|false|鏄惁澶氶�夛紝榛樿鍗曢�墊
+|selectParent|Boolean|true|鏄惁鍙互閫夌埗绾э紝榛樿鍙互|
+|title|String| |鏍囬|
+|titleColor|String||鏍囬棰滆壊|
+|confirmColor|String|#0055ff|纭畾鎸夐挳棰滆壊|
+|cancelColor|String|#757575|鍙栨秷鎸夐挳棰滆壊|
+|switchColor|String|#666|鑺傜偣鍒囨崲鍥炬爣棰滆壊|
+|border|Boolean|false|鏄惁鏈夊垎鍓茬嚎锛岄粯璁ゆ棤|
+
+
+
+### 鏁版嵁鏍煎紡
+
+娉ㄦ剰锛氬繀椤绘湁id銆乶ame(id鍙�氳繃valueKey鏉ラ厤缃负鍏跺畠閿�硷紝濡倂alue)瀛楁锛屼笖鍞竴
+
+``` json
+[
+ {
+ id: 1,
+ name: '鍏徃1',
+ children: [{
+ id: 11,
+ name: '鐮斿彂閮�',
+ children: [{
+ id: 111,
+ name: '寮犱笁',
+
+ },{
+ id: 112,
+ name: '鏉庡洓',
+
+ }]
+ },{
+ id: 12,
+ name: '缁煎悎閮�',
+
+ } ]
+ },
+ {
+ id: 2,
+ name: '鍏徃2',
+ children: [{
+ id: 21,
+ name: '鐮斿彂閮�',
+
+ },{
+ id: 22,
+ name: '缁煎悎閮�',
+
+ },{
+ id: 23,
+ name: '璐㈠姟閮�',
+
+ }, ]
+ },
+ {
+ id: 3,
+ name: '鍏徃3'
+ },
+ {
+ id: 4,
+ name: '鍏徃4',
+ children: [{
+ id: 41,
+ name: '鐮斿彂閮�',
+
+ }]
+ }
+]
+```
+</details>
+
+### 鏂规硶
+|鏂规硶鍚峾鍙傛暟|榛樿鍊紎璇存槑|
+|:-|:-:|:--:|-:|
+|_show()| | |鏄剧ず閫夋嫨鍣▅
+|_hide()| | |闅愯棌閫夋嫨鍣▅
diff --git a/components/ba-tree-picker/ba-tree-picker.vue b/components/ba-tree-picker/ba-tree-picker.vue
new file mode 100644
index 0000000..8748a07
--- /dev/null
+++ b/components/ba-tree-picker/ba-tree-picker.vue
@@ -0,0 +1,624 @@
+<!-- 鏍戝舰灞傜骇閫夋嫨鍣�-->
+<!-- 1銆佹敮鎸佸崟閫夈�佸閫� -->
+<template>
+ <view>
+ <view class="tree-cover" :class="{'show':showDialog}" @tap="_cancel"></view>
+ <view class="tree-dialog" :class="{'show':showDialog}">
+ <view class="tree-bar">
+ <view class="tree-bar-cancel" :style="{'color':cancelColor}" hover-class="hover-c" @tap="_cancel">鍙栨秷
+ </view>
+ <view class="tree-bar-title" :style="{'color':titleColor}">{{title}}</view>
+ <view class="tree-bar-confirm" :style="{'color':confirmColor}" hover-class="hover-c" @tap="_confirm">
+ {{multiple?'纭畾':''}}
+ </view>
+ </view>
+ <view class="tree-view">
+ <scroll-view class="tree-list" :scroll-y="true">
+ <block v-for="(item, index) in treeList" :key="index">
+ <view class="tree-item" :style="[{
+ paddingLeft: item.level*30 + 'rpx'
+ }]" :class="{
+ itemBorder: border === true,
+ show: item.isShow
+ }">
+ <view class="item-label">
+ <view class="item-icon uni-inline-item" @tap.stop="_onItemSwitch(item, index)">
+ <view v-if="!item.isLastLevel&&item.isShowChild" class="switch-on"
+ :style="{'border-left-color':switchColor}">
+ </view>
+ <view v-else-if="!item.isLastLevel&&!item.isShowChild" class="switch-off"
+ :style="{'border-top-color':switchColor}">
+ </view>
+ <view v-else class="item-last-dot" :style="{'border-top-color':switchColor}">
+ </view>
+ </view>
+ <view class="uni-flex-item uni-inline-item" @tap.stop="_onItemSelect(item, index)">
+ <view class="item-name"> {{item.name+(item.childCount?"("+item.childCount+")":'')}}
+ </view>
+ <view class="item-check" v-if="selectParent?true:item.isLastLevel">
+ <view class="item-check-yes" v-if="item.checkStatus==1"
+ :class="{'radio':!multiple}" :style="{'border-color':confirmColor}">
+ <view class="item-check-yes-part"
+ :style="{'background-color':confirmColor}">
+ </view>
+ </view>
+ <view class="item-check-yes" v-else-if="item.checkStatus==2"
+ :class="{'radio':!multiple}" :style="{'border-color':confirmColor}">
+ <view class="item-check-yes-all" :style="{'background-color':confirmColor}">
+ </view>
+ </view>
+ <view class="item-check-no" v-else :class="{'radio':!multiple}"
+ :style="{'border-color':confirmColor}"></view>
+ </view>
+ </view>
+ </view>
+
+ </view>
+ </block>
+ </scroll-view>
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ export default {
+ emits: ['select-change'],
+ name: "ba-tree-picker",
+ props: {
+ valueKey: {
+ type: String,
+ default: 'id'
+ },
+ textKey: {
+ type: String,
+ default: 'name'
+ },
+ childrenKey: {
+ type: String,
+ default: 'children'
+ },
+ localdata: {
+ type: Array,
+ default: function() {
+ return []
+ }
+ },
+ localTreeList: { //鍦ㄥ凡缁忔牸寮忓寲濂界殑鏁版嵁
+ type: Array,
+ default: function() {
+ return []
+ }
+ },
+ selectedData: {
+ type: Array,
+ default: function() {
+ return []
+ }
+ },
+ title: {
+ type: String,
+ default: ''
+ },
+ multiple: { // 鏄惁鍙互澶氶��
+ type: Boolean,
+ default: true
+ },
+ selectParent: { //鏄惁鍙互閫夌埗绾�
+ type: Boolean,
+ default: true
+ },
+ confirmColor: { // 纭畾鎸夐挳棰滆壊
+ type: String,
+ default: '' // #0055ff
+ },
+ cancelColor: { // 鍙栨秷鎸夐挳棰滆壊
+ type: String,
+ default: '' // #757575
+ },
+ titleColor: { // 鏍囬棰滆壊
+ type: String,
+ default: '' //
+ },
+ switchColor: { // 鑺傜偣鍒囨崲鍥炬爣棰滆壊
+ type: String,
+ default: '' // #666
+ },
+ border: { // 鏄惁鏈夊垎鍓茬嚎
+ type: Boolean,
+ default: false
+ },
+ },
+ data() {
+ return {
+ showDialog: false,
+ treeList: []
+ }
+ },
+ computed: {},
+ methods: {
+ _show() {
+ this.showDialog = true
+ },
+ _hide() {
+ this.showDialog = false
+ },
+ _cancel() {
+ this._hide()
+ this.$emit("cancel", '');
+ },
+ _confirm() { //澶氶��
+ let selectedList = []; //濡傛灉瀛愰泦鍏ㄩ儴閫変腑锛屽彧杩斿洖鐖剁骇 id
+ let selectedNames;
+ let currentLevel = -1;
+ this.treeList.forEach((item, index) => {
+ if (currentLevel >= 0 && item.level > currentLevel) {
+
+ } else {
+ if (item.checkStatus === 2) {
+ currentLevel = item.level;
+ selectedList.push(item.id);
+ selectedNames = selectedNames ? selectedNames + ' / ' + item.name : item.name;
+ } else {
+ currentLevel = -1;
+ }
+ }
+ })
+ //console.log('_confirm', selectedList);
+ this._hide()
+ this.$emit("select-change", selectedList, selectedNames);
+ },
+ //鏍煎紡鍖栧師鏁版嵁锛堝師鏁版嵁涓簍ree缁撴瀯锛�
+ _formatTreeData(list = [], level = 0, parentItem, isShowChild = true) {
+ let nextIndex = 0;
+ let parentId = -1;
+ let initCheckStatus = 0;
+ if (parentItem) {
+ nextIndex = this.treeList.findIndex(item => item.id === parentItem.id) + 1;
+ parentId = parentItem.id;
+ if (!this.multiple) { //鍗曢��
+ initCheckStatus = 0;
+ } else
+ initCheckStatus = parentItem.checkStatus == 2 ? 2 : 0;
+ }
+ list.forEach(item => {
+ let isLastLevel = true;
+ if (item && item[this.childrenKey]) {
+ let children = item[this.childrenKey];
+ if (Array.isArray(children) && children.length > 0) {
+ isLastLevel = false;
+ }
+ }
+
+ let itemT = {
+ id: item[this.valueKey],
+ name: item[this.textKey],
+ level,
+ isLastLevel,
+ isShow: isShowChild,
+ isShowChild: false,
+ checkStatus: initCheckStatus,
+ orCheckStatus: 0,
+ parentId,
+ children: item[this.childrenKey],
+ childCount: item[this.childrenKey] ? item[this.childrenKey].length : 0,
+ childCheckCount: 0,
+ childCheckPCount: 0
+ };
+
+ if (this.selectedData.indexOf(itemT.id) >= 0) {
+ itemT.checkStatus = 2;
+ itemT.orCheckStatus = 2;
+ itemT.childCheckCount = itemT.children ? itemT.children.length : 0;
+ this._onItemParentSelect(itemT, nextIndex);
+ }
+
+ this.treeList.splice(nextIndex, 0, itemT);
+ nextIndex++;
+ })
+ //console.log(this.treeList);
+ },
+ // 鑺傜偣鎵撳紑銆佸叧闂垏鎹�
+ _onItemSwitch(item, index) {
+ // console.log(item)
+ //console.log('_itemSwitch')
+ if (item.isLastLevel === true) {
+ return;
+ }
+ item.isShowChild = !item.isShowChild;
+ if (item.children) {
+ this._formatTreeData(item.children, item.level + 1, item);
+ item.children = undefined;
+ } else {
+ this._onItemChildSwitch(item, index);
+ }
+ },
+ _onItemChildSwitch(item, index) {
+ //console.log('_onItemChildSwitch')
+ const firstChildIndex = index + 1;
+ if (firstChildIndex > 0)
+ for (var i = firstChildIndex; i < this.treeList.length; i++) {
+ let itemChild = this.treeList[i];
+ if (itemChild.level > item.level) {
+ if (item.isShowChild) {
+ if (itemChild.parentId === item.id) {
+ itemChild.isShow = item.isShowChild;
+ if (!itemChild.isShow) {
+ itemChild.isShowChild = false;
+ }
+ }
+ } else {
+ itemChild.isShow = item.isShowChild;
+ itemChild.isShowChild = false;
+ }
+ } else {
+ return;
+ }
+ }
+ },
+ // 鑺傜偣閫変腑銆佸彇娑堥�変腑
+ _onItemSelect(item, index) {
+ //console.log('_onItemSelect')
+ //console.log(item)
+ if (!this.multiple) { //鍗曢��
+ item.checkStatus = item.checkStatus == 0 ? 2 : 0;
+
+ this.treeList.forEach((v, i) => {
+ if (i != index) {
+ this.treeList[i].checkStatus = 0
+ } else {
+ this.treeList[i].checkStatus = 2
+ }
+ })
+
+ let selectedList = [];
+ let selectedNames;
+ selectedList.push(item.id);
+ selectedNames = item.name;
+ this._hide()
+ this.$emit("select-change", selectedList, selectedNames);
+ return
+ }
+
+ let oldCheckStatus = item.checkStatus;
+ switch (oldCheckStatus) {
+ case 0:
+ item.checkStatus = 2;
+ item.childCheckCount = item.childCount;
+ item.childCheckPCount = 0;
+ break;
+ case 1:
+ case 2:
+ item.checkStatus = 0;
+ item.childCheckCount = 0;
+ item.childCheckPCount = 0;
+ break;
+ default:
+ break;
+ }
+ //瀛愯妭鐐� 鍏ㄩ儴閫変腑
+ this._onItemChildSelect(item, index);
+ //鐖惰妭鐐� 閫変腑鐘舵�佸彉鍖�
+ this._onItemParentSelect(item, index, oldCheckStatus);
+ },
+ _onItemChildSelect(item, index) {
+ //console.log('_onItemChildSelect')
+ let allChildCount = 0;
+ if (item.childCount && item.childCount > 0) {
+ index++;
+ while (index < this.treeList.length && this.treeList[index].level > item.level) {
+ let itemChild = this.treeList[index];
+ itemChild.checkStatus = item.checkStatus;
+ if (itemChild.checkStatus == 2) {
+ itemChild.childCheckCount = itemChild.childCount;
+ itemChild.childCheckPCount = 0;
+ } else if (itemChild.checkStatus == 0) {
+ itemChild.childCheckCount = 0;
+ itemChild.childCheckPCount = 0;
+ }
+ // console.log('>>>>index锛�', index, 'item锛�', itemChild.name, ' status锛�', itemChild
+ // .checkStatus)
+ index++;
+ }
+ }
+ },
+ _onItemParentSelect(item, index, oldCheckStatus) {
+ //console.log('_onItemParentSelect')
+ //console.log(item)
+ const parentIndex = this.treeList.findIndex(itemP => itemP.id == item.parentId);
+ //console.log('parentIndex锛�' + parentIndex)
+ if (parentIndex >= 0) {
+ let itemParent = this.treeList[parentIndex];
+ let count = itemParent.childCheckCount;
+ let oldCheckStatusParent = itemParent.checkStatus;
+
+ if (oldCheckStatus == 1) {
+ itemParent.childCheckPCount -= 1;
+ } else if (oldCheckStatus == 2) {
+ itemParent.childCheckCount -= 1;
+ }
+ if (item.checkStatus == 1) {
+ itemParent.childCheckPCount += 1;
+ } else if (item.checkStatus == 2) {
+ itemParent.childCheckCount += 1;
+ }
+
+ if (itemParent.childCheckCount <= 0 && itemParent.childCheckPCount <= 0) {
+ itemParent.childCheckCount = 0;
+ itemParent.childCheckPCount = 0;
+ itemParent.checkStatus = 0;
+ } else if (itemParent.childCheckCount >= itemParent.childCount) {
+ itemParent.childCheckCount = itemParent.childCount;
+ itemParent.childCheckPCount = 0;
+ itemParent.checkStatus = 2;
+ } else {
+ itemParent.checkStatus = 1;
+ }
+ //console.log('itemParent锛�', itemParent)
+ this._onItemParentSelect(itemParent, parentIndex, oldCheckStatusParent);
+ }
+ },
+ // 閲嶇疆鏁版嵁
+ _reTreeList() {
+ this.treeList.forEach((v, i) => {
+ this.treeList[i].checkStatus = v.orCheckStatus
+ })
+ },
+ _initTree() {
+ this.treeList = [];
+ this._formatTreeData(this.localdata);
+ }
+ },
+ watch: {
+ localdata() {
+ this._initTree();
+ },
+ localTreeList() {
+ this.treeList = this.localTreeList;
+ }
+ },
+ mounted() {
+ this._initTree();
+ }
+ }
+</script>
+
+<style scoped>
+ .tree-cover {
+ position: fixed;
+ top: 0rpx;
+ right: 0rpx;
+ bottom: 0rpx;
+ left: 0rpx;
+ z-index: 100;
+ background-color: rgba(0, 0, 0, .4);
+ opacity: 0;
+ transition: all 0.3s ease;
+ visibility: hidden;
+ }
+
+ .tree-cover.show {
+ visibility: visible;
+ opacity: 1;
+ }
+
+ .tree-dialog {
+ position: fixed;
+ top: 0rpx;
+ right: 0rpx;
+ bottom: 0rpx;
+ left: 0rpx;
+ background-color: #fff;
+ border-top-left-radius: 10px;
+ border-top-right-radius: 10px;
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: column;
+ z-index: 102;
+ top: 20%;
+ transition: all 0.3s ease;
+ transform: translateY(100%);
+ }
+
+ .tree-dialog.show {
+ transform: translateY(0);
+ }
+
+ .tree-bar {
+ /* background-color: #fff; */
+ height: 90rpx;
+ padding-left: 25rpx;
+ padding-right: 25rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ box-sizing: border-box;
+ border-bottom-width: 1rpx !important;
+ border-bottom-style: solid;
+ border-bottom-color: #f5f5f5;
+ font-size: 32rpx;
+ color: #757575;
+ line-height: 1;
+ }
+
+ .tree-bar-confirm {
+ color: #0055ff;
+ padding: 15rpx;
+ }
+
+ .tree-bar-title {}
+
+ .tree-bar-cancel {
+ color: #757575;
+ padding: 15rpx;
+ }
+
+ .tree-view {
+ flex: 1;
+ padding: 20rpx;
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: column;
+ overflow: hidden;
+ height: 100%;
+ }
+
+ .tree-list {
+ flex: 1;
+ height: 100%;
+ overflow: hidden;
+ }
+
+ .tree-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 1;
+ height: 0;
+ opacity: 0;
+ transition: 0.2s;
+ overflow: hidden;
+ }
+
+ .tree-item.show {
+ height: 90rpx;
+ opacity: 1;
+ }
+
+ .tree-item.showchild:before {
+ transform: rotate(90deg);
+ }
+
+ .tree-item.last:before {
+ opacity: 0;
+ }
+
+ .switch-on {
+ width: 0;
+ height: 0;
+ border-left: 10rpx solid transparent;
+ border-right: 10rpx solid transparent;
+ border-top: 15rpx solid #666;
+ }
+
+ .switch-off {
+ width: 0;
+ height: 0;
+ border-bottom: 10rpx solid transparent;
+ border-top: 10rpx solid transparent;
+ border-left: 15rpx solid #666;
+ }
+
+ .item-last-dot {
+ position: absolute;
+ width: 10rpx;
+ height: 10rpx;
+ border-radius: 100%;
+ background: #666;
+ }
+
+ .item-icon {
+ width: 26rpx;
+ height: 26rpx;
+ margin-right: 8rpx;
+ padding-right: 20rpx;
+ padding-left: 20rpx;
+ }
+
+ .item-label {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ height: 100%;
+ line-height: 1.2;
+ }
+
+ .item-name {
+ flex: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 450rpx;
+ }
+
+ .item-check {
+ width: 40px;
+ height: 40px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .item-check-yes,
+ .item-check-no {
+ width: 20px;
+ height: 20px;
+ border-top-left-radius: 20%;
+ border-top-right-radius: 20%;
+ border-bottom-right-radius: 20%;
+ border-bottom-left-radius: 20%;
+ border-top-width: 1rpx;
+ border-left-width: 1rpx;
+ border-bottom-width: 1rpx;
+ border-right-width: 1rpx;
+ border-style: solid;
+ border-color: #0055ff;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ box-sizing: border-box;
+ }
+
+ .item-check-yes-part {
+ width: 12px;
+ height: 12px;
+ border-top-left-radius: 20%;
+ border-top-right-radius: 20%;
+ border-bottom-right-radius: 20%;
+ border-bottom-left-radius: 20%;
+ background-color: #0055ff;
+ }
+
+ .item-check-yes-all {
+ margin-bottom: 5px;
+ border: 2px solid #007aff;
+ border-left: 0;
+ border-top: 0;
+ height: 12px;
+ width: 6px;
+ transform-origin: center;
+ /* #ifndef APP-NVUE */
+ transition: all 0.3s;
+ /* #endif */
+ transform: rotate(45deg);
+ }
+
+ .item-check .radio {
+ border-top-left-radius: 50%;
+ border-top-right-radius: 50%;
+ border-bottom-right-radius: 50%;
+ border-bottom-left-radius: 50%;
+ }
+
+ .item-check .radio .item-check-yes-b {
+ border-top-left-radius: 50%;
+ border-top-right-radius: 50%;
+ border-bottom-right-radius: 50%;
+ border-bottom-left-radius: 50%;
+ }
+
+ .hover-c {
+ opacity: 0.6;
+ }
+
+ .itemBorder {
+ border-bottom: 1px solid #e5e5e5;
+ }
+
+ .uni-inline-item {
+ display: inline-flex;
+ align-items: center;
+ }
+</style>
diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json
index 10713b5..e2ac990 100644
--- a/locale/zh-Hans.json
+++ b/locale/zh-Hans.json
@@ -78,7 +78,15 @@
"HSPName_B": "浠撲綅",
"submit": "鎻愪氦",
"addNew": "鏂板",
- "goBack": "閫�鍑�"
+ "goBack": "閫�鍑�",
+ "Year_Search": "骞翠唤",
+ "Month_Search": "鏈堜唤",
+ "Dimension_Search": "鍒嗘瀽缁村害",
+ "BeginDate_Search": "寮�濮嬫棩鏈�",
+ "EndDate_Search": "缁撴潫鏃ユ湡",
+ "EquipNumber_Search": "璁惧缂栫爜",
+ "EquipName_Search": "璁惧鍚嶇О",
+ "HDept_Search": "閮ㄩ棬"
}
}
\ No newline at end of file
diff --git a/main.js b/main.js
index d5b866c..bc323cd 100644
--- a/main.js
+++ b/main.js
@@ -15,7 +15,7 @@
locale: uni.getLocale(), // 鑾峰彇宸茶缃殑璇█
messages,
silentTranslationWarn: true,
-
+
// missing: function(locale, key, vm, values){
// // 椤甸潰涓惈鏈夎瑷�鍖呬腑涓嶅瓨鍦ㄧ殑瀛楁锛岄渶鍚屾鍒版暟鎹簱涓�
// console.log("[i18n]: 椤甸潰涓璳ey涓�: ", key ,"鐨勫瓧娈靛湪缈昏瘧鏂囦欢涓笉瀛樺湪锛屽悓姝ュ埌鏁版嵁搴�...")
@@ -26,6 +26,52 @@
//
// }
}
+
+// uniapp 鍏ㄥ眬璇锋眰鎷︽埅鍣�
+uni.addInterceptor('request', {
+ invoke(args) {
+ // 璇锋眰澶村甫涓� token
+ let token = uni.getStorageSync('Token')
+ if (token) {
+ // 鍏堝垵濮嬪寲锛岄槻姝� undefined 鎶ラ敊
+ args.header = args.header || {}
+ args.header.Authorization = `Bearer ${token}`
+ }
+ },
+ success(res) {
+ // 鑷姩缁湡 token
+ if (res.data && res.data.token) {
+ uni.setStorageSync('Token', res.data.token)
+ }
+
+
+ // 401 鑷姩璺崇櫥褰�
+ if (res.statusCode === 401) {
+ uni.removeStorageSync('Token')
+ uni.showModal({
+ title: '娓╅Θ鎻愮ず',
+ content: res.data.Message,
+ showCancel:false,
+ success: () => {
+ uni.reLaunch({
+ url: '/pages/index/login'
+ })
+ }
+ })
+ }
+ // 403 杩斿洖涓婁竴涓〉闈�
+ if (res.statusCode === 403) {
+ uni.showModal({
+ title: '娓╅Θ鎻愮ず',
+ content: res.data.Message,
+ showCancel:false,
+ success: () => {
+ uni.navigateBack()
+ }
+ })
+ }
+ }
+})
import App from './App'
import Printer from './plugins/printer'
@@ -53,8 +99,8 @@
Vue.prototype.$t = function(key, ...args) {
// 璋冪敤鍘熷 $t 鎵ц缈昏瘧
const translated = originalT.call(this, key, args);
-
-
+
+
if (translated == key) {
// 缈昏瘧鍚庣殑鏂囨湰涓庝紶鍏ョ殑key鐩稿悓锛屽垯琛ㄧず缈昏瘧鏂囨湰缂哄け 璁板綍缂哄け鐨勭炕璇戞枃鏈�
let [moduleName, fieldCode] = key.split(".")
diff --git a/pages.json b/pages.json
index 7a97314..abfcf1d 100644
--- a/pages.json
+++ b/pages.json
@@ -167,12 +167,12 @@
"navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗�"
}
},
- {
- "path": "pages/gongxuOut/Cj_StationOutBill_Standard",
- "style": {
- "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗曪紙鏍囧噯锛�"
- }
- },
+ {
+ "path": "pages/gongxuOut/Cj_StationOutBill_Standard",
+ "style": {
+ "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗曪紙鏍囧噯锛�"
+ }
+ },
{
"path": "pages/gongxuOut/Cj_StationOutBillList",
"style": {
@@ -1682,12 +1682,13 @@
"navigationBarTitleText": "璁惧灞ュ巻"
}
},
+
{
- "path": "pages/fenbushidiaochudan/table_out",
- "style": {
- "navigationBarTitleText": "鍒嗘寮忚皟鍑哄崟缂撳瓨鍒楄〃"
- }
- },
+ "path": "pages/fenbushidiaochudan/table_out",
+ "style": {
+ "navigationBarTitleText": "鍒嗘寮忚皟鍑哄崟缂撳瓨鍒楄〃"
+ }
+ },
{
"path": "pages/MJGL/Sc_EquipmentProcessList/Sc_EquipmentProcess",
"style": {
@@ -1917,48 +1918,48 @@
"navigationBarTitleText": "鎴戠殑寰呭姙鍒楄〃"
}
},
- {
- "path" : "pages/ZLGL/QcenvironmentTestDotCheckBill/QCEnvironmentTestDotCheckBillList",
- "style" :
- {
- "navigationBarTitleText" : "鐜妫�楠屽崟鍒楄〃"
- }
- },
- {
- "path": "pages/ZLGL/QcenvironmentTestDotCheckBill/QcenvironmentTestDotCheckBill",
- "style" :
- {
- "navigationBarTitleText" : "鐜妫�楠屽崟"
- }
- },
- {
- "path" : "pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMainList",
- "style" :
- {
- "navigationBarTitleText" : "涓嶈壇鍝佽瘎瀹″崟鍒楄〃"
- }
- },
- {
- "path" : "pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMain",
- "style" :
- {
- "navigationBarTitleText" : "涓嶈壇鍝佽瘎瀹″崟"
- }
- },
- {
- "path" : "pages/ZLGL/QCNoPassProdConclusionBillMain/QCNoPassProdConclusionBillMain",
- "style" :
- {
- "navigationBarTitleText" : "涓嶈壇鍝佽瘎瀹$粨璁哄崟"
- }
- },
- {
- "path" : "pages/ZLGL/QCNoPassProdConclusionBillMain/QCNoPassProdConclusionBillMainList",
- "style" :
- {
- "navigationBarTitleText" : "涓嶈壇鍝佽瘎瀹″崟缁撹鍗曞垪琛�"
- }
- },
+ {
+ "path": "pages/ZLGL/QcenvironmentTestDotCheckBill/QCEnvironmentTestDotCheckBillList",
+
+ "style": {
+ "navigationBarTitleText": "鐜妫�楠屽崟鍒楄〃"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QcenvironmentTestDotCheckBill/QcenvironmentTestDotCheckBill",
+
+ "style": {
+ "navigationBarTitleText": "鐜妫�楠屽崟"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMainList",
+
+ "style": {
+ "navigationBarTitleText": "涓嶈壇鍝佽瘎瀹″崟鍒楄〃"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMain",
+
+ "style": {
+ "navigationBarTitleText": "涓嶈壇鍝佽瘎瀹″崟"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QCNoPassProdConclusionBillMain/QCNoPassProdConclusionBillMain",
+
+ "style": {
+ "navigationBarTitleText": "涓嶈壇鍝佽瘎瀹$粨璁哄崟"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QCNoPassProdConclusionBillMain/QCNoPassProdConclusionBillMainList",
+
+ "style": {
+ "navigationBarTitleText": "涓嶈壇鍝佽瘎瀹″崟缁撹鍗曞垪琛�"
+ }
+ },
{
"path": "pages/ZLGL/Gy_MaterialPrevention/Gy_MaterialPrevention",
"style": {
@@ -1972,10 +1973,62 @@
}
},
{
- "path" : "pages/MJGL/Sc_EquipTechParamQuery/Sc_EquipTechParamQuery",
- "style" :
- {
- "navigationBarTitleText" : "璁惧宸ヨ壓鍙傛暟鏌ヨ"
+ "path": "pages/MJGL/Sc_EquipTechParamQuery/Sc_EquipTechParamQuery",
+
+ "style": {
+ "navigationBarTitleText": "璁惧宸ヨ壓鍙傛暟鏌ヨ"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source",
+
+ "style": {
+ "navigationBarTitleText": "绾垮埆寮傚父鐘舵��"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue",
+
+ "style": {
+ "navigationBarTitleText": "寮傚父绫诲瀷缁熻"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport",
+
+ "style": {
+ "navigationBarTitleText": "鍣ㄥ叿缁翠慨缁熻鎶ヨ〃"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport",
+
+ "style": {
+ "navigationBarTitleText": "璁惧缁翠慨缁熻鍒嗘瀽"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/SB_EquipRunningStatusReport",
+ "style": {
+ "navigationBarTitleText": "璁惧杩愯鐘舵�佽〃"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport",
+ "style": {
+ "navigationBarTitleText": "鍣ㄥ叿淇濆吇缁熻琛�"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport",
+ "style": {
+ "navigationBarTitleText": "璁惧淇濆吇缁熻鍒嗘瀽"
+ }
+ },
+ {
+ "path": "pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport",
+ "style": {
+ "navigationBarTitleText": "璁惧鐐规缁熻鍒嗘瀽"
}
}
],
diff --git a/pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue b/pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue
index 059f5f1..0ca6c49 100644
--- a/pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue
+++ b/pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue
@@ -219,8 +219,9 @@
<view class="form" :style="{
height: containerHeight + 'px',
overflow: 'auto'
- }">
- <view class="list" v-for="(item,index) in HMaterList" :key="index">
+ }">
+ <!-- 鐗╂枡鍒楄〃 - 浣跨敤鎺掑簭鍚庣殑鏁版嵁 -->
+ <view class="list" v-for="(item,index) in paginatedMaterList" :key="index">
<uni-card :title="item.鐗╂枡鍚嶇О" :extra="item.鐗╂枡浠g爜" style="margin: 10px;" @tap="delMater(item)">
<view class="card-detail">
<view class="detail">
@@ -241,15 +242,21 @@
<view class="detail" v-if="item.杈呭姪灞炴��">
<text>杈呭姪灞炴�э細</text>{{item.杈呭姪灞炴�}
</view>
- <!-- 鍏磋揪瀹㈡埛 鍔熻兘 -->
- <view class="detail" v-if="materMeta[0].HWHName && /鍏磋揪/.test(hform.HStockOrgName
- )">
+ <view class="detail" v-if="materMeta[0].HWHName && /鍏磋揪/.test(hform.HStockOrgName)">
<text>浠撳簱锛�</text>{{materMeta[0].HWHName}}
</view>
</view>
</uni-card>
</view>
- <view class="over" v-if="HMaterList.length == 0">鏆傛棤鏁版嵁</view>
+ <view style="padding: 10px; background: #f5f5f5; display: flex; justify-content: space-between; align-items: center;">
+ <text>鍏� {{ sortedMaterList.length }} 鏉�</text>
+ <view>
+ <button size="mini" @click="prevPage" :disabled="currentPage === 1" style="margin-right: 10px;">涓婁竴椤�</button>
+ <text>{{ currentPage }}/{{ totalPages }}</text>
+ <button size="mini" @click="nextPage" :disabled="currentPage === totalPages" style="margin-left: 10px;">涓嬩竴椤�</button>
+ </view>
+ </view>
+ <view class="over" v-if="sortedMaterList.length == 0">鏆傛棤鏁版嵁</view>
</view>
</template>
@@ -400,6 +407,10 @@
},
data() {
return {
+ currentPage: 1,
+ pageSize: 10,
+ sortedMaterList: [], // 鎺掑簭鍚庣殑鐗╂枡鍒楄〃
+ paginatedMaterList: [] ,// 褰撳墠椤垫樉绀虹殑鐗╂枡
tabs: 0,
hcpFocus: false,
barCodeFocus: false,
@@ -565,6 +576,39 @@
this.barCodeFocus = true;
}, 100);
},
+ // 鎺掑簭鐗╂枡锛堟湁鏁伴噺鐨勬帓鍦ㄥ墠闈級
+ sortMaterList(list) {
+ if (!list || list.length === 0) return []
+ return [...list].sort((a, b) => {
+ // 鏁伴噺澶т簬0鐨勬帓鍦ㄥ墠闈�
+ if (a.鏁伴噺 > 0 && b.鏁伴噺 <= 0) return -1
+ if (a.鏁伴噺 <= 0 && b.鏁伴噺 > 0) return 1
+ return b.鏁伴噺 - a.鏁伴噺 // 閮芥湁鏁伴噺鎴栭兘娌℃湁锛屾寜鏁伴噺闄嶅簭
+ })
+ },
+
+ // 鏇存柊褰撳墠椤垫暟鎹�
+ updatePageData() {
+ const start = (this.currentPage - 1) * this.pageSize
+ const end = start + this.pageSize
+ this.paginatedMaterList = this.sortedMaterList.slice(start, end)
+ },
+
+ // 涓婁竴椤�
+ prevPage() {
+ if (this.currentPage > 1) {
+ this.currentPage--
+ this.updatePageData()
+ }
+ },
+
+ // 涓嬩竴椤�
+ nextPage() {
+ if (this.currentPage < Math.ceil(this.sortedMaterList.length / this.pageSize)) {
+ this.currentPage++
+ this.updatePageData()
+ }
+ },
async set_InitBillSubType(){
try{
let res = await CommonUtils.doRequest2Async({
@@ -816,6 +860,8 @@
}
});
},
+
+
// 鍣ㄥ叿鍒犻櫎
async delMould(item) {
uni.showModal({
@@ -1772,6 +1818,9 @@
this.FIFOlist = data.FIFOlist
}
}
+ this.sortedMaterList = this.sortMaterList(this.HMaterList)
+ this.currentPage = 1
+ this.updatePageData()
// 鏍规嵁鏄惁鏄鏉$爜閰嶇疆浠撲綅淇℃伅
if (sBarCodePrefix == 'PAK') {
diff --git a/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue b/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue
index fea4951..5d42826 100644
--- a/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue
+++ b/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue
@@ -1,8 +1,12 @@
<template>
<view>
<view class="tabs" id="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍏朵粬淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("Sb_EquipConkBookBill.tabBasic") == "Sb_EquipConkBookBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("Sb_EquipConkBookBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("Sb_EquipConkBookBill.tabOther") == "Sb_EquipConkBookBill.tabOther" ? "鍏朵粬淇℃伅" : $t("Sb_EquipConkBookBill.tabOther") }}
+ </view>
</view>
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
@@ -11,94 +15,85 @@
overflow: 'auto'
}">
<view class="form-item">
- <view class="title">璁惧鏉$爜:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HBarCode") == "Sb_EquipConkBookBill.HBarCode" ? "璁惧鏉$爜:" : $t("Sb_EquipConkBookBill.HBarCode") }}</view>
<view :class="enableEdit?'right':'righton'">
<input v-model="hform.HBarCode" :disabled="!enableEdit"
- @confirm="GetMessageByBarCode(hform.HBarCode)" placeholder="璇疯緭鍏�(鎴栨壂鎻�)璁惧鏉$爜" />
+ @confirm="GetMessageByBarCode(hform.HBarCode)" :placeholder="$t('Sb_EquipConkBookBill.HBarCode_Placeholder') == 'Sb_EquipConkBookBill.HBarCode_Placeholder' ? '璇疯緭鍏�(鎴栨壂鎻�)璁惧鏉$爜' : $t('Sb_EquipConkBookBill.HBarCode_Placeholder')" />
</view>
<view class="icon-wrapper">
<uni-icons type="scan" size="20" @click="toScanCode"></uni-icons>
</view>
</view>
<view class="form-item">
- <view class="title">寮�濮嬫椂闂�:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HConkBeginDate") == "Sb_EquipConkBookBill.HConkBeginDate" ? "寮�濮嬫椂闂�:" : $t("Sb_EquipConkBookBill.HConkBeginDate") }}</view>
<view class="right">
<uni-datetime-picker type="datetime" :clear-icon="false" v-model="hform.HRepairPlanBeginDate">
- <input :value="hform.HConkBeginDate" />
+ <input :value="hform.HConkBeginDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</uni-datetime-picker>
</view>
</view>
<view class="form-item">
- <view class="title required">鏁呴殰绫诲埆:</view>
+ <view class="title required">{{ $t("Sb_EquipConkBookBill.HConkTypeName") == "Sb_EquipConkBookBill.HConkTypeName" ? "鏁呴殰绫诲埆:" : $t("Sb_EquipConkBookBill.HConkTypeName") }}</view>
<zxz-uni-data-select required class="right" :localdata="HConkTypeList" dataKey="鏁呴殰绫诲埆鍚嶇О"
dataValue="hitemid" v-model="hform.HConkTypeID">
-
</zxz-uni-data-select>
- <!-- <input disabled v-model="hform.HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" /> -->
</view>
<view class="form-item">
- <view class="title required">鏁呴殰鍘熷洜:</view>
+ <view class="title required">{{ $t("Sb_EquipConkBookBill.HConkReasonName") == "Sb_EquipConkBookBill.HConkReasonName" ? "鏁呴殰鍘熷洜:" : $t("Sb_EquipConkBookBill.HConkReasonName") }}</view>
<zxz-uni-data-select required class="right" :localdata="HConkReasonList" dataKey="HName"
dataValue="HItemID" v-model="hform.HConkReasonID">
</zxz-uni-data-select>
- <!-- <input disabled v-model="hform.HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" /> -->
</view>
<view class="form-item">
- <view class="title">鏁呴殰鎻忚堪:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HExplanation") == "Sb_EquipConkBookBill.HExplanation" ? "鏁呴殰鎻忚堪:" : $t("Sb_EquipConkBookBill.HExplanation") }}</view>
<view class="right">
- <textarea v-model="hform.HExplanation" placeholder="璇疯緭鍏ユ晠闅滄弿杩�" />
+ <textarea v-model="hform.HExplanation" :placeholder="$t('Sb_EquipConkBookBill.HExplanation_Placeholder') == 'Sb_EquipConkBookBill.HExplanation_Placeholder' ? '璇疯緭鍏ユ晠闅滄弿杩�' : $t('Sb_EquipConkBookBill.HExplanation_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
<input disabled v-model="hform.HBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
<input disabled v-model="hform.HDate" />
</view>
</view>
<view class="form-item">
- <view class="title required">閮ㄩ棬:</view>
+ <view class="title required">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "閮ㄩ棬:" : $t("Gy.HDeptName") }}</view>
<zxz-uni-data-select required class="right" :localdata="HDeptList" dataKey="閮ㄩ棬鍚嶇О"
dataValue="HItemID" v-model="hform.HDeptID">
-
</zxz-uni-data-select>
- <!-- <input disabled v-model="hform.HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" /> -->
</view>
<view class="form-item">
- <view class="title required">鍙戠幇浜�:</view>
+ <view class="title required">{{ $t("Sb_EquipConkBookBill.HEmpName") == "Sb_EquipConkBookBill.HEmpName" ? "鍙戠幇浜�:" : $t("Sb_EquipConkBookBill.HEmpName") }}</view>
<zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
dataValue="HItemID" v-model="hform.HEmpID">
-
</zxz-uni-data-select>
- <!-- <input disabled v-model="hform.HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" /> -->
</view>
<view class="form-item">
- <view class="title required">楠屾敹浜�:</view>
+ <view class="title required">{{ $t("Sb_EquipConkBookBill.HManagerName") == "Sb_EquipConkBookBill.HManagerName" ? "楠屾敹浜�:" : $t("Sb_EquipConkBookBill.HManagerName") }}</view>
<zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
dataValue="HItemID" v-model="hform.HManagerID">
-
</zxz-uni-data-select>
- <!-- <input disabled v-model="hform.HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" /> -->
</view>
<view class="form-item">
- <view class="title">璁惧鍚嶇О:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HBarName") == "Sb_EquipConkBookBill.HBarName" ? "璁惧鍚嶇О:" : $t("Sb_EquipConkBookBill.HBarName") }}</view>
<view class="righton">
<input v-model="hform.HBarName" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">璁惧瑙勬牸:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HBarSpec") == "Sb_EquipConkBookBill.HBarSpec" ? "璁惧瑙勬牸:" : $t("Sb_EquipConkBookBill.HBarSpec") }}</view>
<view class="righton">
<input v-model="hform.HBarSpec" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">璁惧鍨嬪彿:</view>
+ <view class="title">{{ $t("Sb_EquipConkBookBill.HBarModel") == "Sb_EquipConkBookBill.HBarModel" ? "璁惧鍨嬪彿:" : $t("Sb_EquipConkBookBill.HBarModel") }}</view>
<view class="righton">
<input v-model="hform.HBarModel" disabled />
</view>
@@ -113,49 +108,49 @@
overflow: 'auto'
}">
<view class="form-item">
- <view class="title">鍒涘缓浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒涘缓浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" />
</view>
</view>
<view class="form-item">
- <view class="title">鍒涘缓鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒涘缓鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
<input v-model="hform.HMakeDate" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
<input v-model="hform.HUpDateDate" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃堕棿:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃堕棿:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
<input v-model="hform.HCheckDate" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
<input v-model="hform.HDeleteDate" />
</view>
@@ -165,12 +160,11 @@
</template>
<!-- 鎿嶄綔鎸夐挳 -->
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("Sb_EquipConkBookBill.submit") == "Sb_EquipConkBookBill.submit" ? "鎻愪氦" : $t("Sb_EquipConkBookBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("Sb_EquipConkBookBill.addNew") == "Sb_EquipConkBookBill.addNew" ? "鏂板" : $t("Sb_EquipConkBookBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("Sb_EquipConkBookBill.goBack") == "Sb_EquipConkBookBill.goBack" ? "閫�鍑�" : $t("Sb_EquipConkBookBill.goBack") }}</button>
</view>
- <!-- <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload> -->
</view>
</template>
@@ -278,14 +272,14 @@
this.HConkTypeList = data
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰绫诲埆澶辫触: ${Message}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getConkTypeFailed') == 'Sb_EquipConkBookBill.getConkTypeFailed' ? '鑾峰彇鏁呴殰绫诲埆澶辫触' : this.$t('Sb_EquipConkBookBill.getConkTypeFailed')}: ${Message}`
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰绫诲埆澶辫触: ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getConkTypeFailed') == 'Sb_EquipConkBookBill.getConkTypeFailed' ? '鑾峰彇鏁呴殰绫诲埆澶辫触' : this.$t('Sb_EquipConkBookBill.getConkTypeFailed')}: ${err}`
})
}
},
@@ -308,14 +302,14 @@
this.HConkReasonList = data
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰鍘熷洜澶辫触: ${Message}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getConkReasonFailed') == 'Sb_EquipConkBookBill.getConkReasonFailed' ? '鑾峰彇鏁呴殰鍘熷洜澶辫触' : this.$t('Sb_EquipConkBookBill.getConkReasonFailed')}: ${Message}`
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰鍘熷洜澶辫触: ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getConkReasonFailed') == 'Sb_EquipConkBookBill.getConkReasonFailed' ? '鑾峰彇鏁呴殰鍘熷洜澶辫触' : this.$t('Sb_EquipConkBookBill.getConkReasonFailed')}: ${err}`
})
}
},
@@ -327,37 +321,37 @@
ValidCheck() {
if (this.hform.HEquipID == 0) {
return {
- Message: "鏈綍鍏ヨ澶囦俊鎭紝璇峰厛褰曞叆璁惧淇℃伅!",
+ Message: this.$t('Sb_EquipConkBookBill.noEquipInfo') == 'Sb_EquipConkBookBill.noEquipInfo' ? '鏈綍鍏ヨ澶囦俊鎭紝璇峰厛褰曞叆璁惧淇℃伅!' : this.$t('Sb_EquipConkBookBill.noEquipInfo'),
state: false
}
}
if (this.hform.HDeptID == 0) {
return {
- Message: "閮ㄩ棬涓嶅緱涓虹┖!",
+ Message: this.$t('Sb_EquipConkBookBill.deptRequired') == 'Sb_EquipConkBookBill.deptRequired' ? '閮ㄩ棬涓嶅緱涓虹┖!' : this.$t('Sb_EquipConkBookBill.deptRequired'),
state: false
}
}
if (this.hform.HEmpID == 0) {
return {
- Message: "鍙戠幇浜轰笉寰椾负绌�!",
+ Message: this.$t('Sb_EquipConkBookBill.discovererRequired') == 'Sb_EquipConkBookBill.discovererRequired' ? '鍙戠幇浜轰笉寰椾负绌�!' : this.$t('Sb_EquipConkBookBill.discovererRequired'),
state: false
}
}
if (this.hform.HManagerID == 0) {
return {
- Message: "楠屾敹浜轰笉寰椾负绌�!",
+ Message: this.$t('Sb_EquipConkBookBill.checkerRequired') == 'Sb_EquipConkBookBill.checkerRequired' ? '楠屾敹浜轰笉寰椾负绌�!' : this.$t('Sb_EquipConkBookBill.checkerRequired'),
state: false
}
}
if (this.hform.HConkReasonID == 0) {
return {
- Message: "鏁呴殰鍘熷洜涓嶅緱涓虹┖!",
+ Message: this.$t('Sb_EquipConkBookBill.reasonRequired') == 'Sb_EquipConkBookBill.reasonRequired' ? '鏁呴殰鍘熷洜涓嶅緱涓虹┖!' : this.$t('Sb_EquipConkBookBill.reasonRequired'),
state: false
}
}
if (this.hform.HConkTypeID == 0) {
return {
- Message: "鏁呴殰绫诲埆涓嶅緱涓虹┖!",
+ Message: this.$t('Sb_EquipConkBookBill.typeRequired') == 'Sb_EquipConkBookBill.typeRequired' ? '鏁呴殰绫诲埆涓嶅緱涓虹┖!' : this.$t('Sb_EquipConkBookBill.typeRequired'),
state: false
}
}
@@ -397,14 +391,14 @@
},
success: (uploadRes) => {
CommonUtils.showTips({
- message: "涓婁紶鎴愬姛"
+ message: this.$t('Sb_EquipConkBookBill.uploadSuccess') == 'Sb_EquipConkBookBill.uploadSuccess' ? '涓婁紶鎴愬姛' : this.$t('Sb_EquipConkBookBill.uploadSuccess')
})
- this.attachmentInfo[index].status = "涓婁紶鎴愬姛"
+ this.attachmentInfo[index].status = this.$t('Sb_EquipConkBookBill.uploadSuccess') == 'Sb_EquipConkBookBill.uploadSuccess' ? '涓婁紶鎴愬姛' : this.$t('Sb_EquipConkBookBill.uploadSuccess')
},
fail: (err) => {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `涓婁紶澶辫触: ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.uploadFailed') == 'Sb_EquipConkBookBill.uploadFailed' ? '涓婁紶澶辫触' : this.$t('Sb_EquipConkBookBill.uploadFailed')}: ${err}`
})
}
})
@@ -412,8 +406,8 @@
delFile(index) {
console.log('attachmentInfo: ', this.attachmentInfo[index]);
uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + this.attachmentInfo[index].fileName + ' " 鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ title: this.$t('Sb_EquipConkBookBill.confirmTitle') == 'Sb_EquipConkBookBill.confirmTitle' ? '鎻愮ず' : this.$t('Sb_EquipConkBookBill.confirmTitle'),
+ content: this.$t('Sb_EquipConkBookBill.delConfirm') == 'Sb_EquipConkBookBill.delConfirm' ? '纭瑕佸垹闄� " ' : this.$t('Sb_EquipConkBookBill.delConfirm') + this.attachmentInfo[index].fileName + this.$t('Sb_EquipConkBookBill.delConfirmSuffix') == 'Sb_EquipConkBookBill.delConfirmSuffix' ? ' " 鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�' : this.$t('Sb_EquipConkBookBill.delConfirmSuffix'),
success: (res) => {
if (res.confirm) {
this.attachmentInfo.splice(index, 1)
@@ -428,7 +422,7 @@
this.attachmentInfo.push({
fileName: fileInfo.name,
size: fileInfo.size,
- status: '绛夊緟涓婁紶',
+ status: this.$t('Sb_EquipConkBookBill.uploadWaiting') == 'Sb_EquipConkBookBill.uploadWaiting' ? '绛夊緟涓婁紶' : this.$t('Sb_EquipConkBookBill.uploadWaiting'),
filePath: fileInfo.tempFilePath
})
},
@@ -455,13 +449,13 @@
this.HShiftsList = data
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: Message
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: err
})
}
@@ -487,13 +481,13 @@
this.HDeptList = data
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: Message
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: err
})
}
@@ -522,13 +516,13 @@
this.HEmpList = data
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: Message
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: err
})
}
@@ -571,14 +565,14 @@
this.enableEdit = false
} else {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: Message
})
}
} catch (err) {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
message: err
})
}
@@ -631,14 +625,14 @@
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鐐规瑙勭▼閿欒锛� ${Message}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getCheckRuleFailed') == 'Sb_EquipConkBookBill.getCheckRuleFailed' ? '鑾峰彇鐐规瑙勭▼閿欒' : this.$t('Sb_EquipConkBookBill.getCheckRuleFailed')}: ${Message}`
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鐐规瑙勭▼閿欒锛� ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getCheckRuleFailed') == 'Sb_EquipConkBookBill.getCheckRuleFailed' ? '鑾峰彇鐐规瑙勭▼閿欒' : this.$t('Sb_EquipConkBookBill.getCheckRuleFailed')}: ${err}`
})
}
},
@@ -669,8 +663,8 @@
this.hform.HBillNo = data[0]["HBillNo"]
} catch (err) {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
- message: "鑾峰彇鍗曟嵁淇℃伅寮傚父: " + err
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getBillInfoFailed') == 'Sb_EquipConkBookBill.getBillInfoFailed' ? '鑾峰彇鍗曟嵁淇℃伅寮傚父' : this.$t('Sb_EquipConkBookBill.getBillInfoFailed')}: ` + err
})
}
},
@@ -709,8 +703,8 @@
} = res.data
if (count == 1) {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('Sb_EquipConkBookBill.confirmTitle') == 'Sb_EquipConkBookBill.confirmTitle' ? '鎻愮ず' : this.$t('Sb_EquipConkBookBill.confirmTitle'),
+ content: res.data.Message + (this.$t('Sb_EquipConkBookBill.continueAdd') == 'Sb_EquipConkBookBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('Sb_EquipConkBookBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -727,16 +721,16 @@
});
} else {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
- message: "鎻愪氦鍗曟嵁澶辫触: " + Message
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.submitFailed') == 'Sb_EquipConkBookBill.submitFailed' ? '鎻愪氦鍗曟嵁澶辫触' : this.$t('Sb_EquipConkBookBill.submitFailed')}: ` + Message
})
}
} catch (err) {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
- message: "鎻愪氦鍗曟嵁澶辫触: " + err
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.submitFailed') == 'Sb_EquipConkBookBill.submitFailed' ? '鎻愪氦鍗曟嵁澶辫触' : this.$t('Sb_EquipConkBookBill.submitFailed')}: ` + err
})
}
},
@@ -762,15 +756,15 @@
this.enableEdit = false
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰鐧昏鍗曞け璐�: ${msg}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getEditFailed') == 'Sb_EquipConkBookBill.getEditFailed' ? '鑾峰彇鏁呴殰鐧昏鍗曞け璐�' : this.$t('Sb_EquipConkBookBill.getEditFailed')}: ${msg}`
})
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇鏁呴殰鐧昏鍗曞け璐�: ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getEditFailed') == 'Sb_EquipConkBookBill.getEditFailed' ? '鑾峰彇鏁呴殰鐧昏鍗曞け璐�' : this.$t('Sb_EquipConkBookBill.getEditFailed')}: ${err}`
})
}
},
@@ -803,19 +797,22 @@
})
} else {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
- message: `鑾峰彇璁惧鏁版嵁澶辫触: ${Message}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getEquipFailed') == 'Sb_EquipConkBookBill.getEquipFailed' ? '鑾峰彇璁惧鏁版嵁澶辫触' : this.$t('Sb_EquipConkBookBill.getEquipFailed')}: ${Message}`
})
}
} catch (err) {
CommonUtils.showTips({
- title: "娓╅Θ鎻愮ず",
- message: `鑾峰彇璁惧鏁版嵁澶辫触: ${err}`
+ title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sb_EquipConkBookBill.tipTitle'),
+ message: `${this.$t('Sb_EquipConkBookBill.getEquipFailed') == 'Sb_EquipConkBookBill.getEquipFailed' ? '鑾峰彇璁惧鏁版嵁澶辫触' : this.$t('Sb_EquipConkBookBill.getEquipFailed')}: ${err}`
})
}
}
},
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("Sb_EquipConkBookBill.title") == 'Sb_EquipConkBookBill.title' ? '璁惧鏁呴殰鐧昏鍗�' : this.$t("Sb_EquipConkBookBill.title")
+ })
console.log('e: ', e);
if (!e.operationType) {
this.operationType = 1
diff --git a/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue b/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
index ed70cdf..b3e1da1 100644
--- a/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
+++ b/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
@@ -2,33 +2,36 @@
<view>
<view class="form">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("Sc_MouldConkBookBill.tabBasic") == "Sc_MouldConkBookBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("Sc_MouldConkBookBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("Sc_MouldConkBookBill.tabOther") == "Sc_MouldConkBookBill.tabOther" ? "鍏朵粬淇℃伅" : $t("Sc_MouldConkBookBill.tabOther") }}
+ </view>
</view>
<view v-if="tabs == 0">
<view class="form-item">
- <view class="title">妯″叿鏉$爜</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HBarCode") == "Sc_MouldConkBookBill.HBarCode" ? "妯″叿鏉$爜" : $t("Sc_MouldConkBookBill.HBarCode") }}</view>
<view class="right" :class="barcodeReadOnly?'readonly':''">
<input type="text" :disabled="barcodeReadOnly" :focus="barCodeFocus" v-model="hform.HBarCode"
- @confirm="getHBarCodeData(hform.HBarCode)" />
+ @confirm="getHBarCodeData(hform.HBarCode)" :placeholder="$t('Sc_MouldConkBookBill.HBarCode_Placeholder') == 'Sc_MouldConkBookBill.HBarCode_Placeholder' ? '璇疯緭鍏�(鎴栨壂鎻�)妯″叿鏉$爜' : $t('Sc_MouldConkBookBill.HBarCode_Placeholder')" />
</view>
<uni-icons type="scan"
style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;flex-shrink: 0;"
size="20" @click="toScanCode"></uni-icons>
</view>
<view class="form-item" @click="searchModule">
- <view class="title">妯″叿</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HMould") == "Sc_MouldConkBookBill.HMould" ? "妯″叿" : $t("Sc_MouldConkBookBill.HMould") }}</view>
<view class="righton" style="width: 350rpx;">
- <input placeholder="璇烽�夋嫨妯″叿" />
+ <input :placeholder="$t('Sc_MouldConkBookBill.HMould_Placeholder') == 'Sc_MouldConkBookBill.HMould_Placeholder' ? '璇烽�夋嫨妯″叿' : $t('Sc_MouldConkBookBill.HMould_Placeholder')" />
</view>
<uni-icons type="search"
style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
size="20"></uni-icons>
</view>
<view class="form-item">
- <view class="title">鏁呴殰鍙戠敓鏃ユ湡</view>
-
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HConkBeginDate") == "Sc_MouldConkBookBill.HConkBeginDate" ? "鏁呴殰鍙戠敓鏃ユ湡" : $t("Sc_MouldConkBookBill.HConkBeginDate") }}</view>
<view class="right">
<uni-datetime-picker type="date">
<view style="font-size: 30rpx;">{{hform.HConkBeginDate}}</view>
@@ -36,33 +39,31 @@
</view>
</view>
<view class="form-item">
- <view class="title required">鏁呴殰绫诲埆</view>
+ <view class="title required">{{ $t("Sc_MouldConkBookBill.HConkTypeName") == "Sc_MouldConkBookBill.HConkTypeName" ? "鏁呴殰绫诲埆" : $t("Sc_MouldConkBookBill.HConkTypeName") }}</view>
<view class="right">
- <uni-combox :candidates="ConkTypeNameList" placeholder="璇烽�夋嫨鏁呴殰绫诲埆" v-model="hform.HConkTypeName"
- @input="ConkTypeNameChange"></uni-combox>
+ <uni-combox :candidates="ConkTypeNameList" :placeholder="$t('Sc_MouldConkBookBill.HConkTypeName_Placeholder') == 'Sc_MouldConkBookBill.HConkTypeName_Placeholder' ? '璇烽�夋嫨鏁呴殰绫诲埆' : $t('Sc_MouldConkBookBill.HConkTypeName_Placeholder')" v-model="hform.HConkTypeName" @input="ConkTypeNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">鏁呴殰鍘熷洜</view>
+ <view class="title required">{{ $t("Sc_MouldConkBookBill.HConkReasonName") == "Sc_MouldConkBookBill.HConkReasonName" ? "鏁呴殰鍘熷洜" : $t("Sc_MouldConkBookBill.HConkReasonName") }}</view>
<view class="right">
- <uni-combox :candidates="ConkReasonNameList" placeholder="璇烽�夋嫨鏁呴殰鍘熷洜"
- v-model="hform.HConkReasonName" @input="ConkReasonChange"></uni-combox>
+ <uni-combox :candidates="ConkReasonNameList" :placeholder="$t('Sc_MouldConkBookBill.HConkReasonName_Placeholder') == 'Sc_MouldConkBookBill.HConkReasonName_Placeholder' ? '璇烽�夋嫨鏁呴殰鍘熷洜' : $t('Sc_MouldConkBookBill.HConkReasonName_Placeholder')" v-model="hform.HConkReasonName" @input="ConkReasonChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鏁呴殰鎻忚堪</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HExplanation") == "Sc_MouldConkBookBill.HExplanation" ? "鏁呴殰鎻忚堪" : $t("Sc_MouldConkBookBill.HExplanation") }}</view>
<view class="right">
- <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ユ晠闅滄弿杩�..." />
+ <textarea value="" style="height: 6em;" maxlength="2000" :placeholder="$t('Sc_MouldConkBookBill.HExplanation_Placeholder') == 'Sc_MouldConkBookBill.HExplanation_Placeholder' ? '璇疯緭鍏ユ晠闅滄弿杩�...' : $t('Sc_MouldConkBookBill.HExplanation_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙�</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�" : $t("Gy.HBillNo") }}</view>
<view class="right">
<input name="HInterID" v-model="hform.HBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡" : $t("Gy.HDate") }}</view>
<view class="right">
<uni-datetime-picker type="date">
<view style="font-size: 30rpx;">{{hform.HDate}}</view>
@@ -70,91 +71,88 @@
</view>
</view>
<view class="form-item">
- <view class="title required">閮ㄩ棬</view>
+ <view class="title required">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "閮ㄩ棬" : $t("Gy.HDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="DeptNameList" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="DeptChange"></uni-combox>
+ <uni-combox :candidates="DeptNameList" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="DeptChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">鍙戠幇浜�</view>
+ <view class="title required">{{ $t("Sc_MouldConkBookBill.HEmpName") == "Sc_MouldConkBookBill.HEmpName" ? "鍙戠幇浜�" : $t("Sc_MouldConkBookBill.HEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="EmpNameList" placeholder="璇烽�夋嫨鍙戠幇浜�" v-model="hform.HEmpName"
- @input="EmpChange"></uni-combox>
+ <uni-combox :candidates="EmpNameList" :placeholder="$t('Sc_MouldConkBookBill.HEmpName_Placeholder') == 'Sc_MouldConkBookBill.HEmpName_Placeholder' ? '璇烽�夋嫨鍙戠幇浜�' : $t('Sc_MouldConkBookBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="EmpChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">楠屾敹浜�</view>
+ <view class="title required">{{ $t("Sc_MouldConkBookBill.HManagerName") == "Sc_MouldConkBookBill.HManagerName" ? "楠屾敹浜�" : $t("Sc_MouldConkBookBill.HManagerName") }}</view>
<view class="right">
- <uni-combox :candidates="EmpNameList" placeholder="璇烽�夋嫨楠屾敹浜�" v-model="hform.HManagerName"
- @input="ManagerChange"></uni-combox>
+ <uni-combox :candidates="EmpNameList" :placeholder="$t('Sc_MouldConkBookBill.HManagerName_Placeholder') == 'Sc_MouldConkBookBill.HManagerName_Placeholder' ? '璇烽�夋嫨楠屾敹浜�' : $t('Sc_MouldConkBookBill.HManagerName_Placeholder')" v-model="hform.HManagerName" @input="ManagerChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿鍚嶇О</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HBarName") == "Sc_MouldConkBookBill.HBarName" ? "妯″叿鍚嶇О" : $t("Sc_MouldConkBookBill.HBarName") }}</view>
<view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰悕绉�" v-model="hform.HBarName" />
+ <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarName_Placeholder') == 'Sc_MouldConkBookBill.HBarName_Placeholder' ? '璇疯緭鍏ュ櫒鍏峰悕绉�' : $t('Sc_MouldConkBookBill.HBarName_Placeholder')" v-model="hform.HBarName" />
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿瑙勬牸</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HBarSpec") == "Sc_MouldConkBookBill.HBarSpec" ? "妯″叿瑙勬牸" : $t("Sc_MouldConkBookBill.HBarSpec") }}</view>
<view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏疯鏍�" v-model="hform.HBarSpec" />
+ <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarSpec_Placeholder') == 'Sc_MouldConkBookBill.HBarSpec_Placeholder' ? '璇疯緭鍏ュ櫒鍏疯鏍�' : $t('Sc_MouldConkBookBill.HBarSpec_Placeholder')" v-model="hform.HBarSpec" />
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿鍨嬪彿</view>
+ <view class="title">{{ $t("Sc_MouldConkBookBill.HBarModel") == "Sc_MouldConkBookBill.HBarModel" ? "妯″叿鍨嬪彿" : $t("Sc_MouldConkBookBill.HBarModel") }}</view>
<view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰瀷鍙�" v-model="hform.HBarModel" />
+ <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarModel_Placeholder') == 'Sc_MouldConkBookBill.HBarModel_Placeholder' ? '璇疯緭鍏ュ櫒鍏峰瀷鍙�' : $t('Sc_MouldConkBookBill.HBarModel_Placeholder')" v-model="hform.HBarModel" />
</view>
</view>
</view>
<view v-if="tabs == 1">
<view class="form-item">
- <view class="title">鍒涘缓浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒涘缓浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input type="text" v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒涘缓鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒涘缓鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
<input type="text" v-model="hform.HMakeDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input type="text" v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
<input type="text" v-model="hform.HUpDateDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input type="text" v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
<input type="text" v-model="hform.HCheckDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input type="text" v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
<input type="text" v-model="hform.HDeleteDate" disabled />
</view>
@@ -163,10 +161,10 @@
<view class="bottom-btn">
<button :class="EnableSave?'btn-a':'btn-c'" :disabled="!EnableSave" size="mini"
- @tap="submit">鎻愪氦</button>
+ @tap="submit">{{ $t("Sc_MouldConkBookBill.submit") == "Sc_MouldConkBookBill.submit" ? "鎻愪氦" : $t("Sc_MouldConkBookBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("Sc_MouldConkBookBill.addNew") == "Sc_MouldConkBookBill.addNew" ? "鏂板" : $t("Sc_MouldConkBookBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("Sc_MouldConkBookBill.goBack") == "Sc_MouldConkBookBill.goBack" ? "閫�鍑�" : $t("Sc_MouldConkBookBill.goBack") }}</button>
</view>
</view>
</view>
@@ -270,6 +268,9 @@
},
async onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("Sc_MouldConkBookBill.title") == 'Sc_MouldConkBookBill.title' ? '妯″叿鏁呴殰鐧昏鍗�' : this.$t("Sc_MouldConkBookBill.title")
+ })
console.log(e, this.userInfo)
this.operationType = e.operationType || 1
if (this.operationType == 1) {
@@ -333,14 +334,14 @@
this.ConkTypeNameList = Array.from(data).map(elem => elem['鏁呴殰绫诲埆鍚嶇О'])
} else {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滅被鍨嬮敊璇�: " + Message,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initConkTypeFailed') == 'Sc_MouldConkBookBill.initConkTypeFailed' ? '鍒濆鍖栨晠闅滅被鍨嬮敊璇�: ' : this.$t('Sc_MouldConkBookBill.initConkTypeFailed') + Message,
})
}
} catch (err) {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滅被鍨嬮敊璇�: " + err,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initConkTypeFailed') == 'Sc_MouldConkBookBill.initConkTypeFailed' ? '鍒濆鍖栨晠闅滅被鍨嬮敊璇�: ' : this.$t('Sc_MouldConkBookBill.initConkTypeFailed') + err,
})
}
},
@@ -377,14 +378,14 @@
this.ConkReasonNameList = Array.from(data).map(elem => elem['HName'])
} else {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滃師鍥犻敊璇�: " + Message,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initConkReasonFailed') == 'Sc_MouldConkBookBill.initConkReasonFailed' ? '鍒濆鍖栨晠闅滃師鍥犻敊璇�: ' : this.$t('Sc_MouldConkBookBill.initConkReasonFailed') + Message,
})
}
} catch (err) {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滃師鍥犻敊璇�: " + err,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initConkReasonFailed') == 'Sc_MouldConkBookBill.initConkReasonFailed' ? '鍒濆鍖栨晠闅滃師鍥犻敊璇�: ' : this.$t('Sc_MouldConkBookBill.initConkReasonFailed') + err,
})
}
},
@@ -421,14 +422,14 @@
this.DeptNameList = Array.from(data).map(elem => elem['HName'])
} else {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栭儴闂ㄩ敊璇�: " + Message,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initDeptFailed') == 'Sc_MouldConkBookBill.initDeptFailed' ? '鍒濆鍖栭儴闂ㄩ敊璇�: ' : this.$t('Sc_MouldConkBookBill.initDeptFailed') + Message,
})
}
} catch (err) {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栭儴闂ㄩ敊璇�: " + err,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initDeptFailed') == 'Sc_MouldConkBookBill.initDeptFailed' ? '鍒濆鍖栭儴闂ㄩ敊璇�: ' : this.$t('Sc_MouldConkBookBill.initDeptFailed') + err,
})
}
},
@@ -467,14 +468,14 @@
this.EmpNameList = Array.from(data).map(elem => elem['HName'])
} else {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栬亴鍛橀敊璇�: " + Message,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initEmpFailed') == 'Sc_MouldConkBookBill.initEmpFailed' ? '鍒濆鍖栬亴鍛橀敊璇�: ' : this.$t('Sc_MouldConkBookBill.initEmpFailed') + Message,
})
}
} catch (err) {
CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栬亴鍛橀敊璇�: " + err,
+ title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '閿欒鎻愮ず' : this.$t('Sc_MouldConkBookBill.errorTitle'),
+ message: this.$t('Sc_MouldConkBookBill.initEmpFailed') == 'Sc_MouldConkBookBill.initEmpFailed' ? '鍒濆鍖栬亴鍛橀敊璇�: ' : this.$t('Sc_MouldConkBookBill.initEmpFailed') + err,
})
}
},
@@ -537,7 +538,7 @@
mpaasScanModule.mpaasScan({
'hideAlbum': true,
'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ 'timeoutText': this.$t('Sc_MouldConkBookBill.scanTimeoutText') == 'Sc_MouldConkBookBill.scanTimeoutText' ? '鏈瘑鍒埌浜岀淮鐮�' : this.$t('Sc_MouldConkBookBill.scanTimeoutText') //瓒呮椂鎻愰啋
}, (ret) => {
console.log(ret.resp_result)
if (this.hform.HBarCode == '*') {
@@ -559,7 +560,7 @@
async getHBarCodeData(HBarCode) {
if (!HBarCode) {
CommonUtils.showTips({
- message: '鏉″舰鐮佷笉鑳戒负绌�'
+ message: this.$t('Sc_MouldConkBookBill.barCodeEmpty') == 'Sc_MouldConkBookBill.barCodeEmpty' ? '鏉″舰鐮佷笉鑳戒负绌�' : this.$t('Sc_MouldConkBookBill.barCodeEmpty')
})
return
}
@@ -585,15 +586,15 @@
} else {
this.refreshBarCodeState()
return CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sc_MouldConkBookBill.tipTitle'),
message: Message
})
}
} catch (err) {
this.refreshBarCodeState()
return CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: "鎺ュ彛璇锋眰澶辫触" + err
+ title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sc_MouldConkBookBill.tipTitle'),
+ message: this.$t('Sc_MouldConkBookBill.requestFailed') == 'Sc_MouldConkBookBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Sc_MouldConkBookBill.requestFailed') + err
})
}
@@ -627,7 +628,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Sc_MouldConkBookBill.requestFailed') == 'Sc_MouldConkBookBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Sc_MouldConkBookBill.requestFailed'),
icon: 'none'
})
},
@@ -637,15 +638,15 @@
let message = ''
if (!this.hform.HConkTypeName) {
- message = '鏈~鍐欐晠闅滅被鍒�'
+ message = this.$t('Sc_MouldConkBookBill.noConkType') == 'Sc_MouldConkBookBill.noConkType' ? '鏈~鍐欐晠闅滅被鍒�' : this.$t('Sc_MouldConkBookBill.noConkType')
} else if (!this.hform.HConkReasonName) {
- message = '鏈~鍐欐晠闅滃師鍥�'
+ message = this.$t('Sc_MouldConkBookBill.noConkReason') == 'Sc_MouldConkBookBill.noConkReason' ? '鏈~鍐欐晠闅滃師鍥�' : this.$t('Sc_MouldConkBookBill.noConkReason')
} else if (!this.hform.HDeptName) {
- message = '鏈~鍐欓儴闂�'
+ message = this.$t('Sc_MouldConkBookBill.noDept') == 'Sc_MouldConkBookBill.noDept' ? '鏈~鍐欓儴闂�' : this.$t('Sc_MouldConkBookBill.noDept')
} else if (!this.hform.HEmpName) {
- message = '鏈~鍐欏彂鐜颁汉'
+ message = this.$t('Sc_MouldConkBookBill.noDiscoverer') == 'Sc_MouldConkBookBill.noDiscoverer' ? '鏈~鍐欏彂鐜颁汉' : this.$t('Sc_MouldConkBookBill.noDiscoverer')
} else if (!this.hform.HManagerName) {
- message = '鏈~鍐欓獙鏀朵汉'
+ message = this.$t('Sc_MouldConkBookBill.noChecker') == 'Sc_MouldConkBookBill.noChecker' ? '鏈~鍐欓獙鏀朵汉' : this.$t('Sc_MouldConkBookBill.noChecker')
}
if (!message) {
return true
@@ -692,8 +693,8 @@
} = res.data
if (count == 1) {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
+ title: this.$t('Sc_MouldConkBookBill.confirmTitle') == 'Sc_MouldConkBookBill.confirmTitle' ? '鎻愮ず' : this.$t('Sc_MouldConkBookBill.confirmTitle'),
+ content: res.data.Message + (this.$t('Sc_MouldConkBookBill.continueAdd') == 'Sc_MouldConkBookBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵' : this.$t('Sc_MouldConkBookBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -710,14 +711,14 @@
});
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sc_MouldConkBookBill.tipTitle'),
message: Message
})
this.EnableSave = true
}
} catch (err) {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
+ title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sc_MouldConkBookBill.tipTitle'),
message: err
})
this.EnableSave = true
@@ -726,8 +727,8 @@
goBack() {
uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+ title: this.$t('Sc_MouldConkBookBill.confirmTitle') == 'Sc_MouldConkBookBill.confirmTitle' ? '鎻愮ず' : this.$t('Sc_MouldConkBookBill.confirmTitle'),
+ content: this.$t('Sc_MouldConkBookBill.exitConfirm') == 'Sc_MouldConkBookBill.exitConfirm' ? '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�' : this.$t('Sc_MouldConkBookBill.exitConfirm'),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -759,7 +760,7 @@
console.log('data: ', data.h_v_Sc_MouldConkBookBillList_Edit);
let data1 = data.h_v_Sc_MouldConkBookBillList_Edit[0]
this.hform.HMainSourceBillType = HSourceBillType
- this.HMainSourceBillType = '鍣ㄥ叿鏁呴殰鐧昏鍗�'
+ this.HMainSourceBillType = this.$t('Sc_MouldConkBookBill.sourceBillTypeName') == 'Sc_MouldConkBookBill.sourceBillTypeName' ? '鍣ㄥ叿鏁呴殰鐧昏鍗�' : this.$t('Sc_MouldConkBookBill.sourceBillTypeName')
this.hform.HMainSourceBillNo = data1.鍗曟嵁鍙�
this.hform.HMainSourceInterID = data1.hmainid
this.hform.HMainSourceEntryID = data1.hsubid
@@ -773,8 +774,8 @@
} else {
CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: `鑾峰彇婧愬崟澶辫触: ${Message}`
+ title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '娓╅Θ鎻愮ず' : this.$t('Sc_MouldConkBookBill.tipTitle'),
+ message: this.$t('Sc_MouldConkBookBill.getSourceFailed') == 'Sc_MouldConkBookBill.getSourceFailed' ? '鑾峰彇婧愬崟澶辫触: ' : this.$t('Sc_MouldConkBookBill.getSourceFailed') + Message
})
}
@@ -788,6 +789,7 @@
</script>
<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
.form {
width: 668rpx;
margin: 20rpx auto;
diff --git a/pages/MJGL/shangmudan/MouldUpperBill.vue b/pages/MJGL/shangmudan/MouldUpperBill.vue
index 7a88654..2f13d0b 100644
--- a/pages/MJGL/shangmudan/MouldUpperBill.vue
+++ b/pages/MJGL/shangmudan/MouldUpperBill.vue
@@ -2,9 +2,10 @@
<view>
<view class="form">
<view class="form-item">
- <view class="title">鏉$爜</view>
+ <view class="title">{{ $t("MouldUpperBill.HBarCode") == "MouldUpperBill.HBarCode" ? "鏉$爜" : $t("MouldUpperBill.HBarCode") }}</view>
<view class="right" style="width: 350rpx;">
- <input type="text" :focus="HBarCodeFocus" v-model="hform.HBarCode" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜"
+ <input type="text" :focus="HBarCodeFocus" v-model="hform.HBarCode"
+ :placeholder="$t('MouldUpperBill.HBarCode_Placeholder') == 'MouldUpperBill.HBarCode_Placeholder' ? '璇锋壂鎻�(鎴栬緭鍏�)鏉$爜' : $t('MouldUpperBill.HBarCode_Placeholder')"
@confirm="getHBarCodeData(hform.HBarCode)" />
</view>
<uni-icons type="scan"
@@ -12,78 +13,80 @@
size="20" @click="toScanCode"></uni-icons>
</view>
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="() => { tabs = 0; reFocusBarCode(); }">鍗曟嵁淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="() => { tabs = 1; reFocusBarCode(); }">妯″叿淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="() => { tabs = 2; reFocusBarCode(); }">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="() => { tabs = 0; reFocusBarCode(); }">
+ {{ $t("MouldUpperBill.tabBillInfo") == "MouldUpperBill.tabBillInfo" ? "鍗曟嵁淇℃伅" : $t("MouldUpperBill.tabBillInfo") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="() => { tabs = 1; reFocusBarCode(); }">
+ {{ $t("MouldUpperBill.tabMouldInfo") == "MouldUpperBill.tabMouldInfo" ? "妯″叿淇℃伅" : $t("MouldUpperBill.tabMouldInfo") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="() => { tabs = 2; reFocusBarCode(); }">
+ {{ $t("MouldUpperBill.tabMakerInfo") == "MouldUpperBill.tabMakerInfo" ? "鍒跺崟淇℃伅" : $t("MouldUpperBill.tabMakerInfo") }}
+ </view>
</view>
<!-- 鍗曟嵁淇℃伅 -->
<view v-if="tabs == 0">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
<input name="HBillNo" disabled v-model="hform.HBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="right">
<picker mode="date" v-model="hform.HDate" @change="HDateChange">
- <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
+ <input disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨鏃ユ湡' : $t('Gy.HDate_Placeholder')" />
</picker>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>浣跨敤閮ㄩ棬:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "浣跨敤閮ㄩ棬:" : $t("Gy.HDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
+ <view class="title"><text>*</text>{{ $t("MouldUpperBill.HEmpName") == "MouldUpperBill.HEmpName" ? "鎿嶄綔鍛�:" : $t("MouldUpperBill.HEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName"
- @input="HEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldUpperBill.HEmpName_Placeholder') == 'MouldUpperBill.HEmpName_Placeholder' ? '璇烽�夋嫨鎿嶄綔鍛�' : $t('MouldUpperBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>璐熻矗浜�:</view>
+ <view class="title"><text>*</text>{{ $t("MouldUpperBill.HManagerName") == "MouldUpperBill.HManagerName" ? "璐熻矗浜�:" : $t("MouldUpperBill.HManagerName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨璐熻矗浜�" v-model="hform.HMangerName"
- @input="HManagerNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldUpperBill.HManagerName_Placeholder') == 'MouldUpperBill.HManagerName_Placeholder' ? '璇烽�夋嫨璐熻矗浜�' : $t('MouldUpperBill.HManagerName_Placeholder')" v-model="hform.HMangerName" @input="HManagerNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鐢熶骇璧勬簮:</view>
+ <view class="title"><text>*</text>{{ $t("MouldUpperBill.HSourceName") == "MouldUpperBill.HSourceName" ? "鐢熶骇璧勬簮:" : $t("MouldUpperBill.HSourceName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHSourceName" placeholder="璇烽�夋嫨鐢熶骇璧勬簮" v-model="hform.HSourceName"
- @input="HSourceNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHSourceName" :placeholder="$t('MouldUpperBill.HSourceName_Placeholder') == 'MouldUpperBill.HSourceName_Placeholder' ? '璇烽�夋嫨鐢熶骇璧勬簮' : $t('MouldUpperBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">涓婃ā鏃堕棿:</view>
+ <view class="title">{{ $t("MouldUpperBill.HScanDate") == "MouldUpperBill.HScanDate" ? "涓婃ā鏃堕棿:" : $t("MouldUpperBill.HScanDate") }}</view>
<view class="righton">
- <input name="HScanDate" disabled v-model="hform.HScanDate" placeholder="璇烽�夋嫨" />
+ <input name="HScanDate" disabled v-model="hform.HScanDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璁㈠崟:</view>
+ <view class="title">{{ $t("MouldUpperBill.HICMOBillNo") == "MouldUpperBill.HICMOBillNo" ? "鐢熶骇璁㈠崟:" : $t("MouldUpperBill.HICMOBillNo") }}</view>
<view class="righton">
<input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">娴佽浆鍗�:</view>
+ <view class="title">{{ $t("MouldUpperBill.HProcExchBillNo") == "MouldUpperBill.HProcExchBillNo" ? "娴佽浆鍗�:" : $t("MouldUpperBill.HProcExchBillNo") }}</view>
<view class="righton">
<input disabled v-model="hform.HProcExchBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right">
- <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
+ <textarea name="HRemark" v-model="hform.HRemark" auto-height :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '璇疯緭鍏ュ娉�' : $t('Gy.HRemark_Placeholder')"></textarea>
</view>
</view>
@@ -96,72 +99,72 @@
<uni-card style="margin: 10rpx 0;">
<view class="card-content">
<view class="card-row">
- <text class="label">搴忓彿锛�</text>
+ <text class="label">{{ $t("MouldUpperBill.table_SerialNo") == "MouldUpperBill.table_SerialNo" ? "搴忓彿锛�" : $t("MouldUpperBill.table_SerialNo") }}</text>
<text class="value">{{ index + 1 }}</text>
</view>
<view class="card-row">
- <text class="label">鍣ㄥ叿缂栫爜锛�</text>
+ <text class="label">{{ $t("MouldUpperBill.table_MouldCode") == "MouldUpperBill.table_MouldCode" ? "鍣ㄥ叿缂栫爜锛�" : $t("MouldUpperBill.table_MouldCode") }}</text>
<text class="value">{{ item.鍣ㄥ叿缂栫爜 }}</text>
</view>
<view class="card-row">
- <text class="label">鍣ㄥ叿鍚嶇О锛�</text>
+ <text class="label">{{ $t("MouldUpperBill.table_MouldName") == "MouldUpperBill.table_MouldName" ? "鍣ㄥ叿鍚嶇О锛�" : $t("MouldUpperBill.table_MouldName") }}</text>
<text class="value">{{ item.鍣ㄥ叿鍚嶇О }}</text>
</view>
<view class="card-row">
- <text class="label">鍣ㄥ叿鍨嬪彿锛�</text>
+ <text class="label">{{ $t("MouldUpperBill.table_MouldModel") == "MouldUpperBill.table_MouldModel" ? "鍣ㄥ叿鍨嬪彿锛�" : $t("MouldUpperBill.table_MouldModel") }}</text>
<text class="value">{{ item.鍣ㄥ叿鍨嬪彿 }}</text>
</view>
<view class="card-row">
- <text class="label">鍣ㄥ叿鏉$爜锛�</text>
+ <text class="label">{{ $t("Gy.HBarCode") == "Gy.HBarCode" ? "鍣ㄥ叿鏉$爜锛�" : $t("Gy.HBarCode") }}</text>
<text class="value">{{ item.鍣ㄥ叿鏉$爜 }}</text>
</view>
<view class="card-row">
- <text class="label">鍣ㄥ叿鏁伴噺锛�</text>
+ <text class="label">{{ $t("Gy.HQty") == "Gy.HQty" ? "鍣ㄥ叿鏁伴噺锛�" : $t("Gy.HQty") }}</text>
<text class="value">{{ item.鍣ㄥ叿鏁伴噺 }}</text>
</view>
</view>
</uni-card>
</view>
- <view class="over" v-if="listData.length == 0">鏆傛棤妯″叿鏁版嵁</view>
+ <view class="over" v-if="listData.length == 0">{{ $t("MouldUpperBill.noMouldData") == "MouldUpperBill.noMouldData" ? "鏆傛棤妯″叿鏁版嵁" : $t("MouldUpperBill.noMouldData") }}</view>
</view>
</view>
<view v-if="tabs == 2">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
<input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
<input v-else v-model="hform.HMakeDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
<input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
<input v-else v-model="hform.HUpDateDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
<input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
<input v-else v-model="hform.HCheckDate" disabled />
@@ -171,10 +174,10 @@
</view>
<view class="bottom-btn">
- <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
- <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldUpperBill.submit") == "MouldUpperBill.submit" ? "鎻愪氦" : $t("MouldUpperBill.submit") }}</button>
+ <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">{{ $t("MouldUpperBill.modify") == "MouldUpperBill.modify" ? "淇敼" : $t("MouldUpperBill.modify") }}</button>
+ <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldUpperBill.submit") == "MouldUpperBill.submit" ? "鎻愪氦" : $t("MouldUpperBill.submit") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("MouldUpperBill.goBack") == "MouldUpperBill.goBack" ? "閫�鍑�" : $t("MouldUpperBill.goBack") }}</button>
</view>
</view>
@@ -256,6 +259,10 @@
}
},
onLoad(e) {
+
+uni.setNavigationBarTitle({
+ title: this.$t("MouldUpperBill.title") == 'MouldUpperBill.title' ? '涓婃ā鍗�' : this.$t("MouldUpperBill.title")
+ })
this.HBarCodeFocus = true
this.getHDeptList()
this.getHEmpList()
@@ -289,7 +296,7 @@
mpaasScanModule.mpaasScan({
'hideAlbum': true,
'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ 'timeoutText': this.$t('MouldUpperBill.scanTimeoutText') == 'MouldUpperBill.scanTimeoutText' ? '鏈瘑鍒埌浜岀淮鐮�' : this.$t('MouldUpperBill.scanTimeoutText') //瓒呮椂鎻愰啋
}, (ret) => {
console.log(ret.resp_result)
this.hform.HBarCode = ret.resp_result
@@ -320,7 +327,7 @@
if (uni.getStorageSync('Organization') == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�") {
if (!this.hform.HSourceName) {
uni.showToast({
- title: '璇峰厛閫夋嫨鎴栨壂鎻忕敓浜ц祫婧�',
+ title: this.$t('MouldUpperBill.selectSourceFirst') == 'MouldUpperBill.selectSourceFirst' ? '璇峰厛閫夋嫨鎴栨壂鎻忕敓浜ц祫婧�' : this.$t('MouldUpperBill.selectSourceFirst'),
icon: 'none'
});
return;
@@ -388,7 +395,7 @@
case 3:
if (!this.hform.HICMOBillNo && !this.hform.HProcExchBillNo) {
uni.showToast({
- title: '璇峰厛鎵弿鐢熶骇宸ュ崟',
+ title: this.$t('MouldUpperBill.scanWorkOrderFirst') == 'MouldUpperBill.scanWorkOrderFirst' ? '璇峰厛鎵弿鐢熶骇宸ュ崟' : this.$t('MouldUpperBill.scanWorkOrderFirst'),
icon: 'none'
});
return;
@@ -435,7 +442,7 @@
break;
default:
uni.showToast({
- title: '鏈煡鐨勮繑鍥炵被鍨�',
+ title: this.$t('MouldUpperBill.unknownType') == 'MouldUpperBill.unknownType' ? '鏈煡鐨勮繑鍥炵被鍨�' : this.$t('MouldUpperBill.unknownType'),
icon: 'none',
});
break;
@@ -451,7 +458,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -472,7 +479,7 @@
if (existingIndex === -1) {
// 濡傛灉涓嶅瓨鍦紝璇存槑涓嶅湪褰撳墠鐗╂枡鐨勬鍏锋竻鍗曚腑
uni.showToast({
- title: '褰撳墠妫�鍏蜂笉鍦ㄥ綋鍓嶇墿鏂欑殑妫�鍏锋竻鍗曚腑',
+ title: this.$t('MouldUpperBill.mouldNotInList') == 'MouldUpperBill.mouldNotInList' ? '褰撳墠妫�鍏蜂笉鍦ㄥ綋鍓嶇墿鏂欑殑妫�鍏锋竻鍗曚腑' : this.$t('MouldUpperBill.mouldNotInList'),
icon: 'none',
duration: 1500
});
@@ -484,7 +491,7 @@
this.listData[existingIndex].鍣ㄥ叿鏉$爜 = this.hform.HBarCode;
this.listData[existingIndex].鍣ㄥ叿鏁伴噺 = 1;
uni.showToast({
- title: '鎵弿鎴愬姛',
+ title: this.$t('MouldUpperBill.scanSuccess') == 'MouldUpperBill.scanSuccess' ? '鎵弿鎴愬姛' : this.$t('MouldUpperBill.scanSuccess'),
icon: 'success',
duration: 1500
});
@@ -492,7 +499,7 @@
} else {
// 鍣ㄥ叿鏁伴噺宸蹭负1锛屾彁绀轰笉鍏佽閲嶅鎵弿
uni.showToast({
- title: '璇ユā鍏峰凡鎵弿锛屼笉鍏佽閲嶅鎵弿',
+ title: this.$t('MouldUpperBill.mouldAlreadyScanned') == 'MouldUpperBill.mouldAlreadyScanned' ? '璇ユā鍏峰凡鎵弿锛屼笉鍏佽閲嶅鎵弿' : this.$t('MouldUpperBill.mouldAlreadyScanned'),
icon: 'none',
duration: 1500
});
@@ -515,7 +522,7 @@
};
this.listData.push(newRow);
uni.showToast({
- title: '鎵弿鎴愬姛',
+ title: this.$t('MouldUpperBill.scanSuccess') == 'MouldUpperBill.scanSuccess' ? '鎵弿鎴愬姛' : this.$t('MouldUpperBill.scanSuccess'),
icon: 'success',
duration: 1500
});
@@ -523,7 +530,7 @@
} else {
// 濡傛灉宸插瓨鍦紝鎻愮ず鐢ㄦ埛
uni.showToast({
- title: '璇ユā鍏峰凡鎵弿',
+ title: this.$t('MouldUpperBill.mouldAlreadyScanned') == 'MouldUpperBill.mouldAlreadyScanned' ? '璇ユā鍏峰凡鎵弿' : this.$t('MouldUpperBill.mouldAlreadyScanned'),
icon: 'none',
duration: 1500
});
@@ -556,7 +563,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -596,7 +603,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -642,7 +649,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -718,7 +725,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -811,7 +818,7 @@
} else {
// 鏍¢獙涓嶉�氳繃锛屾樉绀洪敊璇俊鎭�
uni.showToast({
- title: res.data.Message || '妯″叿妗f鏍¢獙澶辫触',
+ title: res.data.Message || this.$t('MouldUpperBill.mouldCheckFailed') == 'MouldUpperBill.mouldCheckFailed' ? '妯″叿妗f鏍¢獙澶辫触' : this.$t('MouldUpperBill.mouldCheckFailed'),
icon: 'none'
});
resolve(false);
@@ -820,7 +827,7 @@
fail: (res) => {
console.log('鑾峰彇妯″叿鏉$爜澶辫触:', res);
uni.showToast({
- title: '鏍¢獙澶辫触锛岃妫�鏌ョ綉缁�',
+ title: this.$t('MouldUpperBill.checkNetworkFailed') == 'MouldUpperBill.checkNetworkFailed' ? '鏍¢獙澶辫触锛岃妫�鏌ョ綉缁�' : this.$t('MouldUpperBill.checkNetworkFailed'),
icon: 'none'
});
resolve(false);
@@ -852,7 +859,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -862,7 +869,7 @@
if (uni.getStorageSync('Organization') == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�") {
if (!this.hform.HSourceName) {
uni.showToast({
- title: '璇峰厛閫夋嫨鐢熶骇璧勬簮',
+ title: this.$t('MouldUpperBill.selectSourceFirst') == 'MouldUpperBill.selectSourceFirst' ? '璇峰厛閫夋嫨鐢熶骇璧勬簮' : this.$t('MouldUpperBill.selectSourceFirst'),
icon: 'none'
});
return;
@@ -870,7 +877,7 @@
}
if (this.listData.length === 0) {
uni.showToast({
- title: '璇疯嚦灏戞坊鍔犱竴涓ā鍏�',
+ title: this.$t('MouldUpperBill.addAtLeastOneMould') == 'MouldUpperBill.addAtLeastOneMould' ? '璇疯嚦灏戞坊鍔犱竴涓ā鍏�' : this.$t('MouldUpperBill.addAtLeastOneMould'),
icon: 'none'
})
}
@@ -885,9 +892,9 @@
if (zeroQtyItem) {
// 鎵惧埌绗竴涓暟閲忓紓甯搁」鐨勪綅缃紙绱㈠紩+1锛�
const index = this.listData.indexOf(zeroQtyItem) + 1;
- const code = zeroQtyItem.鍣ㄥ叿缂栫爜 || '鏈煡缂栫爜';
+ const code = zeroQtyItem.鍣ㄥ叿缂栫爜 || this.$t('MouldUpperBill.unknownCode') == 'MouldUpperBill.unknownCode' ? '鏈煡缂栫爜' : this.$t('MouldUpperBill.unknownCode');
uni.showToast({
- title: `绗�${index}琛屻��${code}銆戝櫒鍏锋暟閲忎负0锛岃妫�鏌,
+ title: this.$t('MouldUpperBill.qtyZeroError') == 'MouldUpperBill.qtyZeroError' ? '绗瑊index}琛屻�恵code}銆戝櫒鍏锋暟閲忎负0锛岃妫�鏌�' : this.$t('MouldUpperBill.qtyZeroError').replace('{index}', index).replace('{code}', code),
icon: 'none',
duration: 3000
});
@@ -896,22 +903,22 @@
}
if (!this.hform.HEmpName) {
uni.showToast({
- title: '璇烽�夋嫨鎿嶄綔鍛�',
+ title: this.$t('MouldUpperBill.selectOperator') == 'MouldUpperBill.selectOperator' ? '璇烽�夋嫨鎿嶄綔鍛�' : this.$t('MouldUpperBill.selectOperator'),
icon: 'none'
})
} else if (!this.hform.HMangerName) {
uni.showToast({
- title: '璇烽�夋嫨璐熻矗浜�',
+ title: this.$t('MouldUpperBill.selectManager') == 'MouldUpperBill.selectManager' ? '璇烽�夋嫨璐熻矗浜�' : this.$t('MouldUpperBill.selectManager'),
icon: 'none'
})
} else if (!this.hform.HDeptName) {
uni.showToast({
- title: '璇烽�夋嫨閮ㄩ棬',
+ title: this.$t('MouldUpperBill.selectDept') == 'MouldUpperBill.selectDept' ? '璇烽�夋嫨閮ㄩ棬' : this.$t('MouldUpperBill.selectDept'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('MouldUpperBill.pleaseWait') == 'MouldUpperBill.pleaseWait' ? '璇风◢鍊�' : this.$t('MouldUpperBill.pleaseWait')
})
// ========== 绗竴姝ワ細鏋勫缓涓昏〃鏁版嵁 ==========
const mainData = {
@@ -987,8 +994,8 @@
let prePage = pages[pages.length - 2];
uni.showModal({
- title: "鎻愮ず",
- content: res.data.Message + "銆傛槸鍚︾户缁柊澧烇紵",
+ title: this.$t('MouldUpperBill.confirmTitle') == 'MouldUpperBill.confirmTitle' ? '鎻愮ず' : this.$t('MouldUpperBill.confirmTitle'),
+ content: res.data.Message + (this.$t('MouldUpperBill.continueAdd') == 'MouldUpperBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵' : this.$t('MouldUpperBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log("鐢ㄦ埛鐐瑰嚮纭畾");
@@ -1012,7 +1019,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldUpperBill.requestFailed'),
icon: 'none'
})
},
@@ -1021,8 +1028,8 @@
},
goBack() {
uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+ title: this.$t('MouldUpperBill.confirmTitle') == 'MouldUpperBill.confirmTitle' ? '鎻愮ず' : this.$t('MouldUpperBill.confirmTitle'),
+ content: this.$t('MouldUpperBill.exitConfirm') == 'MouldUpperBill.exitConfirm' ? '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�' : this.$t('MouldUpperBill.exitConfirm'),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -1038,6 +1045,7 @@
</script>
<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
.form {
width: 668rpx;
margin: 20rpx auto;
@@ -1160,5 +1168,4 @@
border-bottom: 3px solid #3a78ff;
}
}
-
</style>
\ No newline at end of file
diff --git a/pages/MJGL/style/MJBillStyle.scss b/pages/MJGL/style/MJBillStyle.scss
index 21ebdbb..1107dde 100644
--- a/pages/MJGL/style/MJBillStyle.scss
+++ b/pages/MJGL/style/MJBillStyle.scss
@@ -97,6 +97,7 @@
// width: 450rpx;
flex: 1;
border-radius: 22rpx;
+ height: 100%;
border: 1px solid #acacac;
position: relative;
display: flex;
@@ -106,7 +107,19 @@
}
.uni-combox {
- width: 100%
+ width: 100%;
+ padding-top: 0;
+ padding-bottom: 0;
+
+ .uni-input-wrapper {
+ .uni-input-placeholder{
+ font-size: 24rpx;
+ }
+ }
+
+ .uni-input-wrapper ::v-deep(.uni-input-input) {
+ font-size: 24rpx !important;
+ }
}
}
@@ -307,4 +320,19 @@
.placeholder {
flex: 1
}
- }
\ No newline at end of file
+ }
+ .icon-wrapper-big {
+ background-color: #3a78ff;
+ border-radius: 100%;
+ width: 50rpx;
+ height: 50rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-shrink: 0;
+ margin-left: 20rpx;
+
+ .uni-icons {
+ color: #fff !important;
+ }
+ }
\ No newline at end of file
diff --git a/pages/MJGL/xiamodan/MouldLowerBill.vue b/pages/MJGL/xiamodan/MouldLowerBill.vue
index 0ba770a..89be571 100644
--- a/pages/MJGL/xiamodan/MouldLowerBill.vue
+++ b/pages/MJGL/xiamodan/MouldLowerBill.vue
@@ -2,104 +2,100 @@
<view>
<view class="form">
<view class="form-item">
- <view class="title"><text>*</text>鏉″舰鐮�:</view>
+ <view class="title"><text>*</text>{{ $t("MouldLowerBill.HBarCode") == "MouldLowerBill.HBarCode" ? "鏉″舰鐮�:" : $t("MouldLowerBill.HBarCode") }}</view>
<view class="right" style="width: 380rpx;">
- <input v-model="hform.HBarCode" placeholder="璇锋壂鎻忔潯鐮�" @blur="getHBarCodeData(hform.HBarCode)" />
+ <input v-model="hform.HBarCode" :placeholder="$t('MouldLowerBill.HBarCode_Placeholder') == 'MouldLowerBill.HBarCode_Placeholder' ? '璇锋壂鎻忔潯鐮�' : $t('MouldLowerBill.HBarCode_Placeholder')" @blur="getHBarCodeData(hform.HBarCode)" />
</view>
<uni-icons type="scan"
style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
size="20" @click="toScanCode"></uni-icons>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
<input name="HBillNo" disabled v-model="hform.HBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="right">
<picker mode="date" v-model="hform.HDate" @change="HDateChange">
- <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
+ <input disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨鏃ユ湡' : $t('Gy.HDate_Placeholder')" />
</picker>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>閮ㄩ棬:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "閮ㄩ棬:" : $t("Gy.HDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
+ <view class="title"><text>*</text>{{ $t("MouldLowerBill.HEmpName") == "MouldLowerBill.HEmpName" ? "鎿嶄綔鍛�:" : $t("MouldLowerBill.HEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName"
- @input="HEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldLowerBill.HEmpName_Placeholder') == 'MouldLowerBill.HEmpName_Placeholder' ? '璇烽�夋嫨鎿嶄綔鍛�' : $t('MouldLowerBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>璐熻矗浜�:</view>
+ <view class="title"><text>*</text>{{ $t("MouldLowerBill.HManagerName") == "MouldLowerBill.HManagerName" ? "璐熻矗浜�:" : $t("MouldLowerBill.HManagerName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨璐熻矗浜�" v-model="hform.HMangerName"
- @input="HManagerNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldLowerBill.HManagerName_Placeholder') == 'MouldLowerBill.HManagerName_Placeholder' ? '璇烽�夋嫨璐熻矗浜�' : $t('MouldLowerBill.HManagerName_Placeholder')" v-model="hform.HMangerName" @input="HManagerNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璧勬簮:</view>
+ <view class="title">{{ $t("MouldLowerBill.HSourceName") == "MouldLowerBill.HSourceName" ? "鐢熶骇璧勬簮:" : $t("MouldLowerBill.HSourceName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHSourceName" placeholder="璇烽�夋嫨鐢熶骇璧勬簮" v-model="hform.HSourceName"
- @input="HSourceNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHSourceName" :placeholder="$t('MouldLowerBill.HSourceName_Placeholder') == 'MouldLowerBill.HSourceName_Placeholder' ? '璇烽�夋嫨鐢熶骇璧勬簮' : $t('MouldLowerBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿缂栫爜:</view>
+ <view class="title">{{ $t("MouldLowerBill.HMouldNumber") == "MouldLowerBill.HMouldNumber" ? "妯″叿缂栫爜:" : $t("MouldLowerBill.HMouldNumber") }}</view>
<view class="righton">
- <input name="HMouldNumber" v-model="hform.HMouldNumber" disabled placeholder="璇疯緭鍏ュ櫒鍏风紪鐮�" />
+ <input name="HMouldNumber" v-model="hform.HMouldNumber" disabled :placeholder="$t('MouldLowerBill.HMouldNumber_Placeholder') == 'MouldLowerBill.HMouldNumber_Placeholder' ? '璇疯緭鍏ュ櫒鍏风紪鐮�' : $t('MouldLowerBill.HMouldNumber_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿鍚嶇О:</view>
+ <view class="title">{{ $t("MouldLowerBill.HMouldName") == "MouldLowerBill.HMouldName" ? "妯″叿鍚嶇О:" : $t("MouldLowerBill.HMouldName") }}</view>
<view class="righton">
- <input name="HMouldName" v-model="hform.HMouldName" disabled placeholder="璇疯緭鍏ュ櫒鍏峰悕绉�" />
+ <input name="HMouldName" v-model="hform.HMouldName" disabled :placeholder="$t('MouldLowerBill.HMouldName_Placeholder') == 'MouldLowerBill.HMouldName_Placeholder' ? '璇疯緭鍏ュ櫒鍏峰悕绉�' : $t('MouldLowerBill.HMouldName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">妯″叿鍨嬪彿:</view>
+ <view class="title">{{ $t("MouldLowerBill.HMouldModel") == "MouldLowerBill.HMouldModel" ? "妯″叿鍨嬪彿:" : $t("MouldLowerBill.HMouldModel") }}</view>
<view class="righton">
- <input name="HMouldModel" v-model="hform.HMouldModel" disabled placeholder="璇疯緭鍏ュ櫒鍏峰瀷鍙�" />
+ <input name="HMouldModel" v-model="hform.HMouldModel" disabled :placeholder="$t('MouldLowerBill.HMouldModel_Placeholder') == 'MouldLowerBill.HMouldModel_Placeholder' ? '璇疯緭鍏ュ櫒鍏峰瀷鍙�' : $t('MouldLowerBill.HMouldModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鏁伴噺:</view>
+ <view class="title">{{ $t("Gy.HQty") == "Gy.HQty" ? "鏁伴噺:" : $t("Gy.HQty") }}</view>
<view class="righton">
- <input name="HQty" v-model="hform.HQty" disabled placeholder="璇疯緭鍏ユ暟閲�" />
+ <input name="HQty" v-model="hform.HQty" disabled :placeholder="$t('Gy.HQty_Placeholder') == 'Gy.HQty_Placeholder' ? '璇疯緭鍏ユ暟閲�' : $t('Gy.HQty_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓嬫ā鏃堕棿:</view>
+ <view class="title">{{ $t("MouldLowerBill.HScanDate") == "MouldLowerBill.HScanDate" ? "涓嬫ā鏃堕棿:" : $t("MouldLowerBill.HScanDate") }}</view>
<view class="righton">
- <input name="HScanDate" disabled v-model="hform.HScanDate" placeholder="璇烽�夋嫨" />
+ <input name="HScanDate" disabled v-model="hform.HScanDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璁㈠崟:</view>
+ <view class="title">{{ $t("MouldLowerBill.HICMOBillNo") == "MouldLowerBill.HICMOBillNo" ? "鐢熶骇璁㈠崟:" : $t("MouldLowerBill.HICMOBillNo") }}</view>
<view class="righton">
<input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">娴佽浆鍗�:</view>
+ <view class="title">{{ $t("MouldLowerBill.HProcExchBillNo") == "MouldLowerBill.HProcExchBillNo" ? "娴佽浆鍗�:" : $t("MouldLowerBill.HProcExchBillNo") }}</view>
<view class="righton">
<input disabled v-model="hform.HProcExchBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right">
- <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
+ <textarea name="HRemark" v-model="hform.HRemark" auto-height :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '璇疯緭鍏ュ娉�' : $t('Gy.HRemark_Placeholder')"></textarea>
</view>
</view>
@@ -107,39 +103,39 @@
<view v-if="showmore">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
<input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
<input v-else v-model="hform.HMakeDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
<input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
<input v-else v-model="hform.HUpDateDate" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
<input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
<input v-else v-model="hform.HCheckDate" disabled />
@@ -149,20 +145,20 @@
</view>
<view class="other">
<view v-if="!showmore" @tap="showmore = true">
- 灞曞紑鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
+ {{ $t("MouldLowerBill.expandInfo") == "MouldLowerBill.expandInfo" ? "灞曞紑鍏朵粬淇℃伅" : $t("MouldLowerBill.expandInfo") }}<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
</view>
<view v-if="showmore" @tap="showmore = false">
- 鎶樺彔鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
+ {{ $t("MouldLowerBill.collapseInfo") == "MouldLowerBill.collapseInfo" ? "鎶樺彔鍏朵粬淇℃伅" : $t("MouldLowerBill.collapseInfo") }}<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
</view>
</view>
<view class="tab_area"></view>
<view class="bottom-btn">
- <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
- <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldLowerBill.submit") == "MouldLowerBill.submit" ? "鎻愪氦" : $t("MouldLowerBill.submit") }}</button>
+ <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">{{ $t("MouldLowerBill.modify") == "MouldLowerBill.modify" ? "淇敼" : $t("MouldLowerBill.modify") }}</button>
+ <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldLowerBill.submit") == "MouldLowerBill.submit" ? "鎻愪氦" : $t("MouldLowerBill.submit") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("MouldLowerBill.goBack") == "MouldLowerBill.goBack" ? "閫�鍑�" : $t("MouldLowerBill.goBack") }}</button>
</view>
</view>
@@ -238,6 +234,9 @@
},
onLoad(e) {
+uni.setNavigationBarTitle({
+ title: this.$t("MouldLowerBill.title") == 'MouldLowerBill.title' ? '涓嬫ā鍗�' : this.$t("MouldLowerBill.title")
+ })
this.hform.HMaker = uni.getStorageSync('HUserName')
console.log(e, this.userInfo)
if (e.linterid) {
@@ -260,7 +259,7 @@
mpaasScanModule.mpaasScan({
'hideAlbum': true,
'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ 'timeoutText': this.$t('MouldLowerBill.scanTimeoutText') == 'MouldLowerBill.scanTimeoutText' ? '鏈瘑鍒埌浜岀淮鐮�' : this.$t('MouldLowerBill.scanTimeoutText') //瓒呮椂鎻愰啋
}, (ret) => {
console.log(ret.resp_result)
this.hform.HBarCode = ret.resp_result
@@ -314,7 +313,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -345,7 +344,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -385,7 +384,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -432,7 +431,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -511,7 +510,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -541,7 +540,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -550,32 +549,32 @@
submit() {
if (!this.hform.HBarCode) {
uni.showToast({
- title: '璇锋壂鎻忔ā鍏锋潯褰㈢爜',
+ title: this.$t('MouldLowerBill.scanMouldBarCode') == 'MouldLowerBill.scanMouldBarCode' ? '璇锋壂鎻忔ā鍏锋潯褰㈢爜' : this.$t('MouldLowerBill.scanMouldBarCode'),
icon: 'none'
})
} else if (!this.hform.HSourceName) {
uni.showToast({
- title: '璇烽�夋嫨鐢熶骇璧勬簮',
+ title: this.$t('MouldLowerBill.selectSource') == 'MouldLowerBill.selectSource' ? '璇烽�夋嫨鐢熶骇璧勬簮' : this.$t('MouldLowerBill.selectSource'),
icon: 'none'
})
} else if (!this.hform.HMouldName) {
uni.showToast({
- title: '妯″叿涓嶈兘涓虹┖',
+ title: this.$t('MouldLowerBill.mouldRequired') == 'MouldLowerBill.mouldRequired' ? '妯″叿涓嶈兘涓虹┖' : this.$t('MouldLowerBill.mouldRequired'),
icon: 'none'
})
} else if (!this.hform.HEmpName) {
uni.showToast({
- title: '璇烽�夋嫨鎿嶄綔鍛�',
+ title: this.$t('MouldLowerBill.selectOperator') == 'MouldLowerBill.selectOperator' ? '璇烽�夋嫨鎿嶄綔鍛�' : this.$t('MouldLowerBill.selectOperator'),
icon: 'none'
})
} else if (!this.hform.HMangerName) {
uni.showToast({
- title: '璇烽�夋嫨璐熻矗浜�',
+ title: this.$t('MouldLowerBill.selectManager') == 'MouldLowerBill.selectManager' ? '璇烽�夋嫨璐熻矗浜�' : this.$t('MouldLowerBill.selectManager'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('MouldLowerBill.pleaseWait') == 'MouldLowerBill.pleaseWait' ? '璇风◢鍊�' : this.$t('MouldLowerBill.pleaseWait')
})
var sMainStr = JSON.stringify(this.hform);
var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName') + ";" + this.btnType;
@@ -593,8 +592,8 @@
if (res.data.count == 1) {
uni.showModal({
- title: "鎻愮ず",
- content: res.data.Message + "銆傛槸鍚︾户缁柊澧烇紵",
+ title: this.$t('MouldLowerBill.confirmTitle') == 'MouldLowerBill.confirmTitle' ? '鎻愮ず' : this.$t('MouldLowerBill.confirmTitle'),
+ content: res.data.Message + (this.$t('MouldLowerBill.continueAdd') == 'MouldLowerBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵' : this.$t('MouldLowerBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log("鐢ㄦ埛鐐瑰嚮纭畾");
@@ -620,7 +619,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('MouldLowerBill.requestFailed'),
icon: 'none'
})
},
@@ -629,8 +628,8 @@
},
goBack() {
uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+ title: this.$t('MouldLowerBill.confirmTitle') == 'MouldLowerBill.confirmTitle' ? '鎻愮ず' : this.$t('MouldLowerBill.confirmTitle'),
+ content: this.$t('MouldLowerBill.exitConfirm') == 'MouldLowerBill.exitConfirm' ? '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�' : this.$t('MouldLowerBill.exitConfirm'),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -646,6 +645,7 @@
</script>
<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
.form {
width: 668rpx;
margin: 20rpx auto;
diff --git a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBill.vue b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBill.vue
index 39db21a..2e5a4f1 100644
--- a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBill.vue
+++ b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBill.vue
@@ -3,275 +3,268 @@
<!-- 椤电鍖哄煙 -->
<view class="tabs" id="tabs">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("OA_ErrMsgBackBill.tabBasic") == "OA_ErrMsgBackBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("OA_ErrMsgBackBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("OA_ErrMsgBackBill.tabOther") == "OA_ErrMsgBackBill.tabOther" ? "鍏朵粬淇℃伅" : $t("OA_ErrMsgBackBill.tabOther") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("OA_ErrMsgBackBill.tabMaker") == "OA_ErrMsgBackBill.tabMaker" ? "鍒跺崟淇℃伅" : $t("OA_ErrMsgBackBill.tabMaker") }}
+ </view>
</view>
</view>
+
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
<view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Gy.HBillNo_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
- <input name="HDate" disabled v-model="hform.HDate" placeholder="璇烽�夋嫨" />
+ <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓婚:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HContext") == "OA_ErrMsgBackBill.HContext" ? "涓婚:" : $t("OA_ErrMsgBackBill.HContext") }}</view>
<view class="right">
- <input name="HContext" v-model="hform.HContext" placeholder="璇疯緭鍏ヤ富棰�" />
+ <input name="HContext" v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackBill.HContext_Placeholder') == 'OA_ErrMsgBackBill.HContext_Placeholder' ? '璇疯緭鍏ヤ富棰�' : $t('OA_ErrMsgBackBill.HContext_Placeholder')" />
</view>
</view>
<view class="form-item" style="align-items: flex-start;">
- <view class="title"><text>*</text>璇︾粏鍐呭:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackBill.HDescription") == "OA_ErrMsgBackBill.HDescription" ? "璇︾粏鍐呭:" : $t("OA_ErrMsgBackBill.HDescription") }}</view>
<view class="right" style="min-height: 150rpx;">
<textarea name="HDescription" v-model="hform.HDescription" auto-height maxlength="-1"
- placeholder="璇疯緭鍏ヨ缁嗗唴瀹�"></textarea>
+ :placeholder="$t('OA_ErrMsgBackBill.HDescription_Placeholder') == 'OA_ErrMsgBackBill.HDescription_Placeholder' ? '璇疯緭鍏ヨ缁嗗唴瀹�' : $t('OA_ErrMsgBackBill.HDescription_Placeholder')"></textarea>
</view>
</view>
<view class="form-item">
- <view class="title">寮傚父绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HErrMsgBackTypeName") == "OA_ErrMsgBackBill.HErrMsgBackTypeName" ? "寮傚父绫诲瀷:" : $t("OA_ErrMsgBackBill.HErrMsgBackTypeName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="璇烽�夋嫨"
- v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackBill.HErrMsgBackTypeName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�侀儴闂�:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "鍙戦�侀儴闂�:" : $t("Gy.HDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佷汉:</view>
+ <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "鍙戦�佷汉:" : $t("Gy.HSendMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍙戦�佷汉" v-model="hform.HSendMan"
- @input="HSendManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '璇烽�夋嫨鍙戦�佷汉' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange"></uni-combox>
</view>
</view>
-
<view class="form-item">
- <view class="title"><text>*</text>鎺ユ敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "鎺ユ敹浜�:" : $t("Gy.HReceiveMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎺ユ敹浜�" v-model="hform.HReceiveMan"
- @input="HReceiveManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '璇烽�夋嫨鎺ユ敹浜�' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">澶勭悊浜�:</view>
+ <view class="title">{{ $t("Gy.HHandleEmpName") == "Gy.HHandleEmpName" ? "澶勭悊浜�:" : $t("Gy.HHandleEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨澶勭悊浜�" v-model="hform.HHandleEmpName"
- @input="HHandleEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HHandleEmpName_Placeholder') == 'Gy.HHandleEmpName_Placeholder' ? '璇烽�夋嫨澶勭悊浜�' : $t('Gy.HHandleEmpName_Placeholder')" v-model="hform.HHandleEmpName" @input="HHandleEmpNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">璐d换浜�:</view>
+ <view class="title">{{ $t("Gy.HBadProcManName") == "Gy.HBadProcManName" ? "璐d换浜�:" : $t("Gy.HBadProcManName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨璐d换浜�" v-model="hform.HBadProcManName"
- @input="HBadProcManNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HBadProcManName_Placeholder') == 'Gy.HBadProcManName_Placeholder' ? '璇烽�夋嫨璐d换浜�' : $t('Gy.HBadProcManName_Placeholder')" v-model="hform.HBadProcManName" @input="HBadProcManNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璧勬簮:</view>
+ <view class="title">{{ $t("Gy.HSourceName") == "Gy.HSourceName" ? "鐢熶骇璧勬簮:" : $t("Gy.HSourceName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHSourceName" placeholder="璇烽�夋嫨" v-model="hform.HSourceName"
- @input="HSourceNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHSourceName" :placeholder="$t('Gy.HSourceName_Placeholder') == 'Gy.HSourceName_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">杞﹂棿:</view>
+ <view class="title">{{ $t("Gy.HCenterName") == "Gy.HCenterName" ? "杞﹂棿:" : $t("Gy.HCenterName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHCenterName" placeholder="璇烽�夋嫨" v-model="hform.HCenterName"
- @input="HCenterNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHCenterName" :placeholder="$t('Gy.HCenterName_Placeholder') == 'Gy.HCenterName_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HCenterName_Placeholder')" v-model="hform.HCenterName" @input="HCenterNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧缂栫爜:</view>
+ <view class="title">{{ $t("Gy.HMaterNumber") == "Gy.HMaterNumber" ? "浜у搧缂栫爜:" : $t("Gy.HMaterNumber") }}</view>
<view class="right">
- <input name="HMaterNumber" v-model="hform.HMaterNumber" placeholder="璇疯緭鍏ヤ骇鍝佺紪鐮�" />
+ <input name="HMaterNumber" v-model="hform.HMaterNumber" :placeholder="$t('Gy.HMaterNumber_Placeholder') == 'Gy.HMaterNumber_Placeholder' ? '璇疯緭鍏ヤ骇鍝佺紪鐮�' : $t('Gy.HMaterNumber_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "浜у搧鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="right">
- <input name="HMaterName" v-model="hform.HMaterName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
+ <input name="HMaterName" v-model="hform.HMaterName" :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '璇疯緭鍏ヤ骇鍝佸悕绉�' : $t('Gy.HMaterName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterModel") }}</view>
<view class="right">
- <input name="HMaterModel" v-model="hform.HMaterModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+ <input name="HMaterModel" v-model="hform.HMaterModel" :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '璇疯緭鍏ヨ鏍煎瀷鍙�' : $t('Gy.HMaterModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">娑夊強鏁伴噺:</view>
+ <view class="title">{{ $t("Gy.HQty") == "Gy.HQty" ? "娑夊強鏁伴噺:" : $t("Gy.HQty") }}</view>
<view class="right">
- <input name="HQty" type="number" v-model="hform.HQty" placeholder="璇疯緭鍏ユ暟閲�" />
+ <input name="HQty" type="number" v-model="hform.HQty" :placeholder="$t('Gy.HQty_Placeholder') == 'Gy.HQty_Placeholder' ? '璇疯緭鍏ユ暟閲�' : $t('Gy.HQty_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇鐝:</view>
+ <view class="title">{{ $t("Gy.HShiftsName") == "Gy.HShiftsName" ? "鐢熶骇鐝:" : $t("Gy.HShiftsName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHShiftsName" placeholder="璇烽�夋嫨" v-model="hform.HShiftsName"
- @input="HShiftsNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHShiftsName" :placeholder="$t('Gy.HShiftsName_Placeholder') == 'Gy.HShiftsName_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HShiftsName_Placeholder')" v-model="hform.HShiftsName" @input="HShiftsNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">褰卞搷闈㈢▼搴�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HErrLev") == "OA_ErrMsgBackBill.HErrLev" ? "褰卞搷闈㈢▼搴�:" : $t("OA_ErrMsgBackBill.HErrLev") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEffect" placeholder="璇烽�夋嫨褰卞搷闈㈢▼搴�" v-model="hform.HErrLev"
- @input="HEffectChange"></uni-combox>
+ <uni-combox :candidates="arrayHEffect" :placeholder="$t('OA_ErrMsgBackBill.HErrLev_Placeholder') == 'OA_ErrMsgBackBill.HErrLev_Placeholder' ? '璇烽�夋嫨褰卞搷闈㈢▼搴�' : $t('OA_ErrMsgBackBill.HErrLev_Placeholder')" v-model="hform.HErrLev" @input="HEffectChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right" style="min-height: 150rpx;">
- <input name="HRemark" v-model="hform.HRemark" placeholder="" />
+ <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" />
</view>
</view>
</view>
</template>
+
<!-- 鍏朵粬淇℃伅 -->
<template v-if="tabs == 1">
<view class="form">
<view class="form-item">
- <view class="title">闂鏉ユ簮:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HForm") == "OA_ErrMsgBackBill.HForm" ? "闂鏉ユ簮:" : $t("OA_ErrMsgBackBill.HForm") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHForm" placeholder="璇烽�夋嫨闂鏉ユ簮" v-model="hform.HForm"
- @input="HFormChange"></uni-combox>
+ <uni-combox :candidates="arrayHForm" :placeholder="$t('OA_ErrMsgBackBill.HForm_Placeholder') == 'OA_ErrMsgBackBill.HForm_Placeholder' ? '璇烽�夋嫨闂鏉ユ簮' : $t('OA_ErrMsgBackBill.HForm_Placeholder')" v-model="hform.HForm" @input="HFormChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎺ユ敹閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HRecDeptName") == "Gy.HRecDeptName" ? "鎺ユ敹閮ㄩ棬:" : $t("Gy.HRecDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HRecDeptName"
- @input="HRecDeptChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HRecDeptName_Placeholder') == 'Gy.HRecDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HRecDeptName_Placeholder')" v-model="hform.HRecDeptName" @input="HRecDeptChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎶勯�佷汉:</view>
+ <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "鎶勯�佷汉:" : $t("Gy.HCopyMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎶勯�佷汉" v-model="hform.HCopyMan"
- @input="HCopyManChange" multiple></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '璇烽�夋嫨鎶勯�佷汉' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">QE璐d换浜�:</view>
+ <view class="title">{{ $t("Gy.HQEManName") == "Gy.HQEManName" ? "QE璐d换浜�:" : $t("Gy.HQEManName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨QE璐d换浜�" v-model="hform.HQEManName"
- @input="HQEManNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HQEManName_Placeholder') == 'Gy.HQEManName_Placeholder' ? '璇烽�夋嫨QE璐d换浜�' : $t('Gy.HQEManName_Placeholder')" v-model="hform.HQEManName" @input="HQEManNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">绱ф�ョ▼搴�:</view>
+ <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "绱ф�ョ▼搴�:" : $t("Gy.HLevel") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHLevel" placeholder="璇烽�夋嫨绱ф�ョ▼搴�" v-model="hform.HLevel"
- @input="HLevelChange"></uni-combox>
+ <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '璇烽�夋嫨绱ф�ョ▼搴�' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佺被鍨�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HSendType") == "OA_ErrMsgBackBill.HSendType" ? "鍙戦�佺被鍨�:" : $t("OA_ErrMsgBackBill.HSendType") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHSendType" placeholder="璇烽�夋嫨鍙戦�佺被鍨�" v-model="hform.HSendType"
- @input="HSendTypeChange"></uni-combox>
+ <uni-combox :candidates="arrayHSendType" :placeholder="$t('OA_ErrMsgBackBill.HSendType_Placeholder') == 'OA_ErrMsgBackBill.HSendType_Placeholder' ? '璇烽�夋嫨鍙戦�佺被鍨�' : $t('OA_ErrMsgBackBill.HSendType_Placeholder')" v-model="hform.HSendType" @input="HSendTypeChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍌績娆℃暟:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HHasten") == "OA_ErrMsgBackBill.HHasten" ? "鍌績娆℃暟:" : $t("OA_ErrMsgBackBill.HHasten") }}</view>
<view class="right">
- <input name="HHasten" type="number" v-model="hform.HHasten" placeholder="璇疯緭鍏ュ偓淇冩鏁�" />
+ <input name="HHasten" type="number" v-model="hform.HHasten" :placeholder="$t('OA_ErrMsgBackBill.HHasten_Placeholder') == 'OA_ErrMsgBackBill.HHasten_Placeholder' ? '璇疯緭鍏ュ偓淇冩鏁�' : $t('OA_ErrMsgBackBill.HHasten_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍙樺寲鐐�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HChangeNote") == "OA_ErrMsgBackBill.HChangeNote" ? "鍙樺寲鐐�:" : $t("OA_ErrMsgBackBill.HChangeNote") }}</view>
<view class="right">
- <input name="HChangeNote" v-model="hform.HChangeNote" placeholder="璇疯緭鍏ュ彉鍖栫偣" />
+ <input name="HChangeNote" v-model="hform.HChangeNote" :placeholder="$t('OA_ErrMsgBackBill.HChangeNote_Placeholder') == 'OA_ErrMsgBackBill.HChangeNote_Placeholder' ? '璇疯緭鍏ュ彉鍖栫偣' : $t('OA_ErrMsgBackBill.HChangeNote_Placeholder')" />
</view>
</view>
-
<view class="form-item">
- <view class="title">鍗曟嵁绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HBillTypeName") == "OA_ErrMsgBackBill.HBillTypeName" ? "鍗曟嵁绫诲瀷:" : $t("OA_ErrMsgBackBill.HBillTypeName") }}</view>
<view class="righton">
- <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="璇疯緭鍏ュ崟鎹被鍨�" />
+ <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackBill.HBillTypeName_Placeholder' ? '璇疯緭鍏ュ崟鎹被鍨�' : $t('OA_ErrMsgBackBill.HBillTypeName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙风爜:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackBill.HPlanBillNo") == "OA_ErrMsgBackBill.HPlanBillNo" ? "鍗曟嵁鍙风爜:" : $t("OA_ErrMsgBackBill.HPlanBillNo") }}</view>
<view class="righton">
- <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="璇疯緭鍏ュ崟鎹彿鐮�" />
+ <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackBill.HPlanBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿鐮�' : $t('OA_ErrMsgBackBill.HPlanBillNo_Placeholder')" />
</view>
</view>
</view>
</template>
+
<!-- 鍒跺崟淇℃伅 -->
<template v-if="tabs == 2">
<view class="form">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
- <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" />
+ <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
- <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" />
+ <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
- <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" />
+ <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
- <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" />
+ <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" />
</view>
</view>
</view>
</template>
+
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackBill.submit") == "OA_ErrMsgBackBill.submit" ? "鎻愪氦" : $t("OA_ErrMsgBackBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackBill.addNew") == "OA_ErrMsgBackBill.addNew" ? "鏂板" : $t("OA_ErrMsgBackBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackBill.goBack") == "OA_ErrMsgBackBill.goBack" ? "閫�鍑�" : $t("OA_ErrMsgBackBill.goBack") }}</button>
</view>
</view>
</template>
+
<script>
import dayjs from "dayjs";
import {CommonUtils} from "@/utils/common";
@@ -287,17 +280,16 @@
OperationType: 1,
refSav: "",
- arrayHLevel: ['鏅��', '绱ф��'],
- arrayHForm: ['浜�', '鏈�', '鏂�', '娉�', '鐜�', '娴�'],
- arrayHEffect: ['鍋滅嚎', '鎵归噺涓嶈壇', '鍋跺彂涓嶈壇', '鏃犳硶鍒ゆ柇'],
- arrayHSendType: ['鍏叡', '涓汉'],
+ // 鍔ㄦ�侀�夐」鏁扮粍锛堢‖缂栫爜锛屼絾閫氳繃璁$畻灞炴�ц繑鍥炲璇█鐗堟湰锛�
+ // 瀹為檯浣跨敤 computed 灞炴�э紝杩欓噷鍙畾涔夊師濮� key
+ arrayHLevelKeys: ['normal', 'urgent'],
+ arrayHFormKeys: ['human', 'machine', 'material', 'method', 'environment', 'measure'],
+ arrayHEffectKeys: ['stopLine', 'batchBad', 'occasionalBad', 'cannotJudge'],
+ arrayHSendTypeKeys: ['public', 'personal'],
- // 浜哄憳鐩稿叧鏁扮粍
+ // 浠庢帴鍙h幏鍙栫殑鏁扮粍锛堜繚鎸佸師鏍凤紝鍥犱负鎺ュ彛鏁版嵁鍙兘宸茬粡鏄璇█锛�
arrayHEmpName: [], // 鎺ユ敹浜� 鍙戦�佷汉 澶勭悊浜� 璐d换浜� 鎶勯�佷汉 QE璐d换浜�
HEmpNameList: [],
-
-
- // 鍏朵粬鏁扮粍
arrayHDeptName: [], // 鎺ユ敹銆佸彂閫侀儴闂�
HDeptNameList: [],
arrayHErrMsgBackTypeName: [], // 寮傚父鍙嶉绫诲瀷
@@ -335,29 +327,28 @@
HRecDeptName: getUserInfo().HDeptName,
HRecDeptID: getUserInfo().HDeptID,
- HLevel: '鏅��',
+ HLevel: 'normal',
HBillTypeName: '',
HPlanBillNo: '',
HMaterNumber: '',
HMaterName: '',
HMaterModel: '',
- // 鏂版坊鍔犵殑瀛楁
- HHasten: 0, // 鍌績娆℃暟
- HChangeNote: '', // 鍙樺寲鐐�
- HShiftsName: '', // 鐢熶骇鐝
- HShiftsID: '0', // 鐢熶骇鐝ID
- HErrLev: '', // 褰卞搷闈㈢▼搴�
- HForm: '浜�', // 闂鏉ユ簮
- HSendType: '鍏叡', // 鍙戦�佺被鍨�
- HReTransmitMan: '', // 杞彂鑷�
- HSourceName: '', // 鐢熶骇璧勬簮
- HSourceID: '0', // 鐢熶骇璧勬簮ID
- HCenterName: '', // 杞﹂棿
- HCenterID: '0', // 杞﹂棿ID
- HQty: 0, // 鏁伴噺
- HDeleteMan: '', // 浣滃簾浜�
- HDeleteDate: '', // 浣滃簾鏃ユ湡
+ HHasten: 0,
+ HChangeNote: '',
+ HShiftsName: '',
+ HShiftsID: '0',
+ HErrLev: '',
+ HForm: 'human',
+ HSendType: 'public',
+ HReTransmitMan: '',
+ HSourceName: '',
+ HSourceID: '0',
+ HCenterName: '',
+ HCenterID: '0',
+ HQty: 0,
+ HDeleteMan: '',
+ HDeleteDate: '',
HMainSourceBillNo: '',
HMainSourceInterID: '0',
@@ -373,7 +364,51 @@
}
}
},
+ computed: {
+ containerHeight: {
+ get() {
+ return this.btnTop - this.tabsBottom - 5
+ }
+ },
+ // 绱ф�ョ▼搴﹂�夐」锛堝璇█锛�
+ arrayHLevel() {
+ return [
+ this.$t('OA_ErrMsgBackBill.levelNormal') == 'OA_ErrMsgBackBill.levelNormal' ? '鏅��' : this.$t('OA_ErrMsgBackBill.levelNormal'),
+ this.$t('OA_ErrMsgBackBill.levelUrgent') == 'OA_ErrMsgBackBill.levelUrgent' ? '绱ф��' : this.$t('OA_ErrMsgBackBill.levelUrgent')
+ ];
+ },
+ // 闂鏉ユ簮閫夐」
+ arrayHForm() {
+ return [
+ this.$t('OA_ErrMsgBackBill.formHuman') == 'OA_ErrMsgBackBill.formHuman' ? '浜�' : this.$t('OA_ErrMsgBackBill.formHuman'),
+ this.$t('OA_ErrMsgBackBill.formMachine') == 'OA_ErrMsgBackBill.formMachine' ? '鏈�' : this.$t('OA_ErrMsgBackBill.formMachine'),
+ this.$t('OA_ErrMsgBackBill.formMaterial') == 'OA_ErrMsgBackBill.formMaterial' ? '鏂�' : this.$t('OA_ErrMsgBackBill.formMaterial'),
+ this.$t('OA_ErrMsgBackBill.formMethod') == 'OA_ErrMsgBackBill.formMethod' ? '娉�' : this.$t('OA_ErrMsgBackBill.formMethod'),
+ this.$t('OA_ErrMsgBackBill.formEnvironment') == 'OA_ErrMsgBackBill.formEnvironment' ? '鐜�' : this.$t('OA_ErrMsgBackBill.formEnvironment'),
+ this.$t('OA_ErrMsgBackBill.formMeasure') == 'OA_ErrMsgBackBill.formMeasure' ? '娴�' : this.$t('OA_ErrMsgBackBill.formMeasure')
+ ];
+ },
+ // 褰卞搷闈㈢▼搴﹂�夐」
+ arrayHEffect() {
+ return [
+ this.$t('OA_ErrMsgBackBill.effectStopLine') == 'OA_ErrMsgBackBill.effectStopLine' ? '鍋滅嚎' : this.$t('OA_ErrMsgBackBill.effectStopLine'),
+ this.$t('OA_ErrMsgBackBill.effectBatchBad') == 'OA_ErrMsgBackBill.effectBatchBad' ? '鎵归噺涓嶈壇' : this.$t('OA_ErrMsgBackBill.effectBatchBad'),
+ this.$t('OA_ErrMsgBackBill.effectOccasionalBad') == 'OA_ErrMsgBackBill.effectOccasionalBad' ? '鍋跺彂涓嶈壇' : this.$t('OA_ErrMsgBackBill.effectOccasionalBad'),
+ this.$t('OA_ErrMsgBackBill.effectCannotJudge') == 'OA_ErrMsgBackBill.effectCannotJudge' ? '鏃犳硶鍒ゆ柇' : this.$t('OA_ErrMsgBackBill.effectCannotJudge')
+ ];
+ },
+ // 鍙戦�佺被鍨嬮�夐」
+ arrayHSendType() {
+ return [
+ this.$t('OA_ErrMsgBackBill.sendTypePublic') == 'OA_ErrMsgBackBill.sendTypePublic' ? '鍏叡' : this.$t('OA_ErrMsgBackBill.sendTypePublic'),
+ this.$t('OA_ErrMsgBackBill.sendTypePersonal') == 'OA_ErrMsgBackBill.sendTypePersonal' ? '涓汉' : this.$t('OA_ErrMsgBackBill.sendTypePersonal')
+ ];
+ }
+ },
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("OA_ErrMsgBackBill.title") == 'OA_ErrMsgBackBill.title' ? '寮傚父鍙嶉鍗�' : this.$t("OA_ErrMsgBackBill.title")
+ })
this.getListData()
if (!e.OperationType) {
this.OperationType = 1
@@ -392,13 +427,6 @@
this.getEditData(e.hmainid)
} else if (this.OperationType == 4) {
// 娴忚
- }
- },
- computed: {
- containerHeight: {
- get() {
- return this.btnTop - this.tabsBottom - 5
- }
}
},
onReady() {
@@ -473,7 +501,7 @@
}
}
},
- //閫夋嫨鎶勯�佷汉
+ //閫夋嫨璐d换浜�
HBadProcManNameChange(e) {
for (var i = 0; i < this.HEmpNameList.length; i++) {
if (this.HEmpNameList[i].HName == e) {
@@ -535,8 +563,8 @@
//鏂板鎸夐挳浜嬩欢
addNew() {
uni.showModal({
- title: '鎻愮ず',
- content: '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵',
+ title: this.$t('OA_ErrMsgBackBill.confirmTitle') == 'OA_ErrMsgBackBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackBill.confirmTitle'),
+ content: this.$t('OA_ErrMsgBackBill.addConfirm') == 'OA_ErrMsgBackBill.addConfirm' ? '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵' : this.$t('OA_ErrMsgBackBill.addConfirm'),
success: (res) => {
if (res.confirm) {
uni.redirectTo({
@@ -586,7 +614,7 @@
resolve();
} else {
uni.showToast({
- title: '鑾峰彇閮ㄩ棬淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.getDeptFailed') == 'OA_ErrMsgBackBill.getDeptFailed' ? '鑾峰彇閮ㄩ棬淇℃伅澶辫触' : this.$t('OA_ErrMsgBackBill.getDeptFailed'),
icon: 'none'
})
reject();
@@ -595,7 +623,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇閮ㄩ棬淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
reject();
@@ -622,7 +650,7 @@
resolve();
} else {
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.getErrTypeFailed') == 'OA_ErrMsgBackBill.getErrTypeFailed' ? '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触' : this.$t('OA_ErrMsgBackBill.getErrTypeFailed'),
icon: 'none'
})
reject();
@@ -631,7 +659,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
reject();
@@ -657,22 +685,22 @@
this.arrayHEmpName[i] = res.data.data[i].HName
}
this.$forceUpdate();
- resolve(); // 鎴愬姛鏃秗esolve
+ resolve();
} else {
uni.showToast({
title: res.data.Message,
icon: 'none'
})
- reject(res.data.Message); // 澶辫触鏃秗eject
+ reject(res.data.Message);
}
},
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
- reject(res); // 澶辫触鏃秗eject
+ reject(res);
},
});
});
@@ -696,7 +724,7 @@
resolve();
} else {
uni.showToast({
- title: '鑾峰彇鐢熶骇璧勬簮鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.getSourceFailed') == 'OA_ErrMsgBackBill.getSourceFailed' ? '鑾峰彇鐢熶骇璧勬簮鍒楄〃澶辫触' : this.$t('OA_ErrMsgBackBill.getSourceFailed'),
icon: 'none'
})
reject();
@@ -705,7 +733,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇鐢熶骇璧勬簮鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
reject();
@@ -732,7 +760,7 @@
resolve();
} else {
uni.showToast({
- title: '鑾峰彇杞﹂棿鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.getCenterFailed') == 'OA_ErrMsgBackBill.getCenterFailed' ? '鑾峰彇杞﹂棿鍒楄〃澶辫触' : this.$t('OA_ErrMsgBackBill.getCenterFailed'),
icon: 'none'
})
reject();
@@ -741,7 +769,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇杞﹂棿鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
reject();
@@ -769,7 +797,7 @@
resolve();
} else {
uni.showToast({
- title: '鑾峰彇鐢熶骇鐝鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.getShiftsFailed') == 'OA_ErrMsgBackBill.getShiftsFailed' ? '鑾峰彇鐢熶骇鐝鍒楄〃澶辫触' : this.$t('OA_ErrMsgBackBill.getShiftsFailed'),
icon: 'none'
})
reject();
@@ -778,7 +806,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇鐢熶骇鐝鍒楄〃澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
reject();
@@ -807,7 +835,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
},
@@ -816,7 +844,7 @@
getEditData(HInterID) {
uni.showLoading({
- title: '鍔犺浇涓�'
+ title: this.$t('OA_ErrMsgBackBill.loading') == 'OA_ErrMsgBackBill.loading' ? '鍔犺浇涓�' : this.$t('OA_ErrMsgBackBill.loading')
});
uni.request({
url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_TransFerBillListCheckDetaiL_APP',
@@ -859,7 +887,7 @@
HHandleEmpName: data.HHandleEmpName || '',
HMaterModel: data.HMaterModel || '',
HQty: data.HQty || 0,
- HForm: data.HForm || '浜�',
+ HForm: data.HForm || 'human',
HChangeNote: data.HChangeNote || '',
HNote: data.HNote || '',
HBadProcMan: data.HBadProcMan || '0',
@@ -872,8 +900,8 @@
HShiftsName: data.HShiftsName || '',
HDescription: data.HDescription || '',
HRemark: data.HRemark || '',
- HLevel: data.HLevel || '鏅��',
- HSendType: data.HSendType || '鍏叡',
+ HLevel: data.HLevel || 'normal',
+ HSendType: data.HSendType || 'public',
HErrLev: data.HErrLev || '',
HMaker: data.HMaker || userInfo.Czymc || '',
HMakeDate: data.HMakeDate ? data.HMakeDate.substr(0, 10) : dayjs(new Date()).format("YYYY-MM-DD"),
@@ -915,7 +943,7 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁璇锋眰澶辫触:', res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
});
}
@@ -925,12 +953,12 @@
submit() {
if (!this.hform.HReceiveMan) {
uni.showToast({
- title: '璇烽�夋嫨鎺ユ敹浜�',
+ title: this.$t('OA_ErrMsgBackBill.selectReceiver') == 'OA_ErrMsgBackBill.selectReceiver' ? '璇烽�夋嫨鎺ユ敹浜�' : this.$t('OA_ErrMsgBackBill.selectReceiver'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('OA_ErrMsgBackBill.pleaseWait') == 'OA_ErrMsgBackBill.pleaseWait' ? '璇风◢鍊�' : this.$t('OA_ErrMsgBackBill.pleaseWait')
})
if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) {
this.refSav = "Add";
@@ -958,8 +986,8 @@
this.SaveVerify(res.data.HInterID) //瀹℃牳
} else {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackBill.confirmTitle') == 'OA_ErrMsgBackBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackBill.continueAdd') == 'OA_ErrMsgBackBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -984,7 +1012,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
},
@@ -1006,8 +1034,8 @@
data: datas,
success: (res) => {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackBill.confirmTitle') == 'OA_ErrMsgBackBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackBill.continueAdd') == 'OA_ErrMsgBackBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -1026,7 +1054,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackBill.requestFailed') == 'OA_ErrMsgBackBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackBill.requestFailed'),
icon: 'none'
})
},
diff --git a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill.vue b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill.vue
index afe7229..86edc1a 100644
--- a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill.vue
+++ b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill.vue
@@ -3,123 +3,121 @@
<!-- 椤电鍖哄煙 -->
<view class="tabs" id="tabs">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("OA_ErrMsgBackCheckBill.tabBasic") == "OA_ErrMsgBackCheckBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("OA_ErrMsgBackCheckBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("OA_ErrMsgBackCheckBill.tabOther") == "OA_ErrMsgBackCheckBill.tabOther" ? "鍏朵粬淇℃伅" : $t("OA_ErrMsgBackCheckBill.tabOther") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("OA_ErrMsgBackCheckBill.tabMaker") == "OA_ErrMsgBackCheckBill.tabMaker" ? "鍒跺崟淇℃伅" : $t("OA_ErrMsgBackCheckBill.tabMaker") }}
+ </view>
</view>
</view>
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
<view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Gy.HBillNo_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
- <input name="HDate" disabled v-model="hform.HDate" placeholder="璇烽�夋嫨" />
+ <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">楠屾敹鍐呭:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HCheckNote") == "OA_ErrMsgBackCheckBill.HCheckNote" ? "楠屾敹鍐呭:" : $t("OA_ErrMsgBackCheckBill.HCheckNote") }}</view>
<view class="right">
- <input name="HCheckNote" v-model="hform.HCheckNote" placeholder="璇疯緭鍏ラ獙鏀跺唴瀹�" />
+ <input name="HCheckNote" v-model="hform.HCheckNote" :placeholder="$t('OA_ErrMsgBackCheckBill.HCheckNote_Placeholder') == 'OA_ErrMsgBackCheckBill.HCheckNote_Placeholder' ? '璇疯緭鍏ラ獙鏀跺唴瀹�' : $t('OA_ErrMsgBackCheckBill.HCheckNote_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">楠屾敹缁撴灉:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HCheckResult") == "OA_ErrMsgBackCheckBill.HCheckResult" ? "楠屾敹缁撴灉:" : $t("OA_ErrMsgBackCheckBill.HCheckResult") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHCheckResult" placeholder="璇烽�夋嫨楠屾敹缁撴灉" v-model="hform.HCheckResult"
- @input="HCheckResultChange"></uni-combox>
+ <uni-combox :candidates="arrayHCheckResult" :placeholder="$t('OA_ErrMsgBackCheckBill.HCheckResult_Placeholder') == 'OA_ErrMsgBackCheckBill.HCheckResult_Placeholder' ? '璇烽�夋嫨楠屾敹缁撴灉' : $t('OA_ErrMsgBackCheckBill.HCheckResult_Placeholder')" v-model="hform.HCheckResult" @input="HCheckResultChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">楠屾敹鏃堕棿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HHCheckDate") == "OA_ErrMsgBackCheckBill.HHCheckDate" ? "楠屾敹鏃堕棿:" : $t("OA_ErrMsgBackCheckBill.HHCheckDate") }}</view>
<view class="righton">
- <input name="HHCheckDate" disabled v-model="hform.HHCheckDate" placeholder="璇烽�夋嫨" />
+ <input name="HHCheckDate" disabled v-model="hform.HHCheckDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓婚:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HContext") == "OA_ErrMsgBackCheckBill.HContext" ? "涓婚:" : $t("OA_ErrMsgBackCheckBill.HContext") }}</view>
<view class="righton">
- <input name="HContext" disabled v-model="hform.HContext" placeholder="璇疯緭鍏ヤ富棰�" />
+ <input name="HContext" disabled v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackCheckBill.HContext_Placeholder') == 'OA_ErrMsgBackCheckBill.HContext_Placeholder' ? '璇疯緭鍏ヤ富棰�' : $t('OA_ErrMsgBackCheckBill.HContext_Placeholder')" />
</view>
</view>
<view class="form-item" style="align-items: flex-start;">
- <view class="title"><text>*</text>璇︾粏鍐呭:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackCheckBill.HDescription") == "OA_ErrMsgBackCheckBill.HDescription" ? "璇︾粏鍐呭:" : $t("OA_ErrMsgBackCheckBill.HDescription") }}</view>
<view class="righton" style="min-height: 150rpx;">
<textarea name="HDescription" v-model="hform.HDescription" auto-height maxlength="-1"
- placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" disabled ></textarea>
+ :placeholder="$t('OA_ErrMsgBackCheckBill.HDescription_Placeholder') == 'OA_ErrMsgBackCheckBill.HDescription_Placeholder' ? '璇疯緭鍏ヨ缁嗗唴瀹�' : $t('OA_ErrMsgBackCheckBill.HDescription_Placeholder')" disabled ></textarea>
</view>
</view>
<view class="form-item">
- <view class="title">寮傚父绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HErrMsgBackTypeName") == "OA_ErrMsgBackCheckBill.HErrMsgBackTypeName" ? "寮傚父绫诲瀷:" : $t("OA_ErrMsgBackCheckBill.HErrMsgBackTypeName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="璇烽�夋嫨"
- v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackCheckBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackCheckBill.HErrMsgBackTypeName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackCheckBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�侀儴闂�:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "鍙戦�侀儴闂�:" : $t("Gy.HDeptName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佷汉:</view>
+ <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "鍙戦�佷汉:" : $t("Gy.HSendMan") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍙戦�佷汉" v-model="hform.HSendMan"
- @input="HSendManChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '璇烽�夋嫨鍙戦�佷汉' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鎺ユ敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "鎺ユ敹浜�:" : $t("Gy.HReceiveMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎺ユ敹浜�" v-model="hform.HReceiveMan"
- @input="HReceiveManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '璇烽�夋嫨鎺ユ敹浜�' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>楠屾敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackCheckBill.HCheckEmpName") == "OA_ErrMsgBackCheckBill.HCheckEmpName" ? "楠屾敹浜�:" : $t("OA_ErrMsgBackCheckBill.HCheckEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨楠屾敹浜�" v-model="hform.HCheckEmpName"
- @input="HCheckEmpManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('OA_ErrMsgBackCheckBill.HCheckEmpName_Placeholder') == 'OA_ErrMsgBackCheckBill.HCheckEmpName_Placeholder' ? '璇烽�夋嫨楠屾敹浜�' : $t('OA_ErrMsgBackCheckBill.HCheckEmpName_Placeholder')" v-model="hform.HCheckEmpName" @input="HCheckEmpChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧璁惧:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HEquipName") == "OA_ErrMsgBackCheckBill.HEquipName" ? "鐩稿叧璁惧:" : $t("OA_ErrMsgBackCheckBill.HEquipName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEquipName" placeholder="璇烽�夋嫨璁惧" v-model="hform.HEquipName"
- @input="HEquipNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEquipName" :placeholder="$t('OA_ErrMsgBackCheckBill.HEquipName_Placeholder') == 'OA_ErrMsgBackCheckBill.HEquipName_Placeholder' ? '璇烽�夋嫨璁惧' : $t('OA_ErrMsgBackCheckBill.HEquipName_Placeholder')" v-model="hform.HEquipName" @input="HEquipNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧妯″叿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HMouldName") == "OA_ErrMsgBackCheckBill.HMouldName" ? "鐩稿叧妯″叿:" : $t("OA_ErrMsgBackCheckBill.HMouldName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHMouldName" placeholder="璇烽�夋嫨妯″叿" v-model="hform.HMouldName"
- @input="HMouldIDNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHMouldName" :placeholder="$t('OA_ErrMsgBackCheckBill.HMouldName_Placeholder') == 'OA_ErrMsgBackCheckBill.HMouldName_Placeholder' ? '璇烽�夋嫨妯″叿' : $t('OA_ErrMsgBackCheckBill.HMouldName_Placeholder')" v-model="hform.HMouldName" @input="HMouldIDNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "浜у搧鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="righton">
- <input name="HMaterName" disabled v-model="hform.HMaterName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
+ <input name="HMaterName" disabled v-model="hform.HMaterName" :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '璇疯緭鍏ヤ骇鍝佸悕绉�' : $t('Gy.HMaterName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterModel") }}</view>
<view class="righton">
- <input name="HMaterModel" disabled v-model="hform.HMaterModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+ <input name="HMaterModel" disabled v-model="hform.HMaterModel" :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '璇疯緭鍏ヨ鏍煎瀷鍙�' : $t('Gy.HMaterModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right" style="min-height: 150rpx;">
- <input name="HRemark" v-model="hform.HRemark" placeholder="" />
+ <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" />
</view>
</view>
</view>
@@ -128,36 +126,33 @@
<template v-if="tabs == 1">
<view class="form">
<view class="form-item">
- <view class="title">鎺ユ敹閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HReceiveName") == "Gy.HReceiveName" ? "鎺ユ敹閮ㄩ棬:" : $t("Gy.HReceiveName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HReceiveName"
- @input="HRecceiveChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HReceiveName_Placeholder') == 'Gy.HReceiveName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HReceiveName_Placeholder')" v-model="hform.HReceiveName" @input="HRecceiveChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎶勯�佷汉:</view>
+ <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "鎶勯�佷汉:" : $t("Gy.HCopyMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎶勯�佷汉" v-model="hform.HCopyMan"
- @input="HCopyManChange" multiple></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '璇烽�夋嫨鎶勯�佷汉' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">绱ф�ョ▼搴�:</view>
+ <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "绱ф�ョ▼搴�:" : $t("Gy.HLevel") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHLevel" placeholder="璇烽�夋嫨绱ф�ョ▼搴�" v-model="hform.HLevel"
- @input="HLevelChange"></uni-combox>
+ <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '璇烽�夋嫨绱ф�ョ▼搴�' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HBillTypeName") == "OA_ErrMsgBackCheckBill.HBillTypeName" ? "鍗曟嵁绫诲瀷:" : $t("OA_ErrMsgBackCheckBill.HBillTypeName") }}</view>
<view class="righton">
- <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="璇疯緭鍏ュ崟鎹被鍨�" />
+ <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackCheckBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackCheckBill.HBillTypeName_Placeholder' ? '璇疯緭鍏ュ崟鎹被鍨�' : $t('OA_ErrMsgBackCheckBill.HBillTypeName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙风爜:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackCheckBill.HPlanBillNo") == "OA_ErrMsgBackCheckBill.HPlanBillNo" ? "鍗曟嵁鍙风爜:" : $t("OA_ErrMsgBackCheckBill.HPlanBillNo") }}</view>
<view class="righton">
- <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="璇疯緭鍏ュ崟鎹彿鐮�" />
+ <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackCheckBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackCheckBill.HPlanBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿鐮�' : $t('OA_ErrMsgBackCheckBill.HPlanBillNo_Placeholder')" />
</view>
</view>
</view>
@@ -166,60 +161,60 @@
<template v-if="tabs == 2">
<view class="form">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
- <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" />
+ <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
- <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" />
+ <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
- <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" />
+ <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
- <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" />
+ <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" />
</view>
</view>
</view>
</template>
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackCheckBill.submit") == "OA_ErrMsgBackCheckBill.submit" ? "鎻愪氦" : $t("OA_ErrMsgBackCheckBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackCheckBill.addNew") == "OA_ErrMsgBackCheckBill.addNew" ? "鏂板" : $t("OA_ErrMsgBackCheckBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackCheckBill.goBack") == "OA_ErrMsgBackCheckBill.goBack" ? "閫�鍑�" : $t("OA_ErrMsgBackCheckBill.goBack") }}</button>
</view>
</view>
</template>
@@ -241,9 +236,6 @@
serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
OperationType: 1,
refSav: "",
-
- arrayHLevel: ['鏅��', '绱ф��'],
- arrayHCheckResult: ['瀹屾垚', '鏈畬鎴�'],
// 浜哄憳鐩稿叧鏁扮粍
arrayHEmpName: [], // 鎺ユ敹浜� 鍙戦�佷汉 楠屾敹浜� 璐d换浜� 鎶勯�佷汉 QE璐d换浜�
@@ -285,16 +277,13 @@
HCheckEmpID: getUserInfo().HEmpID,
HCopyMan: '', //鎶勯�佷汉
- HCheckResult: '瀹屾垚',
- HLevel: '鏅��',
+ HCheckResult: 'completed',
+ HLevel: 'normal',
HBillTypeName: '',
HPlanBillNo: '',
HMaterNumber: '',
HMaterName: '',
HMaterModel: '',
-
- // 鏂版坊鍔犵殑瀛楁
-
HEquipName: '', // 璁惧
HEquipID: '0', // 璁惧ID
@@ -321,7 +310,31 @@
}
}
},
+ computed: {
+ containerHeight: {
+ get() {
+ return this.btnTop - this.tabsBottom - 5
+ }
+ },
+ // 绱ф�ョ▼搴﹂�夐」锛堝璇█锛�
+ arrayHLevel() {
+ return [
+ this.$t('OA_ErrMsgBackCheckBill.levelNormal') == 'OA_ErrMsgBackCheckBill.levelNormal' ? '鏅��' : this.$t('OA_ErrMsgBackCheckBill.levelNormal'),
+ this.$t('OA_ErrMsgBackCheckBill.levelUrgent') == 'OA_ErrMsgBackCheckBill.levelUrgent' ? '绱ф��' : this.$t('OA_ErrMsgBackCheckBill.levelUrgent')
+ ];
+ },
+ // 楠屾敹缁撴灉閫夐」锛堝璇█锛�
+ arrayHCheckResult() {
+ return [
+ this.$t('OA_ErrMsgBackCheckBill.resultCompleted') == 'OA_ErrMsgBackCheckBill.resultCompleted' ? '瀹屾垚' : this.$t('OA_ErrMsgBackCheckBill.resultCompleted'),
+ this.$t('OA_ErrMsgBackCheckBill.resultIncomplete') == 'OA_ErrMsgBackCheckBill.resultIncomplete' ? '鏈畬鎴�' : this.$t('OA_ErrMsgBackCheckBill.resultIncomplete')
+ ];
+ }
+ },
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("OA_ErrMsgBackCheckBill.title") == 'OA_ErrMsgBackCheckBill.title' ? '寮傚父鍙嶉楠屾敹鍗�' : this.$t("OA_ErrMsgBackCheckBill.title")
+ })
this.getListData()
if (!e.OperationType) {
this.OperationType = 1
@@ -349,13 +362,6 @@
// 娴忚
}
},
- computed: {
- containerHeight: {
- get() {
- return this.btnTop - this.tabsBottom - 5
- }
- }
- },
onReady() {
const query = uni.createSelectorQuery().in(this)
query.select("#buttons")
@@ -368,6 +374,10 @@
})
},
methods: {
+ //閫夋嫨楠屾敹缁撴灉
+ HCheckResultChange(e) {
+ this.hform.HCheckResult = e;
+ },
//閫夋嫨鍙戦�侀儴闂�
HDeptNameChange(e) {
for (var i = 0; i < this.HDeptNameList.length; i++) {
@@ -455,8 +465,8 @@
//鏂板鎸夐挳浜嬩欢
addNew() {
uni.showModal({
- title: '鎻愮ず',
- content: '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵',
+ title: this.$t('OA_ErrMsgBackCheckBill.confirmTitle') == 'OA_ErrMsgBackCheckBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackCheckBill.confirmTitle'),
+ content: this.$t('OA_ErrMsgBackCheckBill.addConfirm') == 'OA_ErrMsgBackCheckBill.addConfirm' ? '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵' : this.$t('OA_ErrMsgBackCheckBill.addConfirm'),
success: (res) => {
if (res.confirm) {
uni.redirectTo({
@@ -510,7 +520,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -533,7 +543,7 @@
this.$forceUpdate();
} else {
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.getErrTypeFailed') == 'OA_ErrMsgBackCheckBill.getErrTypeFailed' ? '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触' : this.$t('OA_ErrMsgBackCheckBill.getErrTypeFailed'),
icon: 'none'
})
}
@@ -541,7 +551,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -574,7 +584,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -606,7 +616,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -637,7 +647,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -665,7 +675,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -754,36 +764,38 @@
.HEntryID
this.hform.HMainSourceBillType = HSouceBillType
- }else if (num == 2) {
- // 寮傚父鍙嶉鍗�
+ } else if (num == 3) {
+ // 寮傚父鍙嶉澶勭悊鍗�
this.hform.HDeptID = LoadData.HDeptID
this.hform.HDeptName = LoadData.鍙戦�侀儴闂�
- this.hform.HReceiveID = LoadData.HRecDeptID
+ this.hform.HReceiveID = LoadData.HReceiveID == undefined ? 0 : LoadData.HReceiveID
this.hform.HReceiveName = LoadData.鎺ユ敹閮ㄩ棬
this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID
this.hform.HErrMsgBackTypeName = LoadData.寮傚父绫诲瀷鍚嶇О
this.hform.HSendMan = LoadData.鍙戦�佷汉
- this.hform.HReceiveMan = getUserInfo()["HEmpName"] || LoadData.鎸囨淳澶勭悊浜�
- this.hform.HCopyMan = LoadData.鎶勯��
+ this.hform.HReceiveMan = LoadData.鎺ユ敹浜�
+ this.hform.HCopyMan = LoadData.鎶勯�佷汉
this.hform.HLevel = LoadData.绱ф�ョ▼搴�
this.hform.HContext = LoadData.涓婚
this.hform.HDescription = LoadData.璇︾粏鍐呭
- this.hform.HMaterName = LoadData.鐗╂枡鍚嶇О
+ this.hform.HMaterName = LoadData.浜у搧鍚嶇О
this.hform.HMaterModel = LoadData.瑙勬牸鍨嬪彿
- this.hform.HEquipID = LoadData.璁惧id
- this.hform.HEquipName = LoadData.璁惧鍚嶇О
- this.hform.HMouldID = LoadData.妯″叿id
- this.hform.HMouldName = LoadData.妯″叿鍚嶇О
this.hform.HBillTypeName = HSouceBillType
this.hform.HPlanBillNo = LoadData.鍗曟嵁鍙�
+ this.hform.HEquipID = LoadData.HEquipID
+ this.hform.HEquipName = LoadData.璁惧鍚嶇О
+ this.hform.HMouldID = LoadData.HMouldID
+ this.hform.HMouldName = LoadData.妯℃不鍏峰悕绉�
this.hform.HMainSourceBillNo = LoadData.鍗曟嵁鍙�
this.hform.HMainSourceInterID = LoadData.hmainid
- this.hform.HMainSourceEntryID = LoadData.HEntryID
+ this.hform.HMainSourceEntryID = LoadData.HEntryID == undefined ? "0" : LoadData.HEntryID
this.hform.HMainSourceBillType = HSouceBillType
- this.hform.HErrMsgBackBillNo = LoadData.鍗曟嵁鍙�
- this.hform.HErrMsgBackInterID = LoadData.hmainid
- this.hform.HErrMsgBackEntryID = LoadData.HEntryID
-
+ // 澶勭悊鍗曠壒鏈夊瓧娈�
+ this.hform.HCheckEmpID = LoadData.HHandleEmpID
+ this.hform.HCheckEmpName = LoadData.澶勭悊浜�
+ this.hform.HCheckNote = LoadData.澶勭悊鍐呭
+ this.hform.HCheckResult = LoadData.澶勭悊缁撴灉
+ this.hform.HHCheckDate = LoadData.澶勭悊瀹屾垚鏃堕棿
}
// 寮哄埗鏇存柊瑙嗗浘
@@ -802,7 +814,7 @@
//缂栬緫
getEditData(HInterID) {
uni.showLoading({
- title: '鍔犺浇涓�'
+ title: this.$t('OA_ErrMsgBackCheckBill.loading') == 'OA_ErrMsgBackCheckBill.loading' ? '鍔犺浇涓�' : this.$t('OA_ErrMsgBackCheckBill.loading')
});
uni.request({
url: this.serverUrl + '/Sc_MESTransFerWorkBill/Edit_OA_ErrMsgBackCheckBill',
@@ -813,14 +825,13 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁:', res);
if (res.data.code == 1) {
- const data = res.data.data[0]; // 娉ㄦ剰杩欓噷鏀逛负data[0]
+ const data = res.data.data[0];
this.hform = {
- ...this.hform, // 淇濈暀鍘熸湁鐨勯粯璁ゅ��
+ ...this.hform,
HInterID: data["hmainid"] || '',
HEntryID: data["HEntryID"] || '',
HBillNo: data["鍗曟嵁鍙�"] || '',
- HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HErrMsgBackTypeID: data["HErrMsgBackTypeID"] || '0',
HErrMsgBackTypeName: data["寮傚父绫诲瀷"] || '',
@@ -829,7 +840,7 @@
HDeptID: data["HDeptID"] || '0',
HDeptName: data["鍙戦�侀儴闂�"] || '',
- HReceiveID: data["HReceiveID"] || '0', // 鏂板瀛楁
+ HReceiveID: data["HReceiveID"] || '0',
HReceiveName: data["鎺ユ敹閮ㄩ棬"] || '',
HSendMan: data["鍙戦�佷汉"] || '',
@@ -848,12 +859,10 @@
HMouldName: data["妯℃不鍏峰悕绉�"] || '',
HCheckEmpID: data["HCheckEmpID"] || '0',
- HCheckEmp: data["楠屾敹浜�"] || '',
+ HCheckEmpName: data["楠屾敹浜�"] || '',
HCheckNote: data["楠屾敹鍐呭"] || '',
- HCheckResult: data["楠屾敹缁撴灉"] || '',
- HHCheckDate: data["楠屾敹鏃堕棿"] ? dayjs(data["楠屾敹鏃堕棿"]).format(
- "YYYY-MM-DD HH:mm:ss") : dayjs(new Date()).format("YYYY-MM-DD"),
-
+ HCheckResult: data["楠屾敹缁撴灉"] || 'completed',
+ HHCheckDate: data["楠屾敹鏃堕棿"] ? dayjs(data["楠屾敹鏃堕棿"]).format("YYYY-MM-DD HH:mm:ss") : dayjs(new Date()).format("YYYY-MM-DD"),
HMainSourceInterID: data["婧愬崟ID"] || '0',
HMainSourceEntryID: data["婧愬崟瀛怚D"] || '0',
@@ -866,12 +875,10 @@
HRemark: data["琛ㄥご澶囨敞"] || '',
HMaker: data["鍒跺崟浜�"] || this.userInfo.Czymc || '',
- HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HUpDater: data["淇敼浜�"] || this.userInfo.Czymc || '',
- HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") :
- dayjs(new Date()).format("YYYY-MM-DD"),
+ HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HChecker: data["瀹℃牳浜�"] || '',
HCheckDate: data["瀹℃牳鏃ユ湡"] ? dayjs(data["瀹℃牳鏃ユ湡"]).format("YYYY-MM-DD") : '',
@@ -879,13 +886,13 @@
HDeleteMan: data["浣滃簾浜�"] || '',
HDeleteDate: data["浣滃簾鏃ユ湡"] ? dayjs(data["浣滃簾鏃ユ湡"]).format("YYYY-MM-DD") : '',
- HLevel: data["绱ф�ョ▼搴�"] || '鏅��'
+ HLevel: data["绱ф�ョ▼搴�"] || 'normal'
};
this.isEdit = true;
} else {
uni.showToast({
- title: res.data.msg || '鑾峰彇缂栬緫鏁版嵁澶辫触',
+ title: res.data.msg || this.$t('OA_ErrMsgBackCheckBill.getEditFailed'),
icon: 'none'
});
}
@@ -894,7 +901,7 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁璇锋眰澶辫触:', res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
});
}
@@ -904,12 +911,12 @@
submit() {
if (!this.hform.HReceiveMan) {
uni.showToast({
- title: '璇烽�夋嫨鎺ユ敹浜�',
+ title: this.$t('OA_ErrMsgBackCheckBill.selectReceiver') == 'OA_ErrMsgBackCheckBill.selectReceiver' ? '璇烽�夋嫨鎺ユ敹浜�' : this.$t('OA_ErrMsgBackCheckBill.selectReceiver'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('OA_ErrMsgBackCheckBill.pleaseWait') == 'OA_ErrMsgBackCheckBill.pleaseWait' ? '璇风◢鍊�' : this.$t('OA_ErrMsgBackCheckBill.pleaseWait')
})
if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) {
this.refSav = "Add";
@@ -937,8 +944,8 @@
this.SaveVerify(res.data.HInterID) //瀹℃牳
} else {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackCheckBill.confirmTitle') == 'OA_ErrMsgBackCheckBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackCheckBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackCheckBill.continueAdd') == 'OA_ErrMsgBackCheckBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackCheckBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -963,7 +970,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
@@ -985,8 +992,8 @@
data: datas,
success: (res) => {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackCheckBill.confirmTitle') == 'OA_ErrMsgBackCheckBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackCheckBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackCheckBill.continueAdd') == 'OA_ErrMsgBackCheckBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackCheckBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -1005,7 +1012,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackCheckBill.requestFailed') == 'OA_ErrMsgBackCheckBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackCheckBill.requestFailed'),
icon: 'none'
})
},
diff --git a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill.vue b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill.vue
index b5fa055..92fb2f6 100644
--- a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill.vue
+++ b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill.vue
@@ -3,130 +3,127 @@
<!-- 椤电鍖哄煙 -->
<view class="tabs" id="tabs">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("OA_ErrMsgBackHandleBill.tabBasic") == "OA_ErrMsgBackHandleBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("OA_ErrMsgBackHandleBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("OA_ErrMsgBackHandleBill.tabOther") == "OA_ErrMsgBackHandleBill.tabOther" ? "鍏朵粬淇℃伅" : $t("OA_ErrMsgBackHandleBill.tabOther") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("OA_ErrMsgBackHandleBill.tabMaker") == "OA_ErrMsgBackHandleBill.tabMaker" ? "鍒跺崟淇℃伅" : $t("OA_ErrMsgBackHandleBill.tabMaker") }}
+ </view>
</view>
</view>
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
<view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Gy.HBillNo_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
- <input name="HDate" disabled v-model="hform.HDate" placeholder="璇烽�夋嫨" />
+ <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶勭悊鍐呭:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HHandleNote") == "OA_ErrMsgBackHandleBill.HHandleNote" ? "澶勭悊鍐呭:" : $t("OA_ErrMsgBackHandleBill.HHandleNote") }}</view>
<view class="right">
- <input name="HHandleNote" v-model="hform.HHandleNote" placeholder="璇疯緭鍏ュ鐞嗗唴瀹�" />
+ <input name="HHandleNote" v-model="hform.HHandleNote" :placeholder="$t('OA_ErrMsgBackHandleBill.HHandleNote_Placeholder') == 'OA_ErrMsgBackHandleBill.HHandleNote_Placeholder' ? '璇疯緭鍏ュ鐞嗗唴瀹�' : $t('OA_ErrMsgBackHandleBill.HHandleNote_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶勭悊缁撴灉:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HHandleResult") == "OA_ErrMsgBackHandleBill.HHandleResult" ? "澶勭悊缁撴灉:" : $t("OA_ErrMsgBackHandleBill.HHandleResult") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHHandleResult" placeholder="璇烽�夋嫨澶勭悊缁撴灉" v-model="hform.HHandleResult"
- @input="HHandleResultChange"></uni-combox>
+ <uni-combox :candidates="arrayHHandleResult" :placeholder="$t('OA_ErrMsgBackHandleBill.HHandleResult_Placeholder') == 'OA_ErrMsgBackHandleBill.HHandleResult_Placeholder' ? '璇烽�夋嫨澶勭悊缁撴灉' : $t('OA_ErrMsgBackHandleBill.HHandleResult_Placeholder')" v-model="hform.HHandleResult" @input="HHandleResultChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">瀹屾垚鏃堕棿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HHandleDate") == "OA_ErrMsgBackHandleBill.HHandleDate" ? "瀹屾垚鏃堕棿:" : $t("OA_ErrMsgBackHandleBill.HHandleDate") }}</view>
<view class="righton">
- <input name="HHandleDate" disabled v-model="hform.HHandleDate" placeholder="璇烽�夋嫨" />
+ <input name="HHandleDate" disabled v-model="hform.HHandleDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓婚:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HContext") == "OA_ErrMsgBackHandleBill.HContext" ? "涓婚:" : $t("OA_ErrMsgBackHandleBill.HContext") }}</view>
<view class="righton">
- <input name="HContext" disabled v-model="hform.HContext" placeholder="璇疯緭鍏ヤ富棰�" />
+ <input name="HContext" disabled v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackHandleBill.HContext_Placeholder') == 'OA_ErrMsgBackHandleBill.HContext_Placeholder' ? '璇疯緭鍏ヤ富棰�' : $t('OA_ErrMsgBackHandleBill.HContext_Placeholder')" />
</view>
</view>
<view class="form-item" style="align-items: flex-start;">
- <view class="title"><text>*</text>璇︾粏鍐呭:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackHandleBill.HDescription") == "OA_ErrMsgBackHandleBill.HDescription" ? "璇︾粏鍐呭:" : $t("OA_ErrMsgBackHandleBill.HDescription") }}</view>
<view class="righton" style="min-height: 150rpx;">
<textarea name="HDescription" v-model="hform.HDescription" auto-height maxlength="-1"
- placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" disabled ></textarea>
+ :placeholder="$t('OA_ErrMsgBackHandleBill.HDescription_Placeholder') == 'OA_ErrMsgBackHandleBill.HDescription_Placeholder' ? '璇疯緭鍏ヨ缁嗗唴瀹�' : $t('OA_ErrMsgBackHandleBill.HDescription_Placeholder')" disabled ></textarea>
</view>
</view>
<view class="form-item">
- <view class="title">寮傚父绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HErrMsgBackTypeName") == "OA_ErrMsgBackHandleBill.HErrMsgBackTypeName" ? "寮傚父绫诲瀷:" : $t("OA_ErrMsgBackHandleBill.HErrMsgBackTypeName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="璇烽�夋嫨"
- v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackHandleBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackHandleBill.HErrMsgBackTypeName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackHandleBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�侀儴闂�:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "鍙戦�侀儴闂�:" : $t("Gy.HDeptName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佷汉:</view>
+ <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "鍙戦�佷汉:" : $t("Gy.HSendMan") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍙戦�佷汉" v-model="hform.HSendMan"
- @input="HSendManChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '璇烽�夋嫨鍙戦�佷汉' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鎺ユ敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "鎺ユ敹浜�:" : $t("Gy.HReceiveMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎺ユ敹浜�" v-model="hform.HReceiveMan"
- @input="HReceiveManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '璇烽�夋嫨鎺ユ敹浜�' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>澶勭悊浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HHandleEmpName") == "Gy.HHandleEmpName" ? "澶勭悊浜�:" : $t("Gy.HHandleEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨澶勭悊浜�" v-model="hform.HHandleEmpName"
- @input="HHandleEmpChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HHandleEmpName_Placeholder') == 'Gy.HHandleEmpName_Placeholder' ? '璇烽�夋嫨澶勭悊浜�' : $t('Gy.HHandleEmpName_Placeholder')" v-model="hform.HHandleEmpName" @input="HHandleEmpChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>澶勭悊鍘熷洜:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackHandleBill.HBadReasonName") == "OA_ErrMsgBackHandleBill.HBadReasonName" ? "澶勭悊鍘熷洜:" : $t("OA_ErrMsgBackHandleBill.HBadReasonName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHBadReasonName" placeholder="璇烽�夋嫨澶勭悊鍘熷洜" v-model="hform.HBadReasonName"
- @input="HBadReasonNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHBadReasonName" :placeholder="$t('OA_ErrMsgBackHandleBill.HBadReasonName_Placeholder') == 'OA_ErrMsgBackHandleBill.HBadReasonName_Placeholder' ? '璇烽�夋嫨澶勭悊鍘熷洜' : $t('OA_ErrMsgBackHandleBill.HBadReasonName_Placeholder')" v-model="hform.HBadReasonName" @input="HBadReasonNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧璁惧:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HEquipName") == "OA_ErrMsgBackHandleBill.HEquipName" ? "鐩稿叧璁惧:" : $t("OA_ErrMsgBackHandleBill.HEquipName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEquipName" placeholder="璇烽�夋嫨璁惧" v-model="hform.HEquipName"
- @input="HEquipNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEquipName" :placeholder="$t('OA_ErrMsgBackHandleBill.HEquipName_Placeholder') == 'OA_ErrMsgBackHandleBill.HEquipName_Placeholder' ? '璇烽�夋嫨璁惧' : $t('OA_ErrMsgBackHandleBill.HEquipName_Placeholder')" v-model="hform.HEquipName" @input="HEquipNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧妯″叿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HMouldName") == "OA_ErrMsgBackHandleBill.HMouldName" ? "鐩稿叧妯″叿:" : $t("OA_ErrMsgBackHandleBill.HMouldName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHMouldName" placeholder="璇烽�夋嫨妯″叿" v-model="hform.HMouldName"
- @input="HMouldIDNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHMouldName" :placeholder="$t('OA_ErrMsgBackHandleBill.HMouldName_Placeholder') == 'OA_ErrMsgBackHandleBill.HMouldName_Placeholder' ? '璇烽�夋嫨妯″叿' : $t('OA_ErrMsgBackHandleBill.HMouldName_Placeholder')" v-model="hform.HMouldName" @input="HMouldIDNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "浜у搧鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="righton">
- <input name="HMaterName" disabled v-model="hform.HMaterName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
+ <input name="HMaterName" disabled v-model="hform.HMaterName" :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '璇疯緭鍏ヤ骇鍝佸悕绉�' : $t('Gy.HMaterName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterModel") }}</view>
<view class="righton">
- <input name="HMaterModel" disabled v-model="hform.HMaterModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+ <input name="HMaterModel" disabled v-model="hform.HMaterModel" :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '璇疯緭鍏ヨ鏍煎瀷鍙�' : $t('Gy.HMaterModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right" style="min-height: 150rpx;">
- <input name="HRemark" v-model="hform.HRemark" placeholder="" />
+ <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" />
</view>
</view>
</view>
@@ -135,36 +132,33 @@
<template v-if="tabs == 1">
<view class="form">
<view class="form-item">
- <view class="title">鎺ユ敹閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HReceiveName") == "Gy.HReceiveName" ? "鎺ユ敹閮ㄩ棬:" : $t("Gy.HReceiveName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HReceiveName"
- @input="HRecceiveChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HReceiveName_Placeholder') == 'Gy.HReceiveName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HReceiveName_Placeholder')" v-model="hform.HReceiveName" @input="HRecceiveChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎶勯�佷汉:</view>
+ <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "鎶勯�佷汉:" : $t("Gy.HCopyMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎶勯�佷汉" v-model="hform.HCopyMan"
- @input="HCopyManChange" multiple></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '璇烽�夋嫨鎶勯�佷汉' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">绱ф�ョ▼搴�:</view>
+ <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "绱ф�ョ▼搴�:" : $t("Gy.HLevel") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHLevel" placeholder="璇烽�夋嫨绱ф�ョ▼搴�" v-model="hform.HLevel"
- @input="HLevelChange"></uni-combox>
+ <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '璇烽�夋嫨绱ф�ョ▼搴�' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HBillTypeName") == "OA_ErrMsgBackHandleBill.HBillTypeName" ? "鍗曟嵁绫诲瀷:" : $t("OA_ErrMsgBackHandleBill.HBillTypeName") }}</view>
<view class="righton">
- <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="璇疯緭鍏ュ崟鎹被鍨�" />
+ <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackHandleBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackHandleBill.HBillTypeName_Placeholder' ? '璇疯緭鍏ュ崟鎹被鍨�' : $t('OA_ErrMsgBackHandleBill.HBillTypeName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙风爜:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackHandleBill.HPlanBillNo") == "OA_ErrMsgBackHandleBill.HPlanBillNo" ? "鍗曟嵁鍙风爜:" : $t("OA_ErrMsgBackHandleBill.HPlanBillNo") }}</view>
<view class="righton">
- <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="璇疯緭鍏ュ崟鎹彿鐮�" />
+ <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackHandleBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackHandleBill.HPlanBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿鐮�' : $t('OA_ErrMsgBackHandleBill.HPlanBillNo_Placeholder')" />
</view>
</view>
</view>
@@ -173,60 +167,60 @@
<template v-if="tabs == 2">
<view class="form">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
- <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" />
+ <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
- <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" />
+ <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
- <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" />
+ <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
- <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" />
+ <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" />
</view>
</view>
</view>
</template>
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackHandleBill.submit") == "OA_ErrMsgBackHandleBill.submit" ? "鎻愪氦" : $t("OA_ErrMsgBackHandleBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackHandleBill.addNew") == "OA_ErrMsgBackHandleBill.addNew" ? "鏂板" : $t("OA_ErrMsgBackHandleBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackHandleBill.goBack") == "OA_ErrMsgBackHandleBill.goBack" ? "閫�鍑�" : $t("OA_ErrMsgBackHandleBill.goBack") }}</button>
</view>
</view>
</template>
@@ -248,9 +242,6 @@
serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
OperationType: 1,
refSav: "",
-
- arrayHLevel: ['鏅��', '绱ф��'],
- arrayHHandleResult: ['澶勭悊瀹屾垚', '鏃犳硶澶勭悊', '鏈鐞�'],
// 浜哄憳鐩稿叧鏁扮粍
arrayHEmpName: [], // 鎺ユ敹浜� 鍙戦�佷汉 澶勭悊浜� 璐d换浜� 鎶勯�佷汉 QE璐d换浜�
@@ -296,16 +287,13 @@
HBadReasonID: '0',
HBadReasonName: '',
- HHandleResult: '澶勭悊瀹屾垚',
- HLevel: '鏅��',
+ HHandleResult: 'completed',
+ HLevel: 'normal',
HBillTypeName: '',
HPlanBillNo: '',
HMaterNumber: '',
HMaterName: '',
HMaterModel: '',
-
- // 鏂版坊鍔犵殑瀛楁
-
HEquipName: '', // 璁惧
HEquipID: '0', // 璁惧ID
@@ -332,7 +320,32 @@
}
}
},
+ computed: {
+ containerHeight: {
+ get() {
+ return this.btnTop - this.tabsBottom - 5
+ }
+ },
+ // 绱ф�ョ▼搴﹂�夐」锛堝璇█锛�
+ arrayHLevel() {
+ return [
+ this.$t('OA_ErrMsgBackHandleBill.levelNormal') == 'OA_ErrMsgBackHandleBill.levelNormal' ? '鏅��' : this.$t('OA_ErrMsgBackHandleBill.levelNormal'),
+ this.$t('OA_ErrMsgBackHandleBill.levelUrgent') == 'OA_ErrMsgBackHandleBill.levelUrgent' ? '绱ф��' : this.$t('OA_ErrMsgBackHandleBill.levelUrgent')
+ ];
+ },
+ // 澶勭悊缁撴灉閫夐」锛堝璇█锛�
+ arrayHHandleResult() {
+ return [
+ this.$t('OA_ErrMsgBackHandleBill.resultCompleted') == 'OA_ErrMsgBackHandleBill.resultCompleted' ? '澶勭悊瀹屾垚' : this.$t('OA_ErrMsgBackHandleBill.resultCompleted'),
+ this.$t('OA_ErrMsgBackHandleBill.resultUnable') == 'OA_ErrMsgBackHandleBill.resultUnable' ? '鏃犳硶澶勭悊' : this.$t('OA_ErrMsgBackHandleBill.resultUnable'),
+ this.$t('OA_ErrMsgBackHandleBill.resultPending') == 'OA_ErrMsgBackHandleBill.resultPending' ? '鏈鐞�' : this.$t('OA_ErrMsgBackHandleBill.resultPending')
+ ];
+ }
+ },
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("OA_ErrMsgBackHandleBill.title") == 'OA_ErrMsgBackHandleBill.title' ? '寮傚父鍙嶉澶勭悊鍗�' : this.$t("OA_ErrMsgBackHandleBill.title")
+ })
this.getListData()
if (!e.OperationType) {
this.OperationType = 1
@@ -360,13 +373,6 @@
// 娴忚
}
},
- computed: {
- containerHeight: {
- get() {
- return this.btnTop - this.tabsBottom - 5
- }
- }
- },
onReady() {
const query = uni.createSelectorQuery().in(this)
query.select("#buttons")
@@ -379,6 +385,10 @@
})
},
methods: {
+ //閫夋嫨澶勭悊缁撴灉
+ HHandleResultChange(e) {
+ this.hform.HHandleResult = e;
+ },
//閫夋嫨澶勭悊鍘熷洜
HBadReasonNameChange(e) {
for (var i = 0; i < this.HBadReasonNameList.length; i++) {
@@ -475,8 +485,8 @@
//鏂板鎸夐挳浜嬩欢
addNew() {
uni.showModal({
- title: '鎻愮ず',
- content: '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵',
+ title: this.$t('OA_ErrMsgBackHandleBill.confirmTitle') == 'OA_ErrMsgBackHandleBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackHandleBill.confirmTitle'),
+ content: this.$t('OA_ErrMsgBackHandleBill.addConfirm') == 'OA_ErrMsgBackHandleBill.addConfirm' ? '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵' : this.$t('OA_ErrMsgBackHandleBill.addConfirm'),
success: (res) => {
if (res.confirm) {
uni.redirectTo({
@@ -532,7 +542,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -555,7 +565,7 @@
this.$forceUpdate();
} else {
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.getErrTypeFailed') == 'OA_ErrMsgBackHandleBill.getErrTypeFailed' ? '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触' : this.$t('OA_ErrMsgBackHandleBill.getErrTypeFailed'),
icon: 'none'
})
}
@@ -563,7 +573,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -596,7 +606,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -628,7 +638,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -659,7 +669,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -691,7 +701,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -719,7 +729,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -825,7 +835,7 @@
//缂栬緫
getEditData(HInterID) {
uni.showLoading({
- title: '鍔犺浇涓�'
+ title: this.$t('OA_ErrMsgBackHandleBill.loading') == 'OA_ErrMsgBackHandleBill.loading' ? '鍔犺浇涓�' : this.$t('OA_ErrMsgBackHandleBill.loading')
});
uni.request({
url: this.serverUrl + '/Sc_MESTransFerWorkBill/Edit_OA_ErrMsgBackHandleBill',
@@ -836,14 +846,13 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁:', res);
if (res.data.code == 1) {
- const data = res.data.data[0]; // 娉ㄦ剰杩欓噷鏀逛负data[0]
+ const data = res.data.data[0];
this.hform = {
- ...this.hform, // 淇濈暀鍘熸湁鐨勯粯璁ゅ��
+ ...this.hform,
HInterID: data["hmainid"] || '',
HEntryID: data["HEntryID"] || '',
HBillNo: data["鍗曟嵁鍙�"] || '',
- HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HErrMsgBackTypeID: data["HErrMsgBackTypeID"] || '0',
HErrMsgBackTypeName: data["寮傚父绫诲瀷"] || '',
@@ -852,7 +861,7 @@
HDeptID: data["HDeptID"] || '0',
HDeptName: data["鍙戦�侀儴闂�"] || '',
- HReceiveID: data["HReceiveID"] || '0', // 鏂板瀛楁
+ HReceiveID: data["HReceiveID"] || '0',
HReceiveName: data["鎺ユ敹閮ㄩ棬"] || '',
HSendMan: data["鍙戦�佷汉"] || '',
@@ -867,35 +876,31 @@
HEquipID: data["HEquipID"] || '0',
HEquipName: data["璁惧鍚嶇О"] || '',
- HMouldID: data["HMouldID"] || '0', // 淇瀛楁鍚�
+ HMouldID: data["HMouldID"] || '0',
HMouldName: data["妯℃不鍏峰悕绉�"] || '',
HHandleEmpID: data["HHandleEmpID"] || '0',
- HHandleEmp: data["澶勭悊浜�"] || '',
- HHandleNote: data["澶勭悊鍐呭"] || '', // 鏂板瀛楁
- HHandleDate: data["澶勭悊瀹屾垚鏃堕棿"] ? dayjs(data["澶勭悊瀹屾垚鏃堕棿"]).format(
- "YYYY-MM-DD HH:mm:ss") : '',
+ HHandleEmpName: data["澶勭悊浜�"] || '',
+ HHandleNote: data["澶勭悊鍐呭"] || '',
+ HHandleDate: data["澶勭悊瀹屾垚鏃堕棿"] ? dayjs(data["澶勭悊瀹屾垚鏃堕棿"]).format("YYYY-MM-DD HH:mm:ss") : '',
HBadReasonID: data["HBadReasonID"] || '',
- HBadReasonName: data["澶勭悊鍘熷洜"] || '', // 鏂板瀛楁
-
+ HBadReasonName: data["澶勭悊鍘熷洜"] || '',
HMainSourceInterID: data["婧愬崟ID"] || '0',
HMainSourceEntryID: data["婧愬崟瀛怚D"] || '0',
HMainSourceBillNo: data["婧愬崟鍗曞彿"] || '',
HMainSourceBillType: data["婧愬崟绫诲瀷"] || '',
- HErrMsgBackBillNo: data["寮傚父鍙嶉鍗曞彿"] || '', // 鏂板瀛楁
- HErrMsgBackInterID: data["寮傚父鍙嶉鍗曚富鍐呯爜"] || '0', // 鏂板瀛楁
- HErrMsgBackEntryID: data["寮傚父鍙嶉鍗曞瓙鍐呯爜"] || '0', // 鏂板瀛楁
+ HErrMsgBackBillNo: data["寮傚父鍙嶉鍗曞彿"] || '',
+ HErrMsgBackInterID: data["寮傚父鍙嶉鍗曚富鍐呯爜"] || '0',
+ HErrMsgBackEntryID: data["寮傚父鍙嶉鍗曞瓙鍐呯爜"] || '0',
HRemark: data["琛ㄥご澶囨敞"] || '',
HMaker: data["鍒跺崟浜�"] || this.userInfo.Czymc || '',
- HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HUpDater: data["淇敼浜�"] || this.userInfo.Czymc || '',
- HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") :
- dayjs(new Date()).format("YYYY-MM-DD"),
+ HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HChecker: data["瀹℃牳浜�"] || '',
HCheckDate: data["瀹℃牳鏃ユ湡"] ? dayjs(data["瀹℃牳鏃ユ湡"]).format("YYYY-MM-DD") : '',
@@ -903,13 +908,13 @@
HDeleteMan: data["浣滃簾浜�"] || '',
HDeleteDate: data["浣滃簾鏃ユ湡"] ? dayjs(data["浣滃簾鏃ユ湡"]).format("YYYY-MM-DD") : '',
- HLevel: data["绱ф�ョ▼搴�"] || '鏅��'
+ HLevel: data["绱ф�ョ▼搴�"] || 'normal'
};
this.isEdit = true;
} else {
uni.showToast({
- title: res.data.msg || '鑾峰彇缂栬緫鏁版嵁澶辫触',
+ title: res.data.msg || this.$t('OA_ErrMsgBackHandleBill.getEditFailed'),
icon: 'none'
});
}
@@ -918,7 +923,7 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁璇锋眰澶辫触:', res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
});
}
@@ -928,19 +933,19 @@
submit() {
if (!this.hform.HReceiveMan) {
uni.showToast({
- title: '璇烽�夋嫨鎺ユ敹浜�',
+ title: this.$t('OA_ErrMsgBackHandleBill.selectReceiver') == 'OA_ErrMsgBackHandleBill.selectReceiver' ? '璇烽�夋嫨鎺ユ敹浜�' : this.$t('OA_ErrMsgBackHandleBill.selectReceiver'),
icon: 'none'
})
}
else if(!this.hform.HBadReasonName){
uni.showToast({
- title: '璇烽�夋嫨澶勭悊鍘熷洜',
+ title: this.$t('OA_ErrMsgBackHandleBill.selectReason') == 'OA_ErrMsgBackHandleBill.selectReason' ? '璇烽�夋嫨澶勭悊鍘熷洜' : this.$t('OA_ErrMsgBackHandleBill.selectReason'),
icon: 'none'
})
}
else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('OA_ErrMsgBackHandleBill.pleaseWait') == 'OA_ErrMsgBackHandleBill.pleaseWait' ? '璇风◢鍊�' : this.$t('OA_ErrMsgBackHandleBill.pleaseWait')
})
if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) {
this.refSav = "Add";
@@ -968,8 +973,8 @@
this.SaveVerify(res.data.HInterID) //瀹℃牳
} else {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackHandleBill.confirmTitle') == 'OA_ErrMsgBackHandleBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackHandleBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackHandleBill.continueAdd') == 'OA_ErrMsgBackHandleBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackHandleBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -994,7 +999,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
@@ -1016,8 +1021,8 @@
data: datas,
success: (res) => {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackHandleBill.confirmTitle') == 'OA_ErrMsgBackHandleBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackHandleBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackHandleBill.continueAdd') == 'OA_ErrMsgBackHandleBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackHandleBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -1036,7 +1041,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackHandleBill.requestFailed') == 'OA_ErrMsgBackHandleBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackHandleBill.requestFailed'),
icon: 'none'
})
},
diff --git a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill.vue b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill.vue
index f0d4309..c7d94a3 100644
--- a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill.vue
+++ b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill.vue
@@ -3,130 +3,127 @@
<!-- 椤电鍖哄煙 -->
<view class="tabs" id="tabs">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("OA_ErrMsgBackReceiveBill.tabBasic") == "OA_ErrMsgBackReceiveBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("OA_ErrMsgBackReceiveBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("OA_ErrMsgBackReceiveBill.tabOther") == "OA_ErrMsgBackReceiveBill.tabOther" ? "鍏朵粬淇℃伅" : $t("OA_ErrMsgBackReceiveBill.tabOther") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("OA_ErrMsgBackReceiveBill.tabMaker") == "OA_ErrMsgBackReceiveBill.tabMaker" ? "鍒跺崟淇℃伅" : $t("OA_ErrMsgBackReceiveBill.tabMaker") }}
+ </view>
</view>
</view>
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
<view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Gy.HBillNo_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
- <input name="HDate" disabled v-model="hform.HDate" placeholder="璇烽�夋嫨" />
+ <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鎺ユ敹纭:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HReceiveNote") == "OA_ErrMsgBackReceiveBill.HReceiveNote" ? "鎺ユ敹纭:" : $t("OA_ErrMsgBackReceiveBill.HReceiveNote") }}</view>
<view class="right">
- <input name="HReceiveNote" v-model="hform.HReceiveNote" placeholder="璇疯緭鍏ユ槸鍚︽帴鏀剁‘璁�" />
+ <input name="HReceiveNote" v-model="hform.HReceiveNote" :placeholder="$t('OA_ErrMsgBackReceiveBill.HReceiveNote_Placeholder') == 'OA_ErrMsgBackReceiveBill.HReceiveNote_Placeholder' ? '璇疯緭鍏ユ槸鍚︽帴鏀剁‘璁�' : $t('OA_ErrMsgBackReceiveBill.HReceiveNote_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶勭悊寤鸿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HHandleAdvise") == "OA_ErrMsgBackReceiveBill.HHandleAdvise" ? "澶勭悊寤鸿:" : $t("OA_ErrMsgBackReceiveBill.HHandleAdvise") }}</view>
<view class="right">
- <input name="HHandleAdvise" v-model="hform.HHandleAdvise" placeholder="璇疯緭鍏ュ鐞嗗缓璁�" />
+ <input name="HHandleAdvise" v-model="hform.HHandleAdvise" :placeholder="$t('OA_ErrMsgBackReceiveBill.HHandleAdvise_Placeholder') == 'OA_ErrMsgBackReceiveBill.HHandleAdvise_Placeholder' ? '璇疯緭鍏ュ鐞嗗缓璁�' : $t('OA_ErrMsgBackReceiveBill.HHandleAdvise_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">纭鏃堕棿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HReceiveDate") == "OA_ErrMsgBackReceiveBill.HReceiveDate" ? "纭鏃堕棿:" : $t("OA_ErrMsgBackReceiveBill.HReceiveDate") }}</view>
<view class="righton">
- <input name="HReceiveDate" disabled v-model="hform.HReceiveDate" placeholder="璇烽�夋嫨" />
+ <input name="HReceiveDate" disabled v-model="hform.HReceiveDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓婚:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HContext") == "OA_ErrMsgBackReceiveBill.HContext" ? "涓婚:" : $t("OA_ErrMsgBackReceiveBill.HContext") }}</view>
<view class="righton">
- <input name="HContext" disabled v-model="hform.HContext" placeholder="璇疯緭鍏ヤ富棰�" />
+ <input name="HContext" disabled v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackReceiveBill.HContext_Placeholder') == 'OA_ErrMsgBackReceiveBill.HContext_Placeholder' ? '璇疯緭鍏ヤ富棰�' : $t('OA_ErrMsgBackReceiveBill.HContext_Placeholder')" />
</view>
</view>
<view class="form-item" style="align-items: flex-start;">
- <view class="title"><text>*</text>璇︾粏鍐呭:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackReceiveBill.HDescription") == "OA_ErrMsgBackReceiveBill.HDescription" ? "璇︾粏鍐呭:" : $t("OA_ErrMsgBackReceiveBill.HDescription") }}</view>
<view class="righton" style="min-height: 150rpx;">
<textarea name="HDescription" v-model="hform.HDescription" auto-height maxlength="-1"
- placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" disabled ></textarea>
+ :placeholder="$t('OA_ErrMsgBackReceiveBill.HDescription_Placeholder') == 'OA_ErrMsgBackReceiveBill.HDescription_Placeholder' ? '璇疯緭鍏ヨ缁嗗唴瀹�' : $t('OA_ErrMsgBackReceiveBill.HDescription_Placeholder')" disabled ></textarea>
</view>
</view>
<view class="form-item">
- <view class="title">寮傚父绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName") == "OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName" ? "寮傚父绫诲瀷:" : $t("OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="璇烽�夋嫨"
- v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackReceiveBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�侀儴闂�:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "鍙戦�侀儴闂�:" : $t("Gy.HDeptName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佷汉:</view>
+ <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "鍙戦�佷汉:" : $t("Gy.HSendMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍙戦�佷汉" v-model="hform.HSendMan"
- @input="HSendManChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '璇烽�夋嫨鍙戦�佷汉' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange" disabled ></uni-combox>
</view>
</view>
-
<view class="form-item">
- <view class="title"><text>*</text>鎺ユ敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "鎺ユ敹浜�:" : $t("Gy.HReceiveMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎺ユ敹浜�" v-model="hform.HReceiveMan"
- @input="HReceiveManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '璇烽�夋嫨鎺ユ敹浜�' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍏宠仈浜�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HRelationEmpName") == "OA_ErrMsgBackReceiveBill.HRelationEmpName" ? "鍏宠仈浜�:" : $t("OA_ErrMsgBackReceiveBill.HRelationEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍏宠仈浜�" v-model="hform.HRelationEmpName"
- @input="HRelationEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HRelationEmpName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HRelationEmpName_Placeholder' ? '璇烽�夋嫨鍏宠仈浜�' : $t('OA_ErrMsgBackReceiveBill.HRelationEmpName_Placeholder')" v-model="hform.HRelationEmpName" @input="HRelationEmpNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎸囨淳澶勭悊浜�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HHandleEmpName") == "OA_ErrMsgBackReceiveBill.HHandleEmpName" ? "鎸囨淳澶勭悊浜�:" : $t("OA_ErrMsgBackReceiveBill.HHandleEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎸囨淳澶勭悊浜�" v-model="hform.HHandleEmpName"
- @input="HHandleEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HHandleEmpName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HHandleEmpName_Placeholder' ? '璇烽�夋嫨鎸囨淳澶勭悊浜�' : $t('OA_ErrMsgBackReceiveBill.HHandleEmpName_Placeholder')" v-model="hform.HHandleEmpName" @input="HHandleEmpChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧璁惧:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HEquipName") == "OA_ErrMsgBackReceiveBill.HEquipName" ? "鐩稿叧璁惧:" : $t("OA_ErrMsgBackReceiveBill.HEquipName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEquipName" placeholder="璇烽�夋嫨" v-model="hform.HEquipName"
- @input="HEquipNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHEquipName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HEquipName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HEquipName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackReceiveBill.HEquipName_Placeholder')" v-model="hform.HEquipName" @input="HEquipNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧妯″叿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HMouldName") == "OA_ErrMsgBackReceiveBill.HMouldName" ? "鐩稿叧妯″叿:" : $t("OA_ErrMsgBackReceiveBill.HMouldName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHMouldName" placeholder="璇烽�夋嫨" v-model="hform.HMouldName"
- @input="HMouldIDNameChange" disabled ></uni-combox>
+ <uni-combox :candidates="arrayHMouldName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HMouldName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HMouldName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackReceiveBill.HMouldName_Placeholder')" v-model="hform.HMouldName" @input="HMouldIDNameChange" disabled ></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "浜у搧鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="righton">
- <input name="HMaterName" disabled v-model="hform.HMaterName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
+ <input name="HMaterName" disabled v-model="hform.HMaterName" :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '璇疯緭鍏ヤ骇鍝佸悕绉�' : $t('Gy.HMaterName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterModel") }}</view>
<view class="righton">
- <input name="HMaterModel" disabled v-model="hform.HMaterModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+ <input name="HMaterModel" disabled v-model="hform.HMaterModel" :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '璇疯緭鍏ヨ鏍煎瀷鍙�' : $t('Gy.HMaterModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right" style="min-height: 150rpx;">
- <input name="HRemark" v-model="hform.HRemark" placeholder="" />
+ <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" />
</view>
</view>
</view>
@@ -135,37 +132,33 @@
<template v-if="tabs == 1">
<view class="form">
<view class="form-item">
- <view class="title">鎺ユ敹閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HReceiveName") == "Gy.HReceiveName" ? "鎺ユ敹閮ㄩ棬:" : $t("Gy.HReceiveName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HReceiveName"
- @input="HRecceiveChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HReceiveName_Placeholder') == 'Gy.HReceiveName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HReceiveName_Placeholder')" v-model="hform.HReceiveName" @input="HRecceiveChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎶勯�佷汉:</view>
+ <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "鎶勯�佷汉:" : $t("Gy.HCopyMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎶勯�佷汉" v-model="hform.HCopyMan"
- @input="HCopyManChange" multiple></uni-combox>
- </view>
- </view>
-
- <view class="form-item">
- <view class="title">绱ф�ョ▼搴�:</view>
- <view class="right">
- <uni-combox :candidates="arrayHLevel" placeholder="璇烽�夋嫨绱ф�ョ▼搴�" v-model="hform.HLevel"
- @input="HLevelChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '璇烽�夋嫨鎶勯�佷汉' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁绫诲瀷:</view>
+ <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "绱ф�ョ▼搴�:" : $t("Gy.HLevel") }}</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '璇烽�夋嫨绱ф�ョ▼搴�' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HBillTypeName") == "OA_ErrMsgBackReceiveBill.HBillTypeName" ? "鍗曟嵁绫诲瀷:" : $t("OA_ErrMsgBackReceiveBill.HBillTypeName") }}</view>
<view class="righton">
- <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="璇疯緭鍏ュ崟鎹被鍨�" />
+ <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackReceiveBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackReceiveBill.HBillTypeName_Placeholder' ? '璇疯緭鍏ュ崟鎹被鍨�' : $t('OA_ErrMsgBackReceiveBill.HBillTypeName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙风爜:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackReceiveBill.HPlanBillNo") == "OA_ErrMsgBackReceiveBill.HPlanBillNo" ? "鍗曟嵁鍙风爜:" : $t("OA_ErrMsgBackReceiveBill.HPlanBillNo") }}</view>
<view class="righton">
- <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="璇疯緭鍏ュ崟鎹彿鐮�" />
+ <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackReceiveBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackReceiveBill.HPlanBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿鐮�' : $t('OA_ErrMsgBackReceiveBill.HPlanBillNo_Placeholder')" />
</view>
</view>
</view>
@@ -174,60 +167,60 @@
<template v-if="tabs == 2">
<view class="form">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
- <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" />
+ <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
- <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" />
+ <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
- <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" />
+ <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
- <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" />
+ <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" />
</view>
</view>
</view>
</template>
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackReceiveBill.submit") == "OA_ErrMsgBackReceiveBill.submit" ? "鎻愪氦" : $t("OA_ErrMsgBackReceiveBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackReceiveBill.addNew") == "OA_ErrMsgBackReceiveBill.addNew" ? "鏂板" : $t("OA_ErrMsgBackReceiveBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackReceiveBill.goBack") == "OA_ErrMsgBackReceiveBill.goBack" ? "閫�鍑�" : $t("OA_ErrMsgBackReceiveBill.goBack") }}</button>
</view>
</view>
</template>
@@ -249,8 +242,6 @@
serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
OperationType: 1,
refSav: "",
-
- arrayHLevel: ['鏅��', '绱ф��'],
// 浜哄憳鐩稿叧鏁扮粍
arrayHEmpName: [], // 鎺ユ敹浜� 鍙戦�佷汉 澶勭悊浜� 璐d换浜� 鎶勯�佷汉 QE璐d换浜�
@@ -296,15 +287,12 @@
HHandleAdvise: '',
- HLevel: '鏅��',
+ HLevel: 'normal',
HBillTypeName: '',
HPlanBillNo: '',
HMaterNumber: '',
HMaterName: '',
HMaterModel: '',
-
- // 鏂版坊鍔犵殑瀛楁
-
HEquipName: '', // 璁惧
HEquipID: '0', // 璁惧ID
@@ -331,7 +319,24 @@
}
}
},
+ computed: {
+ containerHeight: {
+ get() {
+ return this.btnTop - this.tabsBottom - 5
+ }
+ },
+ // 绱ф�ョ▼搴﹂�夐」锛堝璇█锛�
+ arrayHLevel() {
+ return [
+ this.$t('OA_ErrMsgBackReceiveBill.levelNormal') == 'OA_ErrMsgBackReceiveBill.levelNormal' ? '鏅��' : this.$t('OA_ErrMsgBackReceiveBill.levelNormal'),
+ this.$t('OA_ErrMsgBackReceiveBill.levelUrgent') == 'OA_ErrMsgBackReceiveBill.levelUrgent' ? '绱ф��' : this.$t('OA_ErrMsgBackReceiveBill.levelUrgent')
+ ];
+ }
+ },
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("OA_ErrMsgBackReceiveBill.title") == 'OA_ErrMsgBackReceiveBill.title' ? '寮傚父鍙嶉鎺ユ敹鍗�' : this.$t("OA_ErrMsgBackReceiveBill.title")
+ })
this.getListData()
if (!e.OperationType) {
this.OperationType = 1
@@ -350,13 +355,6 @@
this.getEditData(e.hmainid)
} else if (this.OperationType == 4) {
// 娴忚
- }
- },
- computed: {
- containerHeight: {
- get() {
- return this.btnTop - this.tabsBottom - 5
- }
}
},
onReady() {
@@ -466,8 +464,8 @@
//鏂板鎸夐挳浜嬩欢
addNew() {
uni.showModal({
- title: '鎻愮ず',
- content: '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵',
+ title: this.$t('OA_ErrMsgBackReceiveBill.confirmTitle') == 'OA_ErrMsgBackReceiveBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackReceiveBill.confirmTitle'),
+ content: this.$t('OA_ErrMsgBackReceiveBill.addConfirm') == 'OA_ErrMsgBackReceiveBill.addConfirm' ? '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵' : this.$t('OA_ErrMsgBackReceiveBill.addConfirm'),
success: (res) => {
if (res.confirm) {
uni.redirectTo({
@@ -521,7 +519,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -544,7 +542,7 @@
this.$forceUpdate();
} else {
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.getErrTypeFailed') == 'OA_ErrMsgBackReceiveBill.getErrTypeFailed' ? '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.getErrTypeFailed'),
icon: 'none'
})
}
@@ -552,7 +550,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -585,7 +583,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -617,7 +615,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -648,7 +646,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -676,7 +674,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -685,7 +683,7 @@
getEditData(HInterID) {
uni.showLoading({
- title: '鍔犺浇涓�'
+ title: this.$t('OA_ErrMsgBackReceiveBill.loading') == 'OA_ErrMsgBackReceiveBill.loading' ? '鍔犺浇涓�' : this.$t('OA_ErrMsgBackReceiveBill.loading')
});
uni.request({
url: this.serverUrl + '/Sc_MESTransFerWorkBill/Edit_OA_ErrMsgBackReceiveBill',
@@ -696,14 +694,13 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁:', res);
if (res.data.code == 1) {
- const data = res.data.data[0]; // 娉ㄦ剰杩欓噷鏀逛负data[0]
+ const data = res.data.data[0];
this.hform = {
- ...this.hform, // 淇濈暀鍘熸湁鐨勯粯璁ゅ��
+ ...this.hform,
HInterID: data["hmainid"] || '',
HEntryID: data["HEntryID"] || '',
HBillNo: data["鍗曟嵁鍙�"] || '',
- HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HErrMsgBackTypeID: data["HErrMsgBackTypeID"] || '0',
HErrMsgBackTypeName: data["寮傚父绫诲瀷"] || '',
@@ -712,7 +709,7 @@
HDeptID: data["HDeptID"] || '0',
HDeptName: data["鍙戦�侀儴闂�"] || '',
- HReceiveID: data["HReceiveID"] || '0', // 鏂板瀛楁
+ HReceiveID: data["HReceiveID"] || '0',
HReceiveName: data["鎺ユ敹閮ㄩ棬"] || '',
HSendMan: data["鍙戦�佷汉"] || '',
@@ -727,18 +724,16 @@
HEquipID: data["HEquipID"] || '0',
HEquipName: data["璁惧鍚嶇О"] || '',
- HMouldID: data["HMouldID"] || '0', // 淇瀛楁鍚�
+ HMouldID: data["HMouldID"] || '0',
HMouldName: data["妯℃不鍏峰悕绉�"] || '',
HRelationEmpID: data["HRelationEmpID"] || '0',
HRelationEmpName: data["鍏宠仈浜�"] || '',
HReceiveNote: data["鎺ユ敹纭"] || '',
- HReceiveDate: data["鎺ユ敹纭鏃堕棿"] ? dayjs(data["鎺ユ敹纭鏃堕棿"]).format(
- "YYYY-MM-DD HH:mm:ss") : '',
+ HReceiveDate: data["鎺ユ敹纭鏃堕棿"] ? dayjs(data["鎺ユ敹纭鏃堕棿"]).format("YYYY-MM-DD HH:mm:ss") : '',
HHandleEmpID: data["HHandleEmpID"] || '0',
HandleEmpName: data["鎸囨淳澶勭悊浜�"] || '',
HHandleAdvise: data["澶勭悊寤鸿"] || '',
-
HMainSourceInterID: data["婧愬崟ID"] || '0',
HMainSourceEntryID: data["婧愬崟瀛怚D"] || '0',
@@ -751,12 +746,10 @@
HRemark: data["琛ㄥご澶囨敞"] || '',
HMaker: data["鍒跺崟浜�"] || this.userInfo.Czymc || '',
- HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HUpDater: data["淇敼浜�"] || this.userInfo.Czymc || '',
- HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") :
- dayjs(new Date()).format("YYYY-MM-DD"),
+ HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HChecker: data["瀹℃牳浜�"] || '',
HCheckDate: data["瀹℃牳鏃ユ湡"] ? dayjs(data["瀹℃牳鏃ユ湡"]).format("YYYY-MM-DD") : '',
@@ -764,13 +757,13 @@
HDeleteMan: data["浣滃簾浜�"] || '',
HDeleteDate: data["浣滃簾鏃ユ湡"] ? dayjs(data["浣滃簾鏃ユ湡"]).format("YYYY-MM-DD") : '',
- HLevel: data["绱ф�ョ▼搴�"] || '鏅��'
+ HLevel: data["绱ф�ョ▼搴�"] || 'normal'
};
this.isEdit = true;
} else {
uni.showToast({
- title: res.data.msg || '鑾峰彇缂栬緫鏁版嵁澶辫触',
+ title: res.data.msg || this.$t('OA_ErrMsgBackReceiveBill.getEditFailed'),
icon: 'none'
});
}
@@ -779,7 +772,7 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁璇锋眰澶辫触:', res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
});
}
@@ -789,12 +782,12 @@
submit() {
if (!this.hform.HReceiveMan) {
uni.showToast({
- title: '璇烽�夋嫨鎺ユ敹浜�',
+ title: this.$t('OA_ErrMsgBackReceiveBill.selectReceiver') == 'OA_ErrMsgBackReceiveBill.selectReceiver' ? '璇烽�夋嫨鎺ユ敹浜�' : this.$t('OA_ErrMsgBackReceiveBill.selectReceiver'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('OA_ErrMsgBackReceiveBill.pleaseWait') == 'OA_ErrMsgBackReceiveBill.pleaseWait' ? '璇风◢鍊�' : this.$t('OA_ErrMsgBackReceiveBill.pleaseWait')
})
if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) {
this.refSav = "Add";
@@ -822,8 +815,8 @@
this.SaveVerify(res.data.HInterID) //瀹℃牳
} else {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackReceiveBill.confirmTitle') == 'OA_ErrMsgBackReceiveBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackReceiveBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackReceiveBill.continueAdd') == 'OA_ErrMsgBackReceiveBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackReceiveBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -848,7 +841,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
@@ -870,8 +863,8 @@
data: datas,
success: (res) => {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackReceiveBill.confirmTitle') == 'OA_ErrMsgBackReceiveBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackReceiveBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackReceiveBill.continueAdd') == 'OA_ErrMsgBackReceiveBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackReceiveBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -890,7 +883,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackReceiveBill.requestFailed') == 'OA_ErrMsgBackReceiveBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackReceiveBill.requestFailed'),
icon: 'none'
})
},
diff --git a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill.vue b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill.vue
index a808501..9f0b170 100644
--- a/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill.vue
+++ b/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill.vue
@@ -3,117 +3,116 @@
<!-- 椤电鍖哄煙 -->
<view class="tabs" id="tabs">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">鍒跺崟淇℃伅</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
+ {{ $t("OA_ErrMsgBackSignBill.tabBasic") == "OA_ErrMsgBackSignBill.tabBasic" ? "鍩烘湰淇℃伅" : $t("OA_ErrMsgBackSignBill.tabBasic") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
+ {{ $t("OA_ErrMsgBackSignBill.tabOther") == "OA_ErrMsgBackSignBill.tabOther" ? "鍏朵粬淇℃伅" : $t("OA_ErrMsgBackSignBill.tabOther") }}
+ </view>
+ <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
+ {{ $t("OA_ErrMsgBackSignBill.tabMaker") == "OA_ErrMsgBackSignBill.tabMaker" ? "鍒跺崟淇℃伅" : $t("OA_ErrMsgBackSignBill.tabMaker") }}
+ </view>
</view>
</view>
<!-- 鍩烘湰淇℃伅 -->
<template v-if="tabs == 0">
<view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Gy.HBillNo_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="righton">
- <input name="HDate" disabled v-model="hform.HDate" placeholder="璇烽�夋嫨" />
+ <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">绛惧埌纭:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignNote") == "OA_ErrMsgBackSignBill.HSignNote" ? "绛惧埌纭:" : $t("OA_ErrMsgBackSignBill.HSignNote") }}</view>
<view class="right">
- <input name="HSignNote" v-model="hform.HSignNote" placeholder="璇疯緭鍏ユ槸鍚︾鍒�" />
+ <input name="HSignNote" v-model="hform.HSignNote" :placeholder="$t('OA_ErrMsgBackSignBill.HSignNote_Placeholder') == 'OA_ErrMsgBackSignBill.HSignNote_Placeholder' ? '璇疯緭鍏ユ槸鍚︾鍒�' : $t('OA_ErrMsgBackSignBill.HSignNote_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">绛惧埌鏃堕棿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignDate") == "OA_ErrMsgBackSignBill.HSignDate" ? "绛惧埌鏃堕棿:" : $t("OA_ErrMsgBackSignBill.HSignDate") }}</view>
<view class="righton">
- <input name="HSignDate" disabled v-model="hform.HSignDate" placeholder="璇烽�夋嫨" />
+ <input name="HSignDate" disabled v-model="hform.HSignDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '璇烽�夋嫨' : $t('Gy.HDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">涓婚:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HContext") == "OA_ErrMsgBackSignBill.HContext" ? "涓婚:" : $t("OA_ErrMsgBackSignBill.HContext") }}</view>
<view class="righton">
- <input name="HContext" disabled v-model="hform.HContext" placeholder="璇疯緭鍏ヤ富棰�" />
+ <input name="HContext" disabled v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackSignBill.HContext_Placeholder') == 'OA_ErrMsgBackSignBill.HContext_Placeholder' ? '璇疯緭鍏ヤ富棰�' : $t('OA_ErrMsgBackSignBill.HContext_Placeholder')" />
</view>
</view>
<view class="form-item" style="align-items: flex-start;">
- <view class="title"><text>*</text>璇︾粏鍐呭:</view>
+ <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackSignBill.HDescription") == "OA_ErrMsgBackSignBill.HDescription" ? "璇︾粏鍐呭:" : $t("OA_ErrMsgBackSignBill.HDescription") }}</view>
<view class="righton" style="min-height: 150rpx;">
<textarea name="HDescription" disabled v-model="hform.HDescription" auto-height maxlength="-1"
- placeholder="璇疯緭鍏ヨ缁嗗唴瀹�"></textarea>
+ :placeholder="$t('OA_ErrMsgBackSignBill.HDescription_Placeholder') == 'OA_ErrMsgBackSignBill.HDescription_Placeholder' ? '璇疯緭鍏ヨ缁嗗唴瀹�' : $t('OA_ErrMsgBackSignBill.HDescription_Placeholder')"></textarea>
</view>
</view>
<view class="form-item">
- <view class="title">寮傚父绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HErrMsgBackTypeName") == "OA_ErrMsgBackSignBill.HErrMsgBackTypeName" ? "寮傚父绫诲瀷:" : $t("OA_ErrMsgBackSignBill.HErrMsgBackTypeName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="璇烽�夋嫨"
- v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled></uni-combox>
+ <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�侀儴闂�:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "鍙戦�侀儴闂�:" : $t("Gy.HDeptName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="HDeptNameChange" disabled></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange" disabled></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙戦�佷汉:</view>
+ <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "鍙戦�佷汉:" : $t("Gy.HSendMan") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鍙戦�佷汉" v-model="hform.HSendMan"
- @input="HSendManChange" disabled></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '璇烽�夋嫨鍙戦�佷汉' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange" disabled></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title"><text>*</text>鎺ユ敹浜�:</view>
+ <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "鎺ユ敹浜�:" : $t("Gy.HReceiveMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎺ユ敹浜�" v-model="hform.HReceiveMan"
- @input="HReceiveManChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '璇烽�夋嫨鎺ユ敹浜�' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">绛惧埌浜�:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignEmpName") == "OA_ErrMsgBackSignBill.HSignEmpName" ? "绛惧埌浜�:" : $t("OA_ErrMsgBackSignBill.HSignEmpName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨绛惧埌浜�" v-model="hform.HSignEmpName"
- @input="HSignEmpNameChange"></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('OA_ErrMsgBackSignBill.HSignEmpName_Placeholder') == 'OA_ErrMsgBackSignBill.HSignEmpName_Placeholder' ? '璇烽�夋嫨绛惧埌浜�' : $t('OA_ErrMsgBackSignBill.HSignEmpName_Placeholder')" v-model="hform.HSignEmpName" @input="HSignEmpNameChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧璁惧:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HEquipName") == "OA_ErrMsgBackSignBill.HEquipName" ? "鐩稿叧璁惧:" : $t("OA_ErrMsgBackSignBill.HEquipName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHEquipName" placeholder="璇烽�夋嫨" v-model="hform.HEquipName"
- @input="HEquipNameChange" disabled></uni-combox>
+ <uni-combox :candidates="arrayHEquipName" :placeholder="$t('OA_ErrMsgBackSignBill.HEquipName_Placeholder') == 'OA_ErrMsgBackSignBill.HEquipName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackSignBill.HEquipName_Placeholder')" v-model="hform.HEquipName" @input="HEquipNameChange" disabled></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐩稿叧妯″叿:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HMouldName") == "OA_ErrMsgBackSignBill.HMouldName" ? "鐩稿叧妯″叿:" : $t("OA_ErrMsgBackSignBill.HMouldName") }}</view>
<view class="righton">
- <uni-combox :candidates="arrayHMouldName" placeholder="璇烽�夋嫨" v-model="hform.HMouldName"
- @input="HMouldIDNameChange" disabled></uni-combox>
+ <uni-combox :candidates="arrayHMouldName" :placeholder="$t('OA_ErrMsgBackSignBill.HMouldName_Placeholder') == 'OA_ErrMsgBackSignBill.HMouldName_Placeholder' ? '璇烽�夋嫨' : $t('OA_ErrMsgBackSignBill.HMouldName_Placeholder')" v-model="hform.HMouldName" @input="HMouldIDNameChange" disabled></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">浜у搧鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "浜у搧鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="righton">
- <input name="HMaterName" v-model="hform.HMaterName" disabled placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
+ <input name="HMaterName" v-model="hform.HMaterName" disabled :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '璇疯緭鍏ヤ骇鍝佸悕绉�' : $t('Gy.HMaterName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterModel") }}</view>
<view class="righton">
- <input name="HMaterModel" v-model="hform.HMaterModel" disabled placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+ <input name="HMaterModel" v-model="hform.HMaterModel" disabled :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '璇疯緭鍏ヨ鏍煎瀷鍙�' : $t('Gy.HMaterModel_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">澶囨敞:</view>
+ <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "澶囨敞:" : $t("Gy.HRemark") }}</view>
<view class="right" style="min-height: 150rpx;">
- <input name="HRemark" v-model="hform.HRemark" placeholder="" />
+ <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" />
</view>
</view>
</view>
@@ -122,37 +121,34 @@
<template v-if="tabs == 1">
<view class="form">
<view class="form-item">
- <view class="title">鎺ユ敹閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HReceiveName") == "Gy.HReceiveName" ? "鎺ユ敹閮ㄩ棬:" : $t("Gy.HReceiveName") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHDeptName" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HReceiveName"
- @input="HRecceiveChange"></uni-combox>
+ <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HReceiveName_Placeholder') == 'Gy.HReceiveName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HReceiveName_Placeholder')" v-model="hform.HReceiveName" @input="HRecceiveChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鎶勯�佷汉:</view>
+ <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "鎶勯�佷汉:" : $t("Gy.HCopyMan") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎶勯�佷汉" v-model="hform.HCopyMan"
- @input="HCopyManChange" multiple></uni-combox>
+ <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '璇烽�夋嫨鎶勯�佷汉' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">绱ф�ョ▼搴�:</view>
+ <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "绱ф�ョ▼搴�:" : $t("Gy.HLevel") }}</view>
<view class="right">
- <uni-combox :candidates="arrayHLevel" placeholder="璇烽�夋嫨绱ф�ョ▼搴�" v-model="hform.HLevel"
- @input="HLevelChange"></uni-combox>
+ <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '璇烽�夋嫨绱ф�ョ▼搴�' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁绫诲瀷:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HBillTypeName") == "OA_ErrMsgBackSignBill.HBillTypeName" ? "鍗曟嵁绫诲瀷:" : $t("OA_ErrMsgBackSignBill.HBillTypeName") }}</view>
<view class="righton">
- <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="璇疯緭鍏ュ崟鎹被鍨�" />
+ <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackSignBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackSignBill.HBillTypeName_Placeholder' ? '璇疯緭鍏ュ崟鎹被鍨�' : $t('OA_ErrMsgBackSignBill.HBillTypeName_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙风爜:</view>
+ <view class="title">{{ $t("OA_ErrMsgBackSignBill.HPlanBillNo") == "OA_ErrMsgBackSignBill.HPlanBillNo" ? "鍗曟嵁鍙风爜:" : $t("OA_ErrMsgBackSignBill.HPlanBillNo") }}</view>
<view class="righton">
- <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="璇疯緭鍏ュ崟鎹彿鐮�" />
+ <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder' ? '璇疯緭鍏ュ崟鎹彿鐮�' : $t('OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder')" />
</view>
</view>
</view>
@@ -161,60 +157,60 @@
<template v-if="tabs == 2">
<view class="form">
<view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
+ <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜�:" : $t("Gy.HMaker") }}</view>
<view class="righton">
<input v-model="hform.HMaker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "鍒跺崟鏃ユ湡:" : $t("Gy.HMakeDate") }}</view>
<view class="righton">
- <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" />
+ <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼浜�:</view>
+ <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "淇敼浜�:" : $t("Gy.HUpDater") }}</view>
<view class="righton">
<input v-model="hform.HUpDater" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "淇敼鏃ユ湡:" : $t("Gy.HUpDateDate") }}</view>
<view class="righton">
- <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" />
+ <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
+ <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "瀹℃牳浜�:" : $t("Gy.HChecker") }}</view>
<view class="righton">
<input v-model="hform.HChecker" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "瀹℃牳鏃ユ湡:" : $t("Gy.HCheckDate") }}</view>
<view class="righton">
- <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" />
+ <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾浜�:</view>
+ <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "浣滃簾浜�:" : $t("Gy.HDeleteMan") }}</view>
<view class="righton">
<input v-model="hform.HDeleteMan" disabled />
</view>
</view>
<view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "浣滃簾鏃ユ湡:" : $t("Gy.HDeleteDate") }}</view>
<view class="righton">
- <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" />
+ <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" />
</view>
</view>
</view>
</template>
<view class="buttons" id="buttons">
- <button class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackSignBill.submit") == "OA_ErrMsgBackSignBill.submit" ? "鎻愪氦" : $t("OA_ErrMsgBackSignBill.submit") }}</button>
<view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackSignBill.addNew") == "OA_ErrMsgBackSignBill.addNew" ? "鏂板" : $t("OA_ErrMsgBackSignBill.addNew") }}</button>
+ <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackSignBill.goBack") == "OA_ErrMsgBackSignBill.goBack" ? "閫�鍑�" : $t("OA_ErrMsgBackSignBill.goBack") }}</button>
</view>
</view>
</template>
@@ -236,8 +232,6 @@
serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
OperationType: 1,
refSav: "",
-
- arrayHLevel: ['鏅��', '绱ф��'],
// 浜哄憳鐩稿叧鏁扮粍
arrayHEmpName: [], // 鎺ユ敹浜� 鍙戦�佷汉 澶勭悊浜� 璐d换浜� 鎶勯�佷汉 QE璐d换浜�
@@ -281,15 +275,12 @@
- HLevel: '鏅��',
+ HLevel: 'normal',
HBillTypeName: '',
HPlanBillNo: '',
HMaterNumber: '',
HMaterName: '',
HMaterModel: '',
-
- // 鏂版坊鍔犵殑瀛楁
-
HEquipName: '', // 璁惧
HEquipID: '0', // 璁惧ID
@@ -316,7 +307,24 @@
}
}
},
+ computed: {
+ containerHeight: {
+ get() {
+ return this.btnTop - this.tabsBottom - 5
+ }
+ },
+ // 绱ф�ョ▼搴﹂�夐」锛堝璇█锛�
+ arrayHLevel() {
+ return [
+ this.$t('OA_ErrMsgBackSignBill.levelNormal') == 'OA_ErrMsgBackSignBill.levelNormal' ? '鏅��' : this.$t('OA_ErrMsgBackSignBill.levelNormal'),
+ this.$t('OA_ErrMsgBackSignBill.levelUrgent') == 'OA_ErrMsgBackSignBill.levelUrgent' ? '绱ф��' : this.$t('OA_ErrMsgBackSignBill.levelUrgent')
+ ];
+ }
+ },
onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("OA_ErrMsgBackSignBill.title") == 'OA_ErrMsgBackSignBill.title' ? '寮傚父鍙嶉绛惧埌鍗�' : this.$t("OA_ErrMsgBackSignBill.title")
+ })
this.getListData()
if (!e.OperationType) {
this.OperationType = 1
@@ -341,13 +349,6 @@
this.getEditData(e.hmainid)
} else if (this.OperationType == 4) {
// 娴忚
- }
- },
- computed: {
- containerHeight: {
- get() {
- return this.btnTop - this.tabsBottom - 5
- }
}
},
onReady() {
@@ -449,8 +450,8 @@
//鏂板鎸夐挳浜嬩欢
addNew() {
uni.showModal({
- title: '鎻愮ず',
- content: '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵',
+ title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'),
+ content: this.$t('OA_ErrMsgBackSignBill.addConfirm') == 'OA_ErrMsgBackSignBill.addConfirm' ? '鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛岀‘瀹氳鏂板鍚楋紵' : this.$t('OA_ErrMsgBackSignBill.addConfirm'),
success: (res) => {
if (res.confirm) {
uni.redirectTo({
@@ -504,7 +505,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -527,7 +528,7 @@
this.$forceUpdate();
} else {
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.getErrTypeFailed') == 'OA_ErrMsgBackSignBill.getErrTypeFailed' ? '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触' : this.$t('OA_ErrMsgBackSignBill.getErrTypeFailed'),
icon: 'none'
})
}
@@ -535,7 +536,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鑾峰彇寮傚父鍙嶉绫诲瀷淇℃伅澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -568,7 +569,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -600,7 +601,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -631,7 +632,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: res.data.Message,
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -659,7 +660,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -766,7 +767,7 @@
//缂栬緫
getEditData(HInterID) {
uni.showLoading({
- title: '鍔犺浇涓�'
+ title: this.$t('OA_ErrMsgBackSignBill.loading') == 'OA_ErrMsgBackSignBill.loading' ? '鍔犺浇涓�' : this.$t('OA_ErrMsgBackSignBill.loading')
});
uni.request({
url: this.serverUrl + '/Sc_MESTransFerWorkBill/Edit_OA_ErrMsgBackSignBill',
@@ -777,14 +778,13 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁:', res);
if (res.data.code == 1) {
- const data = res.data.data[0]; // 娉ㄦ剰杩欓噷鏀逛负data[0]
+ const data = res.data.data[0];
this.hform = {
- ...this.hform, // 淇濈暀鍘熸湁鐨勯粯璁ゅ��
+ ...this.hform,
HInterID: data["hmainid"] || '',
HEntryID: data["HEntryID"] || '',
HBillNo: data["鍗曟嵁鍙�"] || '',
- HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HDate: data["鏃ユ湡"] ? dayjs(data["鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HErrMsgBackTypeID: data["HErrMsgBackTypeID"] || '0',
HErrMsgBackTypeName: data["寮傚父绫诲瀷"] || '',
@@ -793,7 +793,7 @@
HDeptID: data["HDeptID"] || '0',
HDeptName: data["鍙戦�侀儴闂�"] || '',
- HReceiveID: data["HReceiveID"] || '0', // 鏂板瀛楁
+ HReceiveID: data["HReceiveID"] || '0',
HReceiveName: data["鎺ユ敹閮ㄩ棬"] || '',
HSendMan: data["鍙戦�佷汉"] || '',
@@ -808,50 +808,43 @@
HEquipID: data["HEquipID"] || '0',
HEquipName: data["璁惧鍚嶇О"] || '',
- HMouldID: data["HMouldID"] || '0', // 淇瀛楁鍚�
+ HMouldID: data["HMouldID"] || '0',
HMouldName: data["妯℃不鍏峰悕绉�"] || '',
HSignEmpID: data["HSignEmpID"] || '0',
HSignEmpName: data["绛惧埌浜�"] || '',
- HSignNote: data["绛惧埌纭"] || '', // 鏂板瀛楁
- HSignDate: data["绛惧埌鏃堕棿"] ? dayjs(data["绛惧埌鏃堕棿"]).format(
- "YYYY-MM-DD HH:mm:ss") : '',
-
+ HSignNote: data["绛惧埌纭"] || '',
+ HSignDate: data["绛惧埌鏃堕棿"] ? dayjs(data["绛惧埌鏃堕棿"]).format("YYYY-MM-DD HH:mm:ss") : '',
HMainSourceInterID: data["婧愬崟ID"] || '0',
HMainSourceEntryID: data["婧愬崟瀛怚D"] || '0',
HMainSourceBillNo: data["婧愬崟鍗曞彿"] || '',
HMainSourceBillType: data["婧愬崟绫诲瀷"] || '',
- HErrMsgBackBillNo: data["寮傚父鍙嶉鍗曞彿"] || '', // 鏂板瀛楁
- HErrMsgBackInterID: data["寮傚父鍙嶉鍗曚富鍐呯爜"] || '0', // 鏂板瀛楁
- HErrMsgBackEntryID: data["寮傚父鍙嶉鍗曞瓙鍐呯爜"] || '0', // 鏂板瀛楁
+ HErrMsgBackBillNo: data["寮傚父鍙嶉鍗曞彿"] || '',
+ HErrMsgBackInterID: data["寮傚父鍙嶉鍗曚富鍐呯爜"] || '0',
+ HErrMsgBackEntryID: data["寮傚父鍙嶉鍗曞瓙鍐呯爜"] || '0',
HRemark: data["琛ㄥご澶囨敞"] || '',
HMaker: data["鍒跺崟浜�"] || this.userInfo.Czymc || '',
- HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format(
- "YYYY-MM-DD") : dayjs(
- new Date()).format("YYYY-MM-DD"),
+ HMakeDate: data["鍒跺崟鏃ユ湡"] ? dayjs(data["鍒跺崟鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HUpDater: data["淇敼浜�"] || this.userInfo.Czymc || '',
- HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format(
- "YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
+ HUpDateDate: data["淇敼鏃ユ湡"] ? dayjs(data["淇敼鏃ユ湡"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"),
HChecker: data["瀹℃牳浜�"] || '',
- HCheckDate: data["瀹℃牳鏃ユ湡"] ? dayjs(data["瀹℃牳鏃ユ湡"]).format(
- "YYYY-MM-DD") : '',
+ HCheckDate: data["瀹℃牳鏃ユ湡"] ? dayjs(data["瀹℃牳鏃ユ湡"]).format("YYYY-MM-DD") : '',
HDeleteMan: data["浣滃簾浜�"] || '',
- HDeleteDate: data["浣滃簾鏃ユ湡"] ? dayjs(data["浣滃簾鏃ユ湡"]).format(
- "YYYY-MM-DD") : '',
+ HDeleteDate: data["浣滃簾鏃ユ湡"] ? dayjs(data["浣滃簾鏃ユ湡"]).format("YYYY-MM-DD") : '',
- HLevel: data["绱ф�ョ▼搴�"] || '鏅��'
+ HLevel: data["绱ф�ョ▼搴�"] || 'normal'
};
this.isEdit = true;
} else {
uni.showToast({
- title: res.data.msg || '鑾峰彇缂栬緫鏁版嵁澶辫触',
+ title: res.data.msg || this.$t('OA_ErrMsgBackSignBill.getEditFailed'),
icon: 'none'
});
}
@@ -860,7 +853,7 @@
uni.hideLoading();
console.log('缂栬緫鏁版嵁璇锋眰澶辫触:', res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
});
}
@@ -870,12 +863,12 @@
submit() {
if (!this.hform.HReceiveMan) {
uni.showToast({
- title: '璇烽�夋嫨鎺ユ敹浜�',
+ title: this.$t('OA_ErrMsgBackSignBill.selectReceiver') == 'OA_ErrMsgBackSignBill.selectReceiver' ? '璇烽�夋嫨鎺ユ敹浜�' : this.$t('OA_ErrMsgBackSignBill.selectReceiver'),
icon: 'none'
})
} else {
uni.showLoading({
- title: '璇风◢鍊�'
+ title: this.$t('OA_ErrMsgBackSignBill.pleaseWait') == 'OA_ErrMsgBackSignBill.pleaseWait' ? '璇风◢鍊�' : this.$t('OA_ErrMsgBackSignBill.pleaseWait')
})
if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) {
this.refSav = "Add";
@@ -903,8 +896,8 @@
this.SaveVerify(res.data.HInterID) //瀹℃牳
} else {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackSignBill.continueAdd') == 'OA_ErrMsgBackSignBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackSignBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -929,7 +922,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
@@ -951,8 +944,8 @@
data: datas,
success: (res) => {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '鎻愮ず' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'),
+ content: res.data.Message + (this.$t('OA_ErrMsgBackSignBill.continueAdd') == 'OA_ErrMsgBackSignBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)' : this.$t('OA_ErrMsgBackSignBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -971,7 +964,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('OA_ErrMsgBackSignBill.requestFailed'),
icon: 'none'
})
},
diff --git a/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMain.vue b/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMain.vue
new file mode 100644
index 0000000..e046ed2
--- /dev/null
+++ b/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMain.vue
@@ -0,0 +1,1368 @@
+<template>
+ <view>
+ <!-- 涓昏〃鍖哄煙 -->
+ <view class="bill-main-area">
+ <!-- 涓昏〃椤电 -->
+ <view class="bill-main-tabs">
+ <view :class="mainTabSelected == 1 ? 'selected' : ''" @tap="mainTabSelected = 1">鍩烘湰淇℃伅</view>
+ <view :class="mainTabSelected == 2 ? 'selected' : ''" @tap="mainTabSelected = 2">鍏朵粬淇℃伅</view>
+ <view :class="mainTabSelected == 3 ? 'selected' : ''" @tap="mainTabSelected = 3">鍒跺崟淇℃伅</view>
+ </view>
+ <!-- 涓昏〃鍐呭 -->
+ <view class="bill-main-contents">
+ <!-- 鍩烘湰淇℃伅 -->
+ <view class="bill-main-content" v-if="mainTabSelected == 1">
+ <view class="form-item">
+ <view class="left">鍗曟嵁鍙�</view>
+ <view class="right disabled">
+ <input type="text" :value="hform.HBillNo" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鏃ユ湡</view>
+ <view class="right">
+ <uni-datetime-picker type="date" :clear-icon="false" v-model="hform.HDate">
+ <view>{{ hform.HDate }}</view>
+ </uni-datetime-picker>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鍙戠敓鏃ユ湡</view>
+ <view class="right">
+ <uni-datetime-picker type="datetime" :clear-icon="false" v-model="hform.HHappendDate">
+ <view>{{ hform.HHappendDate }}</view>
+ </uni-datetime-picker>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鐢熶骇璁㈠崟</view>
+ <view class="right">
+ <input type="text" v-model="hform.HICMOBillNos" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">浜у搧缂栫爜</view>
+ <view class="right">
+ <input type="text" v-model="hform.HMaterNumbers" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">浜у搧鍚嶇О</view>
+ <view class="right">
+ <input type="text" v-model="hform.HMaterNames"/>
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">瑙勬牸鍨嬪彿</view>
+ <view class="right">
+ <input type="text" v-model="hform.HMaterModels"/>
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">璁¢噺鍗曚綅</view>
+ <view class="right">
+ <input type="text" v-model="hform.HUnitNames"/>
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">浜у搧绫诲瀷</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaterTypes" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鏁伴噺</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HUnRightQtys" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">杞﹂棿</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HDeptNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">鍙戠敓宸ュ簭</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HProcNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鐜拌薄</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HBadPhenomenaNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鍝丼N鐮�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HBarCodes" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">閿�鍞鍗�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HSeOrderBillNos" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">闂鐜拌薄绠�杩�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HReasonNotes" disabled />
+ </view>
+ </view>
+
+ <!-- 绱ф�ョ▼搴� - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">绱ф�ョ▼搴�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HLevs" disabled />
+ </view>
+ </view>
+
+ <!-- 鏄惁鍋滅嚎 - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">鏄惁鍋滅嚎</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HIsStops" disabled />
+ </view>
+ </view>
+
+ <!-- 鏄惁鎵归噺闂 - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">鏄惁鎵归噺闂</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HIsBatchUnRights" disabled />
+ </view>
+ </view>
+
+ <!-- 澶勭悊閮ㄩ棬 -->
+ <view class="form-item">
+ <view class="left">澶勭悊閮ㄩ棬</view>
+ <view class="right">
+ <uni-combox :candidates="DeptNameList" placeholder="璇烽�夋嫨澶勭悊閮ㄩ棬" v-model="hform.HDisposeDeptName"
+ @input="HDisposeDeptChange"></uni-combox>
+ </view>
+ </view>
+
+ <!-- 鍙戣捣浜� -->
+ <view class="form-item">
+ <view class="left">鍙戣捣浜�</view>
+ <view class="right">
+ <uni-combox :candidates="GyEmpNameList" placeholder="璇烽�夋嫨鍙戣捣浜�"
+ v-model="hform.HSendMan" @input="HSendManChange"></uni-combox>
+ </view>
+ </view>
+
+ <!-- 鎺ユ敹浜� -->
+ <view class="form-item">
+ <view class="left">鎺ユ敹浜�</view>
+ <view class="right">
+ <uni-combox :candidates="GyEmpNameList" placeholder="璇烽�夋嫨鎺ユ敹浜�"
+ v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox>
+ </view>
+ </view>
+
+ <!-- 鎶勯�佷汉 - 鏀逛负涓嬫媺妗� -->
+ <view class="form-item">
+ <view class="left">鎶勯�佷汉</view>
+ <view class="right">
+ <uni-combox :candidates="GyEmpNameList" placeholder="璇烽�夋嫨鎶勯�佷汉"
+ v-model="hform.HCopyMan" @input="HCopyManChange"></uni-combox>
+ </view>
+ </view>
+
+ <!-- 婧愬崟绫诲瀷 - 淇鐗� -->
+ <view class="form-item">
+ <view class="left">婧愬崟绫诲瀷</view>
+ <view class="right" v-show="showHMainSourceBillType">
+ <picker :range="arrayHMainSourceBillType" @change="HMainSourceBillTypeChange" mode="selector">
+ <view class="picker-value">{{ HMainSourceBillTypeDisplay || '璇烽�夋嫨婧愬崟绫诲瀷' }}</view>
+ </picker>
+ </view>
+ <view class="right disabled" v-show="!showHMainSourceBillType">
+ <view class="picker-value">{{ HMainSourceBillTypeDisplay }}</view>
+ </view>
+ </view>
+
+ <!-- 婧愬崟鍗曞彿 -->
+ <view class="form-item">
+ <view class="left">婧愬崟鍙�</view>
+ <view class="right">
+ <input type="text" v-model="hform.HMainSourceBillNo" placeholder="璇疯緭鍏ユ垨鎵弿婧愬崟鍙�"
+ @confirm="GetMessageByHSourceBillNo" />
+ </view>
+ <view class="icon-wrapper" @click="openSourceBillSelector">
+ <uni-icons type="search" size="20"></uni-icons>
+ </view>
+ <view class="icon-wrapper" @click="scanSourceBill">
+ <uni-icons type="scan" size="20"></uni-icons>
+ </view>
+ </view>
+
+ <!-- 澶勭悊宸ュ簭 -->
+ <view class="form-item">
+ <view class="left">澶勭悊宸ュ簭</view>
+ <view class="right disabled">
+ <input type="text" disabled v-model="hform.HDisposeProcName" />
+ </view>
+ <view class="icon-wrapper-big">
+ <uni-icons type="search" size="20" :class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
+ :disabled="hasSourceBill"
+ @click="showSelectorModule(8)"></uni-icons>
+ </view>
+ </view>
+
+ <!-- 涓嶈壇绫诲瀷 -->
+ <view class="form-item">
+ <view class="left">涓嶈壇绫诲瀷</view>
+ <view class="right disabled">
+ <input type="text" disabled v-model="hform.HBadTypeName" />
+ </view>
+ <view class="icon-wrapper-big">
+ <uni-icons type="search" size="20" :class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
+ :disabled="hasSourceBill"
+ @click="showSelectorModule(7)"></uni-icons>
+ </view>
+ </view>
+
+ <!-- 涓嶈壇鍘熷洜 -->
+ <view class="form-item">
+ <view class="left">涓嶈壇鍘熷洜</view>
+ <view class="right disabled">
+ <input type="text" disabled v-model="hform.HBadReasonName" />
+ </view>
+ <view class="icon-wrapper-big">
+ <uni-icons type="search" size="20" :class="!hasSourceBill?'enable-icon-button':'disable-icon-button'"
+ :disabled="hasSourceBill"
+ @click="showSelectorModule(2)"></uni-icons>
+ </view>
+ </view>
+
+ <!-- 澶勭悊缁撹璇︽儏 -->
+ <view class="form-item">
+ <view class="left">澶勭悊缁撹璇︽儏</view>
+ <view class="right">
+ <input type="text" v-model="hform.HDisposeNote" />
+ </view>
+ </view>
+
+ <!-- 绾犳鍙婇闃叉帾鏂� -->
+ <view class="form-item">
+ <view class="left">绾犳鍙婇闃叉帾鏂�</view>
+ <view class="right">
+ <input type="text" v-model="hform.HNote" />
+ </view>
+ </view>
+
+ <!-- 澶勭悊缁撹 -->
+ <view class="form-item">
+ <view class="left">澶勭悊缁撹</view>
+ <view class="right select-border">
+ <uni-data-select
+ v-model="hform.HCheckerResult"
+ :localdata="conclusionList"
+ :clear="false"
+ placeholder="璇烽�夋嫨澶勭悊缁撹"
+ :disabled="hasSourceBill"
+ class="no-border-select"
+ ></uni-data-select>
+ </view>
+ </view>
+ </view>
+ <view class="bill-main-content" v-if="mainTabSelected == 2">
+ <view class="form-item">
+ <view class="left">宸ュ簭娴佽浆鍗�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HProcExchBillNos" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">浜у搧缂栫爜</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaterNumbers" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">浜у搧鍚嶇О</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaterNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">瑙勬牸鍨嬪彿</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaterModels" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">璁¢噺鍗曚綅</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HUnitNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">浜у搧绫诲瀷</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaterTypes" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鏁伴噺</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HUnRightQtys" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">杞﹂棿</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HDeptNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">鍙戠敓宸ュ簭</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HProcNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鐜拌薄</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HBadPhenomenaNames" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">涓嶈壇鍝丼N鐮�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HBarCodes" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">閿�鍞鍗�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HSeOrderBillNos" disabled />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">闂鐜拌薄绠�杩�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HReasonNotes" disabled />
+ </view>
+ </view>
+
+ <!-- 绱ф�ョ▼搴� - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">绱ф�ョ▼搴�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HLevs" disabled />
+ </view>
+ </view>
+
+ <!-- 鏄惁鍋滅嚎 - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">鏄惁鍋滅嚎</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HIsStops" disabled />
+ </view>
+ </view>
+
+ <!-- 鏄惁鎵归噺闂 - 鏄剧ず鏂囨湰 -->
+ <view class="form-item">
+ <view class="left">鏄惁鎵归噺闂</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HIsBatchUnRights" disabled />
+ </view>
+ </view>
+
+ <!-- 鍘熸湁鐨勫娉ㄥ拰缁勭粐瀛楁 -->
+ <view class="form-item">
+ <view class="left">澶囨敞</view>
+ <view class="right">
+ <input type="text" v-model="hform.HRemark" />
+ </view>
+ </view>
+
+ <view class="form-item">
+ <view class="left">缁勭粐</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.Organization" disabled />
+ </view>
+ </view>
+ </view>
+
+ <!-- 鍒跺崟淇℃伅 -->
+ <view class="bill-main-content" v-if="mainTabSelected == 3">
+ <view class="form-item">
+ <view class="left">鍒跺崟浜�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMaker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鍒跺崟鏃ユ湡</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HMakeDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">淇敼浜�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HUpDater" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">淇敼鏃ユ湡</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HUpDateDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">瀹℃牳浜�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HChecker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">瀹℃牳鏃ユ湡</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HCheckDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鍏抽棴浜�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HCloseMan" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">鍏抽棴鏃ユ湡</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HCloseDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">浣滃簾浜�</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HDeleteMan" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">浣滃簾鏃ユ湡</view>
+ <view class="right disabled">
+ <input type="text" v-model="hform.HDeleteDate" disabled />
+ </view>
+ </view>
+ </view>
+ </view>
+ </view>
+
+ <view style="height: 120rpx"></view>
+
+ <!-- 搴曢儴鎸夐挳 -->
+ <view class="bottom-btn">
+ <button class="btn-a" size="mini" @tap="submit">淇濆瓨</button>
+ <view style="flex: 1"></view>
+ <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
+ <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ </view>
+
+ <!-- 寮圭獥缁勪欢 -->
+ <GyBadReasonPopup ref="GyBadReasonPopup" @update="CheckItemComplete" :bindKey="currentChechItemIDCache">
+ </GyBadReasonPopup>
+ <ProcessPopupVue ref="processPopup" @update="HProcComplete" :bindKey="0"></ProcessPopupVue>
+ <GyBadTypePopupVue ref="GyBadTypePopupVue" @update="HQCSchemeComplete" :bindKey="0"></GyBadTypePopupVue>
+ <BillListPopupVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="hform.HMainSourceBillType"
+ :HStockOrgID="hform.HStockOrgID" @BillSelectComplete="handleSourceBill"></BillListPopupVue>
+ </view>
+</template>
+
+<script>
+ import dayjs from "dayjs";
+ import {
+ CommonUtils
+ } from "../../../utils/common";
+ import GyBadReasonPopup from "../../../components/ZLGL/GyBadReasonPopup.vue";
+ import ProcessPopupVue from "../../../components/ZLGL/ProcessPopup.vue";
+ import GyBadTypePopupVue from "../../../components/ZLGL/GyBadTypePopup.vue";
+ import BillListPopupVue from "@/components/BillListPopup/BillListPopup.vue";
+ import {
+ getUserInfo
+ } from "../../../utils/auth";
+
+ export default {
+ components: {
+ GyBadReasonPopup,
+ ProcessPopupVue,
+ GyBadTypePopupVue,
+ BillListPopupVue,
+ },
+ data() {
+ return {
+ operationType: 1,
+ mainTabSelected: 1,
+ hasSourceBill: false,
+
+ enablePopupModule: "",
+ PopupModuleNameList: [
+ "", "", "GyBadReasonPopup", "", "", "", "", "GyBadTypePopupVue", "ProcessPopupVue"
+ ],
+ conclusionList: [
+ { value: '澶勭悊瀹屾垚', text: '澶勭悊瀹屾垚' },
+ { value: '鏃犳硶澶勭悊', text: '鏃犳硶澶勭悊' },
+ { value: '澶勭悊澶辫触', text: '澶勭悊澶辫触' }
+ ],
+ emergencyList: [
+ { value: '鏅��', text: '鏅��' },
+ { value: '绱ф��', text: '绱ф��' }
+ ],
+ yesNoList: [
+ { value: '鍚�', text: '鍚�' },
+ { value: '鏄�', text: '鏄�' }
+ ],
+ currentChechItemIDCache: -1,
+ GyEmpList: [],
+ GyEmpNameList: [],
+ DeptNameList: [],
+ DeptList: [],
+
+ HMainSourceBillTypeDisplay: "", // 鐢ㄤ簬鏄剧ず鐨勬簮鍗曠被鍨�
+ arrayHMainSourceBillType: ["涓嶈壇鍝佽瘎瀹$敵璇峰崟", "宸ュ簭鍑虹珯姹囨姤鍗�"],
+ arrayHMainSourceBillTypeID: ["7512", "3791"],
+ showHMainSourceBillType: true,
+
+ hform: {
+ // 鍗曟嵁淇℃伅
+ HInterID: "0",
+ HEntryID: "0",
+ HBillNo: "",
+ HDate: dayjs(new Date()).format("YYYY-MM-DD"),
+ HHappendDate:dayjs(new Date()).format("YYYY-MM-DD HH:MM"),
+ HBillType: '7514',
+
+ // 鐢宠淇℃伅
+ HBillNos: "",
+ HDates: "",
+ HHappendDates: "",
+
+ // 鐢熶骇璁㈠崟
+ HICMOBillNos: "",
+ HICMOInterIDs: "0",
+ HICMOEntryIDs: "0",
+
+ // 浜у搧淇℃伅
+ HMaterNumbers: "",
+ HMaterNames: "",
+ HMaterModels: "",
+ HMaterIDs: "0",
+ HUnitNames: "",
+ HUnitIDs: "0",
+ HMaterTypes: "",
+
+ // 宸ュ簭娴佽浆鍗�
+ HProcExchBillNos: "",
+ HProcExchInterIDs: "0",
+ HProcExchEntryIDs: "0",
+
+ // 涓嶈壇淇℃伅
+ HUnRightQtys: "",
+ HLevs: "鏅��",
+ HIsStops: "鍚�",
+ HIsBatchUnRights: "鍚�",
+ HBarCodes: "",
+ HBadPhenomenaNames: "",
+ HBadPhenomenaIDs: "0",
+ HReasonNotes: "",
+
+ // 閮ㄩ棬宸ュ簭
+ HDeptNames: "",
+ HDeptIDs: "0",
+ HProcNames: "",
+ HProcIDs: "0",
+
+ // 閿�鍞鍗�
+ HSeOrderBillNos: "",
+
+ // 婧愬崟淇℃伅
+ HMainSourceBillType: "",
+ HMainSourceBillNo: "",
+ HMainSourceInterID: "0",
+ HMainSourceEntryID: "0",
+
+ HSendMan: "",
+ HCopyMan: "",
+
+ HDisposeDeptName: "",
+ HDisposeDeptID: "0",
+ HDisposeProcName: "",
+ HDisposeProcID: "0",
+ HDisposeEmpName: "",
+ HSendManID: "0",
+ HReceiveManID: "0",
+ HDisposeEmpID: "0",
+ HCheckerResult: "澶勭悊瀹屾垚",
+ HDisposeNote: "",
+
+ // 涓嶈壇鍘熷洜绫诲瀷
+ HBadTypeName: "",
+ HBadTypeID: "0",
+ HBadReasonName: "",
+ HBadReasonID: "0",
+
+ // 澶囨敞
+ HNote: "",
+ HRemark: "",
+
+ // 缁勭粐淇℃伅
+ Organization: getUserInfo()["Organization"] || "",
+ HStockOrgID: uni.getStorageSync('OrganizationID') || "0",
+
+ // 鍒跺崟淇℃伅
+ HMaker: getUserInfo()["Czymc"] || "",
+ HMakeDate: dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
+ HUpDater: "",
+ HUpDateDate: "",
+ HChecker: "",
+ HCheckDate: "",
+ HCloseMan: "",
+ HCloseDate: "",
+ HDeleteMan: "",
+ HDeleteDate: "",
+ },
+ };
+ },
+ methods: {
+ // 鏄剧ず閫夋嫨鍣ㄥ脊绐�
+ async showSelectorModule(index) {
+ if (this.hasSourceBill) {
+ uni.showToast({ title: '宸叉湁婧愬崟锛屼笉鑳戒慨鏀�', icon: 'none' });
+ return;
+ }
+
+ this.currentChechItemIDCache = 0;
+ this.enablePopupModule = this.PopupModuleNameList[index];
+
+ await this.$nextTick();
+
+ let popupRef = null;
+ if (index === 2) popupRef = this.$refs.GyBadReasonPopup;
+ else if (index === 7) popupRef = this.$refs.GyBadTypePopupVue;
+ else if (index === 8) popupRef = this.$refs.processPopup;
+
+ if (popupRef) {
+ popupRef.showPopup();
+ }
+ },
+ // 鍒濆鍖栬亴鍛樻暟鎹殑鏂规硶锛堜豢鐓� InitHEmp锛�
+ async InitGyEmp() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: "/Gy_Employee/list",
+ data: {
+ sWhere: ` and 缁勭粐鍚嶇О = '${uni.getStorageSync("Organization")}' and 绂佺敤鏍囪 = ''`,
+ user: getUserInfo()["Czymc"],
+ Organization: uni.getStorageSync("Organization"),
+ },
+ });
+
+ let { data, Message, count } = res.data;
+
+ if (count == 1) {
+ this.GyEmpList = data;
+ this.GyEmpNameList = Array.from(data).map((e) => e["鑱屽憳鍚嶇О"]);
+ } else {
+ CommonUtils.showTips({
+ title: "娓╅Θ鎻愮ず",
+ message: `鍒濆鍖栬亴鍛樺け璐�: ${Message}`,
+ });
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: "娓╅Θ鎻愮ず",
+ message: `鍒濆鍖栬亴鍛樺け璐�: ${err}`,
+ });
+ }
+ },
+ // 涓嶈壇鍘熷洜閫夋嫨瀹屾垚
+ // 鏂板锛氭壂鐮佽幏鍙栨簮鍗曞彿
+ scanSourceBill() {
+ // 璋冪敤寰俊鎵爜鍔熻兘
+ uni.scanCode({
+ scanType: ['barCode', 'qrCode'],
+ success: (res) => {
+ // 灏嗘壂鐮佺粨鏋滆祴鍊肩粰婧愬崟鍙�
+ this.hform.HMainSourceBillNo = res.result;
+ // 鑷姩瑙﹀彂鏌ヨ
+ this.GetMessageByHSourceBillNo();
+ },
+ fail: (err) => {
+ console.error('鎵爜澶辫触:', err);
+ uni.showToast({
+ title: '鎵爜澶辫触',
+ icon: 'none'
+ });
+ }
+ });
+ },
+ CheckItemComplete(e) {
+ if (e && e.retVal) {
+ let data = Object.values(e.retVal)[0];
+ this.hform.HBadReasonID = String(data.HItemID || 0);
+ this.hform.HBadReasonName = data.涓嶈壇鍘熷洜鍚嶇О || "";
+ }
+ this.$refs.GyBadReasonPopup?.exit();
+ this.enablePopupModule = "";
+ },
+
+ // 涓嶈壇绫诲瀷閫夋嫨瀹屾垚
+ HQCSchemeComplete(e) {
+ if (e && e.retVal) {
+ let data = Object.values(e.retVal)[0];
+ this.hform.HBadTypeID = String(data.HItemID || 0);
+ this.hform.HBadTypeName = data.涓嶈壇绫诲瀷鍚嶇О || "";
+ }
+ this.$refs.GyBadTypePopupVue?.exit();
+ this.enablePopupModule = "";
+ },
+
+ // 宸ュ簭閫夋嫨瀹屾垚
+ HProcComplete(e) {
+ if (e && e.retVal) {
+ let data = Object.values(e.retVal)[0];
+ this.hform.HDisposeProcID = String(data.HItemID || 0);
+ this.hform.HDisposeProcName = data.宸ュ簭鍚嶇О || "";
+ }
+ this.$refs.processPopup?.exit();
+ this.enablePopupModule = "";
+ },
+
+ // 鍒濆鍖栭儴闂�
+ async InitDept() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/PublicPageMethod/DeptList',
+ data: { sWhere: 'where 1=1' }
+ });
+ if (res.data.count == 1) {
+ this.DeptList = res.data.data;
+ this.DeptNameList = res.data.data.map(e => e['HName']);
+ }
+ } catch (err) {
+ console.error('鍒濆鍖栭儴闂ㄩ敊璇�:', err);
+ }
+ },
+
+ // 鍒濆鍖栬亴鍛�
+ async InitHEmp() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: "/Gy_Employee/list",
+ data: {
+ sWhere: ` and 缁勭粐鍚嶇О = '${uni.getStorageSync("Organization")}' and 绂佺敤鏍囪 = ''`,
+ },
+ });
+
+ if (res.data.count == 1) {
+ this.GyEmpList = res.data.data;
+ this.GyEmpNameList = res.data.data.map(e => e["鑱屽憳鍚嶇О"]);
+ }
+ } catch (err) {
+ console.error('鍒濆鍖栬亴鍛樺け璐�:', err);
+ }
+ },
+
+ // 鎵撳紑婧愬崟閫夋嫨鍣�
+ openSourceBillSelector() {
+ if (!this.hform.HMainSourceBillType) {
+ uni.showToast({ title: '璇峰厛閫夋嫨婧愬崟绫诲瀷', icon: 'none' });
+ return;
+ }
+ this.$refs.billList.showPopup();
+ },
+
+ // 鎺ユ敹婧愬崟
+ handleSourceBill(e) {
+ this.hform.HMainSourceBillNo = e.HBillNo;
+
+ this.GetMessageByHSourceBillNo();
+ this.$refs.billList?.exit();
+
+ },
+
+ // 鑾峰彇婧愬崟鏁版嵁
+ async GetMessageByHSourceBillNo() {
+ if (!this.hform.HMainSourceBillType) {
+ uni.showToast({ title: '璇烽�夋嫨婧愬崟绫诲瀷', icon: 'none' });
+ return;
+ }
+ if (!this.hform.HMainSourceBillNo ) {
+ uni.showToast({ title: '璇疯緭鍏ユ垨鑰呮壂鐮佹簮鍗曞彿', icon: 'none' });
+ return;
+ }
+
+ try {
+ let res;
+ let user = getUserInfo()["Czymc"] || "";
+ let Organization = uni.getStorageSync('OrganizationID') || "";
+
+ // 鏍规嵁婧愬崟绫诲瀷璋冪敤涓嶅悓鐨勬帴鍙�
+ if (this.hform.HMainSourceBillType === "7512") {
+
+ res = await CommonUtils.doRequest2Async({
+ url: "/Sc_ProcessMangement/Get_QC_NoPassProdRequestBillList",
+ type: "GET",
+ data: {
+ "sWhere": ` and 鍗曟嵁鍙� = '${this.hform.HMainSourceBillNo}'`,
+ "user": user
+ }
+ });
+ } else if (this.hform.HMainSourceBillType === "3791") {
+
+ res = await CommonUtils.doRequest2Async({
+ url: "/Cj_StationOutBill/get_Display_byPage",
+ type: "GET",
+ data: {
+ "sWhere": `and 鍗曟嵁鍙� = ''${this.hform.HMainSourceBillNo}''`,
+ "user": user,
+ "Organization": Organization,
+ "page": 1,
+ "size": 1,
+ "HBillSubType": "3791"
+ }
+ });
+ }
+
+ uni.hideLoading();
+
+ // 鑾峰彇绗竴鏉℃暟鎹�
+ let data = null;
+ if (res.data) {
+ if (Array.isArray(res.data) && res.data.length > 0) {
+ data = res.data[0];
+ } else if (res.data.data && res.data.data.length > 0) {
+ data = res.data.data[0];
+ } else if (res.data.rows && res.data.rows.length > 0) {
+ data = res.data.rows[0];
+ } else if (res.data.list && res.data.list.length > 0) {
+ data = res.data.list[0];
+ }
+ }
+
+ if (data) {
+ // 鏍规嵁婧愬崟绫诲瀷澶勭悊鏁版嵁
+ if (this.hform.HMainSourceBillType === "7512") {
+ // 澶勭悊涓嶈壇鍝佽瘎瀹$敵璇峰崟鏁版嵁锛堢涓�缁勬暟鎹級
+ this.hform.HBillNos = data.鍗曟嵁鍙� || "";
+ this.hform.HDates = data.鏃ユ湡 ? data.鏃ユ湡.split('T')[0] : "";
+ this.hform.HHappendDates = data.鍙戠敓鏃堕棿 ? data.鍙戠敓鏃堕棿.replace('T', ' ') : "";
+ this.hform.HICMOBillNos = data.浠诲姟鍗曞彿 || "";
+ this.hform.HProcExchBillNos = data.宸ュ簭娴佽浆鍗″彿 || "";
+ this.hform.HMaterNumbers = data.浜у搧浠g爜 || "";
+ this.hform.HMaterNames = data.浜у搧鍚嶇О || "";
+ this.hform.HMaterModels = data.瑙勬牸鍨嬪彿 || "";
+ this.hform.HUnitNames = data.璁¢噺鍗曚綅鍚嶇О || "";
+ this.hform.HMaterTypes = data.浜у搧绫诲瀷 === "1" ? "浜ф垚鍝�" : data.浜у搧绫诲瀷 || "";
+ this.hform.HUnRightQtys = data.涓嶈壇鏁伴噺 || "0";
+ this.hform.HDeptNames = data.杞﹂棿鍚嶇О || "";
+ this.hform.HProcNames = data.宸ュ簭 || "";
+ this.hform.HBadPhenomenaNames = data.涓嶈壇鐜拌薄 || "";
+ this.hform.HBarCodes = data.涓嶈壇鍝丼N鐮� || "";
+ this.hform.HSeOrderBillNos = data.閿�鍞鍗� || "";
+ this.hform.HReasonNotes = data.闂鐜拌薄绠�杩� || "";
+ this.hform.HLevs = data.绱ф�ョ▼搴� || "鏅��";
+ this.hform.HIsStops = data.鏄惁鍋滅嚎 || "鍚�";
+ this.hform.HIsBatchUnRights = data.鏄惁鎵归噺闂 || "鍚�";
+
+ // 婧愬崟ID淇℃伅
+ this.hform.HMainSourceInterID = data.hmainid || "0";
+ this.hform.HMainSourceEntryID = data.浠诲姟鍗曞瓙鍐呯爜 || "0";
+
+ } else if (this.hform.HMainSourceBillType === "3791") {
+ // 澶勭悊宸ュ簭鍑虹珯姹囨姤鍗曟暟鎹紙绗簩缁勬暟鎹級
+ this.hform.HBillNos = data.鍗曟嵁鍙� || "";
+ this.hform.HDates = data.鏃ユ湡 ? data.鏃ユ湡.split('T')[0] : "";
+ this.hform.HHappendDates = data.鍑虹珯鏃堕棿 ? data.鍑虹珯鏃堕棿.replace('T', ' ') : "";
+ this.hform.HICMOBillNos = data.浠诲姟鍗� || "";
+ this.hform.HProcExchBillNos = data.宸ュ簭娴佽浆鍗″彿 || "";
+ this.hform.HMaterNumbers = data.浜у搧浠g爜 || "";
+ this.hform.HMaterNames = data.浜у搧鍚嶇О || "";
+ this.hform.HMaterModels = data.瑙勬牸鍨嬪彿 || "";
+ this.hform.HUnitNames = data.璁¢噺鍗曚綅 || "";
+ this.hform.HMaterTypes = data.浜у搧绫诲瀷 || "";
+
+ // 涓嶈壇鏁伴噺 - 绗簩缁勬暟鎹腑鍙兘鏄笉鑹暟閲忓瓧娈�
+ this.hform.HUnRightQtys = data.涓嶈壇鏁伴噺 || data.鎶ュ簾鏁伴噺 || "0";
+ this.hform.HDeptNames = data.杞﹂棿 || data.閮ㄩ棬 || "";
+ this.hform.HProcNames = data.褰撳墠宸ュ簭 || "";
+
+ // 涓嶈壇鐜拌薄 - 绗簩缁勬暟鎹彲鑳芥病鏈夎繖涓瓧娈�
+ this.hform.HBadPhenomenaNames = data.涓嶈壇鐜拌薄 || "";
+
+ // 鍏朵粬瀛楁
+ this.hform.HBarCodes = data.鎵规鍙� || data.涓嶈壇鍝丼N鐮� || "";
+ this.hform.HSeOrderBillNos = data.閿�鍞鍗� || "";
+ this.hform.HReasonNotes = data.闂鐜拌薄绠�杩� || "";
+ this.hform.HLevs = data.绱ф�ョ▼搴� || "鏅��";
+ this.hform.HIsStops = data.鏄惁鍋滅嚎 || "鍚�";
+ this.hform.HIsBatchUnRights = data.鏄惁鎵归噺闂 || "鍚�";
+
+ // 婧愬崟ID淇℃伅
+ this.hform.HMainSourceInterID = data.hmainid || data.HProcExchInterID || "0";
+ this.hform.HMainSourceEntryID = data.HProcExchEntryID || "1";
+ }
+
+ // 璁剧疆婧愬崟绫诲瀷鏄剧ず
+ let index = this.arrayHMainSourceBillTypeID.findIndex(id => id == this.hform.HMainSourceBillType);
+ if (index != -1) {
+ this.HMainSourceBillTypeDisplay = this.arrayHMainSourceBillType[index];
+ }
+
+ this.hasSourceBill = false;
+ uni.showToast({ title: '鍔犺浇鎴愬姛', icon: 'success' });
+
+ // 寮哄埗鏇存柊瑙嗗浘
+ this.$forceUpdate();
+
+ } else {
+ uni.showToast({ title: '鏈壘鍒版簮鍗�', icon: 'none' });
+ }
+ } catch (err) {
+ uni.hideLoading();
+ console.error('鑾峰彇澶辫触:', err);
+
+ // 鏄剧ず鏇磋缁嗙殑閿欒淇℃伅
+ if (err.response && err.response.data) {
+ console.error('閿欒璇︽儏:', err.response.data);
+ uni.showToast({ title: err.response.data.Message || '鑾峰彇澶辫触', icon: 'none' });
+ } else {
+ uni.showToast({ title: '鑾峰彇澶辫触', icon: 'none' });
+ }
+ }
+ },
+
+ // 澶勭悊閮ㄩ棬閫夋嫨
+ HDisposeDeptChange(val) {
+ let index = this.DeptNameList.findIndex(e => e == val);
+ if (index == -1) {
+ this.hform.HDisposeDeptName = '';
+ this.hform.HDisposeDeptID = '0';
+ return;
+ }
+ this.hform.HDisposeDeptName = this.DeptList[index]['HName'];
+ this.hform.HDisposeDeptID = String(this.DeptList[index]['HItemID']);
+ },
+
+ // 鍙戣捣浜洪�夋嫨
+ HSendManChange(val) {
+ let index = this.GyEmpList.findIndex(e => e["鑱屽憳鍚嶇О"] == val);
+ if (index == -1) {
+ this.hform.HSendMan = "";
+ return;
+ }
+ this.hform.HSendMan = this.GyEmpList[index]["鑱屽憳鍚嶇О"];
+ },
+
+ // 鎺ユ敹浜洪�夋嫨
+ HReceiveManChange(val) {
+ let index = this.GyEmpList.findIndex(e => e["鑱屽憳鍚嶇О"] == val);
+ if (index == -1) {
+ this.hform.HReceiveMan = "";
+ return;
+ }
+ this.hform.HReceiveMan = this.GyEmpList[index]["鑱屽憳鍚嶇О"];
+ },
+
+ // 鎶勯�佷汉閫夋嫨 -
+ HCopyManChange(val) {
+ let index = this.GyEmpList.findIndex(e => e["鑱屽憳鍚嶇О"] == val);
+ if (index == -1) {
+ this.hform.HCopyMan = "";
+ return;
+ }
+ this.hform.HCopyMan = this.GyEmpList[index]["鑱屽憳鍚嶇О"];
+ },
+
+ // 婧愬崟绫诲瀷閫夋嫨
+ HMainSourceBillTypeChange(e) {
+ let index = e.detail.value;
+ this.HMainSourceBillTypeDisplay = this.arrayHMainSourceBillType[index];
+ this.hform.HMainSourceBillType = this.arrayHMainSourceBillTypeID[index];
+ },
+
+ // 鑾峰彇鍗曟嵁鍙�
+ async getMaxBillNo() {
+ try {
+ let res = await CommonUtils.doRequest2Sync({
+ url: "/Web/GetMAXNum",
+ data: { HBillType: "7512" },
+ });
+
+ if (res?.data?.count == 1) {
+ this.hform.HInterID = res.data.data[0].HInterID;
+ this.hform.HBillNo = res.data.data[0].HBillNo;
+ }
+ } catch (err) {
+ console.error('鑾峰彇鍗曟嵁鍙峰紓甯�:', err);
+ }
+ },
+
+ // 楠岃瘉
+ checkSubmitValidate() {
+ if (!this.hform.HBillNo) {
+ uni.showToast({ title: '鍗曟嵁鍙蜂笉鑳戒负绌�', icon: 'none' });
+ return false;
+ }
+ if (!this.hform.HSendMan) {
+ uni.showToast({ title: '鍙戣捣浜轰笉鑳戒负绌�', icon: 'none' });
+ return false;
+ }
+ if (!this.hform.HReceiveMan) {
+ uni.showToast({ title: '鎺ユ敹浜轰笉鑳戒负绌�', icon: 'none' });
+ return false;
+ }
+ return true;
+ },
+
+ async getEditData(HInterID) {
+ if (!HInterID || HInterID === "0") return;
+
+ uni.showLoading({ title: '鍔犺浇涓�...' });
+
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: "/Sc_ProcessMangement/Edit_QC_NoPassProdDisposeBill",
+ type: "GET",
+ data: { "HID": HInterID }
+ });
+
+ if (res.data && res.data.data && res.data.data.length > 0) {
+ let data = res.data.data[0];
+
+ this.hform = {
+ ...this.hform, // 淇濈暀鍘熸湁鐨勯粯璁ゅ��
+
+ HInterID: data.hmainid || "0",
+ HEntryID: data.HEntryID || "0",
+ HBillNo: data.鍗曟嵁鍙� || "",
+ HDate: data.鏃ユ湡 ? data.鏃ユ湡.split('T')[0] : dayjs().format("YYYY-MM-DD"),
+ HBillType: data.HBillType || '7513',
+
+
+ HBillNos: data.婧愬崟鍙� || "", // 杩欐槸婧愬崟鍙�
+ HDates: data.鏃ユ湡 ? data.鏃ユ湡.split('T')[0] : "", // 婧愬崟鏃ユ湡
+ HHappendDates: data.鍙戠敓鏃堕棿 ? data.鍙戠敓鏃堕棿.replace('T', ' ') : "",
+
+
+ HICMOBillNos: data.鐢熶骇璁㈠崟|| "",
+ HICMOInterIDs: data.HICMOInterIDs || "0",
+ HICMOEntryIDs: data.HICMOEntryIDs || "0",
+
+
+ HMaterNumbers: data.浜у搧浠g爜 || "",
+ HMaterNames: data.浜у搧鍚嶇О || "",
+ HMaterModels: data.瑙勬牸鍨嬪彿 || "",
+ HMaterIDs: data.HMaterID || "0",
+ HUnitNames: data.璁¢噺鍗曚綅鍚嶇О || "",
+ HUnitIDs: data.HUnitID || "0",
+ HMaterTypes: data.浜у搧绫诲瀷 === "1" ? "浜у搧绫诲瀷" : data.浜у搧绫诲瀷 || "",
+
+
+ HProcExchBillNos: data.宸ュ簭娴佽浆鍗″彿 || "",
+ HProcExchInterIDs: data.HProcExchInterIDs || "0",
+ HProcExchEntryIDs: data.HProcExchEntryIDs || "0",
+
+ HDisposeEmpName:data.澶勭悊浜� ,
+ HUnRightQtys: data.涓嶈壇鏁伴噺 || "0",
+ HLevs: data.绱ф�ョ▼搴� || "鏅��",
+ HIsStops: data.鏄惁鍋滅嚎 || "鍚�",
+ HIsBatchUnRights: data.鏄惁鎵归噺闂 || "鍚�",
+ HBarCodes: data.涓嶈壇鍝丼N鐮� || "",
+ HBadPhenomenaNames: data.涓嶈壇鐜拌薄 || "",
+ HBadPhenomenaIDs: data.HBadPhenomenaID || "0",
+ HReasonNotes: data.闂鐜拌薄绠�杩� || "",
+ HNote:data.绾犳鍙婇闃叉帾鏂�,
+ HDeptNames: data.杞﹂棿鍚嶇О || "",
+ HDeptIDs: data.HDeptID || "0",
+ HProcNames: data.宸ュ簭 || "",
+ HProcIDs: data.HProcID || "0",
+
+
+ HSeOrderBillNos: data.閿�鍞鍗� || "",
+ HMainSourceBillType: data.婧愬崟绫诲瀷 || "",
+ HMainSourceBillNo: data.婧愬崟鍙� || "",
+ HMainSourceInterID: data.婧愬崟ID || data.hmainid || "0",
+ HMainSourceEntryID: data.婧愬崟瀛怚D || data.浠诲姟鍗曞瓙鍐呯爜 || "0",
+ HSendMan: data.鍙戦�佷汉 || "",
+ HReceiveMan: data.鎺ユ敹浜� || "",
+ HCopyMan: data.鎶勯�� || "",
+ HDisposeDeptName: data.澶勭悊閮ㄩ棬 || "",
+ HDisposeDeptID: data.HDisposeDeptID || "0",
+ HDisposeProcID:data.HDisposeProcID || "0",
+ HDisposeProcName: data.澶勭悊宸ュ簭 || "",
+ HDisposeEmpID: data.HDisposeEmpID || "0",
+ HCheckerResult: data.澶勭悊缁撹 || "",
+ HDisposeNote: data.澶勭悊缁撹璇︽儏 || "",
+ HBadTypeName: data.涓嶈壇绫诲瀷 || "",
+ HBadTypeID: data.HBadTypeID || "0",
+ HBadReasonName: data.涓嶈壇鍘熷洜 || "",
+ HBadReasonID: data.HBadReasonID || "0",
+ HRemark: data.琛ㄥご澶囨敞 || "",
+
+
+ Organization: data.Organization || getUserInfo()["Organization"] || "",
+ HStockOrgID: data.HStockOrgID || uni.getStorageSync('OrganizationID') || "0",
+ HMaker: data.鍒跺崟浜� || "",
+ HMakeDate: data.鍒跺崟鏃ユ湡 ? data.鍒跺崟鏃ユ湡.replace('T', ' ') : "",
+ HUpDater: data.淇敼浜� || "",
+ HUpDateDate: data.淇敼鏃ユ湡 ? data.淇敼鏃ユ湡.replace('T', ' ') : "",
+ HChecker: data.瀹℃牳浜� || "",
+ HCheckDate: data.瀹℃牳鏃ユ湡 ? data.瀹℃牳鏃ユ湡.replace('T', ' ') : "",
+ HCloseMan: data.鍏抽棴浜� || "",
+ HCloseDate: data.鍏抽棴鏃ユ湡 ? data.鍏抽棴鏃ユ湡.replace('T', ' ') : "",
+ HDeleteMan: data.浣滃簾浜� || "",
+ HDeleteDate: data.浣滃簾鏃ユ湡 ? data.浣滃簾鏃ユ湡.replace('T', ' ') : "",
+ };
+
+
+ if (data.婧愬崟绫诲瀷) {
+ let index = this.arrayHMainSourceBillTypeID.findIndex(id => id == data.婧愬崟绫诲瀷);
+ if (index != -1) {
+ this.HMainSourceBillTypeDisplay = this.arrayHMainSourceBillType[index];
+ }
+ }
+
+
+ this.hasSourceBill = false;
+
+
+ this.$forceUpdate();
+
+ console.log('璧嬪�煎悗鐨刪form:', this.hform);
+ }
+ } catch (err) {
+ console.error('鑾峰彇鏁版嵁澶辫触:', err);
+ uni.showToast({ title: '鑾峰彇鏁版嵁澶辫触', icon: 'none' });
+ } finally {
+ uni.hideLoading();
+ }
+ },
+
+ // 淇濆瓨
+ async submit() {
+ if (!this.checkSubmitValidate()) return;
+
+ let operation = this.operationType == 1 ? "Add" : "Update";
+
+ // 缂栬緫鏃惰缃慨鏀逛汉鍜屼慨鏀规椂闂�
+ if (this.operationType == 3) {
+ this.hform.HUpDater = getUserInfo()["Czymc"];
+ this.hform.HUpDateDate = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");
+ }
+
+ try {
+ let sMainStr = JSON.stringify(this.hform);
+ let sMainSub = sMainStr + ';' + operation + ';' + getUserInfo()["Czymc"];
+
+ let res = await CommonUtils.doRequest2Sync({
+ url: "/Sc_ProcessMangement/SaveQC_NoPassProdDisposeBill",
+ data: { "msg": sMainSub },
+ method: "POST",
+ });
+
+ if (res?.data?.count == 1) {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '淇濆瓨鎴愬姛锛屾槸鍚︾户缁柊澧烇紵',
+ success: (r) => {
+ if (r.confirm) {
+ uni.redirectTo({
+ url: "/pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMain?operationType=1",
+ });
+ } else {
+ uni.navigateBack();
+ }
+ }
+ });
+ } else {
+ uni.showToast({ title: res?.data?.Message || '淇濆瓨澶辫触', icon: 'none' });
+ }
+ } catch (err) {
+ console.error('淇濆瓨澶辫触:', err);
+ uni.showToast({ title: '淇濆瓨澶辫触', icon: 'none' });
+ }
+ },
+
+ // 鏂板
+ addNew() {
+ uni.redirectTo({
+ url: "/pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMain?operationType=1",
+ });
+ },
+
+ // 杩斿洖
+ goBack() {
+ uni.navigateBack();
+ },
+ },
+
+ async onLoad(e) {
+ this.operationType = parseInt(e.operationType) || 1;
+ this.hform.HInterID = e.HInterID || "0";
+
+ const organization = uni.getStorageSync('Organization');
+ this.hform.Organization = organization || '';
+
+
+ await this.InitGyEmp();
+ await this.InitDept();
+
+ if (this.operationType == 1) {
+ await this.getMaxBillNo();
+ this.hform.HSendMan = getUserInfo()["Czymc"] || "";
+ } else if (this.operationType == 3) {
+ await this.getEditData(e.HInterID);
+ }
+ }
+ };
+</script>
+
+<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
+ input { width: inherit; font-size: 26rpx; }
+ .uni-input { padding: 0; }
+
+ .bill-main-tabs {
+ box-sizing: border-box;
+ width: 730rpx;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ gap: 20rpx;
+ border-bottom: 1px solid #ddd;
+ padding: 20rpx 10rpx;
+
+ view {
+ width: auto;
+ font-size: 26rpx;
+ color: #555;
+ text-align: center;
+ padding: 16rpx 0;
+ }
+
+ .selected {
+ color: #3a78ff;
+ font-weight: bold;
+ border-bottom: 3px solid #3a78ff;
+ }
+ }
+
+ .bill-main-content {
+ box-sizing: border-box;
+ padding: 0 30rpx;
+ display: flex;
+ flex-direction: column;
+
+ .form-item {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ font-size: 26rpx;
+ padding: 6rpx 0;
+
+ .left { width: 208rpx; }
+ .right {
+ padding: 8rpx 20rpx;
+ font-size: 26rpx;
+ flex: 1;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+
+ .uni-combox { padding: 0; height: auto; }
+ .uni-combox::v-deep input { height: inherit; font-size: 26rpx; }
+
+ input {
+ width: 100%;
+ border: none;
+ outline: none;
+ background: transparent;
+ }
+ }
+ .disabled { border: 1px solid #e4e4e4; background-color: #f5f5f5; }
+ }
+ }
+
+ .bottom-btn {
+ box-sizing: border-box;
+ width: 100%;
+ height: 120rpx;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ background-color: #fff;
+ box-shadow: 0 2rpx 10rpx 2rpx rgba(0,0,0,0.4);
+ padding: 30rpx 40rpx;
+ display: flex;
+ flex-direction: row;
+ gap: 10rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+ .btn-a { background-color: #3a78ff; color: #fff; }
+ .btn-c { background-color: #acacac; color: #fff; }
+ }
+
+ .select-border {
+ border: 1px solid #acacac !important;
+ border-radius: 22rpx !important;
+ }
+
+ .no-border-select ::v-deep .uni-select {
+ border: none !important;
+ }
+
+ .icon-wrapper, .icon-wrapper-big {
+ background-color: #3a78ff;
+ border-radius: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-shrink: 0;
+ margin-left: 20rpx;
+ .uni-icons { color: #fff !important; }
+ }
+
+ .icon-wrapper { width: 40rpx; height: 40rpx; }
+ .icon-wrapper-big { width: 50rpx; height: 50rpx; }
+
+ .enable-icon-button { background-color: #3a78ff; }
+ .disable-icon-button { background-color: lightgray; pointer-events: none; }
+
+
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMainList.vue b/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMainList.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMainList.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
index 219a397..125c2a5 100644
--- a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
+++ b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
@@ -2,150 +2,145 @@
<view>
<scroll-view scroll-y id="scroll-content" class="scroll-content" :style="{height: scrollContentHeight + 'px'}">
<view class="form-item">
- <view class="title">鏉″舰鐮�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HBarCode") == "QC_TakeSampleCheckBill.HBarCode" ? "鏉″舰鐮�:" : $t("QC_TakeSampleCheckBill.HBarCode") }}</view>
<view class="right">
- <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" />
+ <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" :placeholder="$t('QC_TakeSampleCheckBill.HBarCode_Placeholder') == 'QC_TakeSampleCheckBill.HBarCode_Placeholder' ? '璇锋壂鎻忔潯鐮�' : $t('QC_TakeSampleCheckBill.HBarCode_Placeholder')" />
</view>
<view class="right-icon" @click="toScanCode">
<uni-icons color="#fff" type="scan" size="24"></uni-icons>
</view>
</view>
<view class="form-item">
- <view class="title required">宸ュ簭:</view>
+ <view class="title required">{{ $t("QC_TakeSampleCheckBill.HProcName") == "QC_TakeSampleCheckBill.HProcName" ? "宸ュ簭:" : $t("QC_TakeSampleCheckBill.HProcName") }}</view>
<view class="right">
- <uni-combox :candidates="HProcNameArray" name="HProcName" id="HProcName" placeholder="璇烽�夋嫨宸ュ簭鍙�"
- v-model="hform.HProcName" @input="onHProcNameChangeHandler"></uni-combox>
+ <uni-combox :candidates="HProcNameArray" name="HProcName" id="HProcName" :placeholder="$t('QC_TakeSampleCheckBill.HProcName_Placeholder') == 'QC_TakeSampleCheckBill.HProcName_Placeholder' ? '璇烽�夋嫨宸ュ簭鍙�' : $t('QC_TakeSampleCheckBill.HProcName_Placeholder')" v-model="hform.HProcName" @input="onHProcNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">鍙栨牱鏁伴噺:</view>
+ <view class="title required">{{ $t("Gy.HQty") == "Gy.HQty" ? "鍙栨牱鏁伴噺:" : $t("Gy.HQty") }}</view>
<view class="right">
- <input type="number" name="HQty" id="HQty" v-model="hform.HQty" />
+ <input type="number" name="HQty" id="HQty" v-model="hform.HQty" :placeholder="$t('Gy.HQty_Placeholder') == 'Gy.HQty_Placeholder' ? '璇疯緭鍏ユ暟閲�' : $t('Gy.HQty_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">鐮村潖鎬у疄楠屾暟閲�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HSampleDamageQty") == "QC_TakeSampleCheckBill.HSampleDamageQty" ? "鐮村潖鎬у疄楠屾暟閲�:" : $t("QC_TakeSampleCheckBill.HSampleDamageQty") }}</view>
<view class="right">
<input type="number" name="HSampleDamageQty" id="HSampleDamageQty"
- v-model="hform.HSampleDamageQty" />
+ v-model="hform.HSampleDamageQty" :placeholder="$t('QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder') == 'QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder' ? '璇疯緭鍏ユ暟閲�' : $t('QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title required">閫佹祴绫诲瀷:</view>
+ <view class="title required">{{ $t("QC_TakeSampleCheckBill.TestType") == "QC_TakeSampleCheckBill.TestType" ? "閫佹祴绫诲瀷:" : $t("QC_TakeSampleCheckBill.TestType") }}</view>
<view class="right">
<uni-combox :candidates="TestTypeArray" v-model="hform.TestType"
@input="TestTypeChange"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">閫佹祴鍐呭:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HBadNote") == "QC_TakeSampleCheckBill.HBadNote" ? "閫佹祴鍐呭:" : $t("QC_TakeSampleCheckBill.HBadNote") }}</view>
<view class="right">
- <input type="text" name="HBadNote" id="HBadNote" v-model="hform.HBadNote" />
+ <input type="text" name="HBadNote" id="HBadNote" v-model="hform.HBadNote" :placeholder="$t('QC_TakeSampleCheckBill.HBadNote_Placeholder') == 'QC_TakeSampleCheckBill.HBadNote_Placeholder' ? '璇疯緭鍏ラ�佹祴鍐呭' : $t('QC_TakeSampleCheckBill.HBadNote_Placeholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">閮ㄩ棬:</view>
+ <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "閮ㄩ棬:" : $t("Gy.HDeptName") }}</view>
<view class="right">
- <uni-combox :candidates="HDeptNameArray" name="HDeptName" id="HDeptName" placeholder="璇烽�夋嫨閮ㄩ棬"
- v-model="hform.HDeptName" @input="HDeptNameChangeHandler"></uni-combox>
+ <uni-combox :candidates="HDeptNameArray" name="HDeptName" id="HDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '璇烽�夋嫨閮ㄩ棬' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">鐢熶骇鐝:</view>
+ <view class="title required">{{ $t("QC_TakeSampleCheckBill.HShiftsName") == "QC_TakeSampleCheckBill.HShiftsName" ? "鐢熶骇鐝:" : $t("QC_TakeSampleCheckBill.HShiftsName") }}</view>
<view class="right">
- <uni-combox :candidates="HShiftsNameArray" name="HShiftsName" id="HShiftsName" placeholder="璇烽�夋嫨鐢熶骇鐝"
- v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox>
+ <uni-combox :candidates="HShiftsNameArray" name="HShiftsName" id="HShiftsName" :placeholder="$t('QC_TakeSampleCheckBill.HShiftsName_Placeholder') == 'QC_TakeSampleCheckBill.HShiftsName_Placeholder' ? '璇烽�夋嫨鐢熶骇鐝' : $t('QC_TakeSampleCheckBill.HShiftsName_Placeholder')" v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title required">鐢熶骇鐝粍:</view>
+ <view class="title required">{{ $t("QC_TakeSampleCheckBill.HGroupName") == "QC_TakeSampleCheckBill.HGroupName" ? "鐢熶骇鐝粍:" : $t("QC_TakeSampleCheckBill.HGroupName") }}</view>
<view class="right">
- <uni-combox :candidates="HGroupNameArray" name="HGroupName" id="HGroupName" placeholder="璇烽�夋嫨鐢熶骇鐝粍"
- v-model="hform.HGroupName" @input="HGroupNameChangeHandler"></uni-combox>
+ <uni-combox :candidates="HGroupNameArray" name="HGroupName" id="HGroupName" :placeholder="$t('QC_TakeSampleCheckBill.HGroupName_Placeholder') == 'QC_TakeSampleCheckBill.HGroupName_Placeholder' ? '璇烽�夋嫨鐢熶骇鐝粍' : $t('QC_TakeSampleCheckBill.HGroupName_Placeholder')" v-model="hform.HGroupName" @input="HGroupNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍙栨牱鍛�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HCheckEmpName") == "QC_TakeSampleCheckBill.HCheckEmpName" ? "鍙栨牱鍛�:" : $t("QC_TakeSampleCheckBill.HCheckEmpName") }}</view>
<view class="right">
<uni-combox :candidates="HCheckEmpNameArray" name="HCheckEmpName" id="HCheckEmpName"
- placeholder="璇烽�夋嫨鍙栨牱鍛�" v-model="hform.HCheckEmpName"
+ :placeholder="$t('QC_TakeSampleCheckBill.HCheckEmpName_Placeholder') == 'QC_TakeSampleCheckBill.HCheckEmpName_Placeholder' ? '璇烽�夋嫨鍙栨牱鍛�' : $t('QC_TakeSampleCheckBill.HCheckEmpName_Placeholder')" v-model="hform.HCheckEmpName"
@input="HCheckEmpNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璧勬簮:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HSourceName") == "QC_TakeSampleCheckBill.HSourceName" ? "鐢熶骇璧勬簮:" : $t("QC_TakeSampleCheckBill.HSourceName") }}</view>
<view class="right">
- <uni-combox :candidates="HSourceNameArray" name="HSourceName" id="HSourceName" placeholder="璇烽�夋嫨鐢熶骇璧勬枡"
- v-model="hform.HSourceName" @input="HSourceNameChangeHandler"></uni-combox>
+ <uni-combox :candidates="HSourceNameArray" name="HSourceName" id="HSourceName" :placeholder="$t('QC_TakeSampleCheckBill.HSourceName_Placeholder') == 'QC_TakeSampleCheckBill.HSourceName_Placeholder' ? '璇烽�夋嫨鐢熶骇璧勬枡' : $t('QC_TakeSampleCheckBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChangeHandler"></uni-combox>
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "鍗曟嵁鏃ユ湡:" : $t("Gy.HDate") }}</view>
<view class="right disabled">
<input disabled type="text" name="HDate" id="HDate" v-model="hform.HDate" />
</view>
</view>
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="right disabled">
<input disabled type="text" name="HBillNo" id="HBillNo" v-model="hform.HBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鐢熶骇璁㈠崟:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HICMOBillNo") == "QC_TakeSampleCheckBill.HICMOBillNo" ? "鐢熶骇璁㈠崟:" : $t("QC_TakeSampleCheckBill.HICMOBillNo") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HICMOBillNo" name="HICMOBillNo" id="HICMOBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">娴佽浆鍗�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HProcExchBillNo") == "QC_TakeSampleCheckBill.HProcExchBillNo" ? "娴佽浆鍗�:" : $t("QC_TakeSampleCheckBill.HProcExchBillNo") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HProcExchBillNo" name="HProcExchBillNo"
id="HProcExchBillNo" />
</view>
</view>
<view class="form-item">
- <view class="title">鐗╂枡浠g爜:</view>
+ <view class="title">{{ $t("Gy.HMaterCode") == "Gy.HMaterCode" ? "鐗╂枡浠g爜:" : $t("Gy.HMaterCode") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HMaterCode" name="HMaterCode" id="HMaterCode" />
</view>
</view>
<view class="form-item">
- <view class="title">鐗╂枡鍚嶇О:</view>
+ <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "鐗╂枡鍚嶇О:" : $t("Gy.HMaterName") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HMaterName" name="HMaterName" id="HMaterName" />
</view>
</view>
<view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="title">{{ $t("Gy.HMaterSpec") == "Gy.HMaterSpec" ? "瑙勬牸鍨嬪彿:" : $t("Gy.HMaterSpec") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HMaterSpec" name="HMaterSpec" id="HMaterSpec" />
</view>
</view>
<view class="form-item">
- <view class="title">璁¢噺鍗曚綅:</view>
+ <view class="title">{{ $t("Gy.HUnitName") == "Gy.HUnitName" ? "璁¢噺鍗曚綅:" : $t("Gy.HUnitName") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HUnitName" name="HUnitName" id="HUnitName" />
</view>
</view>
<view class="form-item">
- <view class="title">娴佽浆鍗℃壒鍙�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HBatchNo") == "QC_TakeSampleCheckBill.HBatchNo" ? "娴佽浆鍗℃壒鍙�:" : $t("QC_TakeSampleCheckBill.HBatchNo") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HBatchNo" name="HBatchNo" id="HBatchNo" />
</view>
</view>
<view class="form-item">
- <view class="title">娴佽浆鍗℃暟閲�:</view>
+ <view class="title">{{ $t("QC_TakeSampleCheckBill.HProcExchQty") == "QC_TakeSampleCheckBill.HProcExchQty" ? "娴佽浆鍗℃暟閲�:" : $t("QC_TakeSampleCheckBill.HProcExchQty") }}</view>
<view class="right disabled">
<input disabled type="text" v-model="hform.HProcExchQty" name="HProcExchQty" id="HProcExchQty" />
</view>
</view>
</scroll-view>
<view class="bottom-btn" id="bottom-btn">
- <view><button class="btn-a" size="mini" @tap="submit">鎻愪氦</button></view>
- <view><button class="btn-b" size="mini" @tap="onAddNewHandler">鏂板</button></view>
+ <view><button class="btn-a" size="mini" @tap="submit">{{ $t("QC_TakeSampleCheckBill.submit") == "QC_TakeSampleCheckBill.submit" ? "鎻愪氦" : $t("QC_TakeSampleCheckBill.submit") }}</button></view>
+ <view><button class="btn-b" size="mini" @tap="onAddNewHandler">{{ $t("QC_TakeSampleCheckBill.addNew") == "QC_TakeSampleCheckBill.addNew" ? "鏂板" : $t("QC_TakeSampleCheckBill.addNew") }}</button></view>
<view class="placeholder__view"></view>
- <view><button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button></view>
+ <view><button class="btn-c" size="mini" @tap="goBack">{{ $t("QC_TakeSampleCheckBill.goBack") == "QC_TakeSampleCheckBill.goBack" ? "閫�鍑�" : $t("QC_TakeSampleCheckBill.goBack") }}</button></view>
</view>
</view>
</template>
@@ -169,7 +164,6 @@
},
refSav: 'Add',
showMask: true,
- TestTypeArray: ["棣栨", "宸℃", "鏈", "瀹為獙"],
HBillType: '7521',
HProcNameArray: [],
@@ -197,7 +191,7 @@
HProcID: 0,
HQty: '',
HSampleDamageQty: 0,
- TestType: '棣栨',
+ TestType: 'first',
HBadNote: '',
HDeptName: getUserInfo().HDeptName,
HDeptID: getUserInfo().HDeptID,
@@ -247,6 +241,14 @@
get() {
return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
}
+ },
+ TestTypeArray() {
+ return [
+ this.$t('QC_TakeSampleCheckBill.testTypeFirst') == 'QC_TakeSampleCheckBill.testTypeFirst' ? '棣栨' : this.$t('QC_TakeSampleCheckBill.testTypeFirst'),
+ this.$t('QC_TakeSampleCheckBill.testTypeInspection') == 'QC_TakeSampleCheckBill.testTypeInspection' ? '宸℃' : this.$t('QC_TakeSampleCheckBill.testTypeInspection'),
+ this.$t('QC_TakeSampleCheckBill.testTypeNot') == 'QC_TakeSampleCheckBill.testTypeNot' ? '鏈' : this.$t('QC_TakeSampleCheckBill.testTypeNot'),
+ this.$t('QC_TakeSampleCheckBill.testTypeExperiment') == 'QC_TakeSampleCheckBill.testTypeExperiment' ? '瀹為獙' : this.$t('QC_TakeSampleCheckBill.testTypeExperiment')
+ ];
}
},
onReady() {
@@ -265,6 +267,9 @@
},
async onLoad(e) {
+ uni.setNavigationBarTitle({
+ title: this.$t("QC_TakeSampleCheckBill.title") == 'QC_TakeSampleCheckBill.title' ? '鍙栨牱鍗�' : this.$t("QC_TakeSampleCheckBill.title")
+ })
let {
operationType
} = e
@@ -284,7 +289,7 @@
this.get_HWorkShift()
},
methods: {
- HDeptNameChangeHandler() {
+ HDeptNameChangeHandler(e) {
let index = this.HDeptNameArray.findIndex(item => item == e)
if (index != -1) {
@@ -348,7 +353,7 @@
} else {
uni.showToast({
icon: 'none',
- title: Message
+ title: msg
})
}
}
@@ -575,7 +580,7 @@
mpaasScanModule.mpaasScan({
'hideAlbum': true,
'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ 'timeoutText': this.$t('QC_TakeSampleCheckBill.scanTimeoutText') == 'QC_TakeSampleCheckBill.scanTimeoutText' ? '鏈瘑鍒埌浜岀淮鐮�' : this.$t('QC_TakeSampleCheckBill.scanTimeoutText') //瓒呮椂鎻愰啋
}, (ret) => {
console.log(ret.resp_result)
if (this.hform.HBarCode == '*') {
@@ -592,7 +597,7 @@
if (!HBarCode) {
return uni.showToast({
icon: 'none',
- title: '鏉″舰鐮佷笉鑳戒负绌�'
+ title: this.$t('QC_TakeSampleCheckBill.barCodeEmpty') == 'QC_TakeSampleCheckBill.barCodeEmpty' ? '鏉″舰鐮佷笉鑳戒负绌�' : this.$t('QC_TakeSampleCheckBill.barCodeEmpty')
})
}
CommonUtils.doRequest2({
@@ -662,55 +667,55 @@
if (this.hform.HProcID == 0) {
return uni.showToast({
icon: 'none',
- title: '宸ュ簭娌℃湁閫夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noProcess') == 'QC_TakeSampleCheckBill.noProcess' ? '宸ュ簭娌℃湁閫夋嫨' : this.$t('QC_TakeSampleCheckBill.noProcess')
})
}
if (this.hform.HQty == '') {
return uni.showToast({
icon: 'none',
- title: '鍙栨牱鏁伴噺涓嶈兘涓虹┖'
+ title: this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty') == 'QC_TakeSampleCheckBill.sampleQtyEmpty' ? '鍙栨牱鏁伴噺涓嶈兘涓虹┖' : this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty')
})
}
if (this.hform.HSampleDamageQty == '') {
return uni.showToast({
icon: 'none',
- title: '鐮村潖鎬у疄楠屾暟閲忎笉鑳戒负绌�'
+ title: this.$t('QC_TakeSampleCheckBill.damageQtyEmpty') == 'QC_TakeSampleCheckBill.damageQtyEmpty' ? '鐮村潖鎬у疄楠屾暟閲忎笉鑳戒负绌�' : this.$t('QC_TakeSampleCheckBill.damageQtyEmpty')
})
}
if (this.hform.HProcID == 0) {
return uni.showToast({
icon: 'none',
- title: '宸ュ簭娌℃湁閫夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noProcess') == 'QC_TakeSampleCheckBill.noProcess' ? '宸ュ簭娌℃湁閫夋嫨' : this.$t('QC_TakeSampleCheckBill.noProcess')
})
}
if (this.hform.HDeptID == 0) {
return uni.showToast({
icon: 'none',
- title: '閮ㄩ棬娌℃湁閫夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noDept') == 'QC_TakeSampleCheckBill.noDept' ? '閮ㄩ棬娌℃湁閫夋嫨' : this.$t('QC_TakeSampleCheckBill.noDept')
})
}
if (this.hform.HShiftsID == 0) {
return uni.showToast({
icon: 'none',
- title: '鐝鏈�夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noShift') == 'QC_TakeSampleCheckBill.noShift' ? '鐝鏈�夋嫨' : this.$t('QC_TakeSampleCheckBill.noShift')
})
}
if (this.hform.HGroupID == 0) {
return uni.showToast({
icon: 'none',
- title: '鐢熶骇鐝粍鏈�夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noGroup') == 'QC_TakeSampleCheckBill.noGroup' ? '鐢熶骇鐝粍鏈�夋嫨' : this.$t('QC_TakeSampleCheckBill.noGroup')
})
}
if (this.hform.HCheckEmp == 0) {
return uni.showToast({
icon: 'none',
- title: '鍙栨牱鍛樻湭閫夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noChecker') == 'QC_TakeSampleCheckBill.noChecker' ? '鍙栨牱鍛樻湭閫夋嫨' : this.$t('QC_TakeSampleCheckBill.noChecker')
})
}
if (this.hform.HSourceID == 0) {
return uni.showToast({
icon: 'none',
- title: '鐢熶骇璧勬簮鏈�夋嫨'
+ title: this.$t('QC_TakeSampleCheckBill.noSource') == 'QC_TakeSampleCheckBill.noSource' ? '鐢熶骇璧勬簮鏈�夋嫨' : this.$t('QC_TakeSampleCheckBill.noSource')
})
}
@@ -731,8 +736,8 @@
} = res.data
if (count == 1) {
uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
+ title: this.$t('QC_TakeSampleCheckBill.confirmTitle') == 'QC_TakeSampleCheckBill.confirmTitle' ? '鎻愮ず' : this.$t('QC_TakeSampleCheckBill.confirmTitle'),
+ content: res.data.Message + (this.$t('QC_TakeSampleCheckBill.continueAdd') == 'QC_TakeSampleCheckBill.continueAdd' ? '銆傛槸鍚︾户缁柊澧烇紵' : this.$t('QC_TakeSampleCheckBill.continueAdd')),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -769,6 +774,7 @@
</script>
<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
.scroll-content {
box-sizing: border-box;
padding: 20rpx;
diff --git a/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue.vue b/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue.vue
new file mode 100644
index 0000000..5a19071
--- /dev/null
+++ b/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue.vue
@@ -0,0 +1,370 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view>
+
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list">
+ <uni-card note="Tips" v-for="(item, index) in reportData">
+ <view class="card-detail">
+ <template v-for="(field, fIndex) in reportList">
+ <view class="detail">
+ <text>{{ field.ColmCols }}锛�</text>
+ {{item[field.ColmCols]}}
+ </view>
+ </template>
+ </view>
+ </uni-card>
+
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "QC_ErrManagerLedgerReport_Issue",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M")
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/QC_CustomerAppealReport/QC_ErrManagerLedgerReport_Issue',
+ data: {
+ sWhere: `{"HYear":"${this.condition.year}","HMonth":"${this.condition.month}","HProject":"","HBatchWork":"","HDivisionName":""}`,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ this.reportData = data
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i].闂);
+ HSourceIssueCount.push(data[i].闂鍙戠敓娆℃暟);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ title: {
+ text: '寮傚父绫诲瀷鍙戠敓娆℃暟',
+ left: 'left',
+ textStyle: {
+ color: 'black',
+ fontSize: 18,
+ fontWeight: 'normal'
+ },
+ padding: [5, 0, 0, 65]
+ },
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: HSourceName
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '寮傚父绫诲瀷娆℃暟',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSourceIssueCount,
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i].鍗犳瘮.replace('%', ''),
+ name: data[i].闂
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + HMonth + '鏈堜唤寮傚父绫诲瀷姣斾緥',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '寮傚父绫诲瀷姣斾緥',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source.vue b/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source.vue
new file mode 100644
index 0000000..bd59ee6
--- /dev/null
+++ b/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source.vue
@@ -0,0 +1,371 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+
+ </zxz-uni-data-select>
+ </view>
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view>
+
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list">
+ <uni-card note="Tips" v-for="(item, index) in reportData">
+ <view class="card-detail">
+ <template v-for="(field, fIndex) in reportList">
+ <view class="detail">
+ <text>{{ field.ColmCols }}锛�</text>
+ {{item[field.ColmCols]}}
+ </view>
+ </template>
+ </view>
+ </uni-card>
+
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "QC_ErrManagerLedgerReport_Source",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M")
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/QC_CustomerAppealReport/QC_ErrManagerLedgerReport_Source',
+ data: {
+ sWhere: `{"HYear":"${this.condition.year}","HMonth":"${this.condition.month}","HProject":"","HBatchWork":"","HDivisionName":""}`,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ this.reportData = data
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栫嚎鍒棶棰樻鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栫嚎鍒棶棰樻瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i].绾垮悕);
+ HSourceIssueCount.push(data[i].绾垮埆闂娆℃暟);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ title: {
+ text: '绾垮埆闂娆℃暟',
+ left: 'left',
+ textStyle: {
+ color: 'black',
+ fontSize: 18,
+ fontWeight: 'normal'
+ },
+ padding: [5, 0, 0, 65]
+ },
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: HSourceName
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '绾垮埆闂娆℃暟',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSourceIssueCount,
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i].鍗犳瘮.replace('%', ''),
+ name: data[i].绾垮悕
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + HMonth + '鏈堜唤绾垮埆闂姣斾緥',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '绾垮埆闂娆℃暟姣斾緥',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue b/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue
new file mode 100644
index 0000000..81d42ce
--- /dev/null
+++ b/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport.vue
@@ -0,0 +1,309 @@
+<template>
+ <view>
+ <!-- 閮ㄩ棬绛涢�� -->
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.HDept_Search")}}:</view>
+ <view class="right" @click="showPicker">
+ <input type="text" :value="condition.HDeptName" />
+ </view>
+ </view>
+ </view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.BeginDate_Search")}}:</view>
+ <view class="right">
+ <uni-datetime-picker v-model="condition.HBeginDate" type="date" placeholder="璇烽�夋嫨鏃ユ湡"
+ start="2020-01-01" :end="HDateMiddle">
+ <input type="text" :value="condition.HBeginDate" />
+ </uni-datetime-picker>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">{{$t("Gy.EndDate_Search")}}:</view>
+ <view class="right">
+ <uni-datetime-picker v-model="condition.HEndDate" type="date" placeholder="璇烽�夋嫨鏃ユ湡"
+ :start="HDateMiddle" end="2099-12-31">
+ <input type="text" :value="condition.HEndDate" />
+ </uni-datetime-picker>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">{{$t("Gy.EquipNumber_Search")}}:</view>
+ <view class="right">
+ <input type="text" :value="condition.HNumber" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">{{$t("Gy.EquipName_Search")}}:</view>
+ <view class="right">
+ <input type="text" :value="condition.HName" />
+ </view>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+
+ <!-- 鏄剧ず鍒楄〃 -->
+ <view class="list" v-for="(item,index) in displayData" :key="index">
+ <uni-card :title="item.璁惧鍚嶇О" style="margin: 10px;"
+ >
+ <view class="card-detail">
+ <template v-for="(HBillField, index) in CommonUtils.emptyValueFilter(item,fieldData).slice(0,10)">
+ <view class="detail" v-if="HBillField.ColmType == 'DateTime'">
+ <text>{{ HBillField.ColmCols }}锛�</text>{{ item[HBillField.ColmCols] ? dayjs(item[HBillField.ColmCols]).format("YYYY-MM-DD HH:mm:ss") : "" }}
+ </view>
+ <view class="detail" v-else>
+ <text>{{ HBillField.ColmCols }}锛�</text>{{ item[HBillField.ColmCols] }}
+ </view>
+ </template>
+ </view>
+ <view class="card-detail" v-if="showDetail == index">
+ <view class="card-detail">
+ <template
+ v-for="(HBillField, index) in CommonUtils.emptyValueFilter(item,fieldData).slice(10,-1)">
+ <view class="detail" v-if="HBillField.ColmType == 'DateTime'">
+ <text>{{ HBillField.ColmCols }}锛�</text>{{ item[HBillField.ColmCols] ? dayjs(item[HBillField.ColmCols]).format("YYYY-MM-DD HH:mm:ss") : "" }}
+ </view>
+ <view class="detail" v-else>
+ <text>{{ HBillField.ColmCols }}锛�</text>{{ item[HBillField.ColmCols] }}
+ </view>
+ </template>
+
+ </view>
+ </view>
+
+ <view class="more" v-if="showDetail == index && operations != index">
+ <view class="part" style="border-right: 1px solid #eee;">
+ <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+ </view>
+ <view class="part" @tap.stop="operations = operations==index?-1:index">
+ <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鎿嶄綔
+ </view>
+ </view>
+ <!-- <view class="more" v-if="showDetail != index && operations != index">
+ <view class="part" style="border-right: 1px solid #eee;">
+ <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏇村淇℃伅
+ </view>
+ <view class="part" @tap.stop="operations = operations==index?-1:index">
+ <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鎿嶄綔
+ </view>
+ </view> -->
+ <view class="op" v-if="operations == index">
+ <!-- <button class="op3" size="mini" plain @tap.stop="edit(item)">缂栬緫</button> -->
+ <!-- <button class="op4" size="mini" plain @tap.stop="del(item)">鍒犻櫎</button> -->
+ <button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
+ </view>
+ </uni-card>
+ </view>
+ <template v-if="displayData.length == 0">
+ <view class="over">鏆傛棤鏁版嵁</view>
+ </template>
+ <template v-else>
+ <view class="over" v-if="!readCompelete">姝e湪鑾峰彇鏁版嵁...</view>
+ <view class="over" v-if="readCompelete">娌℃湁鏇村鏁版嵁...</view>
+ </template>
+
+ <ba-tree-picker ref="treePicker" :multiple='false' @select-change="selectChange" title="閫夋嫨閮ㄩ棬"
+ :localdata="reportTreeList" valueKey="id" textKey="title" childrenKey="children" />
+ </view>
+</template>
+
+<script>
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import baTreePicker from "@/components/ba-tree-picker/ba-tree-picker.vue"
+ import dayjs from 'dayjs';
+ export default {
+ components: {
+ baTreePicker
+ },
+ data() {
+ return {
+ dayjs,
+ CommonUtils,
+ showDetail: -1,
+ operations: -1,
+
+ reportTreeList: [],
+ selectedList: [],
+ displayData: [],
+ fieldData: [],
+
+ readCompelete: false,
+ page: 1,
+ size: 20,
+
+ HDateMiddle: dayjs(new Date()).format("YYYY-MM-DD"),
+
+
+ condition: {
+ HDeptID: 0,
+ HDeptName: "",
+ HBeginDate: dayjs(new Date()).format("YYYY-MM-DD"),
+ HEndDate: dayjs(new Date()).format("YYYY-MM-DD"),
+ HNumber: "",
+ HName: ""
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.page = 1
+ this.getReport()
+ },
+ clear() {
+
+ },
+ showPicker() {
+ this.$refs.treePicker._show();
+ },
+ //鐩戝惉閫夋嫨锛坕ds涓烘暟缁勶級
+ selectChange(ids, names) {
+ this.condition.HDeptID = ids[0]
+ this.condition.HDeptName = names
+ },
+ async getReport() {
+ try {
+ let sWhere = ""
+ sWhere += this.combineSWhereStr(sWhere)
+
+ let res = await CommonUtils.doRequest2Async({
+ url: "/SB_EquipRunningStatus/Report",
+ data: {
+ sWhere,
+ user: getUserInfo()["Czymc"],
+ page: this.page,
+ size: this.size
+ }
+ })
+
+ let {data, count, Message, list} = res.data
+
+ if(count == 1) {
+ if(data.length == 0) {
+ // 鏁版嵁宸茬粡璇诲畬
+ this.page--
+ this.readCompelete = true
+ return
+ }
+
+ this.displayData.push(...data)
+ this.fieldData = CommonUtils.fieldListFilterRole({
+ FieldList: list,
+ ExcludeKeys: ["璁惧鍚嶇О"]
+ }).data || []
+ }else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: `鑾峰彇鎶ヨ〃淇℃伅澶辫触: ${Message}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: `鑾峰彇鎶ヨ〃淇℃伅澶辫触: ${err}`
+ })
+ }
+ },
+ async GetReportTreeList() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: "/SB_EquipRunningStatus/ReportTreeGetList",
+ data: {
+ sWhere: "",
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ data,
+ count,
+ Message
+ } = res.data
+ if (count == 1) {
+ this.reportTreeList = JSON.parse(data)
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: `鑾峰彇閮ㄩ棬淇℃伅澶辫触: ${Message}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: `鑾峰彇閮ㄩ棬淇℃伅澶辫触: ${err}`
+ })
+ }
+ },
+ combineSWhereStr(sWhere) {
+ if (this.condition.HDeptID != 0) {
+ sWhere += ` and HDeptID ='${this.condition.HDeptID}'`
+ }
+
+ if (this.condition.HBeginDate && this.condition.HEndDate) {
+ sWhere +=
+ ` and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) >= '${this.condition.HBeginDate}' and CONVERT(varchar(100),鎵�灞炴棩鏈�, 23) <= '${this.condition.HEndDate}'`
+ }
+
+ if (this.condition.HNumber) {
+ sWhere += ` and 璁惧缂栫爜 like '%${this.condition.HNumber}'%`
+ }
+
+ if (this.condition.HName) {
+ sWhere += ` and 璁惧鍚嶇О like '%${this.condition.HName}'%`
+ }
+
+ return sWhere
+ }
+ },
+ onLoad() {
+ this.GetReportTreeList()
+ },
+ onReachBottom(){
+ this.page++
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ @import url("../style/MJListStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport.vue b/pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport.vue
new file mode 100644
index 0000000..5d6de47
--- /dev/null
+++ b/pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport.vue
@@ -0,0 +1,520 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <!-- <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view> -->
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Dimension_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="dimensionSelector" dataKey="label" dataValue="value"
+ v-model="condition.dimension">
+ </zxz-uni-data-select>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <view class="bill-main-tabs">
+ <view v-for="(item,index) in reportData" :key="index" :class="item.tab == tabs?'selected':''" @tap.stop="tabs = item.tab">
+ {{ item.label }}
+ </view>
+ </view>
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list" v-for="(item,index) in reportData" :key="index" v-if="item.tab == tabs">
+ <view style="display: inline-flex; flex-direction: row; padding: 8rpx; gap: 4rpx;" v-for="(tag, cursor) in item.value" :key="cursor">
+ <uni-tag :text="tag" type="primary" custom-style="padding: 12rpx 16rpx;" />
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ },
+ dimensionSelector: {
+ get() {
+ let dimensionList = ['璁惧', '鐐规椤圭洰', '杞﹂棿', '璐d换浜�']
+ return dimensionList.map(item => {
+ return {
+ label: item,
+ value: item,
+ }
+ })
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "Sc_MouldMaintainBillMainReport",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ tabs: '',
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M"),
+ dimension: '鐐规椤圭洰'
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/Sb_EquipDotCheckReport/Statistics',
+ data: {
+ DateYear: this.condition.year,
+ HType: this.condition.dimension,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ let data1 = Array.from(data).reduce((acc, cur) => {
+ let object = {}
+ object['value'] = []
+ for (let key in cur) {
+ if (cur.hasOwnProperty(key)) {
+ if (key == this.condition.dimension) {
+ object["tab"] = cur[key]
+ object["label"] = cur[key]
+ continue;
+ }
+ if (key != '鍚堣') {
+ object['value'].push(`${key}: ${cur[key]}`)
+ }
+ }
+ }
+ acc.push(object)
+ return acc;
+ }, [])
+ console.log('data1: ',data1);
+ if(data1.length > 0) {
+ this.tabs = data1[0].tab
+ }
+ this.reportData.splice(0)
+ this.reportData.push(...data1)
+ console.log('this.reportData: ',this.reportData);
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ let HJanuary = []; //涓�鏈堜唤鏁版嵁
+ let HFebruary = []; //浜屾湀浠芥暟鎹�
+ let HMarch = []; //涓夋湀浠芥暟鎹�
+ let HApril = []; //鍥涙湀浠芥暟鎹�
+ let HMay = []; //浜旀湀浠芥暟鎹�
+ let HJune = []; //鍏湀浠芥暟鎹�
+ let HJuly = []; //涓冩湀浠芥暟鎹�
+ let HAugust = []; //鍏湀浠芥暟鎹�
+ let HSeptember = []; //涔濇湀浠芥暟鎹�
+ let HOctober = []; //鍗佹湀浠芥暟鎹�
+ let HNovember = []; //鍗佷竴鏈堜唤鏁版嵁
+ let HDecember = []; //鍗佷簩鏈堜唤鏁版嵁
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i][this.condition.dimension]);
+ HJanuary.push(data[i]['1鏈�']);
+ HFebruary.push(data[i]['2鏈�']);
+ HMarch.push(data[i]['3鏈�']);
+ HApril.push(data[i]['4鏈�']);
+ HMay.push(data[i]['5鏈�']);
+ HJune.push(data[i]['6鏈�']);
+ HJuly.push(data[i]['7鏈�']);
+ HAugust.push(data[i]['8鏈�']);
+ HSeptember.push(data[i]['9鏈�']);
+ HOctober.push(data[i]['10鏈�']);
+ HNovember.push(data[i]['11鏈�']);
+ HDecember.push(data[i]['12鏈�']);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'],
+ itemWidth: 12, // 鍥句緥鍥炬爣瀹藉害锛堝彲閫夛紝璁╁竷灞�鏇寸揣鍑戯級
+ itemHeight: 12, // 鍥句緥鍥炬爣楂樺害锛堝彲閫夛級
+ textStyle: {
+ fontSize: 11 // 瀛椾綋澶у皬锛堝彲閫夛紝閬垮厤澶崰绌洪棿锛�
+ }
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '1鏈�',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJanuary
+ },
+ {
+ name: '2鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HFebruary
+ },
+ {
+ name: '3鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMarch
+ },
+ {
+ name: '4鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HApril
+ },
+ {
+ name: '5鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMay
+ },
+ {
+ name: '6鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJune
+ },
+ {
+ name: '7鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJuly
+ },
+ {
+ name: '8鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HAugust
+ },
+ {
+ name: '9鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSeptember
+ },
+ {
+ name: '10鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HOctober
+ },
+ {
+ name: '11鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HNovember
+ },
+ {
+ name: '12鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HDecember
+ }
+ ]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i]['鍚堣'],
+ name: data[i][this.condition.dimension]
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + this.condition.dimension +'鍒嗗竷鍥�',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '鐐规娆℃暟',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport.vue b/pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport.vue
new file mode 100644
index 0000000..151b064
--- /dev/null
+++ b/pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport.vue
@@ -0,0 +1,520 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <!-- <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view> -->
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Dimension_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="dimensionSelector" dataKey="label" dataValue="value"
+ v-model="condition.dimension">
+ </zxz-uni-data-select>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <view class="bill-main-tabs">
+ <view v-for="(item,index) in reportData" :key="index" :class="item.tab == tabs?'selected':''" @tap.stop="tabs = item.tab">
+ {{ item.label }}
+ </view>
+ </view>
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list" v-for="(item,index) in reportData" :key="index" v-if="item.tab == tabs">
+ <view style="display: inline-flex; flex-direction: row; padding: 8rpx; gap: 4rpx;" v-for="(tag, cursor) in item.value" :key="cursor">
+ <uni-tag :text="tag" type="primary" custom-style="padding: 12rpx 16rpx;" />
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ },
+ dimensionSelector: {
+ get() {
+ let dimensionList = ['璁惧', '淇濆吇椤圭洰', '杞﹂棿', '璐d换浜�']
+ return dimensionList.map(item => {
+ return {
+ label: item,
+ value: item,
+ }
+ })
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "Sc_MouldMaintainBillMainReport",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ tabs: '',
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M"),
+ dimension: '璁惧'
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/Sb_EquipMaintainReport/Statistics',
+ data: {
+ DateYear: this.condition.year,
+ HType: this.condition.dimension,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ let data1 = Array.from(data).reduce((acc, cur) => {
+ let object = {}
+ object['value'] = []
+ for (let key in cur) {
+ if (cur.hasOwnProperty(key)) {
+ if (key == this.condition.dimension) {
+ object["tab"] = cur[key]
+ object["label"] = cur[key]
+ continue;
+ }
+ if (key != '鍚堣') {
+ object['value'].push(`${key}: ${cur[key]}`)
+ }
+ }
+ }
+ acc.push(object)
+ return acc;
+ }, [])
+ console.log('data1: ',data1);
+ if(data1.length > 0) {
+ this.tabs = data1[0].tab
+ }
+ this.reportData.splice(0)
+ this.reportData.push(...data1)
+ console.log('this.reportData: ',this.reportData);
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ let HJanuary = []; //涓�鏈堜唤鏁版嵁
+ let HFebruary = []; //浜屾湀浠芥暟鎹�
+ let HMarch = []; //涓夋湀浠芥暟鎹�
+ let HApril = []; //鍥涙湀浠芥暟鎹�
+ let HMay = []; //浜旀湀浠芥暟鎹�
+ let HJune = []; //鍏湀浠芥暟鎹�
+ let HJuly = []; //涓冩湀浠芥暟鎹�
+ let HAugust = []; //鍏湀浠芥暟鎹�
+ let HSeptember = []; //涔濇湀浠芥暟鎹�
+ let HOctober = []; //鍗佹湀浠芥暟鎹�
+ let HNovember = []; //鍗佷竴鏈堜唤鏁版嵁
+ let HDecember = []; //鍗佷簩鏈堜唤鏁版嵁
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i][this.condition.dimension]);
+ HJanuary.push(data[i]['1鏈�']);
+ HFebruary.push(data[i]['2鏈�']);
+ HMarch.push(data[i]['3鏈�']);
+ HApril.push(data[i]['4鏈�']);
+ HMay.push(data[i]['5鏈�']);
+ HJune.push(data[i]['6鏈�']);
+ HJuly.push(data[i]['7鏈�']);
+ HAugust.push(data[i]['8鏈�']);
+ HSeptember.push(data[i]['9鏈�']);
+ HOctober.push(data[i]['10鏈�']);
+ HNovember.push(data[i]['11鏈�']);
+ HDecember.push(data[i]['12鏈�']);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'],
+ itemWidth: 12, // 鍥句緥鍥炬爣瀹藉害锛堝彲閫夛紝璁╁竷灞�鏇寸揣鍑戯級
+ itemHeight: 12, // 鍥句緥鍥炬爣楂樺害锛堝彲閫夛級
+ textStyle: {
+ fontSize: 11 // 瀛椾綋澶у皬锛堝彲閫夛紝閬垮厤澶崰绌洪棿锛�
+ }
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '1鏈�',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJanuary
+ },
+ {
+ name: '2鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HFebruary
+ },
+ {
+ name: '3鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMarch
+ },
+ {
+ name: '4鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HApril
+ },
+ {
+ name: '5鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMay
+ },
+ {
+ name: '6鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJune
+ },
+ {
+ name: '7鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJuly
+ },
+ {
+ name: '8鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HAugust
+ },
+ {
+ name: '9鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSeptember
+ },
+ {
+ name: '10鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HOctober
+ },
+ {
+ name: '11鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HNovember
+ },
+ {
+ name: '12鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HDecember
+ }
+ ]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i]['鍚堣'],
+ name: data[i][this.condition.dimension]
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + '淇濆吇椤圭洰鍒嗗竷鍥�',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '淇濆吇娆℃暟',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport.vue b/pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport.vue
new file mode 100644
index 0000000..da42acc
--- /dev/null
+++ b/pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport.vue
@@ -0,0 +1,520 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <!-- <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view> -->
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Dimension_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="dimensionSelector" dataKey="label" dataValue="value"
+ v-model="condition.dimension">
+ </zxz-uni-data-select>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <view class="bill-main-tabs">
+ <view v-for="(item,index) in reportData" :key="index" :class="item.tab == tabs?'selected':''" @tap.stop="tabs = item.tab">
+ {{ item.label }}
+ </view>
+ </view>
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list" v-for="(item,index) in reportData" :key="index" v-if="item.tab == tabs">
+ <view style="display: inline-flex; flex-direction: row; padding: 8rpx; gap: 4rpx;" v-for="(tag, cursor) in item.value" :key="cursor">
+ <uni-tag :text="tag" type="primary" custom-style="padding: 12rpx 16rpx;" />
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ },
+ dimensionSelector: {
+ get() {
+ let dimensionList = ['璁惧', '缁翠慨椤圭洰', '杞﹂棿', '璐d换浜�']
+ return dimensionList.map(item => {
+ return {
+ label: item,
+ value: item,
+ }
+ })
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "Sc_MouldRepairWorkBillReport",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ tabs: '',
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M"),
+ dimension: '缁翠慨椤圭洰'
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/Sb_EquipRepairWorkReport/Statistics',
+ data: {
+ DateYear: this.condition.year,
+ HType: this.condition.dimension,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ let data1 = Array.from(data).reduce((acc, cur) => {
+ let object = {}
+ object['value'] = []
+ for (let key in cur) {
+ if (cur.hasOwnProperty(key)) {
+ if (key == this.condition.dimension) {
+ object["tab"] = cur[key]
+ object["label"] = cur[key]
+ continue;
+ }
+ if (key != '鍚堣') {
+ object['value'].push(`${key}: ${cur[key]}`)
+ }
+ }
+ }
+ acc.push(object)
+ return acc;
+ }, [])
+ console.log('data1: ',data1);
+ if(data1.length > 0) {
+ this.tabs = data1[0].tab
+ }
+ this.reportData.splice(0)
+ this.reportData.push(...data1)
+ console.log('this.reportData: ',this.reportData);
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ let HJanuary = []; //涓�鏈堜唤鏁版嵁
+ let HFebruary = []; //浜屾湀浠芥暟鎹�
+ let HMarch = []; //涓夋湀浠芥暟鎹�
+ let HApril = []; //鍥涙湀浠芥暟鎹�
+ let HMay = []; //浜旀湀浠芥暟鎹�
+ let HJune = []; //鍏湀浠芥暟鎹�
+ let HJuly = []; //涓冩湀浠芥暟鎹�
+ let HAugust = []; //鍏湀浠芥暟鎹�
+ let HSeptember = []; //涔濇湀浠芥暟鎹�
+ let HOctober = []; //鍗佹湀浠芥暟鎹�
+ let HNovember = []; //鍗佷竴鏈堜唤鏁版嵁
+ let HDecember = []; //鍗佷簩鏈堜唤鏁版嵁
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i][this.condition.dimension]);
+ HJanuary.push(data[i]['1鏈�']);
+ HFebruary.push(data[i]['2鏈�']);
+ HMarch.push(data[i]['3鏈�']);
+ HApril.push(data[i]['4鏈�']);
+ HMay.push(data[i]['5鏈�']);
+ HJune.push(data[i]['6鏈�']);
+ HJuly.push(data[i]['7鏈�']);
+ HAugust.push(data[i]['8鏈�']);
+ HSeptember.push(data[i]['9鏈�']);
+ HOctober.push(data[i]['10鏈�']);
+ HNovember.push(data[i]['11鏈�']);
+ HDecember.push(data[i]['12鏈�']);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'],
+ itemWidth: 12, // 鍥句緥鍥炬爣瀹藉害锛堝彲閫夛紝璁╁竷灞�鏇寸揣鍑戯級
+ itemHeight: 12, // 鍥句緥鍥炬爣楂樺害锛堝彲閫夛級
+ textStyle: {
+ fontSize: 11 // 瀛椾綋澶у皬锛堝彲閫夛紝閬垮厤澶崰绌洪棿锛�
+ }
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '1鏈�',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJanuary
+ },
+ {
+ name: '2鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HFebruary
+ },
+ {
+ name: '3鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMarch
+ },
+ {
+ name: '4鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HApril
+ },
+ {
+ name: '5鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMay
+ },
+ {
+ name: '6鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJune
+ },
+ {
+ name: '7鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJuly
+ },
+ {
+ name: '8鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HAugust
+ },
+ {
+ name: '9鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSeptember
+ },
+ {
+ name: '10鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HOctober
+ },
+ {
+ name: '11鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HNovember
+ },
+ {
+ name: '12鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HDecember
+ }
+ ]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i]['鍚堣'],
+ name: data[i][this.condition.dimension]
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + this.condition.dimension +'鍒嗗竷鍥�',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '缁翠慨椤圭洰姣斾緥',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport.vue b/pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport.vue
new file mode 100644
index 0000000..4b9149a
--- /dev/null
+++ b/pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport.vue
@@ -0,0 +1,520 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <!-- <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view> -->
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Dimension_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="dimensionSelector" dataKey="label" dataValue="value"
+ v-model="condition.dimension">
+ </zxz-uni-data-select>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <view class="bill-main-tabs">
+ <view v-for="(item,index) in reportData" :key="index" :class="item.tab == tabs?'selected':''" @tap.stop="tabs = item.tab">
+ {{ item.label }}
+ </view>
+ </view>
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list" v-for="(item,index) in reportData" :key="index" v-if="item.tab == tabs">
+ <view style="display: inline-flex; flex-direction: row; padding: 8rpx; gap: 4rpx;" v-for="(tag, cursor) in item.value" :key="cursor">
+ <uni-tag :text="tag" type="primary" custom-style="padding: 12rpx 16rpx;" />
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ },
+ dimensionSelector: {
+ get() {
+ let dimensionList = ['鍣ㄥ叿', '淇濆吇椤圭洰', '璐d换浜�']
+ return dimensionList.map(item => {
+ return {
+ label: item,
+ value: item,
+ }
+ })
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "Sc_MouldMaintainBillMainReport",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ tabs: '',
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M"),
+ dimension: '鍣ㄥ叿'
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/Sb_MouldRepairWorkBill/Sc_MouldMaintainBillMain',
+ data: {
+ DateYear: this.condition.year,
+ HType: this.condition.dimension,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ let data1 = Array.from(data).reduce((acc, cur) => {
+ let object = {}
+ object['value'] = []
+ for (let key in cur) {
+ if (cur.hasOwnProperty(key)) {
+ if (key == this.condition.dimension) {
+ object["tab"] = cur[key]
+ object["label"] = cur[key]
+ continue;
+ }
+ if (key != '鍚堣') {
+ object['value'].push(`${key}: ${cur[key]}`)
+ }
+ }
+ }
+ acc.push(object)
+ return acc;
+ }, [])
+ console.log('data1: ',data1);
+ if(data1.length > 0) {
+ this.tabs = data1[0].tab
+ }
+ this.reportData.splice(0)
+ this.reportData.push(...data1)
+ console.log('this.reportData: ',this.reportData);
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ let HJanuary = []; //涓�鏈堜唤鏁版嵁
+ let HFebruary = []; //浜屾湀浠芥暟鎹�
+ let HMarch = []; //涓夋湀浠芥暟鎹�
+ let HApril = []; //鍥涙湀浠芥暟鎹�
+ let HMay = []; //浜旀湀浠芥暟鎹�
+ let HJune = []; //鍏湀浠芥暟鎹�
+ let HJuly = []; //涓冩湀浠芥暟鎹�
+ let HAugust = []; //鍏湀浠芥暟鎹�
+ let HSeptember = []; //涔濇湀浠芥暟鎹�
+ let HOctober = []; //鍗佹湀浠芥暟鎹�
+ let HNovember = []; //鍗佷竴鏈堜唤鏁版嵁
+ let HDecember = []; //鍗佷簩鏈堜唤鏁版嵁
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i][this.condition.dimension]);
+ HJanuary.push(data[i]['1鏈�']);
+ HFebruary.push(data[i]['2鏈�']);
+ HMarch.push(data[i]['3鏈�']);
+ HApril.push(data[i]['4鏈�']);
+ HMay.push(data[i]['5鏈�']);
+ HJune.push(data[i]['6鏈�']);
+ HJuly.push(data[i]['7鏈�']);
+ HAugust.push(data[i]['8鏈�']);
+ HSeptember.push(data[i]['9鏈�']);
+ HOctober.push(data[i]['10鏈�']);
+ HNovember.push(data[i]['11鏈�']);
+ HDecember.push(data[i]['12鏈�']);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'],
+ itemWidth: 12, // 鍥句緥鍥炬爣瀹藉害锛堝彲閫夛紝璁╁竷灞�鏇寸揣鍑戯級
+ itemHeight: 12, // 鍥句緥鍥炬爣楂樺害锛堝彲閫夛級
+ textStyle: {
+ fontSize: 11 // 瀛椾綋澶у皬锛堝彲閫夛紝閬垮厤澶崰绌洪棿锛�
+ }
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '1鏈�',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJanuary
+ },
+ {
+ name: '2鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HFebruary
+ },
+ {
+ name: '3鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMarch
+ },
+ {
+ name: '4鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HApril
+ },
+ {
+ name: '5鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMay
+ },
+ {
+ name: '6鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJune
+ },
+ {
+ name: '7鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJuly
+ },
+ {
+ name: '8鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HAugust
+ },
+ {
+ name: '9鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSeptember
+ },
+ {
+ name: '10鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HOctober
+ },
+ {
+ name: '11鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HNovember
+ },
+ {
+ name: '12鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HDecember
+ }
+ ]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i]['鍚堣'],
+ name: data[i][this.condition.dimension]
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + '淇濆吇椤圭洰鍒嗗竷鍥�',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '淇濆吇娆℃暟',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport.vue b/pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport.vue
new file mode 100644
index 0000000..0fac30d
--- /dev/null
+++ b/pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport.vue
@@ -0,0 +1,520 @@
+<template>
+ <view>
+ <!-- 鏌ヨ鏉′欢 -->
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Year_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="yearSelector" dataKey="label" dataValue="value"
+ v-model="condition.year">
+ </zxz-uni-data-select>
+ </view>
+ <!-- <view class="form-item">
+ <view class="title">{{$t("Gy.Month_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="monthSelector" dataKey="label" dataValue="value"
+ v-model="condition.month">
+ </zxz-uni-data-select>
+ </view> -->
+ <view class="form-item">
+ <view class="title">{{$t("Gy.Dimension_Search")}}:</view>
+ <zxz-uni-data-select class="right" :localdata="dimensionSelector" dataKey="label" dataValue="value"
+ v-model="condition.dimension">
+ </zxz-uni-data-select>
+ </view>
+ <view class="search-buttons">
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ </view>
+ </view>
+ </view>
+ <!-- 鍥捐〃 -->
+ <view class="graph-container">
+ <view class="graph"><l-echart ref="chartRef1" @finished="InitChart1"></l-echart></view>
+ <view class="graph"><l-echart ref="chartRef2" @finished="InitChart2"></l-echart></view>
+ </view>
+ <!-- 鏄庣粏椤电 -->
+ <view class="bill-main-tabs">
+ <view v-for="(item,index) in reportData" :key="index" :class="item.tab == tabs?'selected':''" @tap.stop="tabs = item.tab">
+ {{ item.label }}
+ </view>
+ </view>
+ <!-- 鏄庣粏鏌ョ湅 -->
+ <view class="list" v-for="(item,index) in reportData" :key="index" v-if="item.tab == tabs">
+ <view style="display: inline-flex; flex-direction: row; padding: 8rpx; gap: 4rpx;" v-for="(tag, cursor) in item.value" :key="cursor">
+ <uni-tag :text="tag" type="primary" custom-style="padding: 12rpx 16rpx;" />
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import * as echarts from "echarts"
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+ export default {
+ computed: {
+ yearSelector: {
+ get() {
+ let begin = this.year - 5
+ let end = this.year + 5
+ let yearArray = []
+ for (let i = begin; i <= end; i++) {
+ yearArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return yearArray
+ }
+ },
+ monthSelector: {
+ get() {
+ let monthArray = []
+ for (let i = 1; i <= 12; i++) {
+ monthArray.push({
+ label: "" + i,
+ value: "" + i
+ })
+ }
+
+ return monthArray
+ }
+ },
+ dimensionSelector: {
+ get() {
+ let dimensionList = ['鍣ㄥ叿', '缁翠慨椤圭洰', '缁翠慨閮ㄩ棬', '璐d换浜�']
+ return dimensionList.map(item => {
+ return {
+ label: item,
+ value: item,
+ }
+ })
+ }
+ }
+ },
+ data() {
+ return {
+ HModName: "Sc_MouldRepairWorkBillReport",
+ year: dayjs(new Date()).year(),
+ reportData: [],
+ reportList: [],
+ tabs: '',
+ condition: {
+ year: dayjs(new Date()).format("YYYY"),
+ month: dayjs(new Date()).format("M"),
+ dimension: '鍣ㄥ叿'
+ }
+ };
+ },
+ methods: {
+ search() {
+ this.getReport()
+ },
+ clear() {
+ this.condition.year = dayjs(new Date()).format("YYYY")
+ this.condition.month = dayjs(new Date()).format("M")
+ this.getReport()
+ },
+ async getReport() {
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: '/Sb_MouldRepairWorkBill/Sb_MouldRepairWorkBill',
+ data: {
+ DateYear: this.condition.year,
+ HType: this.condition.dimension,
+ user: getUserInfo()["Czymc"]
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message,
+ list
+ } = res.data
+
+ if (count == 1) {
+ this.writeReport(data)
+ let data1 = Array.from(data).reduce((acc, cur) => {
+ let object = {}
+ object['value'] = []
+ for (let key in cur) {
+ if (cur.hasOwnProperty(key)) {
+ if (key == this.condition.dimension) {
+ object["tab"] = cur[key]
+ object["label"] = cur[key]
+ continue;
+ }
+ if (key != '鍚堣') {
+ object['value'].push(`${key}: ${cur[key]}`)
+ }
+ }
+ }
+ acc.push(object)
+ return acc;
+ }, [])
+ console.log('data1: ',data1);
+ if(data1.length > 0) {
+ this.tabs = data1[0].tab
+ }
+ this.reportData.splice(0)
+ this.reportData.push(...data1)
+ console.log('this.reportData: ',this.reportData);
+ this.reportList = list
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ title: `鑾峰彇鍥捐〃鏁版嵁澶辫触: ${err}`
+ })
+ }
+ },
+ writeReport(data) {
+ this.InitChart1(data)
+ this.InitChart2(data)
+ },
+ async InitChart1(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫鏁�")
+ const chart = await this.$refs.chartRef1.init(echarts)
+ this.getChart1(chart, data)
+ },
+ async InitChart2(data) {
+ console.log("鍒濆鍖栧紓甯哥被鍨嬫瘮渚�")
+ const chart = await this.$refs.chartRef2.init(echarts)
+ this.getChart2(chart, data)
+ },
+ async getChart1(chart, data) {
+ let HXTitle = []; //X杞存爣棰樺悕绉�
+ let HSourceIssueCount = [];
+ let ZZTColor = [];
+ let HSourceName = []
+ let HJanuary = []; //涓�鏈堜唤鏁版嵁
+ let HFebruary = []; //浜屾湀浠芥暟鎹�
+ let HMarch = []; //涓夋湀浠芥暟鎹�
+ let HApril = []; //鍥涙湀浠芥暟鎹�
+ let HMay = []; //浜旀湀浠芥暟鎹�
+ let HJune = []; //鍏湀浠芥暟鎹�
+ let HJuly = []; //涓冩湀浠芥暟鎹�
+ let HAugust = []; //鍏湀浠芥暟鎹�
+ let HSeptember = []; //涔濇湀浠芥暟鎹�
+ let HOctober = []; //鍗佹湀浠芥暟鎹�
+ let HNovember = []; //鍗佷竴鏈堜唤鏁版嵁
+ let HDecember = []; //鍗佷簩鏈堜唤鏁版嵁
+ const labelOption = {
+ show: true,
+ position: 'top'
+ };
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ HXTitle.push(data[i][this.condition.dimension]);
+ HJanuary.push(data[i]['1鏈�']);
+ HFebruary.push(data[i]['2鏈�']);
+ HMarch.push(data[i]['3鏈�']);
+ HApril.push(data[i]['4鏈�']);
+ HMay.push(data[i]['5鏈�']);
+ HJune.push(data[i]['6鏈�']);
+ HJuly.push(data[i]['7鏈�']);
+ HAugust.push(data[i]['8鏈�']);
+ HSeptember.push(data[i]['9鏈�']);
+ HOctober.push(data[i]['10鏈�']);
+ HNovember.push(data[i]['11鏈�']);
+ HDecember.push(data[i]['12鏈�']);
+ ZZTColor.push({
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 0,
+ type: "linear",
+ colorStops: [{
+ offset: 0,
+ color: "red"
+ },
+ {
+ offset: 1,
+ color: "blue"
+ }
+ ]
+ });
+ }
+ }
+ let option_ZZT = {
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'],
+ itemWidth: 12, // 鍥句緥鍥炬爣瀹藉害锛堝彲閫夛紝璁╁竷灞�鏇寸揣鍑戯級
+ itemHeight: 12, // 鍥句緥鍥炬爣楂樺害锛堝彲閫夛級
+ textStyle: {
+ fontSize: 11 // 瀛椾綋澶у皬锛堝彲閫夛紝閬垮厤澶崰绌洪棿锛�
+ }
+ },
+ toolbox: {
+ show: false,
+ orient: 'vertical',
+ left: 'right',
+ top: 'center',
+ feature: {
+ mark: {
+ show: true
+ },
+ dataView: {
+ show: true,
+ readOnly: false
+ },
+ magicType: {
+ show: true,
+ type: ['line', 'bar', 'stack']
+ },
+ restore: {
+ show: true
+ },
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ xAxis: [{
+ type: 'category',
+ axisTick: {
+ show: true
+ },
+ data: HXTitle
+ }],
+ yAxis: [{
+ type: 'value'
+ }],
+ series: [{
+ name: '1鏈�',
+ type: 'bar',
+ barGap: 0,
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJanuary
+ },
+ {
+ name: '2鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HFebruary
+ },
+ {
+ name: '3鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMarch
+ },
+ {
+ name: '4鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HApril
+ },
+ {
+ name: '5鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HMay
+ },
+ {
+ name: '6鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJune
+ },
+ {
+ name: '7鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HJuly
+ },
+ {
+ name: '8鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HAugust
+ },
+ {
+ name: '9鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HSeptember
+ },
+ {
+ name: '10鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HOctober
+ },
+ {
+ name: '11鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HNovember
+ },
+ {
+ name: '12鏈�',
+ type: 'bar',
+ label: labelOption,
+ emphasis: {
+ focus: 'series'
+ },
+ data: HDecember
+ }
+ ]
+ };
+
+ // 璁剧疆閰嶇疆
+ chart.setOption(option_ZZT);
+ },
+ async getChart2(chart, data) {
+ let option_BT;
+ let HYear = this.condition.year || "X";
+ let HMonth = this.condition.month || "X";
+ let ZZTColor2 = ['#00FFFF', '#FC2C83', '#FCED2C', '#93FC2C', '#FC2CF0', '#FC892C', '#2C81FC',
+ '#2CC9FC', '#2CFCA7', '#DED3F2', '#F2D8D3', '#F2D3E0', '#D8E052', '#7EE052', '#52E0D8',
+ '#5F52E0', '#E06F52', '#52E09B', '#E052DE', '#E05F52', '#52B2E0', '#E0C452', '#52CEE0',
+ '#648690', '#E5D1D6', '#D8E5D1', '#E5D1E5', '#D8E5D1', '#7C6262', '#76627C', '#81A583',
+ '#81A595'
+ ];
+ let option_BT_XData = [];
+ if (data) {
+ for (let i = 0; i < data.length; i++) {
+ option_BT_XData.push({
+ value: data[i]['鍚堣'],
+ name: data[i][this.condition.dimension]
+ });
+ }
+ }
+
+ option_BT = {
+ title: {
+ text: HYear + '骞�' + this.condition.dimension +'鍒嗗竷鍥�',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: 'bottom'
+ },
+ series: [{
+ name: '缁翠慨椤圭洰姣斾緥',
+ type: 'pie',
+ radius: '50%',
+ data: option_BT_XData,
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ },
+ itemStyle: {
+ color: function(params) {
+ // 鍔ㄦ�佺敓鎴愭笎鍙樿壊鎴栬�呮牴鎹潯浠惰繑鍥為璁剧殑娓愬彉鑹�
+ const gradientColors = ZZTColor2;
+
+ return gradientColors[params.dataIndex];
+ }
+ }
+ }]
+ };
+ chart.setOption(option_BT)
+ }
+ },
+ onLoad() {
+ this.getReport()
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ padding: 12rpx;
+ }
+
+ @import url("../style/MJBillStyle.scss");
+
+ .search-buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast.vue b/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast.vue
index 02f0833..9f94805 100644
--- a/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast.vue
+++ b/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast.vue
@@ -41,7 +41,8 @@
</view>
<view class="card-item-wrapper">
<view v-for="(item, index) in materialManifest" :key="index">
- <uni-card :title="item.HSourceBillNo" @tap="toDetail(item, index)">
+ <uni-card :title="item.HSourceBillNo" :extra="item.F_WPVT_Text_tzk ? '璁㈠崟鍙凤細' + item.F_WPVT_Text_tzk : ''"
+ @tap="toDetail(item, index)">
<view class="card-detail">
<view class="detail">
<text>鐗╂枡浠g爜锛�</text>{{item.HMaterNumber}}
@@ -328,6 +329,7 @@
detailManifestItem: {
"HMaterNumber": "",
"HMaterID": "",
+ "F_WPVT_Text_tzk": "",
"HMaterName": "",
"HMaterModel": "",
"HUnitName": "",
@@ -547,6 +549,7 @@
HSPID: data[0].HSPID,
HSupID: data[0].HSupID,
HMaterID: data[0].HMaterID,
+ F_WPVT_Text_tzk: data[0].F_WPVT_Text_tzk,
HSourceBillType: data[0].HSourceBillType,
HSLInterID: data[0].HSLInterID,
HSLEntryID: data[0].HSLEntryID,
@@ -642,6 +645,7 @@
"HSupID": this.detailManifestItem.HSupID || 0,
"HKeeperID": this.detailManifestItem.HKeeperID || 0,
"HMaterID": this.detailManifestItem.HMaterID,
+ "F_WPVT_Text_tzk": this.detailManifestItem.F_WPVT_Text_tzk,
"HSourceBillType": this.detailManifestItem.HSourceBillType,
"HSLInterID": this.detailManifestItem.HSLInterID,
"HSLEntryID": this.detailManifestItem.HSLEntryID,
@@ -659,7 +663,7 @@
} = res.data
if (count == 1) {
CommonUtils.showTips({
- message: `涓婁紶鎴愬姛`
+ message: '涓婁紶鎴愬姛'
})
this.attachmentInfo = []
// 鍒锋柊鍗曟嵁鍙凤紝闃叉鍗曟嵁鍙烽噸澶�
@@ -667,7 +671,7 @@
} else {
CommonUtils.showTips({
title: '娓╅Θ鎻愮ず',
- message: `涓婁紶澶辫触: ${Message}`
+ message: '涓婁紶澶辫触: ${Message}'
})
}
diff --git a/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2.vue b/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2.vue
index c9dbf23..1f4ac04 100644
--- a/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2.vue
+++ b/pages/ZLGL/lailiaojianyan_fast/Kf_QCStockInCheckBill_Fast2.vue
@@ -50,7 +50,7 @@
</view>
<view class="card-item-wrapper">
<view v-for="(item, index) in materialManifest" :key="index">
- <uni-card :class="item.selected?'card-selected':''" :title="item.HSourceBillNo"
+ <uni-card :class="item.selected?'card-selected':''" :title="item.HSourceBillNo" :extra="item.F_WPVT_Text_tzk ? '璁㈠崟鍙凤細' + item.F_WPVT_Text_tzk : ''"
@tap="selectMater(item, index)">
<view class="card-detail">
<view class="detail">
@@ -244,6 +244,7 @@
detailManifest: [],
detailManifestItem: {
"HMaterNumber": "",
+ "F_WPVT_Text_tzk": "",
"HMaterID": "",
"HMaterName": "",
"HMaterModel": "",
@@ -475,6 +476,7 @@
HSPID: data[0].HSPID,
HSupID: data[0].HSupID,
HMaterID: data[0].HMaterID,
+ F_WPVT_Text_tzk: data[0].F_WPVT_Text_tzk,
HSourceBillType: data[0].HSourceBillType,
HSLInterID: data[0].HSLInterID,
HSLEntryID: data[0].HSLEntryID,
diff --git a/pages/ZLGL/mojianjianyan/ProcessCheckBill.vue b/pages/ZLGL/mojianjianyan/ProcessCheckBill.vue
index 513acef..dc2149b 100644
--- a/pages/ZLGL/mojianjianyan/ProcessCheckBill.vue
+++ b/pages/ZLGL/mojianjianyan/ProcessCheckBill.vue
@@ -2048,6 +2048,13 @@
return false;
}
}
+
+ if(!this.hform.HSourceBillNo) {
+ CommonUtils.showTips({
+ message: "鏈壂鎻�(閫夋嫨)婧愬崟锛岃鎵弿(閫夋嫨)婧愬崟鍚庢彁浜わ紒",
+ });
+ return false;
+ }
for (let key in this.checkItems) {
if (!this.checkItems[key].HQCCheckItemID) {
diff --git a/pages/ZLGL/shoujianjianyan/firstCheckBill.vue b/pages/ZLGL/shoujianjianyan/firstCheckBill.vue
index 1b08db8..091b304 100644
--- a/pages/ZLGL/shoujianjianyan/firstCheckBill.vue
+++ b/pages/ZLGL/shoujianjianyan/firstCheckBill.vue
@@ -2002,6 +2002,13 @@
return false;
}
}
+
+ if(!this.hform.HSourceBillNo) {
+ CommonUtils.showTips({
+ message: "鏈壂鎻�(閫夋嫨)婧愬崟锛岃鎵弿(閫夋嫨)婧愬崟鍚庢彁浜わ紒",
+ });
+ return false;
+ }
for (let key in this.checkItems) {
if (!this.checkItems[key].HQCCheckItemID) {
@@ -2051,9 +2058,6 @@
this.checkItems[key].HUnitID = 0;
}
}
-
-
- return false
return true;
},
diff --git a/pages/ZLGL/style/MJBillStyle.scss b/pages/ZLGL/style/MJBillStyle.scss
index 1107dde..5155354 100644
--- a/pages/ZLGL/style/MJBillStyle.scss
+++ b/pages/ZLGL/style/MJBillStyle.scss
@@ -335,4 +335,39 @@
.uni-icons {
color: #fff !important;
}
- }
\ No newline at end of file
+ }
+
+ .graph-container {
+ .graph{
+
+ }
+ }
+
+ .bill-main-tabs,
+ .bill-sub-tabs {
+ box-sizing: border-box;
+ width: 730rpx;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ gap: 20rpx;
+ flex-shrink: 0;
+ overflow-x: auto;
+ border-bottom: 1px solid #ddd;
+ padding: 20rpx 10rpx;
+ white-space: nowrap;
+
+ view {
+ width: auto;
+ font-size: 26rpx;
+ color: #555;
+ text-align: center;
+ padding: 16rpx 0;
+ }
+
+ .selected {
+ color: #3a78ff;
+ font-weight: bold;
+ border-bottom: 3px solid #3a78ff;
+ }
+ }
\ No newline at end of file
diff --git a/pages/ZLGL/xunjianjianyan/PatrolProcCheckBill.vue b/pages/ZLGL/xunjianjianyan/PatrolProcCheckBill.vue
index 6c54b28..6cc85c0 100644
--- a/pages/ZLGL/xunjianjianyan/PatrolProcCheckBill.vue
+++ b/pages/ZLGL/xunjianjianyan/PatrolProcCheckBill.vue
@@ -1703,6 +1703,13 @@
return false;
}
}
+
+ if(!this.hform.HSourceBillNo) {
+ CommonUtils.showTips({
+ message: "鏈壂鎻�(閫夋嫨)婧愬崟锛岃鎵弿(閫夋嫨)婧愬崟鍚庢彁浜わ紒",
+ });
+ return false;
+ }
for (let key in this.checkItems) {
if (!this.checkItems[key].HQCCheckItemID) {
diff --git a/pages/caigouruku/POStockInBill.vue b/pages/caigouruku/POStockInBill.vue
index ee9a556..882bf55 100644
--- a/pages/caigouruku/POStockInBill.vue
+++ b/pages/caigouruku/POStockInBill.vue
@@ -429,7 +429,10 @@
}
}
-
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getHSupList()
this.getHEmpList()
this.getHDeptList()
@@ -443,6 +446,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
methods: {
toScanBillCode() {
@@ -1600,45 +1604,48 @@
if (event && event.target.classList && event.target.classList.contains('link-text')) {
return; // 濡傛灉鏄摼鎺ョ偣鍑伙紝涓嶆墽琛屽垹闄�
}
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� "' + item.鐗╂枡鍚嶇О + '" 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- }
- });
- }
- }
- });
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� "' + item.鐗╂枡鍚嶇О + '" 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // }
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/fenbushidiaochudan/form_out.vue b/pages/fenbushidiaochudan/form_out.vue
index c9688fa..10851b0 100644
--- a/pages/fenbushidiaochudan/form_out.vue
+++ b/pages/fenbushidiaochudan/form_out.vue
@@ -523,6 +523,11 @@
this.HSourcebillNoFocus = true
this.getNewData()
}
+ this.getHSupList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getHWarehouseInList()
// this.getHBaseList()
@@ -565,6 +570,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
computed: {
HIsStockInner: {
@@ -2215,44 +2221,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/fenbushidiaorudan/form.vue b/pages/fenbushidiaorudan/form.vue
index 9351c55..d4f5d09 100644
--- a/pages/fenbushidiaorudan/form.vue
+++ b/pages/fenbushidiaorudan/form.vue
@@ -511,7 +511,11 @@
this.HSourcebillNoFocus = true
this.getNewData()
}
-
+ this.getHSupList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getHWarehouseInList()
// this.getHBaseList()
this.getHSupList()
@@ -535,6 +539,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
computed: {
HIsStockInner: {
@@ -1962,44 +1967,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/fenbushidiaorudan/form_test.vue b/pages/fenbushidiaorudan/form_test.vue
index 0cb1e12..32b0830 100644
--- a/pages/fenbushidiaorudan/form_test.vue
+++ b/pages/fenbushidiaorudan/form_test.vue
@@ -442,6 +442,10 @@
this.HSourcebillNoFocus = true
this.getNewData()
}
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getHBaseList()
this.getHDeptList()
@@ -470,6 +474,7 @@
uni.$off('WarehouseSelectComplete')
uni.$off('StockPlaceSelectComplete')
uni.$off('DepartmentSelectComplete')
+ this.$refs.billList.exit()
},
computed: {
arrayHStockPlaceNameComputed: {
@@ -492,44 +497,47 @@
methods: {
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
// 鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
async checkModRight() {
diff --git a/pages/fenbushidiaorudan/table.vue b/pages/fenbushidiaorudan/table.vue
index 068a7a8..c8cba1c 100644
--- a/pages/fenbushidiaorudan/table.vue
+++ b/pages/fenbushidiaorudan/table.vue
@@ -1,33 +1,42 @@
<template>
<view class="content">
<view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缂撳瓨鍒楄〃</view>
- <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">宸叉牎楠屽垪琛�</view>
+ <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">
+ {{ $t("Kf_MoveStockBill_PDA.cacheList") == "Kf_MoveStockBill_PDA.cacheList" ? "缂撳瓨鍒楄〃" : $t("Kf_MoveStockBill_PDA.cacheList") }}
+ </view>
+ <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">
+ {{ $t("Kf_MoveStockBill_PDA.checkedList") == "Kf_MoveStockBill_PDA.checkedList" ? "宸叉牎楠屽垪琛�" : $t("Kf_MoveStockBill_PDA.checkedList") }}
+ </view>
</view>
<view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
<view class="form" v-if="tabs == 0">
<view class="buttons" @tap="add">
- <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>鏂板
+ <uni-icons type="plus" style="margin-right: 10rpx;" size="22"></uni-icons>
+ {{ $t("Kf_MoveStockBill_PDA.btnAdd") == "Kf_MoveStockBill_PDA.btnAdd" ? "鏂板" : $t("Kf_MoveStockBill_PDA.btnAdd") }}
</view>
</view>
<view class="form" v-if="tabs == 1">
<view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
+ <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "鍗曟嵁鍙�:" : $t("Gy.HBillNo") }}</view>
<view class="right">
- <input v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ <input v-model="hform.HBillNo" :placeholder="$t('Kf_MoveStockBill_PDA.billNoPlaceholder') == 'Kf_MoveStockBill_PDA.billNoPlaceholder' ? '璇疯緭鍏ュ崟鎹彿' : $t('Kf_MoveStockBill_PDA.billNoPlaceholder')" />
</view>
</view>
<view class="form-item">
- <view class="title">婧愬崟鍗曞彿:</view>
+ <view class="title">{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "婧愬崟鍗曞彿:" : $t("Gy.HMainSourceBillNo") }}</view>
<view class="right">
- <input v-model="hform.HSourceBillNo" placeholder="璇疯緭鍏ユ簮鍗曞崟鍙�" />
+ <input v-model="hform.HSourceBillNo" :placeholder="$t('Kf_MoveStockBill_PDA.sourceBillNoPlaceholder') == 'Kf_MoveStockBill_PDA.sourceBillNoPlaceholder' ? '璇疯緭鍏ユ簮鍗曞崟鍙�' : $t('Kf_MoveStockBill_PDA.sourceBillNoPlaceholder')" />
</view>
</view>
<view class="buttons">
- <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
- <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ <button class="btn-a" size="mini" type="default" @tap="clear">
+ {{ $t("Kf_MoveStockBill_PDA.btn_Reset") == "Kf_MoveStockBill_PDA.btn_Reset" ? "閲嶇疆" : $t("Kf_MoveStockBill_PDA.btn_Reset") }}
+ </button>
+ <button class="btn-c" size="mini" type="default" @tap="search">
+ {{ $t("Kf_MoveStockBill_PDA.btn_Query") == "Kf_MoveStockBill_PDA.btn_Query" ? "鏌ヨ" : $t("Kf_MoveStockBill_PDA.btn_Query") }}
+ </button>
</view>
</view>
@@ -38,28 +47,30 @@
@tap="showDetail = showDetail==index?-1:index">
<view class="card-detail">
<view class="detail" v-if="item.鍒跺崟浜�">
- <text>鍒跺崟浜猴細</text>{{item.鍒跺崟浜簘}
+ <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜猴細" : $t("Gy.HMaker") }}</text>{{item.鍒跺崟浜簘}
</view>
<view class="detail" v-if="item.鍗曟嵁鍐呯爜">
- <text>鍗曟嵁鍐呯爜锛�</text>{{item.鍗曟嵁鍐呯爜}}
+ <text>{{ $t("Kf_MoveStockBill_PDA.table_BillID") == "Kf_MoveStockBill_PDA.table_BillID" ? "鍗曟嵁鍐呯爜锛�" : $t("Kf_MoveStockBill_PDA.table_BillID") }}</text>{{item.鍗曟嵁鍐呯爜}}
</view>
<view class="detail" v-if="item.鏁伴噺">
- <text>鏁伴噺锛�</text>{{item.鏁伴噺}}
+ <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "鏁伴噺锛�" : $t("Gy.HQty") }}</text>{{item.鏁伴噺}}
</view>
<view class="detail" v-if="item.婧愬崟鍗曞彿">
- <text>婧愬崟鍗曞彿锛�</text>{{item.婧愬崟鍗曞彿}}
+ <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "婧愬崟鍗曞彿锛�" : $t("Gy.HMainSourceBillNo") }}</text>{{item.婧愬崟鍗曞彿}}
</view>
<view class="detail" v-if="item.缁勭粐">
- <text>缁勭粐锛�</text>{{item.缁勭粐}}
+ <text>{{ $t("Gy.HStockOrgName") == "Gy.HStockOrgName" ? "缁勭粐锛�" : $t("Gy.HStockOrgName") }}</text>{{item.缁勭粐}}
</view>
</view>
<view class="more">
<view class="part" style="border-right: 1px solid #eee;color: #3a78ff;" @tap.stop="edit(item)">
- <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>缂栬緫
+ <uni-icons type="compose" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
+ {{ $t("Kf_MoveStockBill_PDA.btn_Edit") == "Kf_MoveStockBill_PDA.btn_Edit" ? "缂栬緫" : $t("Kf_MoveStockBill_PDA.btn_Edit") }}
</view>
<view class="part" style="color: #da0000;" @tap.stop="del(item)">
- <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>鍒犻櫎
+ <uni-icons type="trash" style="color: #da0000;margin-right: 10rpx;" size="18"></uni-icons>
+ {{ $t("Kf_MoveStockBill_PDA.btn_Del") == "Kf_MoveStockBill_PDA.btn_Del" ? "鍒犻櫎" : $t("Kf_MoveStockBill_PDA.btn_Del") }}
</view>
</view>
</uni-card>
@@ -68,46 +79,54 @@
<uni-card :title="item.鏃ユ湡" :extra="item.鍗曟嵁鍙�" style="margin: 10px;"
@tap="showDetail = showDetail==index?-1:index">
<view class="card-detail">
- <view class="detail" v-if="item.鐘舵��">
- <text>鐘舵�侊細</text>{{item.鐘舵�亇}
- </view>
+ <view class="detail" v-if="item.鐘舵��">
+ <text>{{ $t("Kf_MoveStockBill_PDA.table_Status") == "Kf_MoveStockBill_PDA.table_Status" ? "鐘舵�侊細" : $t("Kf_MoveStockBill_PDA.table_Status") }}</text>{{item.鐘舵�亇}
+ </view>
<view class="detail" v-if="item.鍒跺崟浜�">
- <text>鍒跺崟浜猴細</text>{{item.鍒跺崟浜簘}
+ <text>{{ $t("Gy.HMaker") == "Gy.HMaker" ? "鍒跺崟浜猴細" : $t("Gy.HMaker") }}</text>{{item.鍒跺崟浜簘}
</view>
<view class="detail" v-if="item.鏁伴噺">
- <text>鏁伴噺锛�</text>{{item.鏁伴噺}}
+ <text>{{ $t("Gy.HQty") == "Gy.HQty" ? "鏁伴噺锛�" : $t("Gy.HQty") }}</text>{{item.鏁伴噺}}
</view>
<view class="detail" v-if="item.婧愬崟鍗曞彿">
- <text>婧愬崟鍗曞彿锛�</text>{{item.婧愬崟鍗曞彿}}
+ <text>{{ $t("Gy.HMainSourceBillNo") == "Gy.HMainSourceBillNo" ? "婧愬崟鍗曞彿锛�" : $t("Gy.HMainSourceBillNo") }}</text>{{item.婧愬崟鍗曞彿}}
</view>
<view class="detail" v-if="item.鐗╂枡浠g爜">
- <text>鐗╂枡浠g爜锛�</text>{{item.鐗╂枡浠g爜}}
+ <text>{{ $t("Kf_MoveStockBill_PDA.table_MaterNumber") == "Kf_MoveStockBill_PDA.table_MaterNumber" ? "鐗╂枡浠g爜锛�" : $t("Kf_MoveStockBill_PDA.table_MaterNumber") }}</text>{{item.鐗╂枡浠g爜}}
</view>
<view class="detail" v-if="item.鐗╂枡鍚嶇О">
- <text>鐗╂枡鍚嶇О锛�</text>{{item.鐗╂枡鍚嶇О}}
+ <text>{{ $t("Gy.HMaterName_B") == "Gy.HMaterName_B" ? "鐗╂枡鍚嶇О锛�" : $t("Gy.HMaterName_B") }}</text>{{item.鐗╂枡鍚嶇О}}
</view>
<view class="detail" v-if="item.瑙勬牸鍨嬪彿">
- <text>瑙勬牸鍨嬪彿锛�</text>{{item.瑙勬牸鍨嬪彿}}
+ <text>{{ $t("Gy.HMaterModel_B") == "Gy.HMaterModel_B" ? "瑙勬牸鍨嬪彿锛�" : $t("Gy.HMaterModel_B") }}</text>{{item.瑙勬牸鍨嬪彿}}
</view>
<view class="detail" v-if="item.缁勭粐">
- <text>缁勭粐锛�</text>{{item.缁勭粐}}
+ <text>{{ $t("Gy.HStockOrgName") == "Gy.HStockOrgName" ? "缁勭粐锛�" : $t("Gy.HStockOrgName") }}</text>{{item.缁勭粐}}
</view>
</view>
<view class="more">
<view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
- <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>鏄剧ず浜岀淮鐮�
+ <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>
+ {{ $t("Kf_MoveStockBill_PDA.btn_DisplayCode") == "Kf_MoveStockBill_PDA.btn_DisplayCode" ? "鏄剧ず浜岀淮鐮�" : $t("Kf_MoveStockBill_PDA.btn_DisplayCode") }}
</view>
<view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
- <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>鎾ら攢
+ <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>
+ {{ $t("Kf_MoveStockBill_PDA.btn_Revoke") == "Kf_MoveStockBill_PDA.btn_Revoke" ? "鎾ら攢" : $t("Kf_MoveStockBill_PDA.btn_Revoke") }}
</view>
</view>
</uni-card>
</view>
- <view class="over" v-if="!listData || listData.length == 0">鏆傛棤鏁版嵁</view>
- <view class="over" v-if="listData.length != 0 && listData.length != showList.length">鍔犺浇涓�...</view>
- <view class="over" v-if="listData.length != 0 && listData.length == showList.length">宸插埌搴�</view>
+ <view class="over" v-if="!listData || listData.length == 0">
+ {{ $t("Kf_MoveStockBill_PDA.noData") == "Kf_MoveStockBill_PDA.noData" ? "鏆傛棤鏁版嵁" : $t("Kf_MoveStockBill_PDA.noData") }}
+ </view>
+ <view class="over" v-if="listData.length != 0 && listData.length != showList.length">
+ {{ $t("Kf_MoveStockBill_PDA.Loading") == "Kf_MoveStockBill_PDA.Loading" ? "鍔犺浇涓�..." : $t("Kf_MoveStockBill_PDA.Loading") }}
+ </view>
+ <view class="over" v-if="listData.length != 0 && listData.length == showList.length">
+ {{ $t("Kf_MoveStockBill_PDA.bottom") == "Kf_MoveStockBill_PDA.bottom" ? "宸插埌搴�" : $t("Kf_MoveStockBill_PDA.bottom") }}
+ </view>
<BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
</view>
</template>
@@ -124,7 +143,7 @@
serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
tabs: 0,
urls: '/WEBSController/GetKf_PonderationBillMain_TempList_New_Json',
- MvarReportTitle: '鐢熶骇棰嗘枡鍗曠紦瀛樺垪琛�',
+ MvarReportTitle: this.$t('Kf_MoveStockBill_PDA.reportTitle') == 'Kf_MoveStockBill_PDA.reportTitle' ? '鐢熶骇棰嗘枡鍗曠紦瀛樺垪琛�' : this.$t('Kf_MoveStockBill_PDA.reportTitle'),
hform: {
HBillNo: '',
HSourceBillNo: '',
@@ -185,7 +204,7 @@
fail: (res) => {
console.log(res);
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Kf_MoveStockBill_PDA.requestFailed') == 'Kf_MoveStockBill_PDA.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Kf_MoveStockBill_PDA.requestFailed'),
icon: 'none'
})
},
@@ -212,7 +231,7 @@
},
getList() {
uni.showLoading({
- title: '鍔犺浇涓�...'
+ title: this.$t('Kf_MoveStockBill_PDA.loadingTitle') == 'Kf_MoveStockBill_PDA.loadingTitle' ? '鍔犺浇涓�...' : this.$t('Kf_MoveStockBill_PDA.loadingTitle')
})
uni.request({
url: this.serverUrl + this.urls,
@@ -238,7 +257,7 @@
console.log(res);
uni.hideLoading()
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Kf_MoveStockBill_PDA.requestFailed') == 'Kf_MoveStockBill_PDA.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Kf_MoveStockBill_PDA.requestFailed'),
icon: 'none'
})
},
@@ -307,7 +326,7 @@
console.log(res);
uni.hideLoading()
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Kf_MoveStockBill_PDA.requestFailed') == 'Kf_MoveStockBill_PDA.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Kf_MoveStockBill_PDA.requestFailed'),
icon: 'none'
})
},
@@ -317,8 +336,8 @@
del(item) {
// console.log(item.hmainid,uni.getStorageSync('HUserName'))
uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄よ褰曪紵鍒犻櫎鍚庝笉鑳芥仮澶�',
+ title: this.$t('Kf_MoveStockBill_PDA.confirmTitle') == 'Kf_MoveStockBill_PDA.confirmTitle' ? '鎻愮ず' : this.$t('Kf_MoveStockBill_PDA.confirmTitle'),
+ content: this.$t('Kf_MoveStockBill_PDA.delConfirm') == 'Kf_MoveStockBill_PDA.delConfirm' ? '纭瑕佸垹闄よ褰曪紵鍒犻櫎鍚庝笉鑳芥仮澶�' : this.$t('Kf_MoveStockBill_PDA.delConfirm'),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -346,7 +365,7 @@
console.log(res);
uni.hideLoading()
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Kf_MoveStockBill_PDA.requestFailed') == 'Kf_MoveStockBill_PDA.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Kf_MoveStockBill_PDA.requestFailed'),
icon: 'none'
})
},
@@ -361,8 +380,8 @@
revoke(item) {
// console.log(item.hmainid,uni.getStorageSync('HUserName'))
uni.showModal({
- title: '鎻愮ず',
- content: '鏄惁纭鎾ら攢',
+ title: this.$t('Kf_MoveStockBill_PDA.confirmTitle') == 'Kf_MoveStockBill_PDA.confirmTitle' ? '鎻愮ず' : this.$t('Kf_MoveStockBill_PDA.confirmTitle'),
+ content: this.$t('Kf_MoveStockBill_PDA.revokeConfirm') == 'Kf_MoveStockBill_PDA.revokeConfirm' ? '鏄惁纭鎾ら攢' : this.$t('Kf_MoveStockBill_PDA.revokeConfirm'),
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
@@ -390,7 +409,7 @@
console.log(res);
uni.hideLoading()
uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
+ title: this.$t('Kf_MoveStockBill_PDA.requestFailed') == 'Kf_MoveStockBill_PDA.requestFailed' ? '鎺ュ彛璇锋眰澶辫触' : this.$t('Kf_MoveStockBill_PDA.requestFailed'),
icon: 'none'
})
},
@@ -406,6 +425,7 @@
</script>
<style lang="scss" scoped>
+ /* 鏍峰紡淇濇寔涓嶅彉 */
.form {
width: 640rpx;
margin: 20rpx auto;
diff --git a/pages/index/login.vue b/pages/index/login.vue
index df74ed7..be55746 100644
--- a/pages/index/login.vue
+++ b/pages/index/login.vue
@@ -114,7 +114,7 @@
"闄堥晲鍝叉湰鍦版祴璇�2": 'http://192.168.88.82:81/API/',
"寮犵憺骞挎湰鍦版祴璇�": 'http://localhost:8082/API/',
"浣欐�濇澃鏈湴娴嬭瘯": 'http://localhost:8082/LuBaoAPI/',
- "鏉ㄦ潈閼湰鍦版祴璇�": 'http://172.20.10.5:8082/API/',
+ "鏉ㄦ潈閼湰鍦版祴璇�": 'http://192.168.0.81:8082/API/',
"鐜嬩华鏈湴娴嬭瘯": 'http://192.168.0.74:8080/API/',
// 灏忓崼鍐呭缃�
"鑻忓窞鍗櫤绉戞妧-澶栫綉": 'http://221.224.60.42:8082/API_WW/',
@@ -412,6 +412,7 @@
uni.setStorageSync('HProcName', res.data.data[0].HProcName);
uni.setStorageSync('HSourceID', res.data.data[0].HSourceID); //瀵瑰簲鐢熶骇璧勬簮
uni.setStorageSync('HSourceName', res.data.data[0].HSourceName);
+ uni.setStorageSync("Token", res.data.token)
this.CommonUtils.setServerUrl(this.serverUrl)
// this.WebSocketServices.createConnect(res.data.data[0].Czybm,res.data.data[0].Czymc);
// getuiUtils.getClientID()
diff --git a/pages/index/tab1.vue b/pages/index/tab1.vue
index c284152..3b0ade8 100644
--- a/pages/index/tab1.vue
+++ b/pages/index/tab1.vue
@@ -195,6 +195,72 @@
id: 2,
hidden: false,
},
+
+ // 璐ㄩ噺鎶ヨ〃
+ {
+ img: '../../static/icon/icon0.png',
+ text: '绾垮埆寮傚父鐘舵��',
+ tip: '绾垮埆寮傚父鐘舵��',
+ url: '/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source',
+ id: 18,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '寮傚父绫诲瀷缁熻',
+ tip: '寮傚父绫诲瀷缁熻',
+ url: '/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue',
+ id: 19,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '妯″叿缁翠慨缁熻琛�',
+ tip: '妯″叿缁翠慨缁熻琛�',
+ url: '/pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport',
+ id: 20,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '璁惧缁翠慨缁熻琛�',
+ tip: '璁惧缁翠慨缁熻琛�',
+ url: '/pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport',
+ id: 21,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '鍣ㄥ叿淇濆吇缁熻琛�',
+ tip: '鍣ㄥ叿淇濆吇缁熻琛�',
+ url: '/pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport',
+ id: 22,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '璁惧淇濆吇缁熻琛�',
+ tip: '璁惧淇濆吇缁熻琛�',
+ url: '/pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport',
+ id: 23,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '璁惧鐐规缁熻琛�',
+ tip: '璁惧鐐规缁熻琛�',
+ url: '/pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport',
+ id: 24,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon0.png',
+ text: '璁惧杩愯鐘舵�佽〃',
+ tip: '璁惧杩愯鐘舵�佽〃',
+ url: '/pages/ZLGL/QualityReport/SB_EquipRunningStatusReport',
+ id: 24,
+ hidden: false,
+ },
]
}
},
diff --git a/pages/index/tab2.vue b/pages/index/tab2.vue
index 683acc2..bd8168f 100644
--- a/pages/index/tab2.vue
+++ b/pages/index/tab2.vue
@@ -630,6 +630,13 @@
"id": 55,
"hidden": false
},
+ {
+ "img": "../../static/icon/icon15.png",
+ "text": "涓嶈壇鍝佽瘎瀹$敵璇峰崟鍒楄〃",
+ "url": "/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMainList",
+ "id": 55,
+ "hidden": false
+ },
]
}
},
diff --git a/pages/index/tab4.vue b/pages/index/tab4.vue
index 1b08b41..bde6a0c 100644
--- a/pages/index/tab4.vue
+++ b/pages/index/tab4.vue
@@ -212,6 +212,13 @@
"id": 55,
"hidden": false
},
+ {
+ "img": "../../static/icon/icon15.png",
+ "text": "涓嶈壇鍝佽瘎瀹$敵璇峰崟",
+ "url": "/pages/ZLGL/QCNoPassProdRequestBillMain/QCNoPassProdRequestBillMain",
+ "id": 55,
+ "hidden": false
+ },
{
"img": "../../static/icon/icon15.png",
"text": "鎶曟枡闃查敊",
diff --git a/pages/shengchanlingliao/PPickingCheckBill.vue b/pages/shengchanlingliao/PPickingCheckBill.vue
index 20b2bb0..8933b95 100644
--- a/pages/shengchanlingliao/PPickingCheckBill.vue
+++ b/pages/shengchanlingliao/PPickingCheckBill.vue
@@ -93,7 +93,7 @@
</label>
</view>
<view v-if="tabs == 2">
- <view class="list" v-for="(item,index) in Materlist" :key="index" @tap.stop="cmdDelete(item)">
+ <view class="list" v-for="(item,index) in Materlist" :key="index" @tap.stop="delMater(item)">
<uni-card :title="item.鐗╂枡鍚嶇О" :extra="'鏁伴噺:'+item.鏁伴噺" style="margin: 10px;">
<view class="card-detail">
<view class="detail">
@@ -289,9 +289,6 @@
BillListPopupVue,
FIFOListComponentVue
},
- onUnload() {
- uni.$off('BillSelectComplete')
- },
onLoad(e) {
console.log(e, this.userInfo)
this.OperationType = e.OperationType
@@ -303,6 +300,10 @@
this.refreshHBillNoFocus()
}
this.getHBaseList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
uni.$on('BillSelectComplete', async (e) => {
console.log("鎺ユ敹鍒扮殑娑堟伅: ", e)
console.log("鏄惁搴旂敤澶氭簮鍗�: ", e.enableMultiSourceBill)
@@ -329,6 +330,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
methods: {
// 閫氳繃鏉$爜鏄庣粏涓殑鍐呭 鏇存柊鏈崟鎹潯鐮佹暟閲�
@@ -1150,42 +1152,45 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DeleteBarCodeByEntryID_BillCheck_New_Json',
- data: {
- HInterID: this.hform.HInterID,
- HBillType: this.hform.HBillType,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HSourceBarCodeCtl: this.hform.HSourceBarCodeCtl
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DeleteBarCodeByEntryID_BillCheck_New_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HBillType: this.hform.HBillType,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HSourceBarCodeCtl: this.hform.HSourceBarCodeCtl
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
addNew() {
uni.redirectTo({
diff --git a/pages/shengchanlingliaoshengdan/Kf_MateOutBill.vue b/pages/shengchanlingliaoshengdan/Kf_MateOutBill.vue
index d2dddb7..c77ef94 100644
--- a/pages/shengchanlingliaoshengdan/Kf_MateOutBill.vue
+++ b/pages/shengchanlingliaoshengdan/Kf_MateOutBill.vue
@@ -424,7 +424,7 @@
},
onLoad(e) {
uni.setNavigationBarTitle({
- title: this.$t("Kf_MateOutBill_PDA.title") == 'Kf_MateOutBill_PDA.title' ? '鐢熶骇琛ユ枡鍗�' : this.$t("Kf_MateOutBill_PDA.title")
+ title: this.$t("Kf_MateOutBill_PDA.title") == 'Kf_MateOutBill_PDA.title' ? '鐢熶骇棰嗘枡鍗�' : this.$t("Kf_MateOutBill_PDA.title")
})
console.log(e, this.userInfo)
this.OperationType = e.OperationType
@@ -443,6 +443,10 @@
this.getHSupList()
this.getHEmpList()
this.getHDeptList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getRelationStore()
@@ -473,6 +477,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
computed: {
enableMultiSourceBill: {
@@ -1566,44 +1571,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/shengchanrukushengdan/Kf_ProductInBill.vue b/pages/shengchanrukushengdan/Kf_ProductInBill.vue
index f48236f..0fda5a5 100644
--- a/pages/shengchanrukushengdan/Kf_ProductInBill.vue
+++ b/pages/shengchanrukushengdan/Kf_ProductInBill.vue
@@ -449,6 +449,10 @@
}
// this.getHBaseList()
this.getHSupList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getHEmpList()
this.getHDeptList()
await this.getRelationStore()
@@ -461,6 +465,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ uni.$off('refreshList')
},
methods: {
toScanBillCode() {
@@ -1593,44 +1598,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/tiaomamingxi/tiaomamingxi.vue b/pages/tiaomamingxi/tiaomamingxi.vue
new file mode 100644
index 0000000..b77fd2b
--- /dev/null
+++ b/pages/tiaomamingxi/tiaomamingxi.vue
@@ -0,0 +1,509 @@
+<template>
+ <view class="page" id="pageContent">
+<!-- <view class="search-condition-zone">
+ <view class="form-item">
+ <view class="left">
+ 鏉$爜:
+ </view>
+ <view class="right general">
+ <input type="text" v-model="hform.HBarCode" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="left">
+ 鏁伴噺:
+ </view>
+ <view class="right general">
+ <input type="text" v-model="hform.iQty" />
+ </view>
+ </view>
+ </view> -->
+<!-- <view class="button-zone">
+ <button type="default" class="btn-a" size="mini" @tap="cmdChange">璋冩暣</button>
+ <button type="default" class="btn-c" size="mini" @tap="exit">閫�鍑�</button>
+ </view> -->
+ <view class="info-list-zone" id="scroll-content" :style="{height: scrollContentHeight + 'px'}">
+ <view class="list" v-for="(item, index) in Materlist" :key="index">
+ <uni-card :title="item.HBarCode" style="margin: 10px;" @tap="delMater(item)">
+ <view class="card-detail">
+ <view class="detail">
+ <text>{{ $t("Kf_ProductInBill_PDA.table_SourceBillNo") == "Kf_ProductInBill_PDA.table_SourceBillNo" ? "鎵规" : $t("Kf_ProductInBill_PDA.table_SourceBillNo") }}锛�</text>{{ item.HBatchNo }}
+ </view>
+ <view class="detail">
+ <text>{{ $t("Kf_ProductInBill_PDA.table_SourceBillNo") == "Kf_ProductInBill_PDA.table_SourceBillNo" ? "鏁伴噺" : $t("Kf_ProductInBill_PDA.table_SourceBillNo") }}锛�</text>{{ item.HQty }}
+ </view>
+ </view>
+ </uni-card>
+ </view>
+ </view>
+ <view class="pagination-zone" id="pagination-zone">
+ <uni-pagination show-icon :page-size="paginationMeta.pageSize" :total="paginationMeta.total"
+ :current="paginationMeta.current" @change="onPaginationChangeHandler"></uni-pagination>
+ </view>
+ </view>
+</template>
+
+<script>
+ import {
+ CommonUtils
+ } from '../../utils/common'
+ import {
+ getUserInfo
+ } from '../../utils/auth'
+ export default {
+ data() {
+ return {
+ navHeight: 0,
+ HWHNameList: [],
+ arrayHWHName: [],
+ HStockPlaceNameList: [],
+ arrayHStockPlaceName: [],
+ Materlist: [],
+ HMaterID: 0,
+ HBillType: 0,
+ HInterID: 0,
+ HIsStockMgr: false,
+ scrollTop: 0,
+
+ HInterID_check: 0,
+ HBillType_check: '',
+ sBatchNo_check: '',
+ sBarCode_check: '',
+ sSCWhID_check: 0,
+ sSCSPID_check: 0,
+ sAuxPropID_check: 0,
+ sMTONo_check: '',
+ HMaterID_check: 0,
+ sWhID_check: 0,
+ sSPID_check: 0,
+ HSourceInterID_check: 0,
+ HSourceEntryID_check: 0,
+ EndQty_check: 0,
+ HInterID_check_check: 0,
+ hform: {
+ HBarCode: '',
+ HWHName: '',
+ HWHID: 0,
+ HStockPlaceName: '',
+ HStockPlaceID: 0,
+ iQty: 0,
+ },
+
+ paginationMeta: {
+ current: 1,
+ total: 0,
+ pageSize: 30,
+ },
+
+ pageMeta: {
+ scrollContentTop: 0,
+ bottomBtnTop: 0,
+ },
+
+ listData: [],
+ listDataShow: [],
+ }
+ },
+ computed: {
+ scrollContentHeight: {
+ get() {
+ return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
+ }
+ }
+ },
+ methods: {
+ exit() {
+ uni.navigateBack()
+ },
+ onArrayHWHNameChangeHandler(e) {
+ let index = this.HWHNameList.findIndex(p => p.HName == e)
+ if (index != -1) {
+ this.hform.HWHID = this.HWHNameList[index].HItemID
+ this.HIsStockMgr = this.HWHNameList[index].HIsStockMgr
+ }
+ },
+ getWHInfo() {
+ CommonUtils.doRequest(
+ "/Web/GetWarehouseList_Json_New", {
+ Warehouse: "",
+ HOrgID: uni.getStorageSync('OrganizationID')
+ },
+ (res) => {
+ let res1 = res.data
+ let {
+ data,
+ count
+ } = res1
+ if (count == 1) {
+ this.HWHNameList = data
+ for (var i = 0; i < data.length; i++) {
+ this.arrayHWHName[i] = data[i]["HName"]
+ }
+ } else {
+ uni.showToast({
+ title: '浠撳簱鏁版嵁璇锋眰澶辫触',
+ icon: 'none'
+ })
+ }
+ },
+ )
+ },
+ delMater(item){
+ console.log(this.HBillType, this.HInterID, item.HBarCode);
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭瑕佸垹闄� "' + item.HBarCode + '" 鍚楋紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ success: (res) => {
+ if (res.confirm) {
+ try {
+ CommonUtils.doRequest2({
+ url: '/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json',
+ data: {
+ HInterID: this.HInterID,
+ HBillType: this.HBillType,
+ HBarCode: item.HBarCode
+ },
+ resFunction: () => {
+ console.log("鍒犻櫎鎴愬姛锛屽紑濮嬪埛鏂�")
+ uni.$emit('refreshList')
+ this.GetMater();
+ uni.showToast({
+ title: '鍒犻櫎鎴愬姛',
+ icon: 'success'
+ })
+ }
+ });
+ } catch (e) {
+ console.log("鍒犻櫎寮傚父", e);
+ }
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鍙栨秷鍒犻櫎');
+ }
+ }
+ });
+ },
+ GetMater(){
+ CommonUtils.doRequest2({
+ url: '/Kf_BarCodeEditDlg/Kf_BarCodeEditDlg_Json',
+ data: {
+ swhere: ' and HInterID= ' + this.HInterID + ' and HMaterID= '+ this.HMaterID + ''
+ },
+ resFunction: (res) => {
+ let {
+ data,
+ count,
+ Message
+ } = res.data
+ if (count > 0) {
+ this.Materlist = data
+ } else {
+ uni.showToast({
+ icon: 'none',
+ title: Message
+ })
+ }
+ }
+ });
+ },
+ onArrayHStockPlaceNameChangeHandler() {
+ let index = this.HStockPlaceNameList.findIndex(p => p.HName == e)
+ if (index != -1) {
+ this.hform.HStockPlaceID = this.HStockPlaceNameList[index].HItemID
+ }
+ },
+ getStockPlaceInfo() {
+ CommonUtils.doRequest(
+ "/WEBSController/GetStockPlaceList_Json", {
+ StockPlace: '',
+ HWhID: this.hform.HWHID,
+ HStockOrgID: uni.getStorageSync('OrganizationID')
+ },
+ (res) => {
+ let res1 = res.data
+ console.log(res1)
+ let {
+ data,
+ count
+ } = res1
+ if (count == 1) {
+ this.HStockPlaceNameList = data
+ for (var i = 0; i < data.length; i++) {
+ this.arrayHStockPlaceName[i] = data[i]["HWhName"]
+ }
+ } else {
+ uni.showToast({
+ title: '浠撲綅鏁版嵁璇锋眰澶辫触'+res.Message,
+ icon: 'none'
+ })
+ }
+ },
+ )
+ },
+ cmdChange() {
+ CommonUtils.doRequest2({
+ url: '/Kf_BarCodeEditDlg/Kf_BarCodeEditDlg_Json',
+ data: {
+ swhere: ' and HInterID= ' + this.HInterID + ' and HMaterID= '+ this.HMaterID + " and HBarCode= '" + this.hform.HBarCode + "'"
+ },
+ resFunction: (res) => {
+ let {
+ data,
+ count,
+ Message
+ } = res.data
+ if (count > 0) {
+ console.log(data)
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭瑕佷慨鏀� "' + data[0].HBarCode + '" 鍚楋紵',
+ success: (res) => {
+ if (res.confirm) {
+ try {
+ CommonUtils.doRequest2({
+ url: '/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill',
+ data: {
+ HInterID: data[0].HInterID,
+ HBillType: data[0].HBillType,
+ sBatchNo: data[0].HBatchNo,
+ sBarCode: data[0].HBarCode,
+ sSCSPID: data[0].HOutStockPlaceID,
+ sSCWhID: data[0].HSCWHID,
+ sAuxPropID: data[0].HAuxPropID,
+ sMTONo: data[0].HMTONo,
+ iQty: this.hform.iQty,
+ HMaterID: data[0].HMaterID,
+ sWhID: data[0].HWhID,
+ sSPID: data[0].HStockPlaceID,
+ HSourceInterID: data[0].HSourceInterID,
+ HSourceEntryID: data[0].HSourceEntryID,
+ EndQty: this.hform.iQty - data[0].HQty,
+ sQty: data[0].HQty
+ },
+ resFunction: () => {
+ console.log("淇敼鎴愬姛锛屽紑濮嬪埛鏂�")
+ uni.$emit('refreshList')
+ this.GetMater();
+ uni.showToast({
+ title: '淇敼鎴愬姛',
+ icon: 'success'
+ })
+ try {
+ CommonUtils.doRequest2({
+ url: '/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill',
+ data: {
+ HInterID: data[0].HInterID,
+ HBillType: data[0].HBillType,
+ sBatchNo: data[0].HBatchNo,
+ sBarCode: data[0].HBarCode,
+ sSCSPID: data[0].HOutStockPlaceID,
+ sSCWhID: data[0].HSCWHID,
+ sAuxPropID: data[0].HAuxPropID,
+ sMTONo: data[0].HMTONo,
+ iQty: this.hform.iQty,
+ HMaterID: data[0].HMaterID,
+ sWhID: data[0].HWhID,
+ sSPID: data[0].HStockPlaceID,
+ HSourceInterID: data[0].HSourceInterID,
+ HSourceEntryID: data[0].HSourceEntryID,
+ EndQty: this.hform.iQty - data[0].HQty,
+ sQty: data[0].HQty
+ },
+ resFunction: () => {
+ console.log("淇敼鎴愬姛锛屽紑濮嬪埛鏂�")
+ uni.$emit('refreshList')
+ this.GetMater();
+ uni.showToast({
+ title: '淇敼鎴愬姛',
+ icon: 'success'
+ })
+ }
+ });
+ } catch (e) {
+ console.log("淇敼寮傚父", e);
+ }
+ }
+ });
+ } catch (e) {
+ console.log("淇敼寮傚父", e);
+ }
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鍙栨秷淇敼');
+ }
+ }
+ });
+ } else {
+ uni.showToast({
+ icon: 'none',
+ title: Message
+ })
+ }
+ }
+ });
+ },
+ async onPaginationChangeHandler({current}) {
+ this.listDataShow =this.listData.slice((current - 1) * this.paginationMeta.pageSize,current * this.paginationMeta.pageSize)
+ }
+ },
+ async onLoad(options) {
+ this.hform.HBarCode = options.HMaterNumber || '';
+ this.getWHInfo()
+ this.getStockPlaceInfo()
+ this.HMaterID = options.HMaterID
+ this.HBillType = options.HBillType
+ this.HInterID = options.HInterID
+ console.log("璧嬪�煎悗锛�", this.HInterID, this.HMaterID, this.HBillType);
+ await this.$nextTick();
+ this.GetMater()
+ this.$nextTick(() => {
+ this.cmdSearch()
+ })
+ },
+ onReady() {
+ let query = uni.createSelectorQuery().in(this)
+ query.select("#scroll-content").boundingClientRect((data) => {
+ this.pageMeta.scrollContentTop = data.top
+ console.log("this.pageMeta.scrollContentTop: ", this.pageMeta.scrollContentTop)
+ }).exec()
+ query.select("#pagination-zone").boundingClientRect((data) => {
+ this.pageMeta.bottomBtnTop = data.top
+ console.log('this.pageMeta.bottomBtnTop: ',this.pageMeta.bottomBtnTop);
+ }).exec()
+ },
+ }
+</script>
+
+<style lang="scss" scoped>
+ .page {
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ gap: 10rpx;
+ padding: 20rpx 0;
+ position: relative;
+
+ .button-zone {
+ height: auto;
+ box-sizing: border-box;
+ padding-top: 20rpx;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ flex-wrap: wrap;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #ff5722;
+ color: #fff;
+ }
+ }
+
+ .search-condition-zone {
+ height: auto;
+ box-sizing: border-box;
+ padding: 0 60rpx;
+ display: flex;
+ flex-direction: column;
+ gap: 20rpx;
+
+ .form-item {
+ display: flex;
+ flex-direction: row;
+ gap: 20rpx;
+ align-items: center;
+ font-size: 28rpx;
+
+ .left {
+ width: 4rem;
+ }
+
+ .right {
+ flex: 1;
+ padding: 8rpx 16rpx;
+
+ .search {
+ width: 28rpx;
+ height: 28rpx;
+ }
+
+ input {
+ font-size: 28rpx;
+ }
+
+ .uni-combox {
+ padding: 0;
+ margin: 0;
+
+ ::v-deep .uni-combox__input {
+ font-size: 28rpx;
+ height: auto;
+ }
+ }
+ }
+
+ .general {
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ }
+
+ .disabled {
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+ }
+ }
+
+ .info-list-zone {
+ overflow-y: auto;
+
+ .card-item {
+ .card-detail {
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ line-height: 120%;
+
+ .detail {
+ // width: 50%;
+ font-size: 26rpx;
+ margin-bottom: 12rpx;
+ color: #555;
+ margin-right: 20rpx;
+
+ text {
+ color: #999;
+ font-size: 26rpx;
+ }
+ }
+ }
+ }
+ }
+
+ .pagination-zone {
+ position: fixed;
+ bottom: 0;
+ box-sizing: border-box;
+ background-color: #fff;
+ box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+ padding: 30rpx 40rpx 40rpx 40rpx;
+ display: flex;
+ flex-direction: column;
+ gap: 20rpx;
+ justify-content: space-between;
+ width: 100%;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/weiwairuku/EntrustInBill.vue b/pages/weiwairuku/EntrustInBill.vue
index 0f8e4b4..56ad569 100644
--- a/pages/weiwairuku/EntrustInBill.vue
+++ b/pages/weiwairuku/EntrustInBill.vue
@@ -418,6 +418,10 @@
this.getHSupList()
this.getHEmpList()
this.getHDeptList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
this.getRelationStore()
@@ -429,6 +433,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
methods: {
async HWHNameScan(e) {
@@ -1444,44 +1449,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/xiaoshouchuku/SellOutBill.vue b/pages/xiaoshouchuku/SellOutBill.vue
index dba310b..bd7fe7a 100644
--- a/pages/xiaoshouchuku/SellOutBill.vue
+++ b/pages/xiaoshouchuku/SellOutBill.vue
@@ -471,6 +471,11 @@
this.refreshHSourceBillState()
this.getNewData()
}
+ this.getHSupList()
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
// this.getHBaseList()
this.getHSupList()
this.getHEmpList()
@@ -487,6 +492,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
methods: {
toScanBillCode() {
@@ -1621,44 +1627,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/pages/zhijiediaobo/MoveStockBill.vue b/pages/zhijiediaobo/MoveStockBill.vue
index 343ba74..547033f 100644
--- a/pages/zhijiediaobo/MoveStockBill.vue
+++ b/pages/zhijiediaobo/MoveStockBill.vue
@@ -578,7 +578,10 @@
await this.GetSourceBillType()
this.InitTransferDirect()
this.InitShipType()
-
+ uni.$on('refreshList', () => {
+ console.log('鏀跺埌鍒锋柊鎸囦护锛�')
+ this.DisBillEntryList() // 浣犵殑鍒锋柊鏂规硶
+ })
// this.getHSupList() // 鍒濆鍖� 瀹㈡埛
this.getHCusList() // 鍒濆鍖� 渚涘簲鍟�
@@ -592,6 +595,7 @@
},
onUnload() {
uni.$off('BillSelectComplete')
+ this.$refs.billList.exit()
},
computed: {
HIsStockInner: {
@@ -2004,44 +2008,47 @@
},
//鍒犻櫎鐗╂枡鐮�
delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
+ uni.navigateTo({
+ url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType
+ })
+ // uni.showModal({
+ // title: '鎻愮ず',
+ // content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
+ // success: (res) => {
+ // if (res.confirm) {
+ // uni.request({
+ // url: this.serverUrl +
+ // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
+ // data: {
+ // HInterID: this.hform.HInterID,
+ // HMaterID: item.HMaterID,
+ // HAuxPropID: item.HAuxPropID,
+ // HMTONo: item.HMTONo,
+ // HSourceInterID: item.HSourceInterID,
+ // HSourceEntryID: item.HSourceEntryID,
+ // HBillType: this.hform.HBillType
+ // },
+ // success: (res) => {
+ // if (res.data.count == 1) {
+ // this.DisBillEntryList()
+ // } else {
+ // uni.showToast({
+ // title: res.data.Message,
+ // icon: 'none'
+ // })
+ // }
+ // },
+ // fail: (res) => {
+ // console.log(res);
+ // uni.showToast({
+ // title: '鎺ュ彛璇锋眰澶辫触',
+ // icon: 'none'
+ // })
+ // },
+ // });
+ // }
+ // }
+ // });
},
//鏂板
getNewData() {
diff --git a/uni_modules/uni-tag/changelog.md b/uni_modules/uni-tag/changelog.md
index c0c5839..8c5ed5f 100644
--- a/uni_modules/uni-tag/changelog.md
+++ b/uni_modules/uni-tag/changelog.md
@@ -1,3 +1,7 @@
+## 2.1.2锛�2025-08-19锛�
+- 淇 浼犲叆鏁板瓧 0 涓嶆樉绀虹殑闂
+## 2.1.1锛�2024-03-20锛�
+- 浼樺寲 app涓嬭竟妗嗚繃绐勫鑷翠笉鏄剧ず鐨刡ug
## 2.1.0锛�2021-11-19锛�
- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-tag](https://uniapp.dcloud.io/component/uniui/uni-tag)
diff --git a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue b/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
index 418c955..57d8e0a 100644
--- a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
+++ b/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
@@ -1,5 +1,5 @@
<template>
- <text class="uni-tag" v-if="text" :class="classes" :style="customStyle" @click="onClick">{{text}}</text>
+ <text class="uni-tag" v-if="showTag" :class="classes" :style="customStyle" @click="onClick">{{text}}</text>
</template>
<script>
@@ -69,6 +69,9 @@
}
},
computed: {
+ showTag() {
+ return !!this.text.toString()
+ },
classes() {
const {
type,
@@ -249,4 +252,4 @@
font-size: 12px;
}
}
-</style>
+</style>
\ No newline at end of file
diff --git a/uni_modules/uni-tag/package.json b/uni_modules/uni-tag/package.json
index 1878088..1c8f1fa 100644
--- a/uni_modules/uni-tag/package.json
+++ b/uni_modules/uni-tag/package.json
@@ -1,7 +1,7 @@
{
"id": "uni-tag",
"displayName": "uni-tag 鏍囩",
- "version": "2.1.0",
+ "version": "2.1.2",
"description": "Tag 缁勪欢锛岀敤浜庡睍绀�1涓垨澶氫釜鏂囧瓧鏍囩锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬併��",
"keywords": [
"uni-ui",
@@ -12,16 +12,14 @@
],
"repository": "https://github.com/dcloudio/uni-ui",
"engines": {
- "HBuilderX": ""
+ "HBuilderX": "",
+ "uni-app": "^4.07",
+ "uni-app-x": ""
},
"directories": {
"example": "../../temps/example_temps"
},
"dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
"sale": {
"regular": {
"price": "0.00"
@@ -38,48 +36,69 @@
"data": "鏃�",
"permissions": "鏃�"
},
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
+ "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
+ "type": "component-vue",
+ "darkmode": "x",
+ "i18n": "x",
+ "widescreen": "x"
},
"uni_modules": {
- "dependencies": ["uni-scss"],
+ "dependencies": [
+ "uni-scss"
+ ],
"encrypt": [],
"platforms": {
"cloud": {
- "tcb": "y",
- "aliyun": "y"
+ "tcb": "x",
+ "aliyun": "x",
+ "alipay": "x"
},
"client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
+ "uni-app": {
+ "vue": {
+ "vue2": "鈭�",
+ "vue3": "鈭�"
+ },
+ "web": {
+ "safari": "鈭�",
+ "chrome": "鈭�"
+ },
+ "app": {
+ "vue": "鈭�",
+ "nvue": "鈭�",
+ "android": "鈭�",
+ "ios": "鈭�",
+ "harmony": "鈭�"
+ },
+ "mp": {
+ "weixin": "鈭�",
+ "alipay": "鈭�",
+ "toutiao": "鈭�",
+ "baidu": "鈭�",
+ "kuaishou": "-",
+ "jd": "-",
+ "harmony": "-",
+ "qq": "鈭�",
+ "lark": "-"
+ },
+ "quickapp": {
+ "huawei": "鈭�",
+ "union": "鈭�"
+ }
},
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
+ "uni-app-x": {
+ "web": {
+ "safari": "-",
+ "chrome": "-"
+ },
+ "app": {
+ "android": "-",
+ "ios": "-",
+ "harmony": "-"
+ },
+ "mp": {
+ "weixin": "-"
+ }
}
}
}
diff --git a/utils/common.js b/utils/common.js
index f52d462..71d27fe 100644
--- a/utils/common.js
+++ b/utils/common.js
@@ -211,6 +211,7 @@
method: method || "GET",
url: this.serverUrl + url,
data: data || "",
+ // header: this.getHeader(),
success: (res) => {
if (typeof resFunction === 'function') {
resFunction.call(that, res)
@@ -266,6 +267,7 @@
method: method || "GET",
url: this.serverUrl + url,
data: data || "",
+ // header: this.getHeader(),
success: (res) => {
if (typeof resFunction === 'function') {
resFunction.call(that, res)
@@ -326,6 +328,7 @@
method: method || "GET",
url: this.serverUrl + url,
data: data || "",
+ // header: this.getHeader(),
success: (res) => {
resolve(res)
},
@@ -360,6 +363,7 @@
method: method || "GET",
url: this.serverUrl + url,
data: data || "",
+ // header: this.getHeader(),
success: (res) => {
resolve(res)
},
@@ -525,7 +529,16 @@
return httpUrl
}
+ getHeader() {
+ let header = {}
+ let Token = uni.getStorageSync("Token")
+ if (Token) {
+ header['Authorization'] = `Bearer ${uni.getStorageSync("Token")}`
+ }
+
+ return header
+ }
}
export const CommonUtils = new commonUtils()
\ No newline at end of file
--
Gitblit v1.9.1