|
@@ -65,31 +65,32 @@
|
|
style="text-align: right; line-height: 60px; padding-right: 10px"
|
|
style="text-align: right; line-height: 60px; padding-right: 10px"
|
|
:span="8"
|
|
:span="8"
|
|
>
|
|
>
|
|
- <ws-select
|
|
|
|
|
|
+ <el-select
|
|
v-model="contractNo"
|
|
v-model="contractNo"
|
|
placeholder="请选择合同"
|
|
placeholder="请选择合同"
|
|
clearable
|
|
clearable
|
|
|
|
+ filterable
|
|
|
|
+ :filter-method="dataFilter"
|
|
@change="contractchange"
|
|
@change="contractchange"
|
|
maxlength="500"
|
|
maxlength="500"
|
|
type="input"
|
|
type="input"
|
|
class="findValue"
|
|
class="findValue"
|
|
>
|
|
>
|
|
- <ws-option key="" label="全部合同" value="" />
|
|
|
|
- <ws-option
|
|
|
|
|
|
+ <el-option
|
|
v-if="item.reportStatus"
|
|
v-if="item.reportStatus"
|
|
- v-for="item in contractNoList"
|
|
|
|
|
|
+ v-for="item in options"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
:label="item.contractNo + '(' + item.reportStatus + ')'"
|
|
:label="item.contractNo + '(' + item.reportStatus + ')'"
|
|
:value="item.contractNo"
|
|
:value="item.contractNo"
|
|
/>
|
|
/>
|
|
- <ws-option
|
|
|
|
|
|
+ <el-option
|
|
v-if="!item.reportStatus"
|
|
v-if="!item.reportStatus"
|
|
- v-for="item in contractNoList"
|
|
|
|
|
|
+ v-for="item in options"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
:label="item.contractNo"
|
|
:label="item.contractNo"
|
|
:value="item.contractNo"
|
|
:value="item.contractNo"
|
|
/>
|
|
/>
|
|
- </ws-select>
|
|
|
|
|
|
+ </el-select>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<div v-if="contractNo != ''">
|
|
<div v-if="contractNo != ''">
|
|
@@ -131,6 +132,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="contractNo"
|
|
prop="contractNo"
|
|
|
|
+ width="120"
|
|
label="合同编号"
|
|
label="合同编号"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -143,7 +145,7 @@
|
|
prop="positionNumber"
|
|
prop="positionNumber"
|
|
label="仓位号"
|
|
label="仓位号"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column class="table_td" prop="carNo" label="车牌号"
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="carNo" label="车牌号" width="140"
|
|
><template slot-scope="scope">
|
|
><template slot-scope="scope">
|
|
{{ scope.row.carNo }}({{ scope.row.tranCarNo }})
|
|
{{ scope.row.carNo }}({{ scope.row.tranCarNo }})
|
|
</template></el-table-column
|
|
</template></el-table-column
|
|
@@ -151,6 +153,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="warehousingDate"
|
|
prop="warehousingDate"
|
|
|
|
+ width="100"
|
|
label="入库日期"
|
|
label="入库日期"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -584,6 +587,7 @@ export default {
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
year: '',
|
|
year: '',
|
|
|
|
+ options:[],
|
|
pickerOptions: {},
|
|
pickerOptions: {},
|
|
invoiceTypeList: [
|
|
invoiceTypeList: [
|
|
{ value: '自开发票', type: 1 },
|
|
{ value: '自开发票', type: 1 },
|
|
@@ -606,7 +610,7 @@ export default {
|
|
submitType: true,
|
|
submitType: true,
|
|
size: 10,
|
|
size: 10,
|
|
spanArr: [],
|
|
spanArr: [],
|
|
- contractNo: '',
|
|
|
|
|
|
+ contractNo: '全部合同',
|
|
inOutTaskNo: '',
|
|
inOutTaskNo: '',
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
roleId: sessionStorage.getItem('ws-pf_roleId'),
|
|
roleId: sessionStorage.getItem('ws-pf_roleId'),
|
|
@@ -1002,6 +1006,24 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ dataFilter(val) {
|
|
|
|
+ // console.log(val,"名")
|
|
|
|
+ this.contractNo = val
|
|
|
|
+ if (val) {
|
|
|
|
+ //val存在
|
|
|
|
+ this.options = this.contractNoList.filter(item => {
|
|
|
|
+ if (
|
|
|
|
+ !!~item.contractNo.indexOf(val) ||
|
|
|
|
+ !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
|
|
|
|
+ ) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ //val为空时,还原数组
|
|
|
|
+ this.options =this.contractNoList
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handlepass() {
|
|
handlepass() {
|
|
var that = this
|
|
var that = this
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
@@ -1238,6 +1260,8 @@ export default {
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.contractNoList = response
|
|
this.contractNoList = response
|
|
|
|
+ this.contractNoList.unshift({contractNo:'全部合同'})
|
|
|
|
+ this.options=this.contractNoList
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleRemove(file) {
|
|
handleRemove(file) {
|