imeik-bizui 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bizui/src/FieldApplyTypeView/data.js +2 -1
- package/dist/bizui/src/FieldMaterialSelect/components/ProductList.vue +45 -3
- package/dist/bizui/src/FieldMaterialSelect/index.vue +17 -2
- package/dist/imeik-bizui.common.js +180 -115
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +180 -115
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +4 -4
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -83,11 +83,12 @@ const typeItems = {
|
|
|
83
83
|
type: 'ImInput',
|
|
84
84
|
prop: 'promiseTarget',
|
|
85
85
|
label: '承诺目标',
|
|
86
|
+
span: 24,
|
|
86
87
|
rules: [{ required: true, message: '请输入承诺目标' }],
|
|
87
88
|
attrs: {
|
|
88
89
|
type: 'textarea',
|
|
89
90
|
rows: 4,
|
|
90
|
-
maxlength:
|
|
91
|
+
maxlength: 500,
|
|
91
92
|
'show-word-limit': true,
|
|
92
93
|
placeholder: '注明:在上述时间断内可完成多少提货'
|
|
93
94
|
}
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
<template slot="materialCountInfo" slot-scope="{ row }">
|
|
14
14
|
<div class="flex countView">
|
|
15
15
|
<!-- <span class="materialCount">申请数量:</span> -->
|
|
16
|
-
<el-input
|
|
16
|
+
<el-input
|
|
17
|
+
v-if="!isView"
|
|
18
|
+
v-model="row.materialQuantity"
|
|
19
|
+
type="number"
|
|
20
|
+
:class="{ 'is-error': !row.materialQuantity && row.valid === false }"
|
|
21
|
+
style="margin-right: 30px"
|
|
22
|
+
:min="0"
|
|
23
|
+
placeholder="请输入数量"
|
|
24
|
+
@input="handleInput(row)"
|
|
25
|
+
></el-input>
|
|
17
26
|
<p v-else>{{ row.materialQuantity || '-' }}</p>
|
|
18
27
|
</div>
|
|
19
28
|
<p class="materialSubName" style="margin-top: 8px">规格型号:{{ row.materialModel }}</p>
|
|
@@ -66,14 +75,19 @@
|
|
|
66
75
|
</el-radio-group>
|
|
67
76
|
<div v-else>{{ row.materialIsSpecifiedBatch === '1' ? '是' : '否' }}</div>
|
|
68
77
|
<div v-if="row.materialIsSpecifiedBatch === '1' && !approvalInputBatch">
|
|
69
|
-
<el-input v-if="!isView" v-model="row.materialBatch" style="margin-top: 16px" placeholder="请输入批次号"></el-input>
|
|
78
|
+
<el-input v-if="!isView" v-model="row.materialBatch" style="margin-top: 16px" :class="{ 'is-error': !row.materialBatch && row.valid === false }" placeholder="请输入批次号"></el-input>
|
|
70
79
|
<div v-else>{{ row.materialBatch || '-' }}</div>
|
|
71
80
|
</div>
|
|
81
|
+
<!-- 在审批时候要处理的输入框 -->
|
|
82
|
+
<div v-if="row.materialIsSpecifiedBatch === '1' && approvalInputBatch && fromApproval">
|
|
83
|
+
<el-input v-model="row.materialBatch" style="margin-top: 16px" :class="{ 'is-error': !row.materialBatch && row.valid === false }" placeholder="请输入批次号"></el-input>
|
|
84
|
+
</div>
|
|
72
85
|
</template>
|
|
73
86
|
<template slot="warehouse" slot-scope="{ row }">
|
|
74
|
-
<el-select v-if="
|
|
87
|
+
<el-select v-if="fromApproval" v-model="row.warehouseNumber" placeholder="请选择" :class="{ 'is-error': !row.materialBatch && row.valid === false }" @change="(val) => handleChangeWarehouse(val, row)">
|
|
75
88
|
<el-option v-for="item in warehouseList || []" :key="item.warehouseNumber" style="width: 100%" :label="item.warehouseName" :value="item.warehouseNumber"> </el-option>
|
|
76
89
|
</el-select>
|
|
90
|
+
<div v-else>{{ row.warehouseName || '-' }}</div>
|
|
77
91
|
</template>
|
|
78
92
|
<template slot="remarks" slot-scope="{ row }">
|
|
79
93
|
<el-input v-if="!isView" v-model="row.materialRemark" type="textarea" :rows="5" show-word-limit maxlength="100" placeholder="请输入"></el-input>
|
|
@@ -119,6 +133,11 @@ export default {
|
|
|
119
133
|
inject: {
|
|
120
134
|
formProps: {
|
|
121
135
|
default: () => {}
|
|
136
|
+
},
|
|
137
|
+
getPropControl: {
|
|
138
|
+
default() {
|
|
139
|
+
return () => {}
|
|
140
|
+
}
|
|
122
141
|
}
|
|
123
142
|
},
|
|
124
143
|
props: {
|
|
@@ -205,6 +224,15 @@ export default {
|
|
|
205
224
|
'min-width': '160'
|
|
206
225
|
}
|
|
207
226
|
},
|
|
227
|
+
warehouse: {
|
|
228
|
+
prop: 'warehouse',
|
|
229
|
+
label: '库房',
|
|
230
|
+
type: 'slot',
|
|
231
|
+
slot: 'warehouse',
|
|
232
|
+
attrs: {
|
|
233
|
+
'min-width': '160'
|
|
234
|
+
}
|
|
235
|
+
},
|
|
208
236
|
materialBatchInfo: {
|
|
209
237
|
prop: 'materialBatchInfo',
|
|
210
238
|
label: '是否指定批次',
|
|
@@ -256,6 +284,14 @@ export default {
|
|
|
256
284
|
warehouseList: []
|
|
257
285
|
}
|
|
258
286
|
},
|
|
287
|
+
computed: {
|
|
288
|
+
/**
|
|
289
|
+
* 内嵌在审批流里的页面形式
|
|
290
|
+
*/
|
|
291
|
+
fromApproval() {
|
|
292
|
+
return this.$route.query.from === 'approval'
|
|
293
|
+
}
|
|
294
|
+
},
|
|
259
295
|
watch: {
|
|
260
296
|
tableItemArr: {
|
|
261
297
|
immediate: true,
|
|
@@ -552,4 +588,10 @@ export default {
|
|
|
552
588
|
padding-left: 16px !important;
|
|
553
589
|
padding-right: 16px !important;
|
|
554
590
|
}
|
|
591
|
+
.is-error {
|
|
592
|
+
/deep/ .el-input__inner {
|
|
593
|
+
color: #f4334a;
|
|
594
|
+
border-color: #f4334a;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
555
597
|
</style>
|
|
@@ -86,6 +86,10 @@ export default {
|
|
|
86
86
|
this.$bizui.bus.$on('applySubmit', (val) => {
|
|
87
87
|
this.handleValidate()
|
|
88
88
|
})
|
|
89
|
+
// 审批时候提交的处理
|
|
90
|
+
this.$bizui.bus.$on('approvalSubmit', (val) => {
|
|
91
|
+
this.handleApprovalValidate()
|
|
92
|
+
})
|
|
89
93
|
// 监听主体切换的回调
|
|
90
94
|
this.$bizui.bus.$on('formBelongCompanyChange', (val) => {
|
|
91
95
|
this.tableData = []
|
|
@@ -100,13 +104,24 @@ export default {
|
|
|
100
104
|
})
|
|
101
105
|
}
|
|
102
106
|
},
|
|
107
|
+
handleApprovalValidate() {
|
|
108
|
+
this.tableData.forEach((item) => {
|
|
109
|
+
if (!item.warehouseNumber) {
|
|
110
|
+
this.$message.warning('请检查库房')
|
|
111
|
+
item.valid = false
|
|
112
|
+
} else if (item.materialIsSpecifiedBatch === '1' && this.attrs.approvalInputBatch && !item.materialBatch) {
|
|
113
|
+
this.$message.warning('请检查批次号')
|
|
114
|
+
item.valid = false
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
},
|
|
103
118
|
handleValidate() {
|
|
104
119
|
this.tableData.forEach((item) => {
|
|
105
120
|
if (!item.materialQuantity) {
|
|
106
|
-
this.$message.
|
|
121
|
+
this.$message.warning('请检查物料数量')
|
|
107
122
|
item.valid = false
|
|
108
123
|
} else if (this.tableItemArr.includes('batch') && !this.attrs.approvalInputBatch && item.materialIsSpecifiedBatch === '1' && !item.materialBatch) {
|
|
109
|
-
this.$message.
|
|
124
|
+
this.$message.warning('请检查批次号信息')
|
|
110
125
|
item.valid = false
|
|
111
126
|
} else {
|
|
112
127
|
item.valid = true
|