Browse Source

YT-408pda按计划报工、无计划报工,去掉创建检验申请开关

intex_online20241111
zhang_li 1 month ago
parent
commit
bcae9a3452
  1. 16
      src/pages/fg/coms/comNoReceiptPopup.vue
  2. 17
      src/pages/fg/coms/comReceiptPopup.vue
  3. 4
      src/pages/fg/receiptByPlan.vue
  4. 4
      src/pages/fg/receiptNoPlan.vue
  5. 2
      src/pages/index/index.vue

16
src/pages/fg/coms/comNoReceiptPopup.vue

@ -112,7 +112,7 @@
</view> </view>
<view class='split_line'></view> <view class='split_line'></view>
<view class="uni-flex uni-row" style="align-items: center; margin-top: 20rpx; margin-bottom: 20rpx; margin-left: 10rpx; justify-content: space-between;"> <view class="uni-flex uni-row" style="align-items: center; margin-top: 20rpx; margin-bottom: 20rpx; margin-left: 10rpx; justify-content: space-between;" v-if="EnableQms">
<view class="title" > <view class="title" >
创建检验申请 创建检验申请
</view> </view>
@ -157,6 +157,10 @@
calc calc
} from '@/common/calc.js'; } from '@/common/calc.js';
import {
getSwitchInfoByCode
} from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue' import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue' import packQty from '@/mycomponents/qty/packQty.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue' import balanceStatus from '@/mycomponents/status/balanceStatus.vue'
@ -200,7 +204,8 @@
workshop: "", workshop: "",
bomVersion: "", bomVersion: "",
putAwayRequestSwitch:true, putAwayRequestSwitch:true,
putAwayInspectSwitch:true putAwayInspectSwitch:true,
EnableQms:true
} }
}, },
props: { props: {
@ -213,6 +218,9 @@
default: [] default: []
}, },
}, },
mounted() {
this.EnableQms = getSwitchInfoByCode('EnableQms')
},
methods: { methods: {
openRequestPopup() { openRequestPopup() {
@ -291,7 +299,9 @@
this.showErrorMessage("请选择包装规格") this.showErrorMessage("请选择包装规格")
return return
} }
if (!this.EnableQms) {
this.putAwayInspectSwitch = false
}
this.callback(); this.callback();
}, },

17
src/pages/fg/coms/comReceiptPopup.vue

@ -107,7 +107,7 @@
</view> </view>
<view class='split_line'></view> <view class='split_line'></view>
<view class="uni-flex uni-row" style="align-items: center; margin-top: 20rpx; margin-bottom: 20rpx; margin-left: 10rpx; justify-content: space-between;"> <view class="uni-flex uni-row" style="align-items: center; margin-top: 20rpx; margin-bottom: 20rpx; margin-left: 10rpx; justify-content: space-between;" v-if="EnableQms">
<view class="title" > <view class="title" >
创建检验申请 创建检验申请
</view> </view>
@ -151,7 +151,9 @@
import { import {
calc calc
} from '@/common/calc.js'; } from '@/common/calc.js';
import {
getSwitchInfoByCode
} from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue' import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue' import packQty from '@/mycomponents/qty/packQty.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue' import balanceStatus from '@/mycomponents/status/balanceStatus.vue'
@ -193,7 +195,8 @@
fgLocationCode: "", fgLocationCode: "",
rawLocationCode: "", rawLocationCode: "",
putAwayRequestSwitch:true, putAwayRequestSwitch:true,
putAwayInspectSwitch:true putAwayInspectSwitch:true,
EnableQms:true
} }
}, },
props: { props: {
@ -206,6 +209,10 @@
default: [] default: []
}, },
}, },
mounted() {
this.EnableQms = getSwitchInfoByCode('EnableQms')
console.log(777,this.EnableQms)
},
methods: { methods: {
openRequestPopup() { openRequestPopup() {
this.initData(); this.initData();
@ -279,7 +286,9 @@
this.showErrorMessage("请选择包装规格") this.showErrorMessage("请选择包装规格")
return return
} }
if (!this.EnableQms) {
this.putAwayInspectSwitch = false
}
this.callback(); this.callback();
}, },

4
src/pages/fg/receiptByPlan.vue

@ -130,9 +130,7 @@
import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue" import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue"
import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue" import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue"
import light from '@/mycomponents/balance/light.vue' import light from '@/mycomponents/balance/light.vue'
import {
Exception
} from 'sass';
import { import {
nextTick nextTick
} from 'vue'; } from 'vue';

4
src/pages/fg/receiptNoPlan.vue

@ -124,9 +124,7 @@
import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue" import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue"
import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue" import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue"
import light from '@/mycomponents/balance/light.vue' import light from '@/mycomponents/balance/light.vue'
import {
Exception
} from 'sass';
export default { export default {
components: { components: {

2
src/pages/index/index.vue

@ -388,7 +388,7 @@
console.log("包装规格获取失败", res) console.log("包装规格获取失败", res)
}) })
var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated"; var switchCode="EnableQms,FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated";
getSwitchByCode(switchCode).then(res=>{ getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data) uni.setStorageSync("switch", res.data)

Loading…
Cancel
Save