lijuncheng 12 months ago
parent
commit
7ebc8fea3f
  1. 2
      common/style/new_style.css
  2. 18
      mycomponents/detail/comDetailCard.vue
  3. 3
      pages/inspect/coms/inspectComDetailCard.vue
  4. 35
      pages/issue/request/issueRequest.vue
  5. 16
      pages/issue/request/issueRequestDetail.vue
  6. 9
      pages/productionReceipt/coms/comProductionJobCard.vue
  7. 2
      pages/productionReceipt/job/productionReceiptDetail.vue

2
common/style/new_style.css

@ -224,7 +224,7 @@ uni-page-head .uni-page-head__title {
position: relative;
/* width: 25%; */
padding: 0 20rpx;
margin: 0 0 20rpx;
/* margin: 0 0 20rpx; */
text-align: center;
}

18
mycomponents/detail/comDetailCard.vue

@ -1,5 +1,23 @@
<template>
<view class="" style="background-color: #fff;">
<view class="cell_box uni-flex uni-row">
<view class="cell_info">
<view class="text_lightblue">车间</view>
<view>{{workShopCode}}</view>
</view>
<view class="cell_info">
<view class="text_lightblue">生产线</view>
<view>{{dataContent.productionLineCode}}</view>
</view>
<view class="cell_info">
<view class="text_lightblue">工位</view>
<view>{{ dataContent.workStationCode }}</view>
</view>
<view class="cell_info">
<view class="text_lightblue">原材料库</view>
<view>{{ dataContent.toLocationCode}}</view>
</view>
</view>
<uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true">
<template v-slot:title>

3
pages/inspect/coms/inspectComDetailCard.vue

@ -44,8 +44,7 @@
:right-options="item.scaned?scanOptions:detailOptions">
<recommend :detail="item" :isShowPack="isShowPack" :isShowBatch="isShowBatch"
:isShowFromLocation="isShowLocation"></recommend>
<!-- -->
<view v-if="item.failedQty>0||item.crackQty>0" :class="item.scaned?'scan_view':''" style="font-size: 32rpx;margin-top: 5px;">
<view v-if="item.failedQty>0||item.crackQty>0" :class="item.scaned?'scan_view':''" style="font-size: 32rpx;padding-left: 2px;">
<view class="cell_box uni-flex uni-row">
<view class="cell_info uni-flex uni-row">
<view class="text_lightblue">

35
pages/issue/request/issueRequest.vue

@ -14,10 +14,11 @@
</view>
</uni-swipe-action>
<uni-load-more :status="loadingType" />
<request-info-popup ref='requestInfoPopup'></request-info-popup>
<!-- <request-info-popup ref='requestInfoPopup'></request-info-popup> -->
</view>
<requestButton @goScan='openScanDetailPopup'></requestButton>
<!-- <com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup> -->
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirmsss'></com-issue-request-popup>
<comMessage ref="comMessage"></comMessage>
</view>
</template>
@ -30,6 +31,8 @@
import comIssueRequestCard from '@/pages/issue/coms/comIssueRequestCard.vue'
import requestInfoPopup from '@/pages/issue/coms/requestInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue'
import comIssueRequestPopup from '@/pages/issue/coms/comIssueRequestPopup.vue'
import {
goHome,
updateTitle,
@ -64,6 +67,7 @@
comIssueRequestCard,
requestInfoPopup,
requestButton,
comIssueRequestPopup
},
data() {
return {
@ -119,16 +123,16 @@
},
methods: {
requestConfirm(action, item) {},
openRequestDetail(item) {
uni.navigateTo({
url: './issueRequestDetail?id=' + item.id
url: './issueRequestDetail?type=query&id=' + item.id
});
},
openRequestInfoPopup(item) {
this.$refs.requestInfoPopup.openPopup(item)
},
getList(type) {
let that = this;
uni.showLoading({
@ -183,6 +187,7 @@
that.showMessage(error.errMsg)
})
},
updateOptions(status) {
if (status == "1") {
this.showOptions = this.detailAndApproveOptions;
@ -199,12 +204,7 @@
},
openScanDetailPopup() {
// uni.navigateTo({
// url: "../request/issueRequestSubmit?fromType=" + this.fromType
// })
uni.navigateTo({
url: "../record/issueRecord?fromType=" + this.fromType
})
this.$refs.comIssueRequestPopup.openRequestPopup(true);
},
swipeClick(e, dataContent) {
@ -242,6 +242,7 @@
}
});
},
switchChangeWait(state, jobStatus) {
this.checkedWaitTask = state;
this.status = jobStatus;
@ -355,6 +356,7 @@
this.showMessage(error)
})
},
issueRequestHandle(id) {
issueRequestHandle(id).then(res => {
if (res.data) {
@ -370,8 +372,21 @@
this.showMessage(error)
})
},
},
requestConfirmsss(action, item) {
debugger;
uni.navigateTo({
url: './issueRequestDetail?type=add&item=' + item.id
});
}
// requestConfirm(action, item) {
// debugger;
// uni.navigateTo({
// url: './issueRequestDetail?type=add&item=' + item.id
// });
// }
}
</script>

16
pages/issue/request/issueRequestDetail.vue

@ -9,6 +9,14 @@
</view>
</view>
</scroll-view>
<!-- v-if="type=='add'" -->
<div class="btn_bottom" >
<view class="" style="display: flex;flex-direction: row;">
<view class="">
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button>
</view>
</view>
</div>
</view>
<com-message ref="comMessage"></com-message>
</view>
@ -43,12 +51,20 @@
id: '',
requestContent: {}, //
subList: [], //
type: 'query' //add, query
};
},
onLoad(option) {
debugger;
this.type = option.type;
if (this.type == 'add') {
} else {
this.id = option.id;
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {

9
pages/productionReceipt/coms/comProductionJobCard.vue

@ -3,17 +3,12 @@
<view class="task_item">
<view class="task_text">
<view class="">
申请单号 : {{dataContent.requestNumber}}
发料任务单号:{{dataContent.issueJobNumber}}
</view>
</view>
<view class="task_text">
<view class="">
零件号 : {{dataContent.itemCode}}
</view>
</view>
<view class="task_text">
<view class="">
目标库位 : {{dataContent.toLocationCode}}
车间:{{dataContent.workshopCode}}
</view>
</view>
</view>

2
pages/productionReceipt/job/productionReceiptDetail.vue

@ -172,7 +172,7 @@
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getLocationTypeArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.subList)
updateTitle(this.jobContent.number);
// updateTitle(this.jobContent.number);
} else {
that.showMessage('列表数据为0');
}

Loading…
Cancel
Save