mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-11 00:21:53 +08:00
✨ ERP:增加 ERP 客户的实现
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
link
|
||||
type="primary"
|
||||
@click="handleUpdateStatus(scope.row.id, 20)"
|
||||
v-hasPermi="['erp:stock-in:update']"
|
||||
v-hasPermi="['erp:stock-in:update-status']"
|
||||
v-if="scope.row.status === 10"
|
||||
>
|
||||
审批
|
||||
@@ -208,7 +208,7 @@
|
||||
link
|
||||
type="danger"
|
||||
@click="handleUpdateStatus(scope.row.id, 10)"
|
||||
v-hasPermi="['erp:stock-in:update']"
|
||||
v-hasPermi="['erp:stock-in:update-status']"
|
||||
v-else
|
||||
>
|
||||
反审批
|
||||
|
@@ -34,7 +34,7 @@
|
||||
class="!w-1/1"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in supplierList"
|
||||
v-for="item in customerList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -79,6 +79,7 @@
|
||||
import { StockOutApi, StockOutVO } from '@/api/erp/stock/out'
|
||||
import StockOutItemForm from './components/StockOutItemForm.vue'
|
||||
import { SupplierApi, SupplierVO } from '@/api/erp/purchase/supplier'
|
||||
import { CustomerApi, CustomerVO } from '@/api/erp/sale/customer'
|
||||
|
||||
/** ERP 其它出库单表单 */
|
||||
defineOptions({ name: 'StockOutForm' })
|
||||
@@ -103,7 +104,7 @@ const formRules = reactive({
|
||||
})
|
||||
const disabled = computed(() => formType.value === 'detail')
|
||||
const formRef = ref() // 表单 Ref
|
||||
const supplierList = ref<SupplierVO[]>([]) // 客户列表
|
||||
const customerList = ref<CustomerVO[]>([]) // 客户列表
|
||||
|
||||
/** 子表的表单 */
|
||||
const subTabsName = ref('item')
|
||||
@@ -125,7 +126,7 @@ const open = async (type: string, id?: number) => {
|
||||
}
|
||||
}
|
||||
// 加载客户列表
|
||||
supplierList.value = await SupplierApi.getSupplierSimpleList()
|
||||
customerList.value = await CustomerApi.getCustomerSimpleList()
|
||||
}
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
|
@@ -51,7 +51,7 @@
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in supplierList"
|
||||
v-for="item in customerList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@@ -152,7 +152,7 @@
|
||||
<el-table-column width="30" label="选择" type="selection" />
|
||||
<el-table-column min-width="140" label="出库单号" align="center" prop="no" />
|
||||
<el-table-column label="产品信息" align="center" prop="productNames" min-width="200" />
|
||||
<el-table-column label="客户" align="center" prop="supplierName" />
|
||||
<el-table-column label="客户" align="center" prop="customerName" />
|
||||
<el-table-column
|
||||
label="出库时间"
|
||||
align="center"
|
||||
@@ -199,7 +199,7 @@
|
||||
link
|
||||
type="primary"
|
||||
@click="handleUpdateStatus(scope.row.id, 20)"
|
||||
v-hasPermi="['erp:stock-out:update']"
|
||||
v-hasPermi="['erp:stock-out:update-status']"
|
||||
v-if="scope.row.status === 10"
|
||||
>
|
||||
审批
|
||||
@@ -208,7 +208,7 @@
|
||||
link
|
||||
type="danger"
|
||||
@click="handleUpdateStatus(scope.row.id, 10)"
|
||||
v-hasPermi="['erp:stock-out:update']"
|
||||
v-hasPermi="['erp:stock-out:update-status']"
|
||||
v-else
|
||||
>
|
||||
反审批
|
||||
@@ -249,6 +249,7 @@ import { SupplierApi, SupplierVO } from '@/api/erp/purchase/supplier'
|
||||
import { UserVO } from '@/api/system/user'
|
||||
import * as UserApi from '@/api/system/user'
|
||||
import { erpCountTableColumnFormatter, erpPriceTableColumnFormatter } from '@/utils'
|
||||
import { CustomerApi, CustomerVO } from '@/api/erp/sale/customer'
|
||||
|
||||
/** ERP 其它出库单列表 */
|
||||
defineOptions({ name: 'ErpStockOut' })
|
||||
@@ -273,7 +274,7 @@ const queryFormRef = ref() // 搜索的表单
|
||||
const exportLoading = ref(false) // 导出的加载中
|
||||
const productList = ref<ProductVO[]>([]) // 产品列表
|
||||
const warehouseList = ref<WarehouseVO[]>([]) // 仓库列表
|
||||
const supplierList = ref<SupplierVO[]>([]) // 客户列表 TODO 芋艿:需要改下
|
||||
const customerList = ref<CustomerVO[]>([]) // 客户列表
|
||||
const userList = ref<UserVO[]>([]) // 用户列表
|
||||
|
||||
/** 查询列表 */
|
||||
@@ -360,7 +361,7 @@ onMounted(async () => {
|
||||
// 加载产品、仓库列表、客户
|
||||
productList.value = await ProductApi.getProductSimpleList()
|
||||
warehouseList.value = await WarehouseApi.getWarehouseSimpleList()
|
||||
supplierList.value = await SupplierApi.getSupplierSimpleList()
|
||||
customerList.value = await CustomerApi.getCustomerSimpleList()
|
||||
userList.value = await UserApi.getSimpleUserList()
|
||||
})
|
||||
// TODO 芋艿:可优化功能:列表界面,支持导入
|
||||
|
Reference in New Issue
Block a user