|
|
|
|
@ -11,22 +11,34 @@ |
|
|
|
|
placeholder="请扫描流程卡" |
|
|
|
|
/></uni-forms-item> |
|
|
|
|
</uni-forms> |
|
|
|
|
<!-- <t-table style="margin-top:20rpx"> |
|
|
|
|
<t-tr> |
|
|
|
|
<t-td>厂内生产</t-td> |
|
|
|
|
<t-td> |
|
|
|
|
<switch :checked="unFsBool" @change="switchChange" /> |
|
|
|
|
</t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
<t-tr> |
|
|
|
|
<t-td>流程卡</t-td> |
|
|
|
|
<t-td>{{ cradNoText }}</t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
<t-tr> |
|
|
|
|
<t-td>处理班组/供应商</t-td> |
|
|
|
|
<t-td>{{ makeTeam }}</t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
</t-table> --> |
|
|
|
|
<t-table style="margin-top: 20rpx"> |
|
|
|
|
<t-tr> |
|
|
|
|
<t-td>厂内生产</t-td> |
|
|
|
|
<t-td> |
|
|
|
|
<switch :checked="unFsBool" @change="switchChange" /> |
|
|
|
|
</t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
<!-- <t-tr> |
|
|
|
|
<t-td>流程卡</t-td> |
|
|
|
|
<t-td>{{ cradNoText }}</t-td> |
|
|
|
|
</t-tr> --> |
|
|
|
|
<!-- <t-tr> |
|
|
|
|
<t-td>处理班组/供应商</t-td> |
|
|
|
|
<t-td>{{ makeTeam }}</t-td> |
|
|
|
|
</t-tr> --> |
|
|
|
|
</t-table> |
|
|
|
|
<t-table style="margin-top: 20rpx"> |
|
|
|
|
<t-tr> |
|
|
|
|
<t-td>工序号</t-td> |
|
|
|
|
<t-td> 工序名称 </t-td> |
|
|
|
|
<t-td> 作业中心/供应商 </t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
<t-tr v-for="(item,index) in makeTeam" :key="index"> |
|
|
|
|
<t-td>{{ item.processNo }}</t-td> |
|
|
|
|
<t-td> {{ item.processName }} </t-td> |
|
|
|
|
<t-td> {{ item.workCenterName }} </t-td> |
|
|
|
|
</t-tr> |
|
|
|
|
</t-table> |
|
|
|
|
</ifrm> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -49,10 +61,11 @@ export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
cradNo: "", |
|
|
|
|
makeTeam: "", |
|
|
|
|
makeTeam: [], |
|
|
|
|
cradNoText: "", |
|
|
|
|
unFsBool: false, |
|
|
|
|
getDataFun: true, |
|
|
|
|
tableData:[] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
@ -72,11 +85,19 @@ export default { |
|
|
|
|
this.cradNoText = code; |
|
|
|
|
if (!this.cradNo) return; |
|
|
|
|
this.getDataFun = false; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: "提交中...", |
|
|
|
|
}); |
|
|
|
|
let query = { |
|
|
|
|
cardNo: this.cradNo, |
|
|
|
|
mark: this.unFsBool ? 1 : 0, |
|
|
|
|
}; |
|
|
|
|
this.$u.api |
|
|
|
|
.yieldOrderConfirm() |
|
|
|
|
.yieldOrderConfirm(query) |
|
|
|
|
.then((res) => { |
|
|
|
|
let data = res.data |
|
|
|
|
let data = res.data; |
|
|
|
|
this.makeTeam = data; |
|
|
|
|
uni.hideLoading() |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "操作成功", |
|
|
|
|
}); |
|
|
|
|
|