Forráskód Böngészése

修改字段名称

xiaodai2022 2 éve
szülő
commit
c977876605

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/static/js/0.js


+ 42 - 41
src/views/goodStore/active/components/set-active-price-form.vue

@@ -33,25 +33,25 @@
                 disabled
               />
             </el-form-item>
-            <div style="display:flex">
+            <div style="display: flex">
               <el-form-item label="起订量" prop="moq_num" label-width="80px">
-              <el-input
-                v-model="ruleForm.moq_num"
-                disabled
-                placeholder="起订量"
-                maxlength="100"
-              />
-            </el-form-item>
-            <el-form-item label="成本单价" prop="cost_price" label-width="80px">
-              <el-input
-                v-model="ruleForm.cost_price"
-                disabled
-                placeholder="成本单价"
-                maxlength="100"
-              >
-                <template slot="append">元</template></el-input
-              >
-            </el-form-item>
+                <el-input
+                  v-model="ruleForm.moq_num"
+                  disabled
+                  placeholder="起订量"
+                  maxlength="100"
+                />
+              </el-form-item>
+              <el-form-item label="成本单价" prop="cost_price" label-width="80px">
+                <el-input
+                  v-model="ruleForm.cost_price"
+                  disabled
+                  placeholder="成本单价"
+                  maxlength="100"
+                >
+                  <template slot="append">元</template></el-input
+                >
+              </el-form-item>
             </div>
             <el-form-item label="非活动价" prop="sale_price" label-width="80px">
               <el-input
@@ -66,29 +66,29 @@
             <el-form-item label="是否使用结算单价" prop="is_activity">
               <el-select
                 v-model="ruleForm.is_activity"
-                style="width:100%"
-                placeholder="是否使用活动单价"
+                style="width: 100%"
+                placeholder="是否使用结算单价"
                 maxlength="100"
               >
-              <el-option value="0" label="否" />
-              <el-option value="1" label="是" />
-            </el-select>
+                <el-option value="0" label="否" />
+                <el-option value="1" label="是" />
+              </el-select>
             </el-form-item>
 
             <el-form-item label="结算单价" prop="settle_price" label-width="80px">
               <digital-input
-              :disabled="ruleForm.is_activity === '0'"
-              :values="ruleForm.is_activity === '0' ? '0' : ruleForm.settle_price"
-              :placeholder="'结算单价'"
-              :min="0"
-              :max="100000000000"
-              :position="'right'"
-              :precision="2"
-              :size="'large'"
-              :controls="false"
-              :append="'元'"
-              @reschange="budget_total_change"
-            />
+                :disabled="ruleForm.is_activity === '0'"
+                :values="ruleForm.is_activity === '0' ? '0' : ruleForm.settle_price"
+                :placeholder="'结算单价'"
+                :min="0"
+                :max="100000000000"
+                :position="'right'"
+                :precision="2"
+                :size="'large'"
+                :controls="false"
+                :append="'元'"
+                @reschange="budget_total_change"
+              />
             </el-form-item>
 
             <el-form-item label="活动价" prop="activity_price" label-width="80px">
@@ -142,8 +142,8 @@ export default {
         cost_price: "",
         sale_price: "",
         activity_price: "",
-        is_activity:'1',
-        settle_price:''
+        is_activity: "1",
+        settle_price: "",
       },
       rulesThis: this.rules,
       rules: {
@@ -171,8 +171,8 @@ export default {
     },
   },
   methods: {
-    budget_total_change(e){
-      this.ruleForm.settle_price = e + ''
+    budget_total_change(e) {
+      this.ruleForm.settle_price = e + "";
     },
     async initForm() {
       this.loading = true;
@@ -215,7 +215,8 @@ export default {
             // 刷新
             this.$emit("refresh", {
               ...model,
-              settle_price:this.ruleForm.is_activity === '0' ? '0' : this.ruleForm.settle_price
+              settle_price:
+                this.ruleForm.is_activity === "0" ? "0" : this.ruleForm.settle_price,
             });
           }
         } else {
@@ -228,7 +229,7 @@ export default {
 };
 </script>
 
-   <style lang="scss" scoped>
+<style lang="scss" scoped>
 .sort {
 }
 </style>

+ 17 - 39
src/views/goodStore/activeGood/index.vue

@@ -1,9 +1,6 @@
 <template>
   <div class="activeGood pagePadding">
-    <div
-      v-loading="loading"
-      v-if=" powers.some((i) => i == '001')"
-    >
+    <div v-loading="loading" v-if="powers.some((i) => i == '001')">
       <ex-table
         :table="table"
         :data="tableData"
@@ -77,16 +74,8 @@
                 ></el-input>
               </el-col>
 
-              <el-col
-                :span="3"
-                class="fr"
-                style="width: 66px; padding: 0 0 0 10px"
-              >
-                <el-button
-                  type="primary"
-                  :size="searchSize"
-                  @click="searchList"
-                >
+              <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
+                <el-button type="primary" :size="searchSize" @click="searchList">
                   刷新
                 </el-button>
               </el-col>
@@ -131,16 +120,8 @@
                   placeholder="活动名称"
                 ></el-input>
               </el-col>
-              <el-col
-                :span="3"
-                class="fr"
-                style="width: 66px; padding: 0 0 0 10px"
-              >
-                <el-button
-                  type="warning"
-                  :size="searchSize"
-                  @click="restSearch"
-                >
+              <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
+                <el-button type="warning" :size="searchSize" @click="restSearch">
                   重置
                 </el-button>
               </el-col>
@@ -152,14 +133,14 @@
             :size="tablebtnSize"
             :type="scope.row.status == '0' ? 'warning' : ''"
             v-text="
-              (statusOptions.find((item) => item.id == scope.row.status) || {})
-                .label || '--'
+              (statusOptions.find((item) => item.id == scope.row.status) || {}).label ||
+              '--'
             "
           ></el-tag>
         </template>
 
-        <template #is_activity="{scope}">
-          {{scope.row.is_activity === '1' ? '是' : '否'}}
+        <template #is_activity="{ scope }">
+          {{ scope.row.is_activity === "1" ? "是" : "否" }}
         </template>
 
         <template #operation="{ scope }">
@@ -187,7 +168,7 @@
 </template>
 <script>
 import asyncRequest from "@/apis/service/goodStore/activeGood";
-import {statusList} from "@/assets/js/statusList";
+import { statusList } from "@/assets/js/statusList";
 import roleLevel from "@/assets/js/roleLevel";
 import mixinPage from "@/mixins/elPaginationHandle";
 import { mapGetters } from "vuex";
@@ -205,9 +186,7 @@ export default {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
     powers() {
       const tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "activeGood"
-        ) || {};
+        this.$store.getters.btnList.find((item) => item.menu_route == "activeGood") || {};
       const { action } = tran ?? {};
       return action ?? [];
     },
@@ -279,14 +258,14 @@ export default {
           label: "起订量",
         },
         {
-          prop:'is_activity',
-          label:'是否使用活动价',
+          prop: "is_activity",
+          label: "是否使用结算单价",
           width: "110",
-          _slot_:'is_activity'
+          _slot_: "is_activity",
         },
         {
-          prop:'settle_price',
-          label:'结算单价'
+          prop: "settle_price",
+          label: "结算单价",
         },
 
         // {
@@ -475,5 +454,4 @@ export default {
 };
 </script>
 
-<style lang="scss" scoped>
-</style>
+<style lang="scss" scoped></style>

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott