|
|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
+
|
|
|
<view class="title_box rx-bc">
|
|
|
- <view class="name">取样信息</view>
|
|
|
+ <view class="name">产品信息</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -42,26 +43,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="item rx-sc">
|
|
|
- <view class="rx ww50 ">
|
|
|
- <view class="lable lable150 rx-cc ">物料代号</view>
|
|
|
- <view class="content content_num">
|
|
|
- <view v-if='isDetails'>{{ it.extInfo.materielCode }}</view>
|
|
|
- <input class="uni-input" v-else v-model="it.extInfo.materielCode"></input>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="rx ww50">
|
|
|
- <view class="lable lable150 rx-cc ">客户代号</view>
|
|
|
- <view class="content content_num">
|
|
|
- <view v-if='isDetails'>{{ it.extInfo.clientCode }}</view>
|
|
|
- <input class="uni-input" v-else v-model="it.extInfo.clientCode"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
-
|
|
|
|
|
|
<view class="item rx-sc">
|
|
|
<view class="rx ww50 ">
|
|
|
@@ -121,7 +102,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -177,18 +157,20 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view class="button_box" v-if="!isDetails">
|
|
|
- <u-button size="small" class="u-reset-button" type="success" @click="handSample(idx)">取样</u-button>
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
+ <view class="button_box" v-if="!isDetails">
|
|
|
+ <u-button size="small" class="u-reset-button" type="success" @click="handSample()">取样</u-button>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<view class="title_box rx-bc">
|
|
|
- <view class="name">报工信息</view>
|
|
|
+ <view class="name">抽样列表</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -230,25 +212,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="item rx-sc">
|
|
|
- <view class="rx ww50 ">
|
|
|
- <view class="lable lable150 rx-cc ">物料代号</view>
|
|
|
- <view class="content content_num">
|
|
|
- <view v-if='isDetails'>{{it.extInfo.materielCode }}</view>
|
|
|
- <input class="uni-input" v-else v-model="it.extInfo.materielCode"></input>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="rx ww50">
|
|
|
- <view class="lable lable150 rx-cc ">客户代号</view>
|
|
|
- <view class="content content_num">
|
|
|
- <view v-if='isDetails'>{{it.extInfo.clientCode }}</view>
|
|
|
- <input class="uni-input" v-else v-model="it.extInfo.clientCode"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
<view class="item rx-sc">
|
|
|
@@ -341,8 +304,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
@@ -434,9 +397,9 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="item ww30 content_num">
|
|
|
- <view v-if="isDetails" >{{ quaItem.remark }}</view>
|
|
|
+ <view v-if="isDetails">{{ quaItem.remark }}</view>
|
|
|
<input v-else class="uni-input" v-model="quaItem.remark"></input>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -460,6 +423,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -561,27 +525,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
- handSample(idx) {
|
|
|
+ handSample() {
|
|
|
|
|
|
- let _arr = this.list[idx].extInfo.batchReportInfo.map(m => {
|
|
|
- return {
|
|
|
- quantity: m.sample,
|
|
|
- disposeTaskId: m.taskId,
|
|
|
- source: this.list[idx],
|
|
|
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
let param = {
|
|
|
taskId: this.item.currentTaskDiagram.taskId,
|
|
|
- workOrderId: this.list[idx].workOrderId,
|
|
|
- dispose: _arr,
|
|
|
-
|
|
|
+ workOrderId: this.list[0].workOrderId,
|
|
|
+ dispose: this.list,
|
|
|
|
|
|
}
|
|
|
|
|
|
sample(param).then(res => {
|
|
|
- this.$set(this.item, 'sampleQuality', res || [])
|
|
|
+ this.item.sampleQuality = res || []
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
|