Ver Fonte

成本分配表-更新按钮

jbb há 2 anos atrás
pai
commit
cc04facce0
1 ficheiros alterados com 11 adições e 4 exclusões
  1. 11 4
      src/views/reportForms/cost-allocation-table.vue

+ 11 - 4
src/views/reportForms/cost-allocation-table.vue

@@ -13,7 +13,7 @@
                   placeholder="请输入计划单号"
                   enter-button
                   v-model="detailsPlanNum.planNum"
-                  @search="onSearch"
+                  @search="onSearch('query')"
                   :loading="this.loading"
                   v-show='showSelect==0'
                 />
@@ -21,9 +21,10 @@
                   placeholder="请输入计划单号"
                   v-text="detailsPlanNum.planNum"
                   enter-button
-                  @search="onSearch($event,'0')"
+                  @search="onSearch('query')"
                   v-show='showSelect==1'
                 />
+                <a-button type="primary" :disabled="edit == '0'" @click="onSearch('queryNew')" class="noprint">更新</a-button>
               </a-form-model-item>
             </a-col>
             <!-- 回显以下【备注】需要输入,后进行保存 disabled -->
@@ -335,11 +336,11 @@ export default {
             },
   methods: {
     // 【计划单号】 搜索
-    onSearch() {
+    onSearch(data) {
       this.$nextTick(() => {
         // TODO:接口完善后,type 应改为 add(暂时为了回显数据)
         this.loading = true
-        seachPlanNum({ plannum: this.detailsPlanNum.planNum, type: 'query' }).then(res => {
+        seachPlanNum({ plannum: this.detailsPlanNum.planNum, type: data }).then(res => {
           if (res.success) {
             this.PrintButton = false
              this.loading = false
@@ -621,4 +622,10 @@ export default {
 // /deep/ .ant-drawer-body {
 //   padding: 10px;
 // }
+/deep/ form :not(.ant-input-group-wrapper) > .ant-input-group, form .ant-input-group-wrapper{
+  width: 65% !important;
+}
+/deep/ .ant-input-group{
+  padding-right: 6px !important;
+}
 </style>