zhouhao 2 vuotta sitten
vanhempi
commit
939d354c47

+ 2 - 12
src/views/sales_control/sales_management/components/return_sales_details.vue

@@ -4,12 +4,7 @@
     <return-sales-header ref="header" :details="details" />
     <sales-table :dataList="dataList" :column="column" @handleSelection="handleSelection">
 
-      <template #events>
-        <div>
-          <el-button type="primary" v-if="details.status==1" size="mini" @click="handleInform(2)">通知退货</el-button>
-          <el-button size="mini" v-if="details.status==2">撤销发货</el-button>
-        </div>
-      </template>
+
 
 
 <!--      <template v-slot:operation="{item:{row,$index}}">-->
@@ -67,12 +62,7 @@ export default {
           label: '规格型号',
           width: '300'
         },
-        {
-          prop: 'qty',
-          label: '发货数量',
-          width: '180'
-        },
-
+       
         {
           prop: 'qty',
           label: '已退数量',

+ 7 - 26
src/views/sales_control/sales_management/components/return_sales_form.vue

@@ -94,26 +94,15 @@ export default {
           label: '规格型号',
           width: '300'
         },
+
         {
           prop: 'qty',
           align: 'left',
-          label: '发货数量',
-          width: '180'
-        },
-        {
-          prop: 'refundQty',
-          align: 'left',
           label: '退货数量',
           width: '180',
           isInput: true
         },
-        {
-          prop: 'diffQty',
-          align: 'left',
-          label: '已退数量',
-          width: '180'
 
-        },
         // {
         //   prop: 'volume',
         //   label: '体积',
@@ -248,11 +237,11 @@ export default {
       for (let i = 0; i < this.dataList.length; i++) {
         this.dataList[i].id = ''
         this.dataList[i].directFlag = this.dataList[i].flag
-        if (Number(this.dataList[i].refundQty) < 0 || !this.dataList[i].refundQty) {
+        if (Number(this.dataList[i].qty) < 0 || !this.dataList[i].qty) {
           this.$errorMsg(`第${i + 1}产品退货数量有误`)
           return
         }
-        this.dataList[i].qty = this.dataList[i].refundQty
+
       }
 
       const params = {
@@ -282,29 +271,21 @@ export default {
               label: '规格型号',
               width: '300'
             },
+
             {
               prop: 'qty',
               align: 'left',
-              label: '发货数量',
-              width: '180'
-            },
-            {
-              prop: 'refundQty',
-              align: 'left',
               label: '退货数量',
               width: '180',
-            },
-            {
-              prop: 'diffQty',
-              align: 'left',
-              label: '已退数量',
-              width: '180'
 
             },
+
+
             {
               prop: 'notes',
               label: '备注',
               width: '180',
+
               type: 'text'
             }
           ]