| | |
| | | export function getCustomerMainAndOrderBycNo(contractNo) { |
| | | return request({ |
| | | url: '/mes/plan/customerOrder/getCustomerMainAndOrderBycNo/' + contractNo, |
| | | method: 'get', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | |
| | | // 同步PLM数据 |
| | | export function syncPlm(obj) { |
| | | return request({ |
| | | url: '/mes/document/syncPlm', |
| | | url: '/mes/plan/customerOrder/syncPlm', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | |
| | | }, |
| | | |
| | | syncPLM() { |
| | | console.log(this.multipleSelection) |
| | | if (this.multipleSelection.length > 0) { |
| | | this.$confirm('确认同步选中的销售订单吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | |
| | | type: 'warning' |
| | | }) |
| | | .then(() => { |
| | | syncPlm(this.multipleSelection.map((item) => item.partNo)) |
| | | syncPlm( |
| | | this.multipleSelection.map((item) => ({ |
| | | id: item.id, // 传递id字段 |
| | | partNo: item.partNo // 传递partNo字段 |
| | | })) |
| | | ) |
| | | .then((res) => { |
| | | if (res.status === 200) { |
| | | this.$message.success('同步成功') |