生产入库,销售出库,分布式调出单,分布式调入单,直接调拨单,增加一个托数字段
5个文件已修改
347 ■■■■■ 已修改文件
src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/FbStepFoldinBillList/fbStepFoldinBillList.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/KCGL/MoveStockBill/Kf_MoveStockBillList.vue 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ProductInBill/Kf_ProductInBillList.vue 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/sellOut/sellOutBill.vue 113 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue
@@ -163,6 +163,8 @@
            <el-row style="margin-bottom:8px">
                <el-col>
                    <el-button size="mini" type="primary" @click="handleAdd">新增</el-button>
                    <el-button size="mini"  @click="set_HTagCount">贴标签数</el-button>
                    <el-button size="mini"  @click="set_PalletChange">托数变更</el-button>
                    <el-button size="mini" @click="handleEdit">编辑</el-button>
                    <el-button size="mini" type="danger" @click="set_DeleteBill">删除</el-button>
                    <el-button size="mini" @click="set_CheckBill(1)">审核</el-button>
@@ -523,6 +525,96 @@
                this.onSearch();
            }
        },
           set_HTagCount() {
      if (!this.rowForm || !this.rowForm.hmainid) {
        this.$modal.msgError('请先选择一条记录!')
        return
      }
      const rowData = this.rowForm // 使用 rowForm 而不是 rowList
      const currentPallet = rowData.贴标签数 || 0
      // 将"请输入新托数"作为输入框的placeholder
      this.$prompt(`当前贴标签数:${currentPallet}`, {
        confirmButtonText: '保存',
        cancelButtonText: '取消',
        inputValue: currentPallet,
        inputType: 'number',
        inputValidator: (value) => {
          if (!value) return '请输入贴标签数!'
          const num = parseInt(value)
          if (isNaN(num)) return '请输入有效的数字!'
          if (num.toString() !== value) return '贴标签数不能为小数!'
          if (num <= 0) return '贴标签数必须大于0!'
          return true
        }
      }).then(({ value }) => {
        const newPallet = parseInt(value)
        return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdateHTagCount', {
          hmainid: rowData.hmainid,
          newPallet: newPallet,
          operator: sessionStorage["HUserName"]
        })
      }).then(response => {
        if (response.data && response.data.count == 1) {
          this.$modal.msgSuccess('贴标签数变更成功!')
          this.onSearch()
          this.rowForm = null
        } else {
          this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
        }
      }).catch(error => {
        if (error !== 'cancel') {
          this.$modal.msgError('操作失败:' + error.message)
        }
      })
    },
        set_PalletChange() {
        if (!this.rowForm || !this.rowForm.hmainid) {
            this.$modal.msgError('请先选择一条记录!')
            return
        }
        const rowData = this.rowForm // 使用 rowForm 而不是 rowList
        const currentPallet = rowData.托数 || 0
        // 将"请输入新托数"作为输入框的placeholder
        this.$prompt(`当前托数:${currentPallet}`, {
            confirmButtonText: '保存',
            cancelButtonText: '取消',
            inputValue: currentPallet,
            inputType: 'number',
            inputValidator: (value) => {
            if (!value) return '请输入托数!'
            const num = parseInt(value)
            if (isNaN(num)) return '请输入有效的数字!'
            if (num.toString() !== value) return '托数不能为小数!'
            if (num <= 0) return '托数必须大于0!'
            return true
            }
        }).then(({ value }) => {
            const newPallet = parseInt(value)
            return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', {
            hmainid: rowData.hmainid,
            newPallet: newPallet,
            operator: sessionStorage["HUserName"]
            })
        }).then(response => {
            if (response.data && response.data.count == 1) {
            this.$modal.msgSuccess('托数变更成功!')
            this.onSearch()
            this.rowForm = null
            } else {
            this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
            }
        }).catch(error => {
            if (error !== 'cancel') {
            this.$modal.msgError('操作失败:' + error.message)
            }
        })
        },
        set_AddNew() {
            window.open('./Fb_StepFoldinBillEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1', '_blank');
        },
src/views/FbStepFoldinBillList/fbStepFoldinBillList.vue
@@ -163,6 +163,7 @@
            <el-row style="margin-bottom:8px">
                <el-col>
                    <el-button size="mini" type="primary" @click="handleAdd">新增</el-button>
                    <el-button size="mini" @click="set_PalletChange">托数变更</el-button>
                    <el-button size="mini" @click="handleEdit">编辑</el-button>
                    <el-button size="mini" type="danger" @click="set_DeleteBill">删除</el-button>
                    <el-button size="mini" @click="set_CheckBill(1)">审核</el-button>
@@ -663,6 +664,51 @@
                }
            }
        },
        set_PalletChange() {
        if (!this.rowForm || !this.rowForm.hmainid) {
            this.$modal.msgError('请先选择一条记录!')
            return
        }
        const rowData = this.rowForm // 使用 rowForm 而不是 rowList
        const currentPallet = rowData.托数 || 0
        // 将"请输入新托数"作为输入框的placeholder
        this.$prompt(`当前托数:${currentPallet}`, {
            confirmButtonText: '保存',
            cancelButtonText: '取消',
            inputValue: currentPallet,
            inputType: 'number',
            inputValidator: (value) => {
            if (!value) return '请输入托数!'
            const num = parseInt(value)
            if (isNaN(num)) return '请输入有效的数字!'
            if (num.toString() !== value) return '托数不能为小数!'
            if (num <= 0) return '托数必须大于0!'
            return true
            }
        }).then(({ value }) => {
            const newPallet = parseInt(value)
            return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', {
            hmainid: rowData.hmainid,
            newPallet: newPallet,
            operator: sessionStorage["HUserName"]
            })
        }).then(response => {
            if (response.data && response.data.count == 1) {
            this.$modal.msgSuccess('托数变更成功!')
            this.onSearch()
            this.rowForm = null
            } else {
            this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
            }
        }).catch(error => {
            if (error !== 'cancel') {
            this.$modal.msgError('操作失败:' + error.message)
            }
        })
        },
        onRowClick(row) {
            this.$nextTick(() => {
                const table = this.$refs.mainTable;
src/views/KCGL/MoveStockBill/Kf_MoveStockBillList.vue
@@ -114,6 +114,10 @@
          @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-Pallet" size="mini" :disabled="single" @click="set_PalletChange">托数变更
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single"
          @click="handleEdit(row = rowForm, OperationType = 1, copyType = 1)">复制</el-button>
      </el-col>
@@ -642,6 +646,50 @@
      });
    },
    //#endregion
           set_PalletChange() {
      if (!this.rowForm || !this.rowForm.hmainid) {
        this.$modal.msgError('请先选择一条记录!')
        return
      }
      const rowData = this.rowForm // 使用 rowForm 而不是 rowList
      const currentPallet = rowData.托数 || 0
      // 将"请输入新托数"作为输入框的placeholder
      this.$prompt(`当前托数:${currentPallet}`, {
        confirmButtonText: '保存',
        cancelButtonText: '取消',
        inputValue: currentPallet,
        inputType: 'number',
        inputValidator: (value) => {
          if (!value) return '请输入托数!'
          const num = parseInt(value)
          if (isNaN(num)) return '请输入有效的数字!'
          if (num.toString() !== value) return '托数不能为小数!'
          if (num <= 0) return '托数必须大于0!'
          return true
        }
      }).then(({ value }) => {
        const newPallet = parseInt(value)
        return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', {
          hmainid: rowData.hmainid,
          newPallet: newPallet,
          operator: sessionStorage["HUserName"]
        })
      }).then(response => {
        if (response.data && response.data.count == 1) {
          this.$modal.msgSuccess('托数变更成功!')
          this.getList()
        } else {
          this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
        }
      }).catch(error => {
        if (error !== 'cancel') {
          this.$modal.msgError('操作失败:' + error.message)
        }
      })
    },
    //#region 列设置
    handleRowHide() {
src/views/ProductInBill/Kf_ProductInBillList.vue
@@ -114,6 +114,10 @@
          @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-Pallet" size="mini" :disabled="single" @click="set_PalletChange">托数变更
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single"
          @click="handleEdit(row = rowForm, OperationType = 1, copyType = 1)">复制</el-button>
      </el-col>
@@ -651,6 +655,50 @@
      this.rowHideShow = true
      this.openRowHide = true
    },
       set_PalletChange() {
      if (!this.rowForm || !this.rowForm.hmainid) {
        this.$modal.msgError('请先选择一条记录!')
        return
      }
      const rowData = this.rowForm // 使用 rowForm 而不是 rowList
      const currentPallet = rowData.托数 || 0
      // 将"请输入新托数"作为输入框的placeholder
      this.$prompt(`当前托数:${currentPallet}`, {
        confirmButtonText: '保存',
        cancelButtonText: '取消',
        inputValue: currentPallet,
        inputType: 'number',
        inputValidator: (value) => {
          if (!value) return '请输入托数!'
          const num = parseInt(value)
          if (isNaN(num)) return '请输入有效的数字!'
          if (num.toString() !== value) return '托数不能为小数!'
          if (num <= 0) return '托数必须大于0!'
          return true
        }
      }).then(({ value }) => {
        const newPallet = parseInt(value)
        return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', {
          hmainid: rowData.hmainid,
          newPallet: newPallet,
          operator: sessionStorage["HUserName"]
        })
      }).then(response => {
        if (response.data && response.data.count == 1) {
          this.$modal.msgSuccess('托数变更成功!')
          this.getList()
        } else {
          this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
        }
      }).catch(error => {
        if (error !== 'cancel') {
          this.$modal.msgError('操作失败:' + error.message)
        }
      })
    },
    rowSetClose(val) {
      this.rowHideShow = false
      this.tableShow = true
src/views/sell/sellOut/sellOutBill.vue
@@ -242,6 +242,14 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-Pallet" size="mini" :disabled="single" @click="set_PalletChange">托数变更
        </el-button>
      </el-col>
       <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-Pallet" size="mini" :disabled="single" @click="set_HTagCount">贴标签数
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-document-copy"
@@ -1012,6 +1020,111 @@
      }
      this.getList();
    },
    set_HTagCount() {
      if (!this.rowForm || !this.rowForm.hmainid) {
        this.$modal.msgError('请先选择一条记录!')
        return
      }
      const rowData = this.rowForm // 使用 rowForm 而不是 rowList
      const currentPallet = rowData.贴标签数 || 0
      // 将"请输入新托数"作为输入框的placeholder
      this.$prompt(`当前贴标签数:${currentPallet}`, {
        confirmButtonText: '保存',
        cancelButtonText: '取消',
        inputValue: currentPallet,
        inputType: 'number',
        inputValidator: (value) => {
          if (!value) return '请输入贴标签数!'
          const num = parseInt(value)
          if (isNaN(num)) return '请输入有效的数字!'
          if (num.toString() !== value) return '贴标签数不能为小数!'
          if (num <= 0) return '贴标签数必须大于0!'
          return true
        }
      }).then(({ value }) => {
        const newPallet = parseInt(value)
        return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdateHTagCount', {
          hmainid: rowData.hmainid,
          newPallet: newPallet,
          operator: sessionStorage["HUserName"]
        })
      }).then(response => {
        if (response.data && response.data.count == 1) {
          this.$modal.msgSuccess('贴标签数变更成功!')
          // 1. 先清除选中状态
          this.$refs.tableData.clearSelection()
          // 2. 清除 rowForm
          this.rowForm = {}
          // 3. 重置选中状态变量
          this.single = true
          this.multiple = true
          this.ids = []
          this.getList()
        } else {
          this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
        }
      }).catch(error => {
        if (error !== 'cancel') {
          this.$modal.msgError('操作失败:' + error.message)
        }
      })
    },
     set_PalletChange() {
      if (!this.rowForm || !this.rowForm.hmainid) {
        this.$modal.msgError('请先选择一条记录!')
        return
      }
      const rowData = this.rowForm // 使用 rowForm 而不是 rowList
      const currentPallet = rowData.托数 || 0
      // 将"请输入新托数"作为输入框的placeholder
      this.$prompt(`当前托数:${currentPallet}`, {
        confirmButtonText: '保存',
        cancelButtonText: '取消',
        inputValue: currentPallet,
        inputType: 'number',
        inputValidator: (value) => {
          if (!value) return '请输入托数!'
          const num = parseInt(value)
          if (isNaN(num)) return '请输入有效的数字!'
          if (num.toString() !== value) return '托数不能为小数!'
          if (num <= 0) return '托数必须大于0!'
          return true
        }
      }).then(({ value }) => {
        const newPallet = parseInt(value)
        return axios.post(this.$baseUrl + '/Kf_POStockInBill/UpdatePallet', {
          hmainid: rowData.hmainid,
          newPallet: newPallet,
          operator: sessionStorage["HUserName"]
        })
      }).then(response => {
        if (response.data && response.data.count == 1) {
          this.$modal.msgSuccess('托数变更成功!')
             // 1. 先清除选中状态
          this.$refs.tableData.clearSelection()
          // 2. 清除 rowForm
          this.rowForm = {}
          // 3. 重置选中状态变量
          this.single = true
          this.multiple = true
          this.ids = []
          this.getList()
        } else {
          this.$modal.msgError('错误:' + (response.data.Message || '保存失败'))
        }
      }).catch(error => {
        if (error !== 'cancel') {
          this.$modal.msgError('操作失败:' + error.message)
        }
      })
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.sWhere = "";