linwenxin 4 kuukautta sitten
vanhempi
commit
abfd65b7ce

+ 2 - 3
src/views/salesPurchasing/goodsPurchasedStored/index.vue

@@ -125,7 +125,7 @@ export default {
         // 启用勾选列
         selectColumn: true,
         reserveSelection: true,
-        'row-key': 'id'
+        'row-key': 'goodsPlanItemId'
       },
       tableEventsTes: {
         'selection-change': this.selectionChangeTes
@@ -209,7 +209,6 @@ export default {
           formItemAttributes: {
             label: '计划单明细',
             prop: 'planItems',
-            'label-width': '0px',
             rules: this.formData.isPlan ? [...required] : []
           },
           render: (h, { props, onInput }) => {
@@ -308,7 +307,7 @@ export default {
 
     quedingtianjia() {
       this.tesXuanXiang.map(item => {
-        if (!this.formData.planItems.find(v => v.goodsPlanId == item.id)) {
+        if (!this.formData.planItems.find(v => v.goodsPlanItemId == item.goodsPlanItemId)) {
           this.formData.planItems.unshift({
             amount: '', //
             brandId: item.brandId,

+ 2 - 1
src/views/salesPurchasing/mixins/jihuamingxi.js

@@ -113,7 +113,8 @@ export default {
         {
           columnAttributes: {
             label: '计划采购数量',
-            prop: 'qty'
+            prop: 'qty',
+            width: '120px'
           }
         },
         {

+ 2 - 1
src/views/salesPurchasing/mixins/jihuamingxith.js

@@ -120,7 +120,8 @@ export default {
         {
           columnAttributes: {
             label: '计划采购数量',
-            prop: 'qty'
+            prop: 'qty',
+            width: '120px'
           }
         },
         {