Browse Source

MES——> PDA 字段maser 更新 master

master
gaojs 7 months ago
parent
commit
42f2efb4f4
  1. 6
      src/pages/index/index.vue
  2. 4
      src/pages/mes/productOffline/createProductOffline.vue
  3. 4
      src/pages/mes/reworkSingle/create.vue
  4. 9
      src/pages/mes/workScheduling/bomInspect.vue
  5. 6
      src/pages/mes/workScheduling/equipmentInspect.vue
  6. 24
      src/pages/mes/workScheduling/inspectionItems.vue
  7. 2
      src/pages/mes/workScheduling/workScheduling.vue
  8. 6
      src/pages/mes/workScheduling/workerInspect.vue

6
src/pages/index/index.vue

@ -91,7 +91,7 @@ import { useCountStore } from '@/store'
uni.hideLoading() uni.hideLoading()
if (res.menus.length > 0) { if (res.menus.length > 0) {
var menus = res.menus.filter(item => item.name == "PDA菜单管理") var menus = res.menus.filter(item => item.name == "PDA菜单管理")
console.log(11,menus) //console.log(11,menus)
if (menus.length > 0) { if (menus.length > 0) {
var tab = menus[0].children.filter(res => res.visible == true) var tab = menus[0].children.filter(res => res.visible == true)
tab.forEach(res => { tab.forEach(res => {
@ -106,7 +106,7 @@ import { useCountStore } from '@/store'
this.tabbar.forEach(res => { this.tabbar.forEach(res => {
res.children.forEach(res => { res.children.forEach(res => {
i++ i++
console.log(res.name, i) //console.log(res.name, i)
}) })
}) })
this.getDictory() this.getDictory()
@ -170,7 +170,7 @@ import { useCountStore } from '@/store'
var that = this; var that = this;
this.timer = setInterval(function() { this.timer = setInterval(function() {
that.getMainMessage(); that.getMainMessage();
console.log('刷新菜单'); //console.log('');
}, 1000 * 60) }, 1000 * 60)
}, },
stopRefresh() { stopRefresh() {

4
src/pages/mes/productOffline/createProductOffline.vue

@ -165,7 +165,7 @@
function findProductByCode(productCode) { function findProductByCode(productCode) {
productItem.value = list.value.find(item => item.productCode === productCode); productItem.value = list.value.find(item => item.productCode === productCode);
form.value.workBillno = productItem.value.schedulingCode form.value.workBillno = productItem.value.schedulingCode
form.value.planCode = productItem.value.planMaserCode form.value.planCode = productItem.value.planMasterCode
form.value.processCode = productItem.value.workingNode form.value.processCode = productItem.value.workingNode
form.value.stationCode = productItem.value.currentWorkstation form.value.stationCode = productItem.value.currentWorkstation
} }
@ -182,7 +182,7 @@
if (option.obj) { if (option.obj) {
paramData.value = JSON.parse(decodeURIComponent(option.obj)); // paramData paramData.value = JSON.parse(decodeURIComponent(option.obj)); // paramData
form.value.workBillno = paramData.value.schedulingCode form.value.workBillno = paramData.value.schedulingCode
form.value.planCode = paramData.value.planMaserCode form.value.planCode = paramData.value.planMasterCode
form.value.processCode = paramData.value.workingNode form.value.processCode = paramData.value.workingNode
form.value.stationCode = paramData.value.currentWorkstation form.value.stationCode = paramData.value.currentWorkstation
form.value.productCode = paramData.value.currentWorkstation form.value.productCode = paramData.value.currentWorkstation

4
src/pages/mes/reworkSingle/create.vue

@ -224,7 +224,7 @@
function findProductByCode(productCode) { function findProductByCode(productCode) {
productItem.value = list.value.find(item => item.productCode === productCode); productItem.value = list.value.find(item => item.productCode === productCode);
form.value.workBillno = productItem.value.schedulingCode form.value.workBillno = productItem.value.schedulingCode
form.value.planCode = productItem.value.planMaserCode form.value.planCode = productItem.value.planMasterCode
form.value.processCode = productItem.value.workingNode form.value.processCode = productItem.value.workingNode
form.value.stationCode = productItem.value.currentWorkstation form.value.stationCode = productItem.value.currentWorkstation
} }
@ -241,7 +241,7 @@
if (option.obj) { if (option.obj) {
paramData.value = JSON.parse(decodeURIComponent(option.obj)); // paramData paramData.value = JSON.parse(decodeURIComponent(option.obj)); // paramData
form.value.workBillno = paramData.value.schedulingCode form.value.workBillno = paramData.value.schedulingCode
form.value.planCode = paramData.value.planMaserCode form.value.planCode = paramData.value.planMasterCode
form.value.processCode = paramData.value.workingNode form.value.processCode = paramData.value.workingNode
form.value.stationCode = paramData.value.currentWorkstation form.value.stationCode = paramData.value.currentWorkstation
form.value.productCode = paramData.value.currentWorkstation form.value.productCode = paramData.value.currentWorkstation

9
src/pages/mes/workScheduling/bomInspect.vue

@ -45,7 +45,7 @@ const list = ref([])
const params = ref({ const params = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
planMaserCode: '' planMasterCode: ''
}) })
function getBomInspectList() { function getBomInspectList() {
@ -55,8 +55,6 @@ function getBomInspectList() {
proxy.$modal.loading('加载中') proxy.$modal.loading('加载中')
orderDayPlanListApi.getBomInfoList(params.value).then((res) => { orderDayPlanListApi.getBomInfoList(params.value).then((res) => {
proxy.$modal.closeLoading() proxy.$modal.closeLoading()
console.log(params.value.pageNo)
console.log(res.data.list.length)
if (res.data.list.length > 0) { if (res.data.list.length > 0) {
list.value = list.value.concat(res.data.list) list.value = list.value.concat(res.data.list)
params.value.pageNo++ params.value.pageNo++
@ -78,8 +76,9 @@ onReachBottom(() => {
onLoad((option) => { onLoad((option) => {
if (option.planMaserCode) { console.log(option)
params.value.planMaserCode = option.planMaserCode if (option.planMasterCode) {
params.value.planMasterCode = option.planMasterCode
} }
}) })
onShow(() => { onShow(() => {

6
src/pages/mes/workScheduling/equipmentInspect.vue

@ -45,7 +45,7 @@ const list = ref([])
const params = ref({ const params = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
planMaserCode: '' planMasterCode: ''
}) })
function getEquipmentInspectList() { function getEquipmentInspectList() {
@ -78,8 +78,8 @@ onReachBottom(() => {
onLoad((option) => { onLoad((option) => {
if (option.planMaserCode) { if (option.planMasterCode) {
params.value.planMaserCode = option.planMaserCode params.value.planMasterCode = option.planMasterCode
} }
}) })
onShow(() => { onShow(() => {

24
src/pages/mes/workScheduling/inspectionItems.vue

@ -17,7 +17,7 @@
</view> </view>
<view class="dec-item"> <view class="dec-item">
<view v-if="item == 'bom'" > <view v-if="item == 'bom'" >
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)"> </u-button> <u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)"> </u-button>
<u-radio-group v-model="bomRadioValue" @change="radioGroupChange"> <u-radio-group v-model="bomRadioValue" @change="radioGroupChange">
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" <u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index"
:name="item.name" :name="item.name"
@ -27,7 +27,7 @@
</u-radio-group> </u-radio-group>
</view> </view>
<view v-if="item == 'worker'" > <view v-if="item == 'worker'" >
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)"> </u-button> <u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)"> </u-button>
<u-radio-group v-model="workerRadioValue" @change="radioGroupChange"> <u-radio-group v-model="workerRadioValue" @change="radioGroupChange">
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" <u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index"
:name="item.name" :name="item.name"
@ -37,7 +37,7 @@
</u-radio-group> </u-radio-group>
</view> </view>
<view v-if="item == 'equipment'" > <view v-if="item == 'equipment'" >
<u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(number,item)"> </u-button> <u-button type="primary" size="default" style="background-color: #5599FF" @click="openDetail(item)"> </u-button>
<u-radio-group v-model="equipmentRadioValue" @change="radioGroupChange"> <u-radio-group v-model="equipmentRadioValue" @change="radioGroupChange">
<u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index" <u-radio @change="radioChange" v-for="(item, index) in listRadio" :key="index"
:name="item.name" :name="item.name"
@ -60,7 +60,7 @@
<view>质检模板号{{ quaifyFormNo}}</view> <view>质检模板号{{ quaifyFormNo}}</view>
</view> </view>
<view class="dec-item"> <view class="dec-item">
<view>质检模板{{ bomInspectFlag}}</view> <view>主计划单{{ number}}</view>
</view> </view>
<view class="dec-item"> <view class="dec-item">
<view>质检模板号{{ bomRadioValue}}</view> <view>质检模板号{{ bomRadioValue}}</view>
@ -111,7 +111,7 @@ const equipmentRadioValue = ref('')
const mesSchedulingParams = ref({ const mesSchedulingParams = ref({
planMaserCode: '', planMasterCode: '',
status: '', status: '',
qualityFormNo: '', qualityFormNo: '',
reason: '' reason: ''
@ -135,7 +135,7 @@ function submit(index) {
} }
if(mesSchedulingParams.value.status == '0'){ if(mesSchedulingParams.value.status == '0'){
proxy.$modal.confirm("是否确认提交").then(()=>{ proxy.$modal.confirm("是否确认提交").then(()=>{
mesSchedulingParams.value.planMaserCode = number.value mesSchedulingParams.value.planMasterCode = number.value
mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value
workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => { workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => {
console.log(res.data) console.log(res.data)
@ -150,7 +150,7 @@ function submit(index) {
function confirmReason() { function confirmReason() {
mesSchedulingParams.value.reason = reasons.value mesSchedulingParams.value.reason = reasons.value
proxy.$modal.confirm("是否确认提交").then(()=>{ proxy.$modal.confirm("是否确认提交").then(()=>{
mesSchedulingParams.value.planMaserCode = number.value mesSchedulingParams.value.planMasterCode = number.value
mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value mesSchedulingParams.value.qualityFormNo = quaifyFormNo.value
console.log(mesSchedulingParams) console.log(mesSchedulingParams)
workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => { workSchedulingListApi.updateWorkSchedulingInfo(mesSchedulingParams.value).then((res) => {
@ -165,22 +165,22 @@ function confirmReason() {
} }
// //
function openDetail(index,itemVal) { function openDetail(itemVal) {
if(itemVal == 'bom'){ if(itemVal == 'bom'){
proxy.$tab.navigateTo(`/pages/mes/workScheduling/bomInspect?planMaserCode=${index}`) proxy.$tab.navigateTo(`/pages/mes/workScheduling/bomInspect?planMasterCode=${number.value}`)
} }
if(itemVal == 'worker'){ if(itemVal == 'worker'){
proxy.$tab.navigateTo(`/pages/mes/workScheduling/workerInspect?planMaserCode=${index}`) proxy.$tab.navigateTo(`/pages/mes/workScheduling/workerInspect?planMasterCode=${number.value}`)
} }
if(itemVal == 'equipment'){ if(itemVal == 'equipment'){
proxy.$tab.navigateTo(`/pages/mes/workScheduling/equipmentInspect?planMaserCode=${index}`) proxy.$tab.navigateTo(`/pages/mes/workScheduling/equipmentInspect?planMasterCode=${number.value}`)
} }
} }
onLoad((option) => { onLoad((option) => {
if (option.obj) { if (option.obj) {
number.value = JSON.parse(option.obj).planMaserCode number.value = JSON.parse(option.obj).planMasterCode
planDayId.value = JSON.parse(option.obj).id planDayId.value = JSON.parse(option.obj).id
if( JSON.parse(option.obj).status == '-1'){ if( JSON.parse(option.obj).status == '-1'){
completeInspectStatus.value = true completeInspectStatus.value = true

2
src/pages/mes/workScheduling/workScheduling.vue

@ -13,7 +13,7 @@
<view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)"> <view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)">
<view class="title"> <view class="title">
<view class="title-txt"> <view class="title-txt">
{{item.planMasterCode}} {{item.schedulingCode}}
</view> </view>
<view class="time"> <view class="time">
{{`${$time.formatDate(item.createTime)}`}} {{`${$time.formatDate(item.createTime)}`}}

6
src/pages/mes/workScheduling/workerInspect.vue

@ -44,7 +44,7 @@ const list = ref([])
const params = ref({ const params = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
planMaserCode: '' planMasterCode: ''
}) })
function getWorkerInspectList() { function getWorkerInspectList() {
@ -77,8 +77,8 @@ onReachBottom(() => {
onLoad((option) => { onLoad((option) => {
if (option.planMaserCode) { if (option.planMasterCode) {
params.value.planMaserCode = option.planMaserCode params.value.planMasterCode = option.planMasterCode
} }
}) })
onShow(() => { onShow(() => {

Loading…
Cancel
Save