Compare commits
13 Commits
10058dcc5d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b8b5f6a689 | |||
|
|
8753577bdf | ||
|
|
dee424a813 | ||
|
|
7f0a560637 | ||
|
|
1973d1f0ac | ||
|
|
778f1626f5 | ||
| f9ea54767b | |||
|
|
d8870ea6a0 | ||
| d50155cd95 | |||
|
|
992fb5ebc1 | ||
|
|
d031b27f49 | ||
| 42f06ace84 | |||
|
|
62eb5ecf81 |
@@ -13,7 +13,7 @@
|
|||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"better-scroll": "1.8.0",
|
"better-scroll": "1.8.0",
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"core-js": "3.6.5",
|
"core-js": "^3.29.1",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
"element-ui": "^2.15.12",
|
"element-ui": "^2.15.12",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ const billSave = (params) => {
|
|||||||
const update = (params) => {
|
const update = (params) => {
|
||||||
return request.putJson("/oil-refinery/xoilRefineryDelivery/update", params);
|
return request.putJson("/oil-refinery/xoilRefineryDelivery/update", params);
|
||||||
};
|
};
|
||||||
|
//取消提货单
|
||||||
|
const cancel = (params) => {
|
||||||
|
return request.putJson("/oil-refinery/xoilRefineryOrder/update", params);
|
||||||
|
};
|
||||||
//查看订单信息
|
//查看订单信息
|
||||||
const findByOrderId = (id) => {
|
const findByOrderId = (id) => {
|
||||||
return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`);
|
return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`);
|
||||||
@@ -36,6 +40,7 @@ const orderLock = (params) => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getByPage,
|
getByPage,
|
||||||
findDeliveryByOrderId,
|
findDeliveryByOrderId,
|
||||||
@@ -44,5 +49,6 @@ export default {
|
|||||||
update,
|
update,
|
||||||
deleteBill,
|
deleteBill,
|
||||||
orderSuccess,
|
orderSuccess,
|
||||||
orderLock
|
orderLock,
|
||||||
|
cancel
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,11 +11,7 @@
|
|||||||
<div class="generalDetails_card_container">
|
<div class="generalDetails_card_container">
|
||||||
<div v-for="(item, index) in dataPage" :key="index">
|
<div v-for="(item, index) in dataPage" :key="index">
|
||||||
<el-card class="generalDetails_card">
|
<el-card class="generalDetails_card">
|
||||||
<div
|
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
|
||||||
@click="isShow(item)"
|
|
||||||
class="generalDetails_card_header"
|
|
||||||
slot="header"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<span class="generalDetails-card-header-icon">
|
<span class="generalDetails-card-header-icon">
|
||||||
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
|
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
|
||||||
@@ -25,30 +21,18 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fold">
|
<div class="fold">
|
||||||
<i
|
<i :style="{
|
||||||
:style="{
|
|
||||||
transform: `rotate(${item.isFold ? 0 : 180}deg)`,
|
transform: `rotate(${item.isFold ? 0 : 180}deg)`,
|
||||||
}"
|
}" class="el-icon-arrow-down generalDetails_card_arrow_down"></i>
|
||||||
class="el-icon-arrow-down generalDetails_card_arrow_down"
|
|
||||||
></i>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
|
||||||
:style="{ maxHeight: item.isFold ? '100vh' : '0px' }"
|
<template v-if="item.listData.length && item.listData[0].field !== 'table'">
|
||||||
class="my-cell"
|
|
||||||
>
|
|
||||||
<template
|
|
||||||
v-if="item.listData.length && item.listData[0].field !== 'table'"
|
|
||||||
>
|
|
||||||
<div v-for="(i, x) in item.listData" :key="x" class="cell-item">
|
<div v-for="(i, x) in item.listData" :key="x" class="cell-item">
|
||||||
<span :title="i.remark" class="color-999 test-tst">
|
<span :title="i.remark" class="color-999 test-tst">
|
||||||
{{ i.label }}
|
{{ i.label }}
|
||||||
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
||||||
<i
|
<i @click="isCopy($event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
|
||||||
@click="isCopy($event)"
|
|
||||||
v-if="i.isCopy"
|
|
||||||
class="el-icon-document-copy"
|
|
||||||
></i>
|
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<slot class="inner-data" :name="`${i.field}`">
|
<slot class="inner-data" :name="`${i.field}`">
|
||||||
@@ -172,6 +156,7 @@ export default {
|
|||||||
.title_bottom {
|
.title_bottom {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fold {
|
.fold {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-drawer
|
<el-drawer direction="ltr" size="40%" :visible="controlWindows.bill" @opened="openDrawer" :before-close="closeWindow"
|
||||||
direction="ltr"
|
:show-close=false>
|
||||||
size="40%"
|
|
||||||
:visible="controlWindows.bill"
|
|
||||||
@opened="openDrawer"
|
|
||||||
:before-close="closeWindow"
|
|
||||||
:show-close = false
|
|
||||||
>
|
|
||||||
<div class="create" v-if="controlWindows.bill">
|
<div class="create" v-if="controlWindows.bill">
|
||||||
<el-form label-width="100px">
|
<el-form label-width="100px">
|
||||||
<div class="billTop">
|
<div class="billTop">
|
||||||
@@ -19,7 +13,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<el-form-item label="订单状态">
|
<el-form-item label="订单状态">
|
||||||
<el-tag effect='dark' :type="orderTagType(billData.orderInfo.orderStatus).orderType">{{orderTagType(billData.orderInfo.orderStatus).orderLabel}}</el-tag>
|
<el-tag effect='dark' :type="orderTagType(billData.orderInfo.orderStatus).orderType">{{
|
||||||
|
orderTagType(billData.orderInfo.orderStatus).orderLabel }}</el-tag>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -60,7 +55,8 @@
|
|||||||
<el-form-item label="提货单">
|
<el-form-item label="提货单">
|
||||||
<span>{{ item.id }}</span>
|
<span>{{ item.id }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-tag :type="orderTagType(item.deliveryStatus).type">{{orderTagType(item.deliveryStatus).label}}</el-tag>
|
<el-tag :type="orderTagType(item.deliveryStatus).type">{{ orderTagType(item.deliveryStatus).label
|
||||||
|
}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="billBottom-body-middle">
|
<div class="billBottom-body-middle">
|
||||||
<div class="billBottom-body-middle-info">
|
<div class="billBottom-body-middle-info">
|
||||||
@@ -83,7 +79,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="item.deliveryStatus=='SUBMITED'" style="text-align: right;color: #409EFF;" @click="billAdd(item,index)">修改信息</div>
|
<div v-show="item.deliveryStatus == 'SUBMITED'" style="text-align: right;color: #409EFF;"
|
||||||
|
@click="billAdd(item, index)">修改信息</div>
|
||||||
<div class="billBottom-body-bottom">
|
<div class="billBottom-body-bottom">
|
||||||
<div>
|
<div>
|
||||||
<el-form-item label="创建时间">
|
<el-form-item label="创建时间">
|
||||||
@@ -94,8 +91,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-button v-show="item.deliveryStatus=='SUBMITED'&&billData.orderInfo.orderStatus=='DELIVERING'&&billData.orderInfo.payStatus!=='REFUNDED'" type="danger" @click="billDelete(item,index)">删除提货单</el-button>
|
<el-button
|
||||||
<el-button :effect="orderTagType(item.deliveryStatus).effect" :disabled="item.deliveryStatus!=='SUBMITED'" @click="billAddSave(2,item)" :type="orderTagType(item.deliveryStatus).type1">{{orderTagType(item.deliveryStatus).info}}</el-button>
|
v-show="item.deliveryStatus == 'SUBMITED' && billData.orderInfo.orderStatus == 'DELIVERING' && billData.orderInfo.payStatus !== 'REFUNDED'"
|
||||||
|
type="danger" @click="billDelete(item, index)">删除提货单</el-button>
|
||||||
|
<el-button :effect="orderTagType(item.deliveryStatus).effect"
|
||||||
|
:disabled="item.deliveryStatus !== 'SUBMITED'" @click="billAddSave(2, item)"
|
||||||
|
:type="orderTagType(item.deliveryStatus).type1">{{ orderTagType(item.deliveryStatus).info
|
||||||
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,10 +109,11 @@
|
|||||||
<el-button @click="controlWindows.bill = false">取消 </el-button>
|
<el-button @click="controlWindows.bill = false">取消 </el-button>
|
||||||
<!-- <el-button @click="submit">订单确认</el-button> -->
|
<!-- <el-button @click="submit">订单确认</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
<el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd">
|
<el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px"
|
||||||
|
:visible.sync="dialogBillAdd">
|
||||||
<el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules">
|
<el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules">
|
||||||
<el-form-item label="预约提货量" prop="preDeliveryQuantity">
|
<el-form-item label="预约提货量" prop="preDeliveryQuantity">
|
||||||
<el-input v-model="billAddData.preDeliveryQuantity"></el-input>元/吨
|
<el-input v-model="billAddData.preDeliveryQuantity"></el-input>吨
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="提货人" prop="driverName">
|
<el-form-item label="提货人" prop="driverName">
|
||||||
<el-input v-model="billAddData.driverName"></el-input>
|
<el-input v-model="billAddData.driverName"></el-input>
|
||||||
@@ -129,12 +132,8 @@
|
|||||||
<!-- <el-button v-show="billTitle" type="primary" @click="billAddSave(2)">修改并锁定</el-button> -->
|
<!-- <el-button v-show="billTitle" type="primary" @click="billAddSave(2)">修改并锁定</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog destroy-on-close title="提示" :close-on-click-modal="false" :append-to-body="true"
|
||||||
destroy-on-close
|
:visible.sync="dialogDelivery" width="30%">
|
||||||
title="提示"
|
|
||||||
:close-on-click-modal="false" :append-to-body="true"
|
|
||||||
:visible.sync="dialogDelivery"
|
|
||||||
width="30%">
|
|
||||||
<el-form v-if="dialogDelivery">
|
<el-form v-if="dialogDelivery">
|
||||||
<el-form-item label="实际提货量" prop="plateNumber">
|
<el-form-item label="实际提货量" prop="plateNumber">
|
||||||
<el-input v-model="deliveryQuantity"></el-input>
|
<el-input v-model="deliveryQuantity"></el-input>
|
||||||
@@ -228,9 +227,13 @@ export default {
|
|||||||
this.billListMeth()
|
this.billListMeth()
|
||||||
// this.$set(this.billData.list,this.billData.index,this.billAddData)
|
// this.$set(this.billData.list,this.billData.index,this.billAddData)
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogDelivery = false
|
this.dialogDelivery = false;
|
||||||
|
console.log('更新前',this.billData)
|
||||||
|
this.$emit('billOfLading', this.billData, 2);
|
||||||
|
this.$forceUpdate()
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
billSubmit(e, index) {
|
billSubmit(e, index) {
|
||||||
if (e.deliveryStatus == 'PLATENUM_SUCCESS') {
|
if (e.deliveryStatus == 'PLATENUM_SUCCESS') {
|
||||||
@@ -247,7 +250,9 @@ export default {
|
|||||||
this.billListMeth()
|
this.billListMeth()
|
||||||
// this.$set(this.billData.list,index,this.billAddData)
|
// this.$set(this.billData.list,index,this.billAddData)
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogBillAdd = false
|
this.dialogBillAdd = false;
|
||||||
|
this.$emit('billOfLading', this.billData, 2)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -261,6 +266,7 @@ export default {
|
|||||||
case 'DELIVERING': return { orderLabel: '提货中', label: '提货中', type: '', orderType: 'info' }
|
case 'DELIVERING': return { orderLabel: '提货中', label: '提货中', type: '', orderType: 'info' }
|
||||||
case 'COMPLETE': return { orderLabel: '订单完成', label: '提货完成', info: '提货完成', type: 'success', type1: 'info', orderType: 'success' }
|
case 'COMPLETE': return { orderLabel: '订单完成', label: '提货完成', info: '提货完成', type: 'success', type1: 'info', orderType: 'success' }
|
||||||
case 'CANCELED': return { orderLabel: '订单取消', label: '订单取消', info: '订单取消', type: 'info', type1: 'dark', orderType: 'info' }
|
case 'CANCELED': return { orderLabel: '订单取消', label: '订单取消', info: '订单取消', type: 'info', type1: 'dark', orderType: 'info' }
|
||||||
|
default: return { orderLabel: '暂无数据', label: '暂无数据', info: '暂无数据', type: 'info', type1: 'dark', orderType: 'info' }
|
||||||
}
|
}
|
||||||
return { label: val ? val : '暂无数据', info: val ? val : '暂无数据', type: 'info' }
|
return { label: val ? val : '暂无数据', info: val ? val : '暂无数据', type: 'info' }
|
||||||
},
|
},
|
||||||
@@ -272,34 +278,41 @@ export default {
|
|||||||
this.dialogBillAdd = true
|
this.dialogBillAdd = true
|
||||||
},
|
},
|
||||||
//创建修改提货单
|
//创建修改提货单
|
||||||
billAddSave(e,item){
|
async billAddSave(e, item) {
|
||||||
if (!e) {
|
if (!e) {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate( async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.billAddData.orderId = this.controlWindows.addInfo.id
|
this.billAddData.orderId = this.controlWindows.addInfo.id
|
||||||
this.billAddData.productMeasurement = this.controlWindows.addInfo.productMeasurement
|
this.billAddData.productMeasurement = this.controlWindows.addInfo.productMeasurement
|
||||||
order.billSave(this.billAddData).then(res=>{
|
await order.billSave(this.billAddData).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
this.billAddData.deliveryStatus = 'SUBMITED'
|
this.billAddData.deliveryStatus = 'SUBMITED'
|
||||||
this.billData.list.push(this.billAddData)
|
this.billData.list.push(this.billAddData)
|
||||||
this.billListMeth()
|
this.billListMeth()
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogBillAdd = false
|
this.dialogBillAdd = false;
|
||||||
|
this.$emit('billOfLading', this.billData.orderInfo, 2)
|
||||||
}
|
}
|
||||||
})}})
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$confirm('确定锁定提货单?', '提示', { type: 'error' }).then(() => {
|
this.$confirm(`确定${e == 1 ? '修改' : '锁定'}提货单?`, '提示', { type: 'error' }).then( async () => {
|
||||||
this.billAddData = item?JSON.parse(JSON.stringify(item)):{}
|
// this.billAddData = item ? JSON.parse(JSON.stringify(item)) : {};
|
||||||
this.billAddData.deliveryStatus = e==2?'PLATENUM_LOCKED':''
|
this.billAddData.deliveryStatus = e == 2 ? 'PLATENUM_LOCKED' : '';
|
||||||
order.update(this.billAddData).then(res=>{
|
console.log(this.billAddData, 'this.billAddData')
|
||||||
|
await order.update(this.billAddData).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
this.billListMeth()
|
this.billListMeth()
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogBillAdd = false
|
this.dialogBillAdd = false;
|
||||||
|
this.$emit('billOfLading', this.billData.orderInfo, 2)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
console.log('代码底部');
|
||||||
|
|
||||||
},
|
},
|
||||||
//更新提货单数据
|
//更新提货单数据
|
||||||
billListMeth() {
|
billListMeth() {
|
||||||
@@ -317,7 +330,9 @@ export default {
|
|||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogBillAdd = false;
|
this.dialogBillAdd = false;
|
||||||
this.billListMeth()
|
this.billListMeth();
|
||||||
|
this.$emit('billOfLading', this.billData, 2)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$set(this.billData.list, index, '')
|
this.$set(this.billData.list, index, '')
|
||||||
@@ -371,6 +386,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.create {
|
.create {
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
|
|
||||||
.el-input,
|
.el-input,
|
||||||
.el-select,
|
.el-select,
|
||||||
.el-textarea,
|
.el-textarea,
|
||||||
@@ -378,6 +394,7 @@ export default {
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -389,60 +406,77 @@ export default {
|
|||||||
line-height: 80px;
|
line-height: 80px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
border-top: 1px solid #f2f3f5;
|
border-top: 1px solid #f2f3f5;
|
||||||
|
|
||||||
.el-button {
|
.el-button {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.billTop {
|
.billTop {
|
||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
padding: 15px 35px;
|
padding: 15px 35px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.billTop-top,.billBottom-title,.billBottom-body-top,.billBottom-body-bottom{
|
|
||||||
|
.billTop-top,
|
||||||
|
.billBottom-title,
|
||||||
|
.billBottom-body-top,
|
||||||
|
.billBottom-body-bottom {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.billTop-top-left {
|
.billTop-top-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
::v-deep .el-form-item {
|
::v-deep .el-form-item {
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.billBottom {
|
.billBottom {
|
||||||
.billBottom-title {
|
.billBottom-title {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.billBottom-body-middle {
|
.billBottom-body-middle {
|
||||||
::v-deep .el-form-item {
|
::v-deep .el-form-item {
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
.billBottom-body-middle-info {
|
.billBottom-body-middle-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.billBottom-body {
|
.billBottom-body {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-shadow: 0 1px 4px rgba(0, 21, 41, .50);
|
box-shadow: 0 1px 4px rgba(0, 21, 41, .50);
|
||||||
margin: 25px 0px;
|
margin: 25px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.billBottom-body-bottom {
|
.billBottom-body-bottom {
|
||||||
::v-deep .el-form-item {
|
::v-deep .el-form-item {
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-drawer__header {
|
::v-deep .el-drawer__header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .billBottom .el-form-item__label {
|
::v-deep .billBottom .el-form-item__label {
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .billBottom .el-form-item__content {
|
::v-deep .billBottom .el-form-item__content {
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
title="是否确认取消订单?"
|
title="是否确认取消订单?"
|
||||||
icon-color="red"
|
icon-color="red"
|
||||||
@confirm="deleteRow(row)"
|
@confirm="deleteRow(row,'delete')"
|
||||||
>
|
>
|
||||||
<el-link v-show="row.orderStatus=='SUBMITED'" slot="reference" type="primary" :underline="false"
|
<el-link v-show="row.orderStatus=='SUBMITED'" slot="reference" type="primary" :underline="false"
|
||||||
>订单取消</el-link
|
>订单取消</el-link
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
</general-details>
|
</general-details>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!-- 提货单 -->
|
<!-- 提货单 -->
|
||||||
<billOfLading :billData="billData" :controlWindows="controlWindows" @closeWindow="handleCurrentChange" />
|
<billOfLading @billOfLading="billOfLading" :billData="billData" :controlWindows="controlWindows" @closeWindow="handleCurrentChange" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -253,7 +253,8 @@ export default {
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
params: {},
|
params: {
|
||||||
|
},
|
||||||
},
|
},
|
||||||
oilCompanyMatch: {},
|
oilCompanyMatch: {},
|
||||||
billData:[],
|
billData:[],
|
||||||
@@ -335,6 +336,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;
|
||||||
@@ -352,14 +354,19 @@ export default {
|
|||||||
this.controlWindows.add = true;
|
this.controlWindows.add = true;
|
||||||
},
|
},
|
||||||
//提货单
|
//提货单
|
||||||
async billOfLading(row){
|
async billOfLading(row,selectIndex){
|
||||||
this.controlWindows.addInfo.title = "";
|
this.controlWindows.addInfo.title = "";
|
||||||
|
if(!selectIndex||selectIndex==1){
|
||||||
await order.findDeliveryByOrderId(row.id).then((res) => {
|
await order.findDeliveryByOrderId(row.id).then((res) => {
|
||||||
this.billData.list = res.data
|
this.billData.list = res.data
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(!selectIndex||selectIndex==2){
|
||||||
await order.findByOrderId(row.id).then((res) => {
|
await order.findByOrderId(row.id).then((res) => {
|
||||||
this.billData.orderInfo = res.data
|
console.log('更新',res)
|
||||||
|
this.billData.orderInfo = Object.assign(res.data,{id:row.id})
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.controlWindows.addInfo = row
|
this.controlWindows.addInfo = row
|
||||||
this.controlWindows.bill = true
|
this.controlWindows.bill = true
|
||||||
},
|
},
|
||||||
@@ -369,8 +376,11 @@ export default {
|
|||||||
this.controlWindows.detail = true;
|
this.controlWindows.detail = true;
|
||||||
},
|
},
|
||||||
//订单锁定
|
//订单锁定
|
||||||
deleteRow(row) {
|
deleteRow(row,type) {
|
||||||
order.orderLock({id:row.id}).then((res) => {
|
let api = type&&type=='delete'?'cancel':'orderLock';
|
||||||
|
let data = {id:row.id};
|
||||||
|
(api=='cancel')&&(data['orderStatus']='CANCELED');
|
||||||
|
order[api](data).then((res) => {
|
||||||
if(res.code == 20000){
|
if(res.code == 20000){
|
||||||
this.getByPage()
|
this.getByPage()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,14 @@
|
|||||||
<div class="create" v-if="controlWindows.create">
|
<div class="create" v-if="controlWindows.create">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
<el-form-item label="客户名称" prop="customerId">
|
<el-form-item label="客户名称" prop="customerId">
|
||||||
<el-select v-model="form.customerId" reserve-keyword remote :remote-method="customData" filterable placeholder="请选择客户">
|
<el-select
|
||||||
|
v-model="form.customerId"
|
||||||
|
reserve-keyword
|
||||||
|
remote
|
||||||
|
:remote-method="customData"
|
||||||
|
filterable
|
||||||
|
placeholder="请选择客户"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in customList"
|
v-for="(item, index) in customList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -32,17 +39,26 @@
|
|||||||
<autocomplete :params="form" :config="configAutocomplete" />
|
<autocomplete :params="form" :config="configAutocomplete" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品类型" prop="productType">
|
<el-form-item label="产品类型" prop="productType">
|
||||||
<el-select v-model="form.productType" @change="productChange" placeholder="请选择产品类型">
|
<el-select
|
||||||
|
v-model="form.productType"
|
||||||
|
@change="productChange"
|
||||||
|
placeholder="请选择产品类型"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in productTypeList"
|
v-for="(item, index) in productTypeList"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item.label"
|
:label="item"
|
||||||
:value="item.value"
|
:value="item"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品名称" prop="productId">
|
<el-form-item label="产品名称" prop="productId">
|
||||||
<el-select :disabled="rowCreate" v-model="form.productId" @change="productDataList" placeholder="请选择产品类型">
|
<el-select
|
||||||
|
:disabled="rowCreate"
|
||||||
|
v-model="form.productId"
|
||||||
|
@change="productDataList"
|
||||||
|
placeholder="请选择产品类型"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in productNameList"
|
v-for="(item, index) in productNameList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -74,11 +90,7 @@
|
|||||||
吨
|
吨
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单金额">
|
<el-form-item label="订单金额">
|
||||||
<el-input
|
<el-input maxlength="50" v-model="form.preAmount" disabled></el-input>
|
||||||
maxlength="50"
|
|
||||||
v-model="form.preAmount"
|
|
||||||
disabled
|
|
||||||
></el-input>
|
|
||||||
元
|
元
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -107,17 +119,23 @@ 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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
let validatorRefineryId = (rule, value, callback) => {
|
let validatorRefineryId = (rule, value, callback) => {
|
||||||
@@ -128,7 +146,7 @@ export default {
|
|||||||
rowCreate: false,
|
rowCreate: false,
|
||||||
customList: [],
|
customList: [],
|
||||||
form: {
|
form: {
|
||||||
preAmount:0
|
preAmount: 0,
|
||||||
},
|
},
|
||||||
productNameList: [],
|
productNameList: [],
|
||||||
refineryList: [],
|
refineryList: [],
|
||||||
@@ -136,7 +154,7 @@ export default {
|
|||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: serve.findByEntity,
|
serveTarget: serve.findByEntity,
|
||||||
autocompleteKey: {
|
autocompleteKey: {
|
||||||
key:"refineryName"
|
key: "refineryName",
|
||||||
},
|
},
|
||||||
labelKey: "refineryName",
|
labelKey: "refineryName",
|
||||||
valueKey: "id",
|
valueKey: "id",
|
||||||
@@ -145,24 +163,7 @@ export default {
|
|||||||
echoId: "",
|
echoId: "",
|
||||||
echoName: "",
|
echoName: "",
|
||||||
},
|
},
|
||||||
productTypeList: [
|
productTypeList: ["0#柴", "-10#柴", "92#汽", "95#汽"],
|
||||||
{
|
|
||||||
label: "0#柴",
|
|
||||||
value: "0#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "-10#柴",
|
|
||||||
value: "-10#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "92#汽",
|
|
||||||
value: "92#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "95#汽",
|
|
||||||
value: "95#",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
rules: {
|
rules: {
|
||||||
customerId: [
|
customerId: [
|
||||||
{ required: true, message: "请输入客户名称", trigger: "blur" },
|
{ required: true, message: "请输入客户名称", trigger: "blur" },
|
||||||
@@ -184,15 +185,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
productDataList(e) {
|
productDataList(e) {
|
||||||
this.productRowData = this.productNameList.filter(
|
this.productRowData = this.productNameList.filter((item) => item.id == e);
|
||||||
(item) => item.id == e
|
this.form.salePrice = this.productRowData[0].salePrice2company;
|
||||||
);
|
this.form.floorPrice = this.productRowData[0].floorPrice;
|
||||||
this.form.salePrice = this.productRowData[0].salePrice2company
|
this.form.productMeasurement = this.productRowData[0].measurement;
|
||||||
this.form.floorPrice = this.productRowData[0].floorPrice
|
|
||||||
this.form.productMeasurement = this.productRowData[0].measurement
|
|
||||||
},
|
},
|
||||||
productChange() {
|
productChange() {
|
||||||
this.productData()
|
this.productData();
|
||||||
},
|
},
|
||||||
//搜索炼厂
|
//搜索炼厂
|
||||||
refineryData(value) {
|
refineryData(value) {
|
||||||
@@ -200,7 +199,7 @@ export default {
|
|||||||
serve.findByEntity({ refineryName: value }).then((res) => {
|
serve.findByEntity({ refineryName: value }).then((res) => {
|
||||||
this.refineryList = res.data;
|
this.refineryList = res.data;
|
||||||
});
|
});
|
||||||
this.productData()
|
this.productData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//搜索产品
|
//搜索产品
|
||||||
@@ -208,52 +207,51 @@ export default {
|
|||||||
let data = {
|
let data = {
|
||||||
refineryId: this.form.refineryId,
|
refineryId: this.form.refineryId,
|
||||||
productType: this.form.productType,
|
productType: this.form.productType,
|
||||||
enableMark:'ENABLE'
|
enableMark: "ENABLE",
|
||||||
}
|
};
|
||||||
serve.getRefineryProductList(data).then((res) => {
|
serve.getRefineryProductList(data).then((res) => {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
this.productNameList = res.data;
|
this.productNameList = res.data;
|
||||||
} else {
|
} else {
|
||||||
this.productNameList = []
|
this.productNameList = [];
|
||||||
this.form.productId = ''
|
this.form.productId = "";
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
console.log(this.productRowData,'aaaaaaaaaa')
|
console.log(this.productRowData, "aaaaaaaaaa");
|
||||||
},
|
},
|
||||||
//搜索客户
|
//搜索客户
|
||||||
customData(value) {
|
customData(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
serve.getRefineryCompanyList({ name: value }).then((res) => {
|
serve.getRefineryCompanyList({ name: value }).then((res) => {
|
||||||
this.customList = res.data;
|
this.customList = res.data;
|
||||||
this.form.customerId = this.$store.state.user.companyId
|
this.form.customerId = this.$store.state.user.companyId;
|
||||||
console.log(this.form.customerId,'ssssaaaaaaaaaaaaaaa')
|
console.log(this.form.customerId, "ssssaaaaaaaaaaaaaaa");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openDrawer() {
|
openDrawer() {
|
||||||
this.form = {}
|
this.form = {};
|
||||||
let { id } = this.controlWindows.addInfo;
|
let { id } = this.controlWindows.addInfo;
|
||||||
if (id) {
|
if (id) {
|
||||||
//回显
|
//回显
|
||||||
this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo));
|
this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo));
|
||||||
this.configAutocomplete.echoId = id;
|
this.configAutocomplete.echoId = id;
|
||||||
this.configAutocomplete.echoName = this.form.refineryName;
|
this.configAutocomplete.echoName = this.form.refineryName;
|
||||||
this.form.salePrice = this.form.salePrice2company
|
this.form.salePrice = this.form.salePrice2company;
|
||||||
this.form.productId = this.form.id
|
this.form.productId = this.form.id;
|
||||||
delete this.form.id
|
delete this.form.id;
|
||||||
this.rowCreate = true
|
this.rowCreate = true;
|
||||||
this.productChange()
|
this.productChange();
|
||||||
this.customData(this.$store.state.user.userCompanyName)
|
this.customData(this.$store.state.user.userCompanyName);
|
||||||
|
|
||||||
console.log("this.form", this.$store.state.user, this.form);
|
console.log("this.form", this.$store.state.user, this.form);
|
||||||
} else {
|
} else {
|
||||||
this.rowCreate = false
|
this.rowCreate = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
this.judgeInterface(this.form).then((res) => {
|
this.judgeInterface(this.form).then((res) => {
|
||||||
if (res.code === 20000) {
|
if (res.code === 20000) {
|
||||||
this.$message.success(res.msg);
|
this.$message.success(res.msg);
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in productTypeList"
|
v-for="(item, index) in productTypeList"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item.label"
|
:label="item"
|
||||||
:value="item.value"
|
:value="item"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -164,24 +164,7 @@ export default {
|
|||||||
detail: false,
|
detail: false,
|
||||||
create: false,
|
create: false,
|
||||||
},
|
},
|
||||||
productTypeList: [
|
productTypeList: ["0#柴", "-10#柴", "92#汽", "95#汽"],
|
||||||
{
|
|
||||||
label: "0#柴",
|
|
||||||
value: "0#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "-10#柴",
|
|
||||||
value: "-10#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "92#汽",
|
|
||||||
value: "92#",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "95#汽",
|
|
||||||
value: "95#",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: serve.findByEntity,
|
serveTarget: serve.findByEntity,
|
||||||
autocompleteKey: "refineryName",
|
autocompleteKey: "refineryName",
|
||||||
@@ -238,6 +221,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//table list
|
//table list
|
||||||
getByPage() {
|
getByPage() {
|
||||||
|
this.parameter.params["enableMark"] = "ENABLE";
|
||||||
serve.getByPage(this.parameter).then((res) => {
|
serve.getByPage(this.parameter).then((res) => {
|
||||||
this.tableData = res.data.list;
|
this.tableData = res.data.list;
|
||||||
this.parameter.total = res.data.totalCount;
|
this.parameter.total = res.data.totalCount;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ module.exports = {
|
|||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: `https://3816t6291y.oicp.vip`,
|
// target: `https://3816t6291y.oicp.vip`,
|
||||||
// target: 'https://6l438d1757.zicp.fun',
|
// target: 'https://6l438d1757.zicp.fun',
|
||||||
target: "http://192.168.0.23:38080",
|
target: "http://uat.xingoil.com/adminapi",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
["^" + process.env.VUE_APP_BASE_API]: "",
|
["^" + process.env.VUE_APP_BASE_API]: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user