|
|
@@ -56,7 +56,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { saleordersendrecordPage } from '@/api/mes';
|
|
|
+ import { saleordersendrecordPage, getById } from '@/api/mes';
|
|
|
import eomEdit from './eomEdit.vue';
|
|
|
export default {
|
|
|
components: { eomEdit },
|
|
|
@@ -128,7 +128,7 @@
|
|
|
pickOrderEdit(row) {
|
|
|
this.$refs.eomEditRef.open(row);
|
|
|
},
|
|
|
- handleMine() {
|
|
|
+ async handleMine() {
|
|
|
// const current = this.current.orderInfoList;
|
|
|
// for (const key in current) {
|
|
|
// if (
|
|
|
@@ -139,7 +139,18 @@
|
|
|
// return;
|
|
|
// }
|
|
|
// }
|
|
|
- console.log('sacnmmmmmm=', this.current);
|
|
|
+ const res = await getById(this.current.id);
|
|
|
+ this.current = {
|
|
|
+ ...this.current,
|
|
|
+ tableData: res.data.productList.map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ code: item.productCode,
|
|
|
+ name: item.productName,
|
|
|
+ contactCode: this.current.contactCode
|
|
|
+ };
|
|
|
+ })
|
|
|
+ };
|
|
|
this.$emit('success', this.current);
|
|
|
this.dialogVisible = false;
|
|
|
},
|