|
@@ -50,6 +50,24 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="入库仓库" prop="storageId">
|
|
|
+ <el-select
|
|
|
+ v-model="dataForm.storageId"
|
|
|
+ filterable
|
|
|
+ :disabled="inputParam.openType === 'view'"
|
|
|
+ placeholder="请选择供应商"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in cangkuList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.storageName"
|
|
|
+ :value="item.storageId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item label="采购单图片" prop="imageUrl">
|
|
|
<template v-if="inputParam.openType !== 'view'">
|
|
@@ -211,6 +229,7 @@ import { getToken } from '@/utils/auth'
|
|
|
import { confirmPurchaseSheet, editPurchaseSheet, getPurchaseSheet } from '@/api/material-system/shop/purchase-sheet'
|
|
|
import { listPageV2 } from '@/api/auxiliaryFittings/supplier'
|
|
|
import { getWebsit } from '@/api/customerManagement.js'
|
|
|
+import { storageListPageV2 } from '@/api/storage'
|
|
|
export default {
|
|
|
name: 'PurchaseArea',
|
|
|
props: {
|
|
@@ -268,6 +287,7 @@ export default {
|
|
|
websitId: '', // 网点ID
|
|
|
websitName: '', // 网点名称
|
|
|
venderId: '', // 供应商ID
|
|
|
+ storageId: '',
|
|
|
venderName: '', // 供应商名称
|
|
|
purchaseTime: '', // 采购日期
|
|
|
imageUrl: '',
|
|
@@ -276,6 +296,7 @@ export default {
|
|
|
items: [] // 关系辅材列表
|
|
|
},
|
|
|
dataFormRules: {
|
|
|
+ storageId: [{ require: true, message: '请选择采购日期', trigger: 'blur' }],
|
|
|
purchaseTime: [{ require: true, message: '请选择采购日期', trigger: 'blur' }],
|
|
|
cost: [{ validator: validateCost, trigger: 'blur' }],
|
|
|
recQty: [{ validator: validateRecQty, trigger: 'blur' }],
|
|
@@ -287,7 +308,8 @@ export default {
|
|
|
innerVisible: false,
|
|
|
searchGoods: '',
|
|
|
saveBtn: false, // 保存按钮状态
|
|
|
- authShop: []
|
|
|
+ authShop: [],
|
|
|
+ cangkuList: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -346,6 +368,23 @@ export default {
|
|
|
this.dataForm = {
|
|
|
...data
|
|
|
}
|
|
|
+
|
|
|
+ storageListPageV2({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [
|
|
|
+ { param: 'a.websit_id', compare: '=', value: data.websitId },
|
|
|
+ {
|
|
|
+ param: 'a.type',
|
|
|
+ compare: 'like',
|
|
|
+ value: '辅材'
|
|
|
+ },
|
|
|
+ { param: 'a.status', compare: '=', value: 'true' }
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.cangkuList = res.data.records
|
|
|
+ this.dataForm.storageId = this.cangkuList?.[0]?.storageId || ''
|
|
|
+ })
|
|
|
Object.assign(this.orgDataForm, this.dataForm)
|
|
|
},
|
|
|
// 获取供应商列表
|