凭证类型名称:
@@ -1024,7 +1033,7 @@ export default {
],
exchangeRate: [
{ required: true, message: '请输入汇率', trigger: 'change' }
- ],
+ ]
// jNumField: [
// { required: true, message: '请选择借方数量字段', trigger: 'change' }
// ],
@@ -1205,7 +1214,7 @@ export default {
children: 'sublistMdmModuleDbFileds',
label: 'name'
},
- typeMerge:''
+ typeMerge: ''
}
},
methods: {
@@ -1238,8 +1247,8 @@ export default {
this.getAddTableData()
}
},
- getTableAddList(val){
- console.log(val,'val',this.fixedValueClickRow)
+ getTableAddList(val) {
+ console.log(val, 'val', this.fixedValueClickRow)
this.pageModel.propValue7 = val
this.pageModel.propValue8 = val
this.pageModel.prop7 = this.fixedValueClickRow.codefieldname
@@ -1251,9 +1260,9 @@ export default {
this.$vmNews('请选择一条数据')
return
}
- let obj =this.$refs.baseChoice2.optionData
+ let obj = this.$refs.baseChoice2.optionData
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname])
- console.log(this.fixedValueClickRow,'this.fixedValueClickRow')
+ console.log(this.fixedValueClickRow, 'this.fixedValueClickRow')
this.textarea += `@@$${this.fixedValueClickRow.dbName}:id=${obj.id}`
// this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key])
// this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey])
@@ -1304,7 +1313,7 @@ export default {
this.selected[0].assistEntityList.push({})
},
//凭证相关
- voucherCliclHandle(id, name,def1) {
+ voucherCliclHandle(id, name, def1) {
this.voucherClickId = id
this.voucherClickName = name
this.voucherClickdef1 = def1
@@ -1350,7 +1359,7 @@ export default {
const res = await typeSaveAPI({
name: this.billTypeADDName,
mdmId: this.billTypeClickID,
- def1: this.def1,
+ def1: this.def1
})
this.$vmNews('保存成功', 'success')
this.getVoucherListHandle()
@@ -1359,7 +1368,7 @@ export default {
id: this.billTypeADDID,
name: this.billTypeADDName,
mdmId: this.billTypeClickID,
- def1: this.def1,
+ def1: this.def1
})
this.$vmNews('保存成功', 'success')
this.getVoucherListHandle()
@@ -1383,18 +1392,33 @@ export default {
}
})
})
- let tableData = this.tableData.map(el=>{
- return{
- ...el,
- typeMerge:this.typeMerge
- }
- })
+ let tableData = this.tableData.map(el => {
+ return {
+ ...el,
+ typeMerge: this.typeMerge
+ }
+ })
console.log(this.tableData, 'this.tableData')
const res = await confTempSaveAPI(tableData)
this.$vmNews('保存成功', 'success')
this.editFlag = false
this.getTableData()
},
+ //复制方法
+ async copyOperate() {
+ if (!this.selected.length) {
+ this.$vmNews('请至少选择一条数据')
+ return
+ }
+ let copyTarget = JSON.parse(JSON.stringify(this.selected[0]))
+ console.log(copyTarget.assistEntityList, 'copyTarget')
+ //恰掉id
+ delete copyTarget.id
+ copyTarget.assistEntityList.forEach(item => {
+ delete item.id
+ })
+ this.tableData.push(copyTarget)
+ },
//关闭方法
closeOperate() {
this.editFlag = false
@@ -2013,7 +2037,7 @@ export default {
templateTypeId: this.voucherClickId//20250704
})
this.tableData = res.attribute
- this.typeMerge = this.tableData[0].typeMerge
+ this.typeMerge = this.tableData[0].typeMerge
this.$nextTick(() => {
this.$refs.customtable.clearRadioIndex()
this.$refs.customtable.clearSelection()
@@ -2148,7 +2172,7 @@ export default {
currencyFieArr: [],
assistEntityList: [],
templateTypeId: this.voucherClickId,
- typeMerge:this.typeMerge
+ typeMerge: this.typeMerge
}
this.tableData.push(obj)
return
diff --git a/src/views/businessVoucher/compoments/datePickDialog.vue b/src/views/businessVoucher/compoments/datePickDialog.vue
new file mode 100644
index 0000000..d651b12
--- /dev/null
+++ b/src/views/businessVoucher/compoments/datePickDialog.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
diff --git a/src/views/businessVoucher/index.vue b/src/views/businessVoucher/index.vue
index eb4b14c..a419693 100644
--- a/src/views/businessVoucher/index.vue
+++ b/src/views/businessVoucher/index.vue
@@ -1,19 +1,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
单据号:
@@ -47,6 +56,9 @@
查询
+
+ 生成凭证
+
@@ -55,16 +67,16 @@
分录信息
-
- {{ row.row.billStatus === 'Y' ? '已生成' : '未生成' }}
+ {{ row.billStatus === 'Y' ? '已生成' : '未生成' }}
-
- {{row.row.billStatus === 'Y' ? '查看' : '生成'}}
+
+ {{ row.billStatus === 'Y' ? '查看' : '生成' }}
@@ -77,23 +89,26 @@
:tableColumn="assistTableColumn"
id="printMe"
>
-
-
- 查看凭证明细
-
-
+
+
+ 查看凭证明细
+
+
-
-
+
+
+
+