Commit 4ddc9f83 authored by Smile's avatar Smile

需求 后台-集运-包裹预报成功页面修改

parent c39d7f86
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="actions mt-50"> <div class="actions mt-50">
<el-button class="copy-btn" :data-clipboard-text="consCopy">{{ $t('一键复制') }}</el-button> <el-button class="copy-btn" :data-clipboard-text="consCopy">{{ $t('一键复制') }}</el-button>
<el-button type="warning" @click="showNotice = true">{{ $t('入仓须知') }}</el-button> <el-button type="warning" @click="showNotice = true">{{ $t('入仓须知') }}</el-button>
<el-button type="primary" @click="$redirect('detail?orderId=' + order.orderId)">{{ $t('禁运物品') }}</el-button> <el-button type="success" @click="showEmbargoNotice = true">{{ $t('禁运物品') }}</el-button>
</div> </div>
<el-dialog :title="$t('查看须知')" :visible.sync="showNotice" width="700px"> <el-dialog :title="$t('查看须知')" :visible.sync="showNotice" width="700px">
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
<el-button type="primary" @click="$refs.needKnow.downloadPdf()">{{ $t('下载') }}</el-button> <el-button type="primary" @click="$refs.needKnow.downloadPdf()">{{ $t('下载') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :title="$t('禁运物品')" :visible.sync="showEmbargoNotice" width="700px">
<need-know keyname="warehousing" ref="needKnow"/>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -75,6 +78,7 @@ export default { ...@@ -75,6 +78,7 @@ export default {
return { return {
cons: null, cons: null,
showNotice: false, showNotice: false,
showEmbargoNotice: false,
warehouseList: [], warehouseList: [],
warehouse:{}, warehouse:{},
transport:null transport:null
...@@ -83,7 +87,7 @@ export default { ...@@ -83,7 +87,7 @@ export default {
}, },
computed: { computed: {
consCopy(){ consCopy(){
return `会员号:${this.cons.customerNumber}\n运输偏好${this.transport}\n收件人:${this.warehouse.head} ${this.cons.customerNumber}\n电话:${this.warehouse.tell}\n仓库地址:${this.warehouse.addressZh} ${this.cons.customerNumber}`; return `会员号:${this.cons.customerNumber}\n运输偏好:${this.transport}\n收件人:${this.warehouse.head} ${this.cons.customerNumber}\n电话:${this.warehouse.tell}\n仓库地址:${this.warehouse.addressZh} ${this.cons.customerNumber}`;
}, },
consCustomerNumberCopy(){ consCustomerNumberCopy(){
return `会员号:${this.cons.customerNumber}`; return `会员号:${this.cons.customerNumber}`;
...@@ -99,10 +103,6 @@ export default { ...@@ -99,10 +103,6 @@ export default {
} }
}, },
async created() { async created() {
getConsWarehouse().then((r) => {
this.warehouseList = r.data;
this.setWarehouseId()
});
await this.loadData() await this.loadData()
await this.$nextTick() await this.$nextTick()
clipboard = new ClipboardJS('.copy-btn') clipboard = new ClipboardJS('.copy-btn')
...@@ -112,6 +112,10 @@ export default { ...@@ -112,6 +112,10 @@ export default {
clipboard.on('error', () => { clipboard.on('error', () => {
this.$message.error(this.$t('复制失败')) this.$message.error(this.$t('复制失败'))
}) })
getConsWarehouse().then((r) => {
this.warehouseList = r.data;
this.setWarehouseId()
});
}, },
destroyed() { destroyed() {
clipboard.destroy() clipboard.destroy()
......
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