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 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>
@ -156,6 +156,10 @@
import {
calc
} from '@/common/calc.js';
import {
getSwitchInfoByCode
} from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'
@ -200,7 +204,8 @@
workshop: "",
bomVersion: "",
putAwayRequestSwitch:true,
putAwayInspectSwitch:true
putAwayInspectSwitch:true,
EnableQms:true
}
},
props: {
@ -213,6 +218,9 @@
default: []
},
},
mounted() {
this.EnableQms = getSwitchInfoByCode('EnableQms')
},
methods: {
openRequestPopup() {
@ -291,7 +299,9 @@
this.showErrorMessage("请选择包装规格")
return
}
if (!this.EnableQms) {
this.putAwayInspectSwitch = false
}
this.callback();
},

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

@ -107,7 +107,7 @@
</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>
@ -151,7 +151,9 @@
import {
calc
} from '@/common/calc.js';
import {
getSwitchInfoByCode
} from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue'
@ -193,7 +195,8 @@
fgLocationCode: "",
rawLocationCode: "",
putAwayRequestSwitch:true,
putAwayInspectSwitch:true
putAwayInspectSwitch:true,
EnableQms:true
}
},
props: {
@ -206,6 +209,10 @@
default: []
},
},
mounted() {
this.EnableQms = getSwitchInfoByCode('EnableQms')
console.log(777,this.EnableQms)
},
methods: {
openRequestPopup() {
this.initData();
@ -279,7 +286,9 @@
this.showErrorMessage("请选择包装规格")
return
}
if (!this.EnableQms) {
this.putAwayInspectSwitch = false
}
this.callback();
},

4
src/pages/fg/receiptByPlan.vue

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

4
src/pages/fg/receiptNoPlan.vue

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

2
src/pages/index/index.vue

@ -388,7 +388,7 @@
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=>{
uni.setStorageSync("switch", res.data)

Loading…
Cancel
Save