|
@@ -6,29 +6,23 @@
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="单据编码">
|
|
|
<el-input
|
|
|
- v-model="queryParams.code"
|
|
|
+ v-model.trim="queryParams.code"
|
|
|
size="small"
|
|
|
+ clearable
|
|
|
style="width: 200px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-form-item label="供应仓库">
|
|
|
- <el-select size="small" v-model="queryParams.warehouse" @focus="chooseOrg('WAREHOUSE_PARAM', true, '供应仓库')" style="width: 200px">
|
|
|
- <el-option v-for="item in houseOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
<el-form-item label="需求客户">
|
|
|
- <el-select size="small" v-model="queryParams.customer" @focus="chooseOrg('CUSTOMER_PARAM', true, '选择客户')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="queryParams.customer" @focus="chooseOrg('CUSTOMER_PARAM', true, '选择客户')" style="width: 200px">
|
|
|
<el-option v-for="item in customerOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="是否客户指定">
|
|
|
- <el-select v-model="queryParams.isProcess" size="small" style="width: 200px" clearable placeholder="请选择">
|
|
|
+ <el-select clearable v-model="queryParams.isProcess" size="small" style="width: 200px" clearable placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
@@ -50,21 +44,14 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="需求人员">
|
|
|
- <el-select size="small" v-model="queryParams.demandPersonal" @focus="chooseOrg('CONTACTS_PARAM', true, '需求人员')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="queryParams.demandPersonal" @focus="chooseOrg('CONTACTS_PARAM', true, '需求人员')" style="width: 200px">
|
|
|
<el-option v-for="item in personOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-form-item label="供应货位">
|
|
|
- <el-select size="small" v-model="queryParams.goodsAllocation" @focus="chooseOrg('ALLOCATION_PARAM', true, '供应货位')" style="width: 200px">
|
|
|
- <el-option v-for="item in goodsOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
<el-form-item label="单据来源">
|
|
|
- <el-select v-model="queryParams.source" size="small" style="width: 200px">
|
|
|
+ <el-select clearable v-model="queryParams.source" size="small" style="width: 200px">
|
|
|
<el-option v-for="dict in dict.type.sys_bill_source" :key="dict.value" :label="dict.label" :value="dict.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -75,7 +62,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="业务类型">
|
|
|
- <el-select v-model="queryParams.billType" size="small" style="width: 200px">
|
|
|
+ <el-select clearable v-model="queryParams.billType" size="small" style="width: 200px">
|
|
|
<el-option v-for=" dict in dict.type.sys_business" :key="dict.value" :label="dict.label" :value="dict.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -83,7 +70,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="需求部门">
|
|
|
- <el-select v-model="queryParams.demandDept" size="small" :disabled="disable" @focus="chooseOrg('DEPT_PARAM', true, '需求部门')" style="width: 200px">
|
|
|
+ <el-select clearable v-model="queryParams.demandDept" size="small" :disabled="disable" @focus="chooseOrg('DEPT_PARAM', true, '需求部门')" style="width: 200px">
|
|
|
<el-option
|
|
|
v-for="item in deptOptions"
|
|
|
:key="item.id"
|
|
@@ -98,6 +85,7 @@
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.demandDate"
|
|
|
type="date"
|
|
|
+ clearable
|
|
|
value-format="yyyy-MM-dd"
|
|
|
size="small"
|
|
|
style="width: 200px"
|
|
@@ -108,7 +96,7 @@
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="备注">
|
|
|
<el-input
|
|
|
- v-model="queryParams.remark"
|
|
|
+ v-model.trim="queryParams.remark"
|
|
|
size="small"
|
|
|
clearable
|
|
|
style="width: 200px"
|
|
@@ -271,11 +259,9 @@ export default {
|
|
|
page: '',
|
|
|
queryParams: {
|
|
|
code: '',
|
|
|
- warehouse: '',
|
|
|
customer: '',
|
|
|
isProcess: '',
|
|
|
demandPersonal: '',
|
|
|
- goodsAllocation: '',
|
|
|
source: '',
|
|
|
billType: '',
|
|
|
demandDept: '',
|
|
@@ -290,14 +276,12 @@ export default {
|
|
|
title: ''
|
|
|
},
|
|
|
options: [{
|
|
|
- value: '0', label: '是',
|
|
|
+ value: 'Y', label: '是',
|
|
|
}, {
|
|
|
- value: '2', label: '否'
|
|
|
+ value: 'N', label: '否'
|
|
|
}],
|
|
|
- houseOptions: [],
|
|
|
customerOptions: [],
|
|
|
personOptions: [],
|
|
|
- goodsOptions: [],
|
|
|
deptOptions: [],
|
|
|
tableList: [],
|
|
|
total: 0,
|
|
@@ -359,11 +343,9 @@ export default {
|
|
|
resetList() {
|
|
|
this.queryParams = {
|
|
|
code: '',
|
|
|
- warehouse: '',
|
|
|
customer: '',
|
|
|
isProcess: '',
|
|
|
demandPersonal: '',
|
|
|
- goodsAllocation: '',
|
|
|
source: '',
|
|
|
billType: '',
|
|
|
demandDept: '',
|
|
@@ -538,10 +520,6 @@ export default {
|
|
|
this.$refs.refer.init(this.referCondition)
|
|
|
},
|
|
|
selectionsToInput(selection) {
|
|
|
- if (this.referCondition.type == 'WAREHOUSE_PARAM') {
|
|
|
- this.houseOptions = selection
|
|
|
- this.queryParams.warehouse = selection[0].id
|
|
|
- }
|
|
|
if (this.referCondition.type == 'CUSTOMER_PARAM') {
|
|
|
this.customerOptions = selection
|
|
|
this.queryParams.customer = selection[0].id
|
|
@@ -550,10 +528,6 @@ export default {
|
|
|
this.personOptions = selection
|
|
|
this.queryParams.demandPersonal = selection[0].id
|
|
|
}
|
|
|
- if (this.referCondition.type == 'ALLOCATION_PARAM') {
|
|
|
- this.goodsOptions = selection
|
|
|
- this.queryParams.goodsAllocation = selection[0].id
|
|
|
- }
|
|
|
if (this.referCondition.type == 'DEPT_PARAM') {
|
|
|
this.deptOptions = selection
|
|
|
this.queryParams.demandDept = selection[0].id
|