caojunjie 2 gadi atpakaļ
vecāks
revīzija
ff4b227799
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      src/views/Warehousing/outStock/AddOrUpdate.vue

+ 4 - 4
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -8574,8 +8574,8 @@ export default {
       }).then(() => {
         feesCheck(row.fId).then(res => {
           this.$message.success('请核成功')
-          res.data.fFeeUnitid = res.data.fFeeunitid.toString()
-          res.data.fStltypeid = res.data.fStltypeid.toString()
+          res.data.fFeeUnitid = res.data.fFeeunitid?res.data.fFeeunitid.toString():''
+          res.data.fStltypeid = res.data.fStltypeid?res.data.fStltypeid.toString():''
           if (res.data.fDc == 'D') {
             let index = this.warehouseDrList.findIndex(item => item.fId == res.data.fId)
             this.warehouseDrList.splice(index, 1, res.data)
@@ -8594,8 +8594,8 @@ export default {
         type: "warning",
       }).then(() => {
         revokefeeCheck(row.fId).then(res => {
-          res.data.fFeeUnitid = res.data.fFeeunitid.toString()
-          res.data.fStltypeid = res.data.fStltypeid.toString()
+          res.data.fFeeUnitid = res.data.fFeeunitid?res.data.fFeeunitid.toString():''
+          res.data.fStltypeid = res.data.fStltypeid?res.data.fStltypeid.toString():''
           this.$message.success('操作成功')
           if (res.data.fDc == 'D') {
             let index = this.warehouseDrList.findIndex(item => item.fId == res.data.fId)