Browse Source

客户需求管理工作台

develop
wangxy 2 years ago
parent
commit
ebb37d3d90
1 changed files with 36 additions and 3 deletions
  1. +36
    -3
      src/components/queryComponent/index.vue

+ 36
- 3
src/components/queryComponent/index.vue View File

@ -30,13 +30,27 @@
<el-radio v-model="status" label="0">未发布</el-radio> <el-radio v-model="status" label="0">未发布</el-radio>
<el-radio v-model="status" label="1">已发布</el-radio> <el-radio v-model="status" label="1">已发布</el-radio>
</div> </div>
<el-input
<!-- <el-input
v-if="isShowAddButton" v-if="isShowAddButton"
v-model="VersionID" v-model="VersionID"
placeholder="检索条件:版本号" placeholder="检索条件:版本号"
clearable clearable
style="width: 300px;margin-bottom:10px;" style="width: 300px;margin-bottom:10px;"
/>
/> -->
<el-select
v-if="isShowAddButton"
style="width: 300px;margin-bottom:10px;"
v-model="VersionID"
filterable
placeholder="请选择版本号"
>
<el-option
v-for="item in getSpecifiedVersion"
:key="item['AP_CustDemandVerHead-VersionId']"
:label="transLabelObj[item['AP_CustDemandVerHead-VersionId']]"
:value="item['AP_CustDemandVerHead-VersionId']"
/>
</el-select>
<el-input <el-input
v-model="SearchId" v-model="SearchId"
:placeholder="isShowAddButton ? '检索条件:零件号' : '检索条件:零件号/版本号'" :placeholder="isShowAddButton ? '检索条件:零件号' : '检索条件:零件号/版本号'"
@ -81,7 +95,7 @@
</template> </template>
<script> <script>
import { put, post } from "@/server/api.js";
import { get, put, post } from "@/server/api.js";
// isShowAddButton: // isShowAddButton:
import uploadTemplate from "./upload.vue"; import uploadTemplate from "./upload.vue";
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
@ -103,9 +117,28 @@ export default {
valid: undefined, valid: undefined,
status: undefined, status: undefined,
isShowDialog: '', isShowDialog: '',
getSpecifiedVersion: [],
transLabelObj: {},
} }
}, },
created() {
this.getTransLabel()
this.getVersionOfCustom()
},
methods: { methods: {
getTransLabel() {
get('/user/week_to_date').then(({data})=>{
this.transLabelObj = data || {}
})
},
//
getVersionOfCustom() {
get(`/admin/ap/custdemandverhead/selectuinquelist`).then(({ code, data }) => {
if (code === 200) {
this.getSpecifiedVersion = data
}
})
},
// //
batchHandle() { batchHandle() {
if (this.batchImport.length === 0) { if (this.batchImport.length === 0) {


Loading…
Cancel
Save