modified: src/api/warehouse/pallettransports.js
modified: src/views/warehouse/pallettransports/index.vue
modified: vue.config.js
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function addPalletTransports(obj) { |
| | | return request({ |
| | | url: '/mes/palletTransports', |
| | |
| | | data: obj |
| | | }) |
| | | } |
| | | //移库改变 |
| | | export function updateStock(obj) { |
| | | return request({ |
| | | url: '/mes/palletTransportsMaterial/updateStock', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | export function getPalletTransportsObj(id) { |
| | | return request({ |
| | |
| | | |
| | | <el-table-column prop="transfer_quantity" label="移库数量" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.transfer_quantity" border="none"></el-input> |
| | | <el-input v-model="scope.row.transfer_quantity" @change="moveLocation(scope.row)" :disabled = "scope.row.state == '02submitted' " border="none"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | delPalletTransportsDetailObj, |
| | | executeMoveLocation, |
| | | selectAll, |
| | | updateStock, |
| | | } from '@/api/warehouse/pallettransports' |
| | | import { getByPalletTransId } from '@/api/plan/operationtask' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | forbidden:false, |
| | | partDesc: null, |
| | | ajaxFun: palletTransportsFetchList, |
| | | currPalletTransportsRow: null, |
| | |
| | | part_no:el.partNo, |
| | | part_desc:el.partDesc, |
| | | operation_task_no:el.operationTaskNo, |
| | | transfer_quantity:el.transferQuantity, |
| | | transfer_quantity:0, |
| | | unit:el.unit, |
| | | to_ifs_location_no:el.toIfsLocationName, |
| | | state:el.state, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | //改变 |
| | | moveLocation(val){ |
| | | console.log(val,"---->"); |
| | | let num = Number(val.transfer_quantity) |
| | | if (val.state !="02submitted") { |
| | | updateStock({id:val.id,transferQuantity:num}).then((res) =>{ |
| | | console.log(res,"------>1"); |
| | | this.getPalletTransportsMaterialData() |
| | | }) |
| | | }else{ |
| | | this.$message.error('移库已经执行') |
| | | } |
| | | }, |
| | | // 执行移库 |
| | | executeMove() { |
| | | if ( |
| | |
| | | |
| | | |
| | | // const url = 'http://192.168.32.45:9999' |
| | | const url = 'http://192.168.2.7:9999' |
| | | const url = 'http://192.168.2.63:9999' |
| | | |
| | | // const url = 'http://localhost:9999' |
| | | |