|
@@ -61,6 +61,7 @@
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
<a-descriptions-item label="业务状态">{{ detailData&&detailData.billStatusDictValue || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="业务状态">{{ detailData&&detailData.billStatusDictValue || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="备注">{{ detailData&&detailData.remarks || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="备注">{{ detailData&&detailData.remarks || '--' }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="唯一码"><span class="link-bule">查看</span></a-descriptions-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
</a-collapse>
|
|
</a-collapse>
|
|
@@ -97,7 +98,7 @@
|
|
<a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
<a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
|
|
<a-badge count="特" v-if="record.promotionFlag=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
<a-badge count="特" v-if="record.promotionFlag=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge>
|
|
</template>
|
|
</template>
|
|
- <!-- 销售价 -->
|
|
|
|
|
|
+ <!-- 销售价 -->
|
|
<template slot="price" slot-scope="text, record">
|
|
<template slot="price" slot-scope="text, record">
|
|
{{ toThousands(text) }}
|
|
{{ toThousands(text) }}
|
|
<span v-if="record.promotionFlag=='GIFT'||record.promotionFlag=='DISCOUNT'" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
<span v-if="record.promotionFlag=='GIFT'||record.promotionFlag=='DISCOUNT'" title="原价">({{ toThousands(record.origPrice) }})</span>
|
|
@@ -117,6 +118,13 @@
|
|
<export-excel-modal :openModal="openExcelModal" :itemData="detailData" @ok="handleExcelOk" @close="openExcelModal=false" />
|
|
<export-excel-modal :openModal="openExcelModal" :itemData="detailData" @ok="handleExcelOk" @close="openExcelModal=false" />
|
|
<!-- 打印 -->
|
|
<!-- 打印 -->
|
|
<div id="print"></div>
|
|
<div id="print"></div>
|
|
|
|
+ <!-- 唯一码 -->
|
|
|
|
+ <uniqueCodeModal
|
|
|
|
+ ref="uniqueCode"
|
|
|
|
+ modalTit="轮胎唯一码"
|
|
|
|
+ :openModal="showCodeModal"
|
|
|
|
+ @choose="getProductTotal"
|
|
|
|
+ @cancel="showCodeModal=false"></uniqueCodeModal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -125,12 +133,13 @@ import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import sendTypeModal from './sendTypeModal.vue'
|
|
import sendTypeModal from './sendTypeModal.vue'
|
|
import exportExcelModal from './exportExcelModal.vue'
|
|
import exportExcelModal from './exportExcelModal.vue'
|
|
|
|
+import uniqueCodeModal from './uniqueCodeModal.vue'
|
|
import { printBase64Fun, exportExcel } from '@/libs/JGPrint.js'
|
|
import { printBase64Fun, exportExcel } from '@/libs/JGPrint.js'
|
|
import { dispatchDetaillListForOut, dispatchFindBySn, dispatchDetailPrint, dispatchDetailExcel } from '@/api/dispatch'
|
|
import { dispatchDetaillListForOut, dispatchFindBySn, dispatchDetailPrint, dispatchDetailExcel } from '@/api/dispatch'
|
|
export default {
|
|
export default {
|
|
- name: 'detailForOut',
|
|
|
|
|
|
+ name: 'DetailForOut',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, sendTypeModal, exportExcelModal },
|
|
|
|
|
|
+ components: { STable, VSelect, sendTypeModal, exportExcelModal, uniqueCodeModal },
|
|
props: {
|
|
props: {
|
|
outBizSubSn: { // 有值则为弹框,无值则为页面
|
|
outBizSubSn: { // 有值则为弹框,无值则为页面
|
|
type: [Number, String],
|
|
type: [Number, String],
|
|
@@ -184,7 +193,8 @@ export default {
|
|
nowPrintType: '', // 当前打印类型
|
|
nowPrintType: '', // 当前打印类型
|
|
openExcelModal: false,
|
|
openExcelModal: false,
|
|
fromRouter: null,
|
|
fromRouter: null,
|
|
- nowType: 'print'
|
|
|
|
|
|
+ nowType: 'print',
|
|
|
|
+ showCodeModal: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -205,7 +215,7 @@ export default {
|
|
// { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
// { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
]
|
|
]
|
|
if (this.$hasPermissions('B_dispatchDetail_salesPrice')) { // 售价权限
|
|
if (this.$hasPermissions('B_dispatchDetail_salesPrice')) { // 售价权限
|
|
- arr.splice(5, 0, { title: '销售价格', dataIndex: 'price', width: '8%', align: 'right', scopedSlots: { customRender: 'price' }, })
|
|
|
|
|
|
+ arr.splice(5, 0, { title: '销售价格', dataIndex: 'price', width: '8%', align: 'right', scopedSlots: { customRender: 'price' } })
|
|
arr.splice(9, 0, { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
arr.splice(9, 0, { title: '本次下推金额', dataIndex: 'totalAmount', width: '8%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
}
|
|
}
|
|
if (this.$hasPermissions('B_dispatchDetail_cityPrice')) { // 市级权限
|
|
if (this.$hasPermissions('B_dispatchDetail_cityPrice')) { // 市级权限
|
|
@@ -281,11 +291,11 @@ export default {
|
|
params.type = params.type + '_STACK_PLACE'
|
|
params.type = params.type + '_STACK_PLACE'
|
|
}
|
|
}
|
|
// 原厂编码
|
|
// 原厂编码
|
|
- if(obj.origCode == 1){
|
|
|
|
|
|
+ if (obj.origCode == 1) {
|
|
params.type = params.type + '_ORIG_CODE'
|
|
params.type = params.type + '_ORIG_CODE'
|
|
}
|
|
}
|
|
// 装箱号
|
|
// 装箱号
|
|
- if(obj.packNo == 1){
|
|
|
|
|
|
+ if (obj.packNo == 1) {
|
|
params.type = params.type + '_PACK_NUM'
|
|
params.type = params.type + '_PACK_NUM'
|
|
}
|
|
}
|
|
printBase64Fun(
|
|
printBase64Fun(
|
|
@@ -293,7 +303,7 @@ export default {
|
|
Object.assign(params, obj || {}),
|
|
Object.assign(params, obj || {}),
|
|
type,
|
|
type,
|
|
taskName,
|
|
taskName,
|
|
- () => {
|
|
|
|
|
|
+ () => {
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
_this.$store.state.app.curActionPermission = ''
|
|
_this.$store.state.app.curActionPermission = ''
|
|
},
|
|
},
|