lijuncheng 11 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. 73
      pages/issue/request/issueRequest.vue
  5. 24
      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">

73
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,42 +204,37 @@
},
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) {
var text = clearTirmAndWrap(e.content.text)
if (text == "详情") {
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.issueRequestHandle(dataContent.id)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.issueRequestSubmitApprove(dataContent.id)
})
} else if (text.includes("审批通过")) {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.issueRequestSubmitApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.issueRequestSubmitApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.issueRequestClose(dataContent.id)
})
}
},
showQuestionMessage(hint,callBack){
showQuestionMessage(hint, callBack) {
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {
@ -242,6 +242,7 @@
}
});
},
switchChangeWait(state, jobStatus) {
this.checkedWaitTask = state;
this.status = jobStatus;
@ -290,7 +291,7 @@
}
});
},
issueRequestSubmitApprove(id) {
issueRequestSubmitApprove(id).then(res => {
if (res.data) {
@ -301,13 +302,13 @@
} else {
this.showMessage("申请提交审批失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestClose(id) {
issueRequestClose(id).then(res => {
if (res.data) {
@ -318,12 +319,12 @@
} else {
this.showMessage("申请关闭失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestSubmitApproveAgree(id) {
issueRequestSubmitApproveAgree(id).then(res => {
if (res.data) {
@ -334,12 +335,12 @@
} else {
this.showMessage("申请审批通过失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestSubmitApproveRefused(id) {
issueRequestSubmitApproveRefused(id).then(res => {
if (res.data) {
@ -350,11 +351,12 @@
} else {
this.showMessage("申请审批驳回失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestHandle(id) {
issueRequestHandle(id).then(res => {
if (res.data) {
@ -365,13 +367,26 @@
} else {
this.showMessage("申请处理失败")
}
}).catch(error => {
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>

24
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>
@ -32,7 +40,7 @@
import comIssueRequestDetailCard from "@/pages/issue/coms/comIssueRequestDetailCard.vue"
import comMessage from '@/mycomponents/common/comMessage.vue'
export default {
components: {
comIssueRequestDetailCard,
@ -43,12 +51,20 @@
id: '',
requestContent: {}, //
subList: [], //
type: 'query' //add, query
};
},
onLoad(option) {
this.id = option.id;
this.getDetail();
debugger;
this.type = option.type;
if (this.type == 'add') {
} else {
this.id = option.id;
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
@ -79,7 +95,7 @@
} else {
if (res.data.subList.length > 0) {
that.requestContent = res.data;
that.requestContent.subList=res.data.subList;
that.requestContent.subList = res.data.subList;
that.subList = res.data.subList;
// that.subList.forEach(res => {
// res.fromLocationCode = res.toLocationCode

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