|
@@ -319,6 +319,20 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
+ <a-row class="form-row" :gutter="24">
|
|
|
+ <a-col :lg="6" :md="12" :sm="24">
|
|
|
+ <a-form-item
|
|
|
+ :labelCol="labelCol"
|
|
|
+ :wrapperCol="wrapperCol"
|
|
|
+ label="凭证图片"
|
|
|
+ data-step="11"
|
|
|
+ data-title="附件"
|
|
|
+ data-intro="可以上传与单据相关的图片、文档,支持多个文件"
|
|
|
+ >
|
|
|
+ <j-image-upload v-model="imageList" bizPath="material" text="上传图片" isMultiple></j-image-upload>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
</a-form>
|
|
|
</a-spin>
|
|
|
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
|
@@ -347,6 +361,7 @@ import { BillModalMixin } from '../mixins/BillModalMixin'
|
|
|
import { findBillDetailByNumber, getCurrentSystemConfig } from '@/api/api'
|
|
|
import { getMpListShort, changeListFmtMinus, handleIntroJs } from '@/utils/util'
|
|
|
import JUpload from '@/components/jeecg/JUpload'
|
|
|
+import JImageUpload from '@/components/jeecg/JImageUpload.vue'
|
|
|
import JDate from '@/components/jeecg/JDate'
|
|
|
import Vue from 'vue'
|
|
|
// import QrcodeVue from 'qrcode.vue'
|
|
@@ -363,6 +378,7 @@ export default {
|
|
|
WorkflowIframe,
|
|
|
BillPrintIframe,
|
|
|
JUpload,
|
|
|
+ JImageUpload,
|
|
|
JDate,
|
|
|
// QrcodeVue,
|
|
|
VNodes: {
|
|
@@ -383,6 +399,7 @@ export default {
|
|
|
operTimeStr: '',
|
|
|
prefixNo: 'CGDD',
|
|
|
fileList: [],
|
|
|
+ imageList: [],
|
|
|
rowCanEdit: true,
|
|
|
//以销定购的场景开关
|
|
|
purchaseBySaleFlag: false,
|
|
@@ -420,7 +437,7 @@ export default {
|
|
|
{ title: '商品条码', key: 'barCode', width: '6%', type: FormTypes.normal },
|
|
|
{ title: '仓库名', key: 'depotName', width: '6%', type: FormTypes.normal },
|
|
|
{ title: '仓库货架', key: 'position', width: '6%', type: FormTypes.normal },
|
|
|
- { title: '包装规格', key: 'unitName', width: '6%', type: FormTypes.input },
|
|
|
+ { title: '包装规格', key: 'unitName', width: '6%', type: FormTypes.normal },
|
|
|
|
|
|
{ title: '型号', key: 'model', width: '9%', type: FormTypes.normal },
|
|
|
{ title: '颜色', key: 'color', width: '5%', type: FormTypes.normal },
|
|
@@ -517,6 +534,7 @@ export default {
|
|
|
if (this.action === 'add') {
|
|
|
this.addInit(this.prefixNo)
|
|
|
this.fileList = []
|
|
|
+ this.imageList = []
|
|
|
this.$nextTick(() => {
|
|
|
handleIntroJs(this.prefixNo, 1)
|
|
|
})
|
|
@@ -535,6 +553,8 @@ export default {
|
|
|
this.manyAccountBtnStatus = false
|
|
|
}
|
|
|
this.fileList = this.model.fileName
|
|
|
+ this.imageList = this.model.voucherPicture
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.form.setFieldsValue(
|
|
|
pick(
|
|
@@ -598,6 +618,11 @@ export default {
|
|
|
} else {
|
|
|
billMain.fileName = ''
|
|
|
}
|
|
|
+ if (this.imageList && this.imageList.length > 0) {
|
|
|
+ billMain.voucherPicture = this.imageList
|
|
|
+ } else {
|
|
|
+ billMain.voucherPicture = ''
|
|
|
+ }
|
|
|
if (this.model.id) {
|
|
|
billMain.id = this.model.id
|
|
|
}
|