diff --git a/src/views/StockApply/AddStockApply.vue b/src/views/StockApply/AddStockApply.vue
index 58523f2b..c8791a1d 100644
--- a/src/views/StockApply/AddStockApply.vue
+++ b/src/views/StockApply/AddStockApply.vue
@@ -202,7 +202,7 @@ export default {
// 部门数据
depts: [],
// 申请人回显
- applyPersonId: '',
+ applyPersonId: 'xu x can',
// 控制申请人
stockControl: false,
// 类别数据
@@ -216,9 +216,11 @@ export default {
control: false,
// 采购申请单信息数据
personalForm: {
+ applyPersonId: 3,
createPersonId: 3,
countryId: 1,
repositoryId: 438,
+ applyDeptId: 1,
regionId: 2,
sourceType: '1',
applyDate: null
diff --git a/src/views/Stockenter/addstockenter.vue b/src/views/Stockenter/addstockenter.vue
index d97f18ea..a7ddca42 100644
--- a/src/views/Stockenter/addstockenter.vue
+++ b/src/views/Stockenter/addstockenter.vue
@@ -19,6 +19,12 @@
+
+
+
+
+
+
@@ -71,12 +77,6 @@
-
-
-
-
-
-
@@ -89,7 +89,7 @@
v-model="personalForm.enterDate"
type="date"
value-format="yyyy-MM-dd"
- style="margin-left: 18px"/>
+ style="margin-left: 18px;width: 200px"/>
@@ -118,7 +118,7 @@
-
+
-
+
@@ -196,7 +196,17 @@ export default {
callback()
}
}
+ const validatePass4 = (rule, value, callback) => {
+ console.log(value)
+ if (value > this.mid || value === 0 || value === null || value === undefined) {
+ callback(new Error('计划数量不能为空'))
+ } else {
+ callback()
+ }
+ }
return {
+ // 中转
+ mid: null,
// 控制供应商不可以编辑
IssupplierId: false,
// 控制采购到货单
@@ -211,7 +221,7 @@ export default {
// 明细表控制框
control: false,
// 验收人回显
- acceptPersonId: '',
+ acceptPersonId: 'xucan',
// 验收人控制框
accetpcontrol: false,
// 交货人回显
@@ -227,19 +237,22 @@ export default {
// 采购员回显
stockPersonId: '',
// 入库员回显
- enterPersonId: 'xucan',
+ enterPersonId: 'xu x can',
// 供货商回显
supplierId: '',
// 供货商控制
empcontrol: false,
// 入库仓库回显
- enterRepositoryId: '',
+ enterRepositoryId: 'ssss',
// 仓库选择控制期
repositorycontrol: false,
// 入库单明细数据
list2: [],
// 入库单明细列表规则
validRules: {
+ actualEnterQuantity: [
+ { required: true, validator: validatePass4, trigger: 'blur' }
+ ],
step: [
{ required: true, message: '请输入流程步骤', trigger: 'blur' }
],
@@ -254,10 +267,12 @@ export default {
personalForm: {
enterDate: null,
repositoryId: 438,
+ enterRepositoryId: 438,
regionId: 2,
createPersonId: 3,
enterPersonId: 3,
countryId: 1,
+ acceptPersonId: 3,
sourceType: '1'
},
// 个人信息规则数据
@@ -294,6 +309,9 @@ export default {
this.getdatatime()
},
methods: {
+ beyond(scope, value) {
+ this.mid = scope.row.basicQuantity
+ },
getdatatime() { // 默认显示今天
const date = new Date()
date.setTime(date.getTime())
@@ -457,11 +475,13 @@ export default {
stockName(val) {
this.stockPersonId = val.personName
this.personalForm.stockPersonId = val.id
+ this.personalForm.stockDeptId = val.deptId
},
// 采购员回显
enterName(val) {
this.enterPersonId = val.personName
this.personalForm.enterPersonId = val.id
+ this.personalForm.enterDeptId = val.deptId
},
// 供应商输入框focus事件触发
handlechoose() {
@@ -498,6 +518,7 @@ export default {
if (res.data.ret === 200) {
if (res.data.data.content.length !== 0) {
this.locationlist = res.data.data.content
+ scope.row.locationId = res.data.data.content[0].id
} else if (res.data.data.content.length === 0) {
locationlist(this.personalForm.enterRepositoryId).then(res => {
if (res.data.ret === 200) {