瀏覽代碼

fix:修改

maliang 1 周之前
父節點
當前提交
b79339ca75
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jshERP-web/src/views/bill/mixins/BillModalMixin.js

+ 2 - 2
jshERP-web/src/views/bill/mixins/BillModalMixin.js

@@ -478,11 +478,11 @@ export const BillModalMixin = {
     async setProPosition(barCode, depotId, event){
       const { row, column, value, target } = event
       findStockByDepotAndBarCode({ depotId: depotId, barCode: barCode }).then(res => {
-        const {position,stock} = res.data
+        const {position='',stock} = res.data
         target.setValues([
           {
             rowKey: row.id,
-            values: { position,inventory: stock },
+            values: { position:position,inventory: stock },
           },
         ])
         target.$forceUpdate()