Ver Fonte

fix:修复BUG

Tang há 3 anos atrás
pai
commit
0c5e21e35f

+ 2 - 2
src/components/tableList.vue

@@ -1303,9 +1303,9 @@
                 : scope.row[item.prop] === 0
                 ? "待支付"
                 : scope.row[item.prop] === 1
-                ? `已支付(${scope.row["goodsReceived"]})`
+                ? `已支付(${scope.row["goodsReceived"]})`
                 : scope.row[item.prop] === 2
-                ? `已退款(${scope.row["goodsReceived"]})`
+                ? `已退款(${scope.row["goodsReceived"]})`
                 : ""
             }}
           </div>

+ 1 - 0
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/setGoodsList.vue

@@ -236,6 +236,7 @@ export default {
       if (type == 3 || type == 4) {
         data.businessIds = this.oldObj.businessId;
       }
+      data.goodsStatus = 1
       this.$api.inquireGoods(data).then((res) => {
         res.rows.forEach((item) => {
           item.subjectId = subjectId;

+ 1 - 1
src/views/Marketing/order/offlineOrder/index.vue

@@ -109,7 +109,7 @@ export default {
           hidden: true,
         },
         {
-          label: "学员",
+          label: "学员数量",
           prop: "userNum",
           hidden: true,
         },

+ 7 - 1
src/views/resource/baseManageInfos/resource/professional/index.vue

@@ -50,6 +50,7 @@
             :key="indexs"
             :label="items.label"
             :prop="items.prop"
+            :required="items.required"
           >
             <el-radio-group
               v-if="items.scope === 'status'"
@@ -241,6 +242,7 @@ export default {
         {
           label: "适用项目类型",
           scope: "certificate",
+          required: true,
         },
         {
           label: "",
@@ -304,7 +306,7 @@ export default {
     this.BQListApi();
     this.initOptions();
   },
-  activated(){
+  activated() {
     this.search();
     this.BQListApi();
     this.initOptions();
@@ -457,6 +459,10 @@ export default {
     submit(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
+          if (!this.cauType.length) {
+            this.$message.warning("请添加适用项目类型");
+            return;
+          }
           this.rulesTableSumbit();
         } else {
           return false;