Commit d0dfe973 authored by youjie's avatar youjie

no message

parent 42ddb1bf
...@@ -485,7 +485,9 @@ ...@@ -485,7 +485,9 @@
<div class="productQueryList" v-loading="loading"> <div class="productQueryList" v-loading="loading">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox> <el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button> <el-button class="normalBtn" style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
<el-button class="hollowFixedBtn" style="margin-left: 10px" type="" size="small" @click="setDefaultOp"
:loading="loadingOP">设置默认OP</el-button>
</div> </div>
<ul v-if="list.length != 0"> <ul v-if="list.length != 0">
<li v-for="(item, index) in list" :key="index"> <li v-for="(item, index) in list" :key="index">
...@@ -608,9 +610,10 @@ ...@@ -608,9 +610,10 @@
</template> </template>
<script> <script>
export default { export default {
props: ["loading", "list", "pagesTitle", "isVisa"], props: ["msg","loading", "list", "pagesTitle", "isVisa"],
data() { data() {
return { return {
loadingOP: false,
editNum: false, editNum: false,
showDialog: false, showDialog: false,
queryData: {}, queryData: {},
...@@ -682,6 +685,34 @@ export default { ...@@ -682,6 +685,34 @@ export default {
}, },
}, },
methods: { methods: {
setDefaultOp(){
this.dataDui()
if(!this.msg.StartTime||!this.msg.EndTime){
this.$message.info('请选择出发日期开始时间、结束时间!')
return
}
this.loadingOP = true
this.apipost(
"travel_post_UpdateTravelPriceOPInfo",
this.msg,
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.loadingOP = false
}else{
this.Error(res.data.message)
this.loadingOP = false
}
},err=>{this.loadingOP = false})
},
// 结束日期不能大于开始日期
dataDui() {
if (this.msg.StartTime > this.msg.EndTime && this.msg.EndTime !== "") {
this.$message.error("结束日期不能大于开始日期");
this.msg.EndTime = "";
return
}
},
changeSelect() { changeSelect() {
this.list.forEach((element) => { this.list.forEach((element) => {
element.check = this.allCheck; element.check = this.allCheck;
......
...@@ -311,6 +311,7 @@ ...@@ -311,6 +311,7 @@
resetPageIndex(); resetPageIndex();
" "
/> />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -318,7 +319,7 @@ ...@@ -318,7 +319,7 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<!-- 产品列表 --> <!-- 产品列表 -->
<productOrderList :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList> <productOrderList :msg="msg" :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
} }
}else if(this.type==1){ }else if(this.type==1){
return () => { return () => {
return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}` return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}`
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment