Compare commits

4 Commits

Author SHA1 Message Date
lixuan
992fb5ebc1 Merge branch 'master' of http://121.196.213.68:3000/xiaozhiyong/refinery-customer-admin into lixuan 2023-03-02 17:39:31 +08:00
lixuan
d031b27f49 xiugai 2023-03-02 17:39:23 +08:00
42f06ace84 Merge pull request 'xiugai' (#3) from lixuan into master
Reviewed-on: #3
2023-03-02 03:36:00 +00:00
lixuan
62eb5ecf81 xiugai 2023-03-02 11:35:23 +08:00
3 changed files with 7 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ service.interceptors.request.use(
const JSESSIONID = utils.uuid(); const JSESSIONID = utils.uuid();
config.headers["JSESSIONID"] = JSESSIONID; config.headers["JSESSIONID"] = JSESSIONID;
config.headers["token"] = utils.bcrypt(JSESSIONID); config.headers["token"] = utils.bcrypt(JSESSIONID);
config.headers['dataSources'] = 'WEB'
if (env === "development") { if (env === "development") {
return config; return config;

View File

@@ -253,7 +253,9 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
params: {}, params: {
},
}, },
oilCompanyMatch: {}, oilCompanyMatch: {},
billData:[], billData:[],
@@ -335,6 +337,7 @@ export default {
}, },
//table list //table list
getByPage() { getByPage() {
this.parameter.params.customerId=this.$store.state.user.companyId
order.getByPage(this.parameter).then((res) => { order.getByPage(this.parameter).then((res) => {
this.tableData = res.data.list; this.tableData = res.data.list;
this.total = res.data.totalCount; this.total = res.data.totalCount;

View File

@@ -107,14 +107,14 @@ export default {
"form.salePrice": { "form.salePrice": {
handler(n, o) { handler(n, o) {
if(n){ if(n){
this.form.preAmount = this.form.salePrice*(this.form.preQuantity?this.form.preQuantity:0) this.form.preAmount = (this.form.salePrice*(this.form.preQuantity?this.form.preQuantity:0)).toFixed(2)
} }
}, },
}, },
"form.preQuantity": { "form.preQuantity": {
handler(n, o) { handler(n, o) {
if(n){ if(n){
this.form.preAmount = this.form.preQuantity*(this.form.salePrice?this.form.salePrice:0) this.form.preAmount = (this.form.preQuantity*(this.form.salePrice?this.form.salePrice:0)).toFixed(2)
} }
}, },
} }