|
|
@@ -1,10 +1,7 @@
|
|
|
<!-- @desc:打印模板 @auth:洪旭东 @time:2022-05-20 14:31 -->
|
|
|
<template>
|
|
|
<div class="print-template" style="height: 100%;background: #f2f2f2;" onselectstart="return false">
|
|
|
- <!-- {{tableColTemp}}-->
|
|
|
- <!-- {{tableCol}}-->
|
|
|
- <!-- {{tableColTemp}}-->
|
|
|
- <!-- {{backgroundConfig}}-->
|
|
|
+ {{tableInfo}}
|
|
|
<div class="header">
|
|
|
<img style="height: 60%;" src="http://www.dongkesoft.com/public/static/dongke/img/0logo.png"/>
|
|
|
<div style="display:flex;">
|
|
|
@@ -23,17 +20,18 @@
|
|
|
@on-select="paperTypeChange" label-key="label" value-key="value"
|
|
|
:options="paperTypeList" :placeholder="$t('selectWords', { 'search-name': $t('paperType') })"
|
|
|
/>
|
|
|
- <InputNumberPop name="displayNo" :digits="0" v-model="displayNo" label="displayNo"
|
|
|
- style="width:100px;margin-left: 10px;"/>
|
|
|
+ <div style="color: white;line-height: 33px;margin-left: 10px;" v-if="paperType==0">宽度</div>
|
|
|
+ <InputNumberPop v-model="customWidth" style="width: 200px;margin-left: 10px;" :digits="1"
|
|
|
+ @on-blur="(val)=> paperTypeList[0].width = val" v-if="paperType==0"/>
|
|
|
+ <div style="color: white;line-height: 33px;margin-left: 10px;" v-if="paperType==0">高度</div>
|
|
|
+ <InputNumberPop v-model="customHeight" style="width: 200px;margin-left: 10px;" :digits="1"
|
|
|
+ @on-blur="(val)=> paperTypeList[0].height = val" v-if="paperType==0"/>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <Button type="primary" @click="close" style="margin-right: 10px;">取消</Button>
|
|
|
+<!-- <Button type="primary" @click="close" style="margin-right: 10px;">取消</Button>-->
|
|
|
<Button @click="save">保存</Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div> {{currentIndex}}</div>-->
|
|
|
- <!-- <div>{{ moveList }}</div>-->
|
|
|
- <!-- <div>{{ this.currentColIndex }}</div>-->
|
|
|
|
|
|
<div class="print-content" v-if="templateType">
|
|
|
<!-- 左侧部分 -->
|
|
|
@@ -167,7 +165,7 @@
|
|
|
:x="item.left">
|
|
|
<img :src="item.path" style="width: 100%;height: 100%;" v-if="item.name != '$scanCode' && item.name != '$barCode'"/>
|
|
|
<img :src="scanCode" style="width: 100%;height: 100%;" v-if="item.name == '$scanCode'"/>
|
|
|
-<!-- <img :src="$barCode" style="width: 100%;height: 100%;" v-if="item.name == '$barCode'"/>-->
|
|
|
+ <img :src="scanCode" style="width: 100%;height: 100%;" v-if="item.name == '$barCode'"/>
|
|
|
</vue-drag-resize>
|
|
|
|
|
|
</div>
|
|
|
@@ -704,10 +702,13 @@ export default {
|
|
|
organizationList: [],
|
|
|
organization: null,
|
|
|
paperTypeList: self.$config.paperTypeList,
|
|
|
- paperType: 0,
|
|
|
+ paperType: 1,
|
|
|
lastPaperType: 0,
|
|
|
// 显示顺序
|
|
|
- displayNo: null
|
|
|
+ displayNo: null,
|
|
|
+ //自定义纸大小
|
|
|
+ customWidth: 0,
|
|
|
+ customHeight: 0
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -818,7 +819,7 @@ export default {
|
|
|
flag = false
|
|
|
}
|
|
|
})
|
|
|
- if ((this.tableInfo.width + this.tableInfo.left) > widthPx || (this.tableInfo.top + 90) > heightPx) {
|
|
|
+ if (this.tableInfo && ((this.tableInfo.width + this.tableInfo.left) > widthPx || (this.tableInfo.top + 90) > heightPx)) {
|
|
|
flag = false
|
|
|
}
|
|
|
resolve(flag)
|
|
|
@@ -876,12 +877,8 @@ export default {
|
|
|
this.lastTemplateType = this.editRow.docCode
|
|
|
this.templateType = this.editRow.docCode
|
|
|
this.templateName = this.editRow.tmName
|
|
|
- this.tableColTemp = this.templateTypeList.filter(it => {
|
|
|
- return it.value === this.editRow.docCode
|
|
|
- })[0].tableColTemp
|
|
|
- this.dataSource = this.templateTypeList.filter(it => {
|
|
|
- return it.value === this.editRow.docCode
|
|
|
- })[0].dataSource
|
|
|
+ this.tableColTemp = this.templateTypeList[0].tableColTemp
|
|
|
+ this.dataSource = this.templateTypeList[0].dataSource
|
|
|
this.displayNo = this.editRow.displayNo
|
|
|
this.moveList = this.editRow.templateData.mainList
|
|
|
this.imgList = this.editRow.templateData.imgList
|
|
|
@@ -891,6 +888,10 @@ export default {
|
|
|
this.organization = this.editRow.orgId
|
|
|
this.backgroundConfig = this.editRow.templateData.backgroundConfig
|
|
|
this.paperType = this.paperTypeList.map(it => it.label).indexOf(this.editRow.templateData.paperInfo.label)
|
|
|
+ this.paperTypeList[0].width = this.editRow.templateData.paperInfo.width
|
|
|
+ this.customWidth = this.editRow.templateData.paperInfo.width
|
|
|
+ this.paperTypeList[0].height = this.editRow.templateData.paperInfo.height
|
|
|
+ this.customHeight = this.editRow.templateData.paperInfo.height
|
|
|
this.lastPaperType = this.paperType
|
|
|
this.lastPaperDirection = this.paperDirection
|
|
|
//通过这种方式去渲染,避免双向绑定冲突问题
|
|
|
@@ -1352,6 +1353,7 @@ export default {
|
|
|
if (current[0].type === 'text') {
|
|
|
this.moveList[current[0].index].currentFlag = true
|
|
|
this.currentIndex = current[0].index
|
|
|
+ console.log(this.moveList)
|
|
|
}
|
|
|
|
|
|
if (current[0].type === 'col') {
|
|
|
@@ -1514,14 +1516,6 @@ export default {
|
|
|
left: document.getElementById('paper').clientWidth * 0.05
|
|
|
}
|
|
|
}, 100)
|
|
|
- // this.tableCol = [...this.tableColTemp]
|
|
|
- // this.tableInfo = {
|
|
|
- // active: false,
|
|
|
- // width: 520,
|
|
|
- // height: 30,
|
|
|
- // top: e.offsetY - 45 <= 0 ? 0 : e.offsetY - 45,
|
|
|
- // left: e.offsetX - 260 <= 0 ? 0 : e.offsetX - 260
|
|
|
- // }
|
|
|
break
|
|
|
case 'img':
|
|
|
let imgInfo = {
|
|
|
@@ -1683,36 +1677,34 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (!this.templateName) {
|
|
|
- // this.$Message.warning('请输入模板名称')
|
|
|
- this.$Message.error(this.$t('W_001', { 'param': this.$t('templateName') }))
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- // todo 洪旭东 暂时不选组织机构
|
|
|
- // if (!this.organization) {
|
|
|
- // this.$Message.warning('请选择组织机构')
|
|
|
+ // if (!this.templateName) {
|
|
|
+ // // this.$Message.warning('请输入模板名称')
|
|
|
+ // this.$Message.error(this.$t('W_001', { 'param': this.$t('templateName') }))
|
|
|
// return
|
|
|
// }
|
|
|
|
|
|
- if (this.displayNo == null) {
|
|
|
- this.$Message.error(this.$t('W_001', { 'param': this.$t('displayNo') }))
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
+ // if (this.displayNo == null) {
|
|
|
+ // this.$Message.error(this.$t('W_001', { 'param': this.$t('displayNo') }))
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
// 提交时 重新处理一下width
|
|
|
let table = document.getElementById('printTemplateTable')
|
|
|
console.log('tableCol', this.tableCol)
|
|
|
- for (let j = 0; j < table.rows[0].cells.length; j++) {
|
|
|
- console.log('offsetWidth', table.rows[0].cells[j].getAttribute('data-key'))
|
|
|
- let width = table.rows[0].cells[j].offsetWidth
|
|
|
- this.tableCol.forEach(tcIt => {
|
|
|
- if (tcIt.key === table.rows[0].cells[j].getAttribute('data-key')) {
|
|
|
- console.log(tcIt.key, width)
|
|
|
- tcIt.width = parseInt(width)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (table) {
|
|
|
+ for (let j = 0; j < table.rows[0].cells.length; j++) {
|
|
|
+ console.log('offsetWidth', table.rows[0].cells[j].getAttribute('data-key'))
|
|
|
+ let width = table.rows[0].cells[j].offsetWidth
|
|
|
+ this.tableCol.forEach(tcIt => {
|
|
|
+ if (tcIt.key === table.rows[0].cells[j].getAttribute('data-key')) {
|
|
|
+ console.log(tcIt.key, width)
|
|
|
+ tcIt.width = parseInt(width)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
// return;
|
|
|
let result = {
|
|
|
backgroundConfig: this.backgroundConfig,
|
|
|
@@ -1725,6 +1717,12 @@ export default {
|
|
|
typeCode: this.templateType
|
|
|
}
|
|
|
|
|
|
+ //自定义纸张大小
|
|
|
+ if (this.paperType == 0) {
|
|
|
+ result.paperInfo.width = this.customWidth
|
|
|
+ result.paperInfo.height = this.customHeight
|
|
|
+ }
|
|
|
+
|
|
|
let currentType = this.templateTypeList.filter(it => {
|
|
|
return it.value === this.templateType
|
|
|
})[0]
|
|
|
@@ -1845,35 +1843,36 @@ export default {
|
|
|
|
|
|
// this.tableCol = templateObj.dataSource.detail
|
|
|
this.dataSource = { ...templateObj.dataSource }
|
|
|
- setTimeout(() => {
|
|
|
- this.tableInfo = {
|
|
|
- active: false,
|
|
|
- width: document.getElementById('paper').clientWidth * 0.9,
|
|
|
- height: 30,
|
|
|
- top: paperHeight - 120,
|
|
|
- left: document.getElementById('paper').clientWidth * 0.05
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /* 设置表格 列宽 */
|
|
|
- const tableWidth = this.tableInfo.width
|
|
|
- let currentSurplusWidth = this.tableInfo.width
|
|
|
- templateObj.tableColTemp.forEach((it, index) => {
|
|
|
- if (index === templateObj.tableColTemp.length - 1) {
|
|
|
- it.width = currentSurplusWidth
|
|
|
- } else {
|
|
|
- const currentWidth = (it.width / 100) * tableWidth
|
|
|
- it.width = currentWidth
|
|
|
- currentSurplusWidth -= currentWidth
|
|
|
- }
|
|
|
- })
|
|
|
- this.tableColTemp = [...templateObj.tableColTemp]
|
|
|
- this.$nextTick(() => {
|
|
|
- this.tableColTemp.forEach(it => {
|
|
|
- document.getElementById(it.key).setAttribute('width', it.width)
|
|
|
- })
|
|
|
- })
|
|
|
- }, 100)
|
|
|
+ // todo 默认表格、?
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.tableInfo = {
|
|
|
+ // active: false,
|
|
|
+ // width: document.getElementById('paper').clientWidth * 0.9,
|
|
|
+ // height: 30,
|
|
|
+ // top: paperHeight - 120,
|
|
|
+ // left: document.getElementById('paper').clientWidth * 0.05
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // /* 设置表格 列宽 */
|
|
|
+ // const tableWidth = this.tableInfo.width
|
|
|
+ // let currentSurplusWidth = this.tableInfo.width
|
|
|
+ // templateObj.tableColTemp.forEach((it, index) => {
|
|
|
+ // if (index === templateObj.tableColTemp.length - 1) {
|
|
|
+ // it.width = currentSurplusWidth
|
|
|
+ // } else {
|
|
|
+ // const currentWidth = (it.width / 100) * tableWidth
|
|
|
+ // it.width = currentWidth
|
|
|
+ // currentSurplusWidth -= currentWidth
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // this.tableColTemp = [...templateObj.tableColTemp]
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.tableColTemp.forEach(it => {
|
|
|
+ // document.getElementById(it.key).setAttribute('width', it.width)
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // }, 100)
|
|
|
})
|
|
|
this.lastTemplateType = val
|
|
|
},
|
|
|
@@ -2055,7 +2054,7 @@ export default {
|
|
|
* @date : 2022-05-20 16:51
|
|
|
*/
|
|
|
close() {
|
|
|
- this.closeTag(this.$route)
|
|
|
+ this.$emit('close')
|
|
|
},
|
|
|
/*
|
|
|
* @desc : 查询数据源
|
|
|
@@ -2063,210 +2062,6 @@ export default {
|
|
|
* @date : 2022/6/28 9:54
|
|
|
*/
|
|
|
selectDataSource() {
|
|
|
- // let res = {
|
|
|
- // 'code': 200,
|
|
|
- // 'message': '操作成功',
|
|
|
- // 'exception': null,
|
|
|
- // 'data': [{
|
|
|
- // 'tableColTemp': [],
|
|
|
- // 'label': '使用收款',
|
|
|
- // 'value': '使用收款',
|
|
|
- // 'dataSource': { 'main': [], 'detail': [] }
|
|
|
- // }, { 'tableColTemp': [], 'label': '客户取款', 'value': '客户取款', 'dataSource': { 'main': [], 'detail': [] } }, {
|
|
|
- // 'tableColTemp': [{
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '商品名称',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'skuName'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '备注',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'remarks'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '商品数量',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'tItemQuantity'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '使用位置',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'usedLocation'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '赠品标识',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'flgGift'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '商品编码',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'skuCode'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '金额',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'tItemAmount'
|
|
|
- // }, {
|
|
|
- // 'align2': 'center',
|
|
|
- // 'align1': 'center',
|
|
|
- // 'width': 10,
|
|
|
- // 'fontSize': 14,
|
|
|
- // 'bold': false,
|
|
|
- // 'title': '售价',
|
|
|
- // 'fontStyle': false,
|
|
|
- // 'key': 'priceSale'
|
|
|
- // }], 'label': '销售订单', 'value': '销售订单', 'dataSource': {
|
|
|
- // 'main': [{ 'title': '标价合计金额', 'value': 1234.56, 'key': 'tSumStandard' }, {
|
|
|
- // 'title': '总体积',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumVolume'
|
|
|
- // }, { 'title': '剩余应收', 'value': 1234.56, 'key': 'receivable' }, {
|
|
|
- // 'title': '整单标价折扣',
|
|
|
- // 'value': 90.0,
|
|
|
- // 'key': 'tDiscountStandard'
|
|
|
- // }, { 'title': '合计使用预存金额', 'value': 1234.56, 'key': 'sumUsePrestore' }, {
|
|
|
- // 'title': '合计出库金额',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumOutAmount'
|
|
|
- // }, { 'title': '货物金额', 'value': 1234.56, 'key': 'tSumGoodsAmount' }, {
|
|
|
- // 'title': '送货时间',
|
|
|
- // 'value': '2022-06-01',
|
|
|
- // 'key': 'deliveryTime'
|
|
|
- // }, { 'title': '合计退货金额', 'value': 1234.56, 'key': 'sumRejectAmount' }, {
|
|
|
- // 'title': '制单人',
|
|
|
- // 'value': '制单人',
|
|
|
- // 'key': 'makingUser'
|
|
|
- // }, { 'title': '合计金额', 'value': 1234.56, 'key': 'tSumAmount' }, {
|
|
|
- // 'title': '行政区划',
|
|
|
- // 'value': '北京市/东城区',
|
|
|
- // 'key': 'addressAreaName'
|
|
|
- // }, { 'title': '制单时间', 'value': '2022-06-01', 'key': 'makingTime' }, {
|
|
|
- // 'title': '主业务部门',
|
|
|
- // 'value': '主业务部门',
|
|
|
- // 'key': 'orgName'
|
|
|
- // }, { 'title': '标准售价', 'value': 1234.56, 'key': 'sumPromotion' }, {
|
|
|
- // 'title': '货物金额',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumGoodsAmount'
|
|
|
- // }, { 'title': '整单标价折扣', 'value': 90.0, 'key': 'discountStandard' }, {
|
|
|
- // 'title': '标准售价',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'tSumPromotion'
|
|
|
- // }, { 'title': '货物金额(大写)', 'value': '壹仟贰佰叁拾肆元伍角陆分', 'key': 'sumUsePrestore' }, {
|
|
|
- // 'title': '备注',
|
|
|
- // 'value': '备注',
|
|
|
- // 'key': 'remarks'
|
|
|
- // }, { 'title': '整单标准售价折扣', 'value': 90.0, 'key': 'tDiscountPromotion' }, {
|
|
|
- // 'title': '主业务员',
|
|
|
- // 'value': '主业务员',
|
|
|
- // 'key': 'staffName'
|
|
|
- // }, { 'title': '客户名称', 'value': '张先生', 'key': 'customerName' }, {
|
|
|
- // 'title': '客户电话',
|
|
|
- // 'value': '18812345678',
|
|
|
- // 'key': 'customerPhone'
|
|
|
- // }, { 'title': '联系人', 'value': '张先生', 'key': 'contactName' }, {
|
|
|
- // 'title': '联系电话',
|
|
|
- // 'value': '18812345678',
|
|
|
- // 'key': 'contactPhones'
|
|
|
- // }, { 'title': '客户来源', 'value': '进店', 'key': 'customerFrom' }, {
|
|
|
- // 'title': '小区或POI',
|
|
|
- // 'value': '小区名称',
|
|
|
- // 'key': 'addressName'
|
|
|
- // }, { 'title': '商品总数量', 'value': 1234.56, 'key': 'sumQuantity' }, {
|
|
|
- // 'title': '门牌号',
|
|
|
- // 'value': '门牌号',
|
|
|
- // 'key': 'addressNo'
|
|
|
- // }, { 'title': '详细地址', 'value': '详细地址', 'key': 'addressFull' }, {
|
|
|
- // 'title': '总重量',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumWeight'
|
|
|
- // }, { 'title': '小区档案', 'value': '小区档案名称', 'key': 'estateName' }, {
|
|
|
- // 'title': '标价合计金额',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumStandard'
|
|
|
- // }, { 'title': '商品总数量', 'value': 1234.56, 'key': 'tSumQuantity' }, {
|
|
|
- // 'title': '订单号',
|
|
|
- // 'value': 'SA-ABCD-XYZ-202206011234',
|
|
|
- // 'key': 'orderNo'
|
|
|
- // }, { 'title': '合计费用金额', 'value': 1234.56, 'key': 'sumFeeAmount' }, {
|
|
|
- // 'title': '合计金额',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumAmount'
|
|
|
- // }, { 'title': '整单标准售价折扣', 'value': 90.0, 'key': 'discountPromotion' }, {
|
|
|
- // 'title': '合计收款金额(定金)',
|
|
|
- // 'value': 1234.56,
|
|
|
- // 'key': 'sumReceiptAmount'
|
|
|
- // }],
|
|
|
- // 'detail': [{ 'title': '活动名称', 'value': '活动名称', 'key': 'activityName' }, {
|
|
|
- // 'title': '商品名称',
|
|
|
- // 'value': 'Q9智能一体机',
|
|
|
- // 'key': 'skuName'
|
|
|
- // }, { 'title': '玻璃参数', 'value': '8mm', 'key': 'glassParameters' }, {
|
|
|
- // 'title': '玻璃厚度',
|
|
|
- // 'value': '8mm',
|
|
|
- // 'key': 'glassThickness'
|
|
|
- // }, { 'title': '重量', 'value': 1234.56, 'key': 'skuWeight' }, {
|
|
|
- // 'title': '玻璃工艺',
|
|
|
- // 'value': '拉丝',
|
|
|
- // 'key': 'glassCraft'
|
|
|
- // }, { 'title': '基材颜色', 'value': '黑色', 'key': 'substrateColor' }, {
|
|
|
- // 'title': '备注',
|
|
|
- // 'value': '备注',
|
|
|
- // 'key': 'remarks'
|
|
|
- // }, { 'title': '商品数量', 'value': 1234.56, 'key': 'tItemQuantity' }, {
|
|
|
- // 'title': '使用位置',
|
|
|
- // 'value': '一楼主卫',
|
|
|
- // 'key': 'usedLocation'
|
|
|
- // }, { 'title': '明细序号', 'value': 123, 'key': 'itemIndex' }, {
|
|
|
- // 'title': '商品型号',
|
|
|
- // 'value': 'FFFFFFFFF',
|
|
|
- // 'key': 'skuModel'
|
|
|
- // }, { 'title': '体积', 'value': 1234.56, 'key': 'skuVolume' }, {
|
|
|
- // 'title': '赠品标识',
|
|
|
- // 'value': '是',
|
|
|
- // 'key': 'flgGift'
|
|
|
- // }, { 'title': '非标备注', 'value': '非标备注', 'key': 'nonstandardRemarks' }, {
|
|
|
- // 'title': '商品编码',
|
|
|
- // 'value': 'FFFFFFFFF',
|
|
|
- // 'key': 'skuCode'
|
|
|
- // }, { 'title': '金额', 'value': 1234.56, 'key': 'tItemAmount' }, {
|
|
|
- // 'title': 'BOM编码',
|
|
|
- // 'value': 'BOM编码',
|
|
|
- // 'key': 'bomSkuCode'
|
|
|
- // }, { 'title': '售价', 'value': 1234.56, 'key': 'priceSale' }]
|
|
|
- // }
|
|
|
- // }, { 'tableColTemp': [], 'label': '客户收款', 'value': '客户收款', 'dataSource': { 'main': [], 'detail': [] } }]
|
|
|
- // }
|
|
|
this.excute(this.$service.commonService, this.$service.commonService.getLabelPrintItem, {
|
|
|
labelKind: this.labelKind
|
|
|
}).then(res=>{
|
|
|
@@ -2295,8 +2090,7 @@ export default {
|
|
|
return {
|
|
|
'title':m.itemName,
|
|
|
'value':m.itemSample,
|
|
|
- 'key':m.itemCode
|
|
|
- // 'key':m.dataKey
|
|
|
+ 'key':m.dataKey
|
|
|
}
|
|
|
}), 'detail': [] }
|
|
|
}
|
|
|
@@ -2305,7 +2099,9 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.visibleChange(this.editRow)
|
|
|
this.templateType = this.$t(titleItem)
|
|
|
- this.changeFunc(this.$t(titleItem))
|
|
|
+ if(!this.editRow) {
|
|
|
+ this.changeFunc(this.$t(titleItem))
|
|
|
+ }
|
|
|
}, 500)
|
|
|
}
|
|
|
} else {
|