给单据录入界面增加历史单据链接

This commit is contained in:
季圣华
2022-05-23 22:59:26 +08:00
parent 286bc0c375
commit cb67604c69
6 changed files with 293 additions and 4 deletions

View File

@@ -82,6 +82,11 @@
<a-button @click="stopScan">收起扫码</a-button>
</a-col>
</a-row>
<a-row :gutter="24" style="float:left;padding-bottom: 5px;">
<a-col :md="24" :sm="24">
<a-button style="margin-left: 8px" @click="handleHistoryBillList"><a-icon type="history" />历史单据</a-button>
</a-col>
</a-row>
</template>
</j-editable-table>
<a-row class="form-row" :gutter="24">
@@ -123,11 +128,13 @@
</a-form>
</a-spin>
<customer-modal ref="customerModalForm" @ok="customerModalFormOk"></customer-modal>
<history-bill-list ref="historyBillListModalForm"></history-bill-list>
</j-modal>
</template>
<script>
import pick from 'lodash.pick'
import CustomerModal from '../../system/modules/CustomerModal'
import HistoryBillList from '../dialog/HistoryBillList'
import { FormTypes } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { BillModalMixin } from '../mixins/BillModalMixin'
@@ -141,6 +148,7 @@
mixins: [JEditableTableMixin, BillModalMixin],
components: {
CustomerModal,
HistoryBillList,
JUpload,
JDate,
JSelectMultiple,
@@ -285,6 +293,11 @@
rows: JSON.stringify(detailArr),
}
},
handleHistoryBillList() {
let organId = this.form.getFieldValue('organId')
this.$refs.historyBillListModalForm.show('其它', '销售订单', '客户', organId);
this.$refs.historyBillListModalForm.disableSubmit = false;
},
}
}
</script>