|
|
@@ -7,8 +7,8 @@
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- disabled
|
|
|
style="width:80px; height: 40px;margin-bottom: 20px"
|
|
|
+ @click="handleUpdate"
|
|
|
>更新</el-button>
|
|
|
|
|
|
<el-button
|
|
|
@@ -57,7 +57,7 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="开数*联数"
|
|
|
- prop=""
|
|
|
+ prop="yj_ls"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
@@ -77,7 +77,7 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="领用单位"
|
|
|
- prop=""
|
|
|
+ prop="BOM_投料单位"
|
|
|
width="100"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
@@ -92,7 +92,7 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="实际用量"
|
|
|
- prop=""
|
|
|
+ prop="BOM_实际用量"
|
|
|
width="100"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
@@ -102,9 +102,12 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="折算投料(万张)"
|
|
|
- prop=""
|
|
|
width="150"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template #default="{ row }">
|
|
|
+ <el-input v-model="row['实际投料']" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="投料确认"
|
|
|
prop="投料确认"
|
|
|
@@ -131,6 +134,15 @@ const getOrderFeedList = (params) => {
|
|
|
params
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+// 5.2更新工单实际投料
|
|
|
+const updateOrderFeed = (data) => {
|
|
|
+ return service({
|
|
|
+ url: '/mes_server/order_super_loss/updateOrderFeed',
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -192,6 +204,23 @@ const handleSearch = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const handleUpdate = async() => {
|
|
|
+ if (multipleSelection.value.length === 0) {
|
|
|
+ console.log('未选择行')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const params = multipleSelection.value.map(item => ({
|
|
|
+ UniqId: item['UniqId'],
|
|
|
+ number: item['实际投料'],
|
|
|
+ }))
|
|
|
+ const res = await updateOrderFeed(params)
|
|
|
+ if (res['code'] === 0) {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: '更新成功',
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|