王震
2023-12-28 eb76624f5400b4a3a2d8301c042b6276f87220a9
	modified:   src/api/warehouse/pallettransports.js
modified: src/views/warehouse/pallettransports/index.vue
modified: vue.config.js
已修改3个文件
30 ■■■■■ 文件已修改
src/api/warehouse/pallettransports.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/pallettransports/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/warehouse/pallettransports.js
@@ -8,6 +8,7 @@
  })
}
export function addPalletTransports(obj) {
  return request({
    url: '/mes/palletTransports',
@@ -15,6 +16,14 @@
    data: obj
  })
}
//移库改变
export function updateStock(obj) {
  return request({
    url: '/mes/palletTransportsMaterial/updateStock',
    method: 'post',
    data: obj
  })
}
export function getPalletTransportsObj(id) {
  return request({
src/views/warehouse/pallettransports/index.vue
@@ -136,7 +136,7 @@
              
              <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>
@@ -206,6 +206,7 @@
  delPalletTransportsDetailObj,
  executeMoveLocation,
  selectAll,
  updateStock,
} from '@/api/warehouse/pallettransports'
import { getByPalletTransId } from '@/api/plan/operationtask'
import ttable from '@/views/common/ztt-table.vue'
@@ -221,6 +222,7 @@
export default {
  data() {
    return {
      forbidden:false,
      partDesc: null,
      ajaxFun: palletTransportsFetchList,
      currPalletTransportsRow: null,
@@ -399,7 +401,7 @@
                  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,
@@ -744,6 +746,19 @@
        }
      })
    },
    //改变
    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 (
vue.config.js
@@ -5,7 +5,7 @@
// 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'