给单据的新增和编辑界面增加审核按钮
This commit is contained in:
@@ -32,10 +32,16 @@ export const BillListMixin = {
|
||||
methods: {
|
||||
myHandleAdd() {
|
||||
this.$refs.modalForm.action = "add";
|
||||
if(this.btnEnableList.indexOf(2)===-1) {
|
||||
this.$refs.modalForm.isCanCheck = false
|
||||
}
|
||||
this.handleAdd();
|
||||
},
|
||||
myHandleCopyAdd(record) {
|
||||
this.$refs.modalForm.action = "copyAdd";
|
||||
if(this.btnEnableList.indexOf(2)===-1) {
|
||||
this.$refs.modalForm.isCanCheck = false
|
||||
}
|
||||
this.$refs.modalForm.edit(record);
|
||||
this.$refs.modalForm.title = "复制新增";
|
||||
this.$refs.modalForm.disableSubmit = false;
|
||||
@@ -43,6 +49,9 @@ export const BillListMixin = {
|
||||
myHandleEdit(record) {
|
||||
if(record.status === '0') {
|
||||
this.$refs.modalForm.action = "edit";
|
||||
if(this.btnEnableList.indexOf(2)===-1) {
|
||||
this.$refs.modalForm.isCanCheck = false
|
||||
}
|
||||
this.handleEdit(record);
|
||||
} else {
|
||||
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
|
||||
|
||||
@@ -25,6 +25,8 @@ export const BillModalMixin = {
|
||||
billUnitPirce: '',
|
||||
scanBarCode: '',
|
||||
scanStatus: true,
|
||||
billStatus: '0',
|
||||
isCanCheck: true,
|
||||
isTenant: false,
|
||||
spans: {
|
||||
labelCol1: {span: 2},
|
||||
@@ -710,6 +712,11 @@ export const BillModalMixin = {
|
||||
stopScan() {
|
||||
this.scanStatus = true
|
||||
this.scanBarCode = ''
|
||||
}
|
||||
},
|
||||
//保存并审核
|
||||
handleOkAndCheck() {
|
||||
this.billStatus = '1'
|
||||
this.handleOk()
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user