|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="top-wrapper cx">
|
|
<view class="top-wrapper cx">
|
|
|
- <stepsNav :stepsList="stepsList"></stepsNav>
|
|
|
|
|
|
|
+ <stepsNav :stepsList="stepsList" :taskId="info.taskId"></stepsNav>
|
|
|
|
|
|
|
|
<view class="tab_box rx-sc">
|
|
<view class="tab_box rx-sc">
|
|
|
<view class="tab_item" :class="{active: tabType == 1}" @click="handTab(1)">基本信息</view>
|
|
<view class="tab_item" :class="{active: tabType == 1}" @click="handTab(1)">基本信息</view>
|
|
@@ -19,69 +19,69 @@
|
|
|
<u-list @scrolltolower="scrolltolower" key="info" v-if="tabType == 1">
|
|
<u-list @scrolltolower="scrolltolower" key="info" v-if="tabType == 1">
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">生产工单号</text>
|
|
<text class="lable">生产工单号</text>
|
|
|
- <text>21122403906633005</text>
|
|
|
|
|
|
|
+ <text>{{ info.code }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">计划编号</text>
|
|
<text class="lable">计划编号</text>
|
|
|
- <text>211224039</text>
|
|
|
|
|
|
|
+ <text>{{ info.productionPlanCode }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">工艺路线版本</text>
|
|
<text class="lable">工艺路线版本</text>
|
|
|
- <text>2.0</text>
|
|
|
|
|
|
|
+ <text>{{ info.routingVersion }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">产品编码</text>
|
|
<text class="lable">产品编码</text>
|
|
|
- <text>W05363955011</text>
|
|
|
|
|
|
|
+ <text> {{ info.productCode }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">产品名称</text>
|
|
<text class="lable">产品名称</text>
|
|
|
- <text>木工刀</text>
|
|
|
|
|
|
|
+ <text>{{ info.productName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">牌号</text>
|
|
<text class="lable">牌号</text>
|
|
|
- <text>H25.5</text>
|
|
|
|
|
|
|
+ <text>{{ info.brandNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">型号</text>
|
|
<text class="lable">型号</text>
|
|
|
- <text>H25.5</text>
|
|
|
|
|
|
|
+ <text>{{info.model}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">要求成型数量</text>
|
|
<text class="lable">要求成型数量</text>
|
|
|
- <text>1000 PCS</text>
|
|
|
|
|
|
|
+ <text>{{info.formingNum }} </text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">要求成型重量</text>
|
|
<text class="lable">要求成型重量</text>
|
|
|
- <text>850.5 KG</text>
|
|
|
|
|
|
|
+ <text>{{ info.formingWeight }} KG</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">已完成生产数量</text>
|
|
<text class="lable">已完成生产数量</text>
|
|
|
- <text>293 PCS</text>
|
|
|
|
|
|
|
+ <text></text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">已完成生产重量</text>
|
|
<text class="lable">已完成生产重量</text>
|
|
|
- <text>85.5 KG</text>
|
|
|
|
|
|
|
+ <text></text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item_list rx-bc">
|
|
<view class="item_list rx-bc">
|
|
|
<text class="lable">计划开始时间</text>
|
|
<text class="lable">计划开始时间</text>
|
|
|
- <text>2023/08/10 02:00:00</text>
|
|
|
|
|
|
|
+ <text>{{ info.planStartTime }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -111,7 +111,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="bottom-wrapper">
|
|
<view class="bottom-wrapper">
|
|
|
- <bottomOperate state='1'></bottomOperate>
|
|
|
|
|
|
|
+ <bottomOperate state='1' @operate='operate'></bottomOperate>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -121,7 +121,7 @@
|
|
|
import bottomOperate from '../../components/bottomOperate.vue'
|
|
import bottomOperate from '../../components/bottomOperate.vue'
|
|
|
import stepsNav from '../../components/stepsNav.vue'
|
|
import stepsNav from '../../components/stepsNav.vue'
|
|
|
|
|
|
|
|
- import { getTaskInstanceList } from '@/api/pda/workOrder.js'
|
|
|
|
|
|
|
+ import { getTaskInstanceList, workorderInfo } from '@/api/pda/workOrder.js'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
bottomOperate,
|
|
bottomOperate,
|
|
@@ -134,6 +134,8 @@
|
|
|
id: null,
|
|
id: null,
|
|
|
|
|
|
|
|
stepsList: [],
|
|
stepsList: [],
|
|
|
|
|
+ info: {},
|
|
|
|
|
+ taskId: null,
|
|
|
|
|
|
|
|
detailList: [{
|
|
detailList: [{
|
|
|
name: '挤压成型',
|
|
name: '挤压成型',
|
|
@@ -172,9 +174,14 @@
|
|
|
|
|
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
this.title = options.title
|
|
this.title = options.title
|
|
|
-
|
|
|
|
|
this.id = options.id
|
|
this.id = options.id
|
|
|
|
|
+
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中'
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
this.getSteps()
|
|
this.getSteps()
|
|
|
|
|
+ this.getInfo()
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -194,7 +201,29 @@
|
|
|
this.title = this.stepsList[0].taskTypeName
|
|
this.title = this.stepsList[0].taskTypeName
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getInfo() {
|
|
|
|
|
+ workorderInfo(this.id).then(res => {
|
|
|
|
|
+ this.info = res
|
|
|
|
|
+ uni.hideLoading();
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ uni.hideLoading();
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ operate(type) {
|
|
|
|
|
+ let url
|
|
|
|
|
+ if(type == 'picking') {
|
|
|
|
|
+ url = '/pages/pda/picking/details'
|
|
|
|
|
+ let _arr = JSON.stringify([{id: this.info.id, code: this.info.code }])
|
|
|
|
|
+ url += `?arr=${encodeURIComponent(_arr)}&taskId=${this.info.taskId}`
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|