|
@@ -51,6 +51,22 @@
|
|
|
</a-tree-select>
|
|
|
</a-form-item>
|
|
|
</a-col>-->
|
|
|
+ <a-col :lg="12" :md="24" :sm="24">
|
|
|
+ <a-form-item
|
|
|
+ label="申请部门"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
+ >
|
|
|
+ <a-select @change="typeChange" v-decorator="['applyDept', {initValue: 1, rules: [{required: true, message: '申请部门不能为空'}]}]" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in deptYYMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="value">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
|
<a-form-item
|
|
|
label="出库类型"
|
|
@@ -216,6 +232,7 @@ export default {
|
|
|
storeId: null,
|
|
|
// 下拉框map
|
|
|
typeMap: {},
|
|
|
+ deptYYMap: {},
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -298,13 +315,13 @@ export default {
|
|
|
// 下拉框map
|
|
|
this.getSbPositions()
|
|
|
this.feeFromMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.FEE_FORM_TYPE)
|
|
|
+ this.deptYYMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_DEPT_CODE)
|
|
|
// this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
|
|
|
},
|
|
|
methods: {
|
|
|
base (record, model) {
|
|
|
this.visible = true
|
|
|
this.model = model
|
|
|
- console.log(model)
|
|
|
this.outFlag = record.outFlag
|
|
|
if (record.outFlag === 1) {
|
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
|
|
@@ -346,10 +363,12 @@ export default {
|
|
|
'id',
|
|
|
'outNo',
|
|
|
'userId',
|
|
|
+ 'applyDept',
|
|
|
'userTime',
|
|
|
'storeId',
|
|
|
'storeName',
|
|
|
'pickId',
|
|
|
+ 'feeFrom',
|
|
|
'pickNo',
|
|
|
'type',
|
|
|
'remark'
|
|
@@ -372,7 +391,9 @@ export default {
|
|
|
}
|
|
|
values.outFlag = this.outFlag
|
|
|
values.detailList = this.data
|
|
|
- values.pickId = this.model.id
|
|
|
+ if (this.model != null) {
|
|
|
+ values.pickId = this.model.id
|
|
|
+ }
|
|
|
values.userTime = BaseTool.Date.formatter(values.userTime, BaseTool.Date.PICKER_NORM_DATE_PATTERN)
|
|
|
// 日期处理
|
|
|
if (this.BaseTool.String.isBlank(values.id)) {
|