{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }} @@ -83,16 +83,6 @@
-
- - +
+
- - - - - - - - - - - - - - - - - - - - - +
@@ -97,11 +74,13 @@ import ButtonBar from '@/components/ButtonBar' import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' +import divadd from '@/views/component/initial_value/add/supplierAdd.vue' export default { components: { ButtonBar, Pagination, pageye, + divadd }, data () { const checkPhone = (rule, value, callback) => { @@ -206,42 +185,9 @@ export default { this.total = result.data.total this.supplierList = result.data.rows }, - closeSupplierDialog () { - this.$refs.supplierRuleForm.resetFields() - }, - addSupplierDialog () { - this.title = '新增供应商' - this.supplierDialogVisible = true - }, - updataSupplierdialog (supplier) { - this.supplierForm.name = supplier.name - this.supplierForm.contacts = supplier.contacts - this.supplierForm.number = supplier.number - this.supplierForm.remarks = supplier.remarks - this.title = '修改供应商' - this.supplierDialogVisible = true - }, - addSupplier () { - this.$refs.supplierRuleForm.validate(async valid => { - const { data: result } = await this.$http.post('/supplier/addSupplier', this.supplierForm) - if (result.status !== 200) return this.$message.error('添加供应商失败') - this.$message.success('成功添加供应商') - this.getSupplierList() - this.supplierDialogVisible = false - }) - }, - async updataSupplier () { - const { data: result } = await this.$http.put('/supplier/updataSupplier', this.supplierForm) - if (result.status !== 200) return this.$message.error('修改供应商失败') - this.$message.success('更新成功') - this.getSupplierList() - this.supplierDialogVisible = false - }, - operationSupplier () { - if (this.title === '新增供应商') return this.addSupplier() - if (this.title === '修改供应商') { - this.updataSupplier() - } + updataSupplierdialog (row) { + this.viewState = 3 + this.$refs['divadd'].showEdit(row) }, async deleteSupplier (supplier) { const result = await this.$confirm('此操作将永久删除' + supplier.name + ', 是否继续?', '提示', { @@ -257,7 +203,7 @@ export default { }, toAdd() { this.viewState = 2 - // this.$refs['divadd'].showAdd() + this.$refs['divadd'].showAdd() }, doClose() { this.$store.dispatch('tagsView/delView', this.$route) diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue new file mode 100644 index 00000000..f758638a --- /dev/null +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue @@ -0,0 +1,476 @@ + + + + + + + \ No newline at end of file diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue index 0b3633c3..c99fa787 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue @@ -25,36 +25,43 @@
- - +
+
- - - -
- -
-
主体信息
-
- - - - 订单日期: - - - - - - - - - - - 订单编号: - - - - - - - - - - 供货商名称: - - - - - - - - - - - - - - - 采购申请人: - - - - - - - - - - - 客户名称: - - - - - - - - - - - - - - 仓库名称: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
+