Commit a8a63470 authored by 黄奎's avatar 黄奎

新增页面

parent 32ce666e
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</li> </li>
<li> <li>
<button class="hollowFixedBtn" @click="qMsg.pageIndex=1,getList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="qMsg.pageIndex=1,getList()">{{$t('pub.searchBtn')}}</button>
<input type="button" class="normalBtn" @click="addAreaData()" value="新增费用"> <input type="button" class="normalBtn" @click="addBaoJiaData()" value="新增费用">
</li> </li>
</ul> </ul>
</div> </div>
...@@ -51,19 +51,19 @@ ...@@ -51,19 +51,19 @@
<tr v-for="(item,index) in AreaDataList" :key="index"> <tr v-for="(item,index) in AreaDataList" :key="index">
<td>{{item.CTypeStr}}</td> <td>{{item.CTypeStr}}</td>
<td>{{item.CName}}</td> <td>{{item.CName}}</td>
<td><span style="color:red;font-weight:bold;">US {{item.USPrice}}</span></td> <td><span style="color:red;font-weight:bold;">US {{item.USPrice}}</span></td>
<td><span style="color:blue;font-weight:bold;">VND {{item.VNDPrice}}</span></td> <td><span style="color:blue;font-weight:bold;">VND {{item.VNDPrice}}</span></td>
<td>{{item.UpdateByName}}</td> <td>{{item.UpdateByName}}</td>
<td>{{item.UpdateDateStr}}</td> <td>{{item.UpdateDateStr}}</td>
<td> <td>
<el-button type="primary" icon="el-icon-edit" @click="getAreaUpdate(item.Id)" circle></el-button> <el-button type="primary" icon="el-icon-edit" @click="getBaoJiaConfigUpdate(item.Id)" circle></el-button>
<el-tooltip class="item" effect="dark" content="删除" placement="top-start"> <el-tooltip class="item" effect="dark" content="删除" placement="top-start">
<el-button type="danger" icon="el-icon-delete" @click="delArea(item.Id)" circle></el-button> <el-button type="danger" icon="el-icon-delete" @click="delBaoJiaConfig(item.Id)" circle></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="AreaCurrentChange" :current-page.sync="qMsg.currentPage" <el-pagination background @current-change="BaoJiaCurrentChange" :current-page.sync="qMsg.currentPage"
layout="total,prev, pager, next, jumper" :page-size="qMsg.pageSize" :total="qMsg.total"></el-pagination> layout="total,prev, pager, next, jumper" :page-size="qMsg.pageSize" :total="qMsg.total"></el-pagination>
<el-dialog custom-class="w400" :title="dialogTitle" :visible.sync="dialogVisible" center <el-dialog custom-class="w400" :title="dialogTitle" :visible.sync="dialogVisible" center
...@@ -90,14 +90,14 @@ ...@@ -90,14 +90,14 @@
<tr> <tr>
<td> <td>
<el-form-item label="美元"> <el-form-item label="美元">
<el-input v-model="addMsg.USPrice" class="w217" @keyup.native="checkPrice(addMsg,'USPrice')" /> <el-input v-model="addMsg.USPrice" class="w217" @keyup.native="checkPrice(addMsg,'USPrice',true)" />
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<el-form-item label="越南盾"> <el-form-item label="越南盾">
<el-input v-model="addMsg.VNDPrice" class="w217" @keyup.native="checkPrice(addMsg,'VNDPrice')" /> <el-input v-model="addMsg.VNDPrice" class="w217" @keyup.native="checkPrice(addMsg,'VNDPrice',true)" />
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="dialogVisible = false,clearAddMsg()">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="dialogVisible = false,clearAddMsg()">{{$t('pub.cancelBtn')}}</button>
&nbsp; &nbsp;
<button class="normalBtn" @click="saveAreaInfo()">{{$t('pub.saveBtn')}}</button> <button class="normalBtn" @click="SaveBaoJiaConfig()">{{$t('pub.saveBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
qMsg: { qMsg: {
CType: 0, CType: 0,
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 15,
total: 0, total: 0,
currentPage: 1, currentPage: 1,
CName: '', //项目名称 CName: '', //项目名称
...@@ -137,33 +137,22 @@ ...@@ -137,33 +137,22 @@
VNDPrice: 0, //越南盾 VNDPrice: 0, //越南盾
}, },
//费用类型字符串 //费用类型字符串
TypeList: [{ TypeList: [], //费用类型列表
Id: 1,
Name: "杂支"
},
{
Id: 2,
Name: "自费"
},
{
Id: 3,
Name: "小费"
},
], //费用类型列表
}; };
}, },
mounted() { mounted() {
this.getConfigTypeList();
this.getList(); this.getList();
}, },
filters: {}, filters: {},
methods: { methods: {
//新增地区 //新增地区
addAreaData() { addBaoJiaData() {
this.dialogVisible = true; this.dialogVisible = true;
this.dialogTitle = '新增费用'; this.dialogTitle = '新增费用';
}, },
//翻页 //翻页
AreaCurrentChange(val) { BaoJiaCurrentChange(val) {
this.qMsg.pageIndex = val; this.qMsg.pageIndex = val;
this.getList(); this.getList();
}, },
...@@ -192,7 +181,7 @@ ...@@ -192,7 +181,7 @@
) )
}, },
//保存费用配置 //保存费用配置
saveAreaInfo() { SaveBaoJiaConfig() {
if (this.addMsg.CName == '') { if (this.addMsg.CName == '') {
this.Error('请填写名称'); this.Error('请填写名称');
return; return;
...@@ -215,7 +204,7 @@ ...@@ -215,7 +204,7 @@
) )
}, },
//修改费用配置 //修改费用配置
getAreaUpdate(Id) { getBaoJiaConfigUpdate(Id) {
this.dialogTitle = "修改费用" this.dialogTitle = "修改费用"
this.dialogVisible = true; this.dialogVisible = true;
let msg = { let msg = {
...@@ -237,7 +226,7 @@ ...@@ -237,7 +226,7 @@
) )
}, },
//删除费用配置 //删除费用配置
delArea(Id) { delBaoJiaConfig(Id) {
var that = this; var that = this;
this.Confirm("是否删除?", function () { this.Confirm("是否删除?", function () {
var msg = { var msg = {
...@@ -259,7 +248,19 @@ ...@@ -259,7 +248,19 @@
); );
}); });
}, },
//获取费用类型列表
getConfigTypeList() {
this.apipost(
"travel_post_GetBaoJiaDanConfigSwtTypeListService", {},
res => {
if (res.data.resultCode == 1) {
this.TypeList = res.data.data;
console.log("res", this.TypeList);
}
},
null
);
},
} }
}; };
......
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