|
@@ -1,22 +1,24 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
<view class="title_box rx-bc">
|
|
<view class="title_box rx-bc">
|
|
|
- <view class="name">报工信息</view>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <view class="name">报工信息: ({{list.length || 0}})个</view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="material ">
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <view class="content_table">
|
|
|
|
|
|
|
+ <view class="material " v-for="(it, idx) in list" :key="idx">
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
+ <view class="content_table" >
|
|
|
|
|
+
|
|
|
<view class="item rx-sc">
|
|
<view class="item rx-sc">
|
|
|
<view class="rx">
|
|
<view class="rx">
|
|
|
- <view class="lable lable150 rx-cc ">物料编码</view>
|
|
|
|
|
|
|
+ <view class="lable lable190 rx-cc ">
|
|
|
|
|
+
|
|
|
|
|
+ <view class="round">{{idx + 1}}</view>物料编码
|
|
|
|
|
+ </view>
|
|
|
<view class="content rx-sc">
|
|
<view class="content rx-sc">
|
|
|
- <view>tgcc001061001001</view>
|
|
|
|
|
|
|
+ <view>{{it.code}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -25,7 +27,7 @@
|
|
|
<view class="rx">
|
|
<view class="rx">
|
|
|
<view class="lable lable150 rx-cc ">名称</view>
|
|
<view class="lable lable150 rx-cc ">名称</view>
|
|
|
<view class="content rx-sc">
|
|
<view class="content rx-sc">
|
|
|
- <view>X5 CC筒10#</view>
|
|
|
|
|
|
|
+ <view>{{it.name}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -34,7 +36,7 @@
|
|
|
<view class="rx">
|
|
<view class="rx">
|
|
|
<view class="lable lable150 rx-cc ">型号</view>
|
|
<view class="lable lable150 rx-cc ">型号</view>
|
|
|
<view class="content rx-sc">
|
|
<view class="content rx-sc">
|
|
|
- <view>1065*1019x619</view>
|
|
|
|
|
|
|
+ <view>{{it.modelType}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -45,7 +47,7 @@
|
|
|
<view class="rx ww50 ">
|
|
<view class="rx ww50 ">
|
|
|
<view class="lable lable150 rx-cc ">物料代号</view>
|
|
<view class="lable lable150 rx-cc ">物料代号</view>
|
|
|
<view class="content content_num">
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="it.extInfo.materielCode"></input>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -53,7 +55,7 @@
|
|
|
<view class="rx ww50">
|
|
<view class="rx ww50">
|
|
|
<view class="lable lable150 rx-cc ">客户代号</view>
|
|
<view class="lable lable150 rx-cc ">客户代号</view>
|
|
|
<view class="content content_num">
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.workReportInfo.formedWeight"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="it.extInfo.clientCode"></input>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -64,7 +66,7 @@
|
|
|
<view class="rx ww50 ">
|
|
<view class="rx ww50 ">
|
|
|
<view class="lable lable150 rx-cc ">刻码</view>
|
|
<view class="lable lable150 rx-cc ">刻码</view>
|
|
|
<view class="content content_num content_H">
|
|
<view class="content content_num content_H">
|
|
|
- <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="it.extInfo.engrave"></input>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -72,7 +74,7 @@
|
|
|
<view class="rx ww50">
|
|
<view class="rx ww50">
|
|
|
<view class="lable lable150 rx-cc ">位置</view>
|
|
<view class="lable lable150 rx-cc ">位置</view>
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
|
- <zxz-uni-data-select :localdata="positionList" v-model="item.categoryId" dataValue='id'
|
|
|
|
|
|
|
+ <zxz-uni-data-select :localdata="positionList" v-model="it.position" dataValue='id'
|
|
|
format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -98,20 +100,24 @@
|
|
|
<view class="tr row rx-sc">
|
|
<view class="tr row rx-sc">
|
|
|
<view class="item ww25">32.67</view>
|
|
<view class="item ww25">32.67</view>
|
|
|
<view class="item ww25 content_num">
|
|
<view class="item ww25 content_num">
|
|
|
- <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="it.formedNum"></input>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ww25">
|
|
<view class="item ww25">
|
|
|
- <zxz-uni-data-select :localdata="inspectionList" v-model="item.categoryId" dataValue='id'
|
|
|
|
|
|
|
+ <zxz-uni-data-select :localdata="inspectionList" v-model="it.inspection" dataValue='id'
|
|
|
format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ww25">
|
|
<view class="item ww25">
|
|
|
- <zxz-uni-data-select :localdata="inspectionList" v-model="item.categoryId" dataValue='id'
|
|
|
|
|
- format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
|
|
|
|
+ <zxz-uni-data-select :localdata="stepsList" v-model="it.disposeOf" dataValue='id'
|
|
|
|
|
+ format='{taskTypeName}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -127,11 +133,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import baTreePicker from '@/components/ba-tree-picker/ba-tree-picker.vue'
|
|
|
|
|
import {
|
|
import {
|
|
|
- treeByPid,
|
|
|
|
|
- pageeLedgerMain,
|
|
|
|
|
- assetPage
|
|
|
|
|
|
|
+ getTaskInstanceList
|
|
|
} from '@/api/pda/workOrder.js'
|
|
} from '@/api/pda/workOrder.js'
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -139,11 +142,12 @@
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default: () => {}
|
|
default: () => {}
|
|
|
},
|
|
},
|
|
|
- notFormed: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ list: {
|
|
|
type: Array,
|
|
type: Array,
|
|
|
default: () => []
|
|
default: () => []
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -151,21 +155,14 @@
|
|
|
|
|
|
|
|
watch: {
|
|
watch: {
|
|
|
|
|
|
|
|
- notFormed: {
|
|
|
|
|
- immediate: true,
|
|
|
|
|
- deep: true,
|
|
|
|
|
- handler(newVal) {
|
|
|
|
|
- console.log(newVal)
|
|
|
|
|
- this.notFormedList = newVal
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
classificationList: [],
|
|
classificationList: [],
|
|
|
|
|
+
|
|
|
|
|
+ stepsList: [],
|
|
|
positionList: [{
|
|
positionList: [{
|
|
|
id: '1',
|
|
id: '1',
|
|
|
name: '内'
|
|
name: '内'
|
|
@@ -196,7 +193,7 @@
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.getSteps()
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -204,7 +201,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ getSteps() {
|
|
|
|
|
+ console.log(this.item)
|
|
|
|
|
+ getTaskInstanceList(this.item.workOrderId).then(res => {
|
|
|
|
|
+ this.stepsList = res
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -273,6 +275,11 @@
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .lable190 {
|
|
|
|
|
+ width: 190rpx !important;
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.ww80 {
|
|
.ww80 {
|
|
|
width: 80rpx;
|
|
width: 80rpx;
|
|
|
}
|
|
}
|
|
@@ -428,4 +435,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .round {
|
|
|
|
|
+ width: 32rpx;
|
|
|
|
|
+ height: 32rpx;
|
|
|
|
|
+ line-height: 32rpx;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ background: $theme-color;
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ font-style: normal;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ margin-right: 18rpx;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|