Jelajahi Sumber

新增调回单

chenrui 3 tahun lalu
induk
melakukan
0c47b1093d

+ 10 - 8
src/views/numsGoodsShelves/shelfMonitoring/addModal.vue

@@ -28,16 +28,16 @@
         :pagination="false"
         bordered>
         <!-- 调回数量 -->
-        <template slot="outQty" slot-scope="text, record">
+        <template slot="confirmQty" slot-scope="text, record">
           <a-input-number
             size="small"
-            id="shelfMonitoring-add-outQty"
-            v-model="record.outQty"
+            id="shelfMonitoring-add-confirmQty"
+            v-model="record.confirmQty"
             :precision="0"
             :min="0"
             :max="record.qty"
             placeholder="请输入"
-            :style="{width: '100%', color: record.outQty==0 ? 'red': ''}" />
+            :style="{width: '100%', color: record.confirmQty==0 ? 'red': ''}" />
         </template>
         <!-- 操作 -->
         <template slot="action" slot-scope="text, record, index">
@@ -89,7 +89,7 @@ export default {
         { title: '当前库存', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '最大库容', dataIndex: 'maxQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '滞销天数', dataIndex: 'unsalableDays', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '调货数量', scopedSlots: { customRender: 'outQty' }, width: '10%', align: 'center' },
+        { title: '调货数量', scopedSlots: { customRender: 'confirmQty' }, width: '10%', align: 'center' },
         { title: '单位', dataIndex: 'productUnit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
       ],
@@ -103,11 +103,13 @@ export default {
       const arr = []
       const arrInd = []
       this.listData.map((item, index) => {
-        if (item.outQty) {
+        if (item.confirmQty) {
           arr.push({
+            shelfSn: this.nowData && this.nowData.shelfInfo && this.nowData.shelfInfo.shelfSn,
             shelfPlaceSn: item.shelfPlaceSn,
             productSn: item.productSn,
-            qty: item.outQty
+            productCode: item.productCode,
+            qty: item.confirmQty
           })
         } else {
           arrInd.push(index + 1)
@@ -151,7 +153,7 @@ export default {
         if (this.nowData && this.nowData.list) {
           this.nowData.list.map((item, index) => {
             item.no = index + 1
-            item.outQty = item.qty
+            item.confirmQty = item.qty
           })
         }
         this.listData = JSON.parse(JSON.stringify(this.nowData && this.nowData.list || []))

+ 1 - 1
src/views/numsGoodsShelves/shelfMonitoring/list.vue

@@ -98,7 +98,7 @@
             <a-divider type="vertical" style="background: #FF7D0C;width: 3px;height: 16px;" />
             <span>{{ shelfName || '--' }}</span>
           </div>
-          <!-- <a-button type="primary" class="button-error" id="shelfMonitoringList-export" @click="handleAddBack">新增调回单</a-button> -->
+          <a-button type="primary" class="button-error" id="shelfMonitoringList-export" @click="handleAddBack">新增调回单</a-button>
           <span style="margin-left: 5px">
             <template v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length > 0">
               {{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}