Browse Source

feat: 红冲调整

zhangyuhan 3 months ago
parent
commit
c5f86125d0
2 changed files with 17 additions and 23 deletions
  1. 6 17
      src/components/newTableLists.vue
  2. 11 6
      src/views/order/components/new-detailModel.vue

+ 6 - 17
src/components/newTableLists.vue

@@ -203,23 +203,12 @@ export default {
       const payWay = v.pay_way;
       const courseStatus = v.course_status;
 
-      if (orderStatus === -2) {
-        v._disabled = true;
-        return;
-            }
-
-      if (source === 'qmx') { // 线下
-        v._disabled = returnStatus === 1 || auditStatus !== 3 ? true : false;
-            } else {// 线上
-        if (returnStatus === 1) {
-          v._disabled = true;
-        } else if ((payWay === 'transferAccounts' || payWay === '对公转账') && courseStatus === 4) {
-          v._disabled = orderStatus === -2 ? true : false;
-              } else {
-          v._disabled = true;
-                }
-              }
-          });
+      if (auditStatus !== 3 && returnStatus !== 1) {
+        v._disabled = false
+      } else {
+        v._disabled = true
+      }
+    })
   },
   // 发送输入事件
   emitInput(data) {

+ 11 - 6
src/views/order/components/new-detailModel.vue

@@ -143,20 +143,23 @@
         <FormItem label="红冲类型">
           <RadioGroup v-model="models.redType" @on-change="checkAllGroupChange">
             <Radio label="签约主体红冲"></Radio>
-            <Radio label="金额红冲"></Radio>
+            <Radio label="合同金额红冲"></Radio>
+            <Radio label="销售费用红冲"></Radio>
           </RadioGroup>
         </FormItem>
         <p class="correctionLabel" v-if="redCorrection == 1">请输入该订单最终准确的信息:</p>
-        <FormItem label="签约主体" v-if="redCorrection == 3 || redCorrection == 1">
+        <FormItem label="签约主体" v-if=" redCorrection == 1">
           <Input v-model="signingSubject" type="text" :maxlength="50" disabled placeholder="请输入签约主体"></Input>
         </FormItem>
-
-        <FormItem label="修正原因" v-if="redCorrection == 1">
+        <FormItem label="销售费用" v-if="redCorrection == 3">
+          <Input v-model="models.commission" type="text" :maxlength="9" placeholder="请输入销售费用"></Input>
+        </FormItem>
+        <FormItem label="修正原因" v-if="redCorrection == 3 || redCorrection == 1">
           <Select placeholder="请选择修正原因" clearable v-model="models.correctionType">
             <Option v-for="item in correctionType" :value="item.v" :key="item.v">{{ item.n }}</Option>
           </Select>
         </FormItem>
-        <FormItem label="" v-if="redCorrection == 1">
+        <FormItem label="" v-if="redCorrection == 3 || redCorrection == 1">
           <Input v-model="models.correctionReason" v-if="models.correctionType === '其他'" type="textarea" size="large"
             :autosize="{ minRows: 2, maxRows: 5 }" placeholder="请输入修正原因"></Input>
         </FormItem>
@@ -629,7 +632,7 @@ export default {
       async doSubmitHc () {
 
       // 签约主体走旧逻辑
-      if (this.redCorrection == 1) {
+      if (this.redCorrection == 1 || this.redCorrection == 3) {
         return this.correctionSave()
       }
 
@@ -707,6 +710,8 @@ export default {
           this.redCorrection = 1
         } else if (data === '金额红冲') {
           this.redCorrection = 2
+        } else if (data === '销售费用红冲') {
+          this.redCorrection = 3
         }
         // 以下为多选时判断
         // if (data.length === 1 && data[0] === '签约主体红冲') {