Browse Source

燃料动力项目名称查询条件改为输入框

ljb 10 months ago
parent
commit
91399e45d3

+ 4 - 2
src/api/basicResource/kyAssetList.js

@@ -30,11 +30,13 @@ export const update = (row) => {
 }
 
 
-export const remove = (data) => {
+export const remove = (ids) => {
   return request({
     url: '/api/kd-scientific/zc/remove',
     method: 'post',
-    data
+    params: {
+      ids
+    }
   })
 }
 

+ 19 - 9
src/option/yfCostManage/basicDataSetting/pickingDetail.js

@@ -43,6 +43,22 @@ export default {
       ],
     },
     {
+      label: '研发项目名称',
+      prop: 'xmId',
+      type: 'select',
+      span: 24,
+      minWidth: 160,
+      showOverflowTooltip: true,
+      rules: [
+        {
+          required: true,
+          message: '请选择研发项目名称',
+          trigger: 'blur',
+        },
+      ],
+      hide: true,
+    },
+    {
       label: '研发项目编号',
       prop: 'xmbh',
       type: 'input',
@@ -55,19 +71,13 @@ export default {
     },
     {
       label: '研发项目名称',
-      prop: 'xmId',
-      type: 'select',
+      prop: 'xmmc',
+      type: 'input',
       span: 24,
       minWidth: 160,
       search: true,
       showOverflowTooltip: true,
-      rules: [
-        {
-          required: true,
-          message: '请选择研发项目名称',
-          trigger: 'blur',
-        },
-      ],
+      display: false
     },
     {
       label: '类型',

+ 0 - 4
src/views/yf-cost-manage/basic-data-setting/picking-detail.vue

@@ -41,10 +41,6 @@
         </div>
       </template>
 
-      <template slot="xmId" slot-scope="{ row }">
-        <span>{{ row.xmmc }}</span>
-      </template>
-
       <template slot="xmIdForm">
         <project-select placeholder="请选择项目名称" v-model="form.xmId" @change="handleProjectChange"></project-select>
       </template>