|
@@ -5,6 +5,7 @@
|
|
|
:confirmLoading="confirmLoading"
|
|
|
width="86%"
|
|
|
:footer="null"
|
|
|
+ @cancel="close"
|
|
|
>
|
|
|
<!-- tabel 加载 -->
|
|
|
<a-spin :spinning="confirmLoading">
|
|
@@ -24,6 +25,12 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-item label="批号">
|
|
|
+ <a-input placeholder="请输入批号" v-model="queryParam.cbatch"></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
@@ -158,8 +165,9 @@ export default {
|
|
|
otherYarnsInModVis: false,
|
|
|
// 查询条件
|
|
|
queryParam: {
|
|
|
- purchaseAboardOrderNum: '', // 委外订单号
|
|
|
- planNum: '' // 计划号
|
|
|
+ ccode: '', // 委外订单号
|
|
|
+ cplanCode: '', // 计划号
|
|
|
+ cbatch:''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -229,17 +237,31 @@ export default {
|
|
|
},
|
|
|
// 弹框查询按钮
|
|
|
searchQuery() {
|
|
|
- this.otherYarnsInData = this.allDataList.filter(e=>(this.queryParam.ccode == null || e.ccode.toLowerCase().indexOf(this.queryParam.ccode.toLowerCase())>-1)
|
|
|
- && (this.queryParam.cplanCode == null || e.cplanCode.toLowerCase().indexOf(this.queryParam.cplanCode.toLowerCase())>-1));
|
|
|
+ var data = []
|
|
|
+ this.allDataList.map(item=>{
|
|
|
+ if(!item.ccode){item.ccode = ''}
|
|
|
+ if(!item.cbatch){item.cbatch = ''}
|
|
|
+ if(!item.cplanCode){item.cplanCode = ''}
|
|
|
+ if(item.ccode.includes(this.queryParam.ccode) && item.cbatch.includes(this.queryParam.cbatch)&&item.cplanCode.includes(this.queryParam.cplanCode)){
|
|
|
+ data.push(item)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.otherYarnsInData =data
|
|
|
},
|
|
|
// 重置
|
|
|
searchReset() {
|
|
|
- this.queryParam = {}
|
|
|
+ this.queryParam = {
|
|
|
+ ccode:'',
|
|
|
+ cplanCode:'',
|
|
|
+ cbatch:''
|
|
|
+ }
|
|
|
+ this.otherYarnsInData = this.allDataList
|
|
|
// this.getShipmentList()
|
|
|
},
|
|
|
close() {
|
|
|
this.$emit('close')
|
|
|
this.otherYarnsInModVis = false
|
|
|
+ this.searchReset()
|
|
|
},
|
|
|
showTotal(data) {
|
|
|
return (
|