给单据增加复制功能

This commit is contained in:
季圣华
2021-09-22 23:08:24 +08:00
parent efb1e828e0
commit a7ac4581fd
28 changed files with 120 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ export const BillListMixin = {
this.$refs.modalForm.action = "add";
this.handleAdd();
},
myHandleCopyAdd(record) {
this.$refs.modalForm.action = "copyAdd";
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title = "复制新增";
this.$refs.modalForm.disableSubmit = false;
},
myHandleEdit(record) {
if(record.status === '0') {
this.$refs.modalForm.action = "edit";

View File

@@ -69,6 +69,16 @@ export const BillModalMixin = {
this.accountMoneyList = []
this.manyAccountBtnStatus = false
},
copyAddInit(amountNum) {
getAction('/sequence/buildNumber').then((res) => {
if (res && res.code === 200) {
this.form.setFieldsValue({'number':amountNum + res.data.defaultNumber})
}
})
this.$nextTick(() => {
this.form.setFieldsValue({'operTime':getNowFormatDateTime()})
})
},
initSupplier() {
let that = this;
findBySelectSup({}).then((res)=>{