增加租户界面、单据优化

This commit is contained in:
季圣华
2021-06-01 23:33:36 +08:00
parent 15245791c8
commit 6d7cbe7612
19 changed files with 279 additions and 26 deletions

View File

@@ -74,6 +74,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'DBCK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -130,7 +131,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("DBCK")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.$nextTick(() => {

View File

@@ -75,6 +75,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'ZZD',
model: {},
labelCol: {
xs: { span: 24 },
@@ -131,7 +132,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("ZZD")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.model.debt = (this.model.discountLastMoney - this.model.changeAmount).toFixed(2)

View File

@@ -75,6 +75,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'CXD',
model: {},
labelCol: {
xs: { span: 24 },
@@ -131,7 +132,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("CXD")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.$nextTick(() => {

View File

@@ -82,6 +82,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'QTRK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -137,7 +138,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("QTRK")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.$nextTick(() => {

View File

@@ -82,6 +82,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'QTCK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -137,7 +138,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("QTCK")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.$nextTick(() => {

View File

@@ -136,6 +136,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'CGTH',
model: {},
labelCol: {
xs: { span: 24 },
@@ -200,7 +201,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("CGTH")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)

View File

@@ -145,6 +145,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'CGRK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -210,7 +211,7 @@
editAfter() {
if (this.action === 'add') {
let that = this
this.addInit("CGRK")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)

View File

@@ -84,6 +84,7 @@
supList: [],
depotList: [],
operTimeStr: '',
prefixNo: 'CGDD',
model: {},
labelCol: {
xs: { span: 24 },
@@ -140,7 +141,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("CGDD")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.$nextTick(() => {

View File

@@ -115,6 +115,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'LSTH',
model: {},
labelCol: {
xs: { span: 24 },
@@ -170,7 +171,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("LSTH")
this.addInit(this.prefixNo)
} else {
this.model.operTime = this.model.operTimeStr
this.model.getAmount = this.model.changeAmount

View File

@@ -122,6 +122,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'LSCK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -177,7 +178,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("LSCK")
this.addInit(this.prefixNo)
this.$nextTick(() => {
this.form.setFieldsValue({'payType': '现付'})
})

View File

@@ -141,6 +141,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'XSTH',
model: {},
labelCol: {
xs: { span: 24 },
@@ -205,7 +206,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("XSTH")
this.addInit(this.prefixNo)
this.personList.value = ''
} else {
this.model.operTime = this.model.operTimeStr

View File

@@ -88,6 +88,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'XSDD',
model: {},
labelCol: {
xs: { span: 24 },
@@ -143,7 +144,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("XSDD")
this.addInit(this.prefixNo)
this.personList.value = ''
} else {
this.model.operTime = this.model.operTimeStr

View File

@@ -149,6 +149,7 @@
addDefaultRowNum: 1,
visible: false,
operTimeStr: '',
prefixNo: 'XSCK',
model: {},
labelCol: {
xs: { span: 24 },
@@ -213,7 +214,7 @@
//调用完edit()方法之后会自动调用此方法
editAfter() {
if (this.action === 'add') {
this.addInit("XSCK")
this.addInit(this.prefixNo)
this.personList.value = ''
} else {
this.model.operTime = this.model.operTimeStr