Преглед изворни кода

系数管理+外协价格库修改

yuhan пре 1 година
родитељ
комит
2e3828a596

+ 7 - 2
src/views/module_kzks/costModelWxPrice/CostModelWxPriceList.vue

@@ -14,6 +14,11 @@
               <a-input placeholder="请输入外协单位" v-model="queryParam.wxCompany"></a-input>
             </a-form-item>
           </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="计量单位">
+              <a-input placeholder="请输入计量单位" v-model="queryParam.unit"></a-input>
+            </a-form-item>
+          </a-col>
           <template v-if="toggleSearchStatus">
             <a-col :xl="6" :lg="7" :md="8" :sm="24">
               <a-form-item label="计量单位">
@@ -25,10 +30,10 @@
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
               <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
-              <a @click="handleToggleSearch" style="margin-left: 8px">
+              <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
                 {{ toggleSearchStatus ? '收起' : '展开' }}
                 <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
-              </a>
+              </a> -->
             </span>
           </a-col>
         </a-row>

+ 1 - 1
src/views/module_kzks/costModelWxPrice/modules/CostModelWxPriceForm.vue

@@ -15,7 +15,7 @@
           </a-col>
           <a-col :span="24">
             <a-form-model-item label="单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="danjia">
-              <a-input v-model="model.danjia" placeholder="请输入单价"  ></a-input>
+              <a-input-number v-model="model.danjia" :min="0"  placeholder="请输入单价" style="width: 100%;"/>
             </a-form-model-item>
           </a-col>
           <a-col :span="24">

+ 10 - 5
src/views/module_kzks/costModelXishu/CostModelXishuList.vue

@@ -4,6 +4,11 @@
     <div class="table-page-search-wrapper">
       <a-form layout="inline" @keyup.enter.native="searchQuery">
         <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="成本类型">
+              <a-input placeholder="请输入成本类型" v-model="queryParam.costName"></a-input>
+            </a-form-item>
+          </a-col>
         </a-row>
       </a-form>
     </div>
@@ -126,11 +131,11 @@
             align:"center",
             dataIndex: 'costName'
           },
-          {
-            title:'成本类型value',
-            align:"center",
-            dataIndex: 'costValue'
-          },
+          // {
+          //   title:'成本类型value',
+          //   align:"center",
+          //   dataIndex: 'costValue'
+          // },
           {
             title:'系数',
             align:"center",

+ 11 - 5
src/views/module_kzks/costModelXishu/modules/CostModelXishuForm.vue

@@ -8,14 +8,14 @@
               <a-input v-model="model.costName" placeholder="请输入成本类型"  ></a-input>
             </a-form-model-item>
           </a-col>
-          <a-col :span="24">
+          <!-- <a-col :span="24">
             <a-form-model-item label="成本类型value" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costValue">
               <a-input v-model="model.costValue" placeholder="请输入成本类型value"  ></a-input>
             </a-form-model-item>
-          </a-col>
+          </a-col> -->
           <a-col :span="24">
             <a-form-model-item label="系数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xishu">
-              <a-input v-model="model.xishu" placeholder="请输入系数"  ></a-input>
+              <a-input-number v-model="model.xishu" :min="0" :step="0.1" style="width: 100%;"/>
             </a-form-model-item>
           </a-col>
         </a-row>
@@ -44,7 +44,7 @@
     data () {
       return {
         model:{
-         },
+        },
         labelCol: {
           xs: { span: 24 },
           sm: { span: 5 },
@@ -55,12 +55,18 @@
         },
         confirmLoading: false,
         validatorRules: {
+          costName: [
+            { required: true, message: '请输入成本类型!'},
+          ],
+          xishu: [
+            { required: true, message: '请输入系数!'},
+          ],
         },
         url: {
           add: "/costModelXishu/costModelXishu/add",
           edit: "/costModelXishu/costModelXishu/edit",
           queryById: "/costModelXishu/costModelXishu/queryById"
-        }
+        },
       }
     },
     computed: {