|
@@ -66,7 +66,7 @@
|
|
|
</el-col>
|
|
|
<el-col :lg="8">
|
|
|
<el-form-item label="入库地点" prop="addressId">
|
|
|
- <el-select v-model="editForm.addressId">
|
|
|
+ <el-select v-model="editForm.addressId" multiple collapse-tags>
|
|
|
<el-option
|
|
|
v-for="item in addressOpt"
|
|
|
:key="item.val"
|
|
@@ -177,6 +177,17 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :lg="24">
|
|
|
+ <el-form-item label="备注" prop="">
|
|
|
+ <el-input
|
|
|
+ v-model="editForm.remark"
|
|
|
+ :autosize="{ minRows: 2, maxRows: 5 }"
|
|
|
+ type="textarea"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="danger" @click="handleClose">关 闭</el-button>
|
|
@@ -272,6 +283,12 @@ export default {
|
|
|
})
|
|
|
this.editForm.endIds = endIds.substring(0, endIds.length - 1)
|
|
|
}
|
|
|
+ let addressIds = ''
|
|
|
+ this.editForm.addressId.forEach(item => {
|
|
|
+ addressIds += item + ','
|
|
|
+ })
|
|
|
+ this.editForm.addressIds = addressIds.substring(0, addressIds.length - 1)
|
|
|
+
|
|
|
const { code, msg } = await this.saveApi(this.editForm)
|
|
|
if (code === 0) {
|
|
|
this.$message.success(msg)
|
|
@@ -286,7 +303,11 @@ export default {
|
|
|
// 回调方法
|
|
|
back() {
|
|
|
if (this.editForm.addressId) {
|
|
|
- this.$set(this.editForm, 'addressId', this.editForm.addressId + '')
|
|
|
+ let ids = this.editForm.addressId.split(',')
|
|
|
+ this.editForm.addressId = []
|
|
|
+ ids.forEach(item => {
|
|
|
+ this.editForm.addressId.push(item)
|
|
|
+ })
|
|
|
}
|
|
|
if (this.editForm.startJumpIds) {
|
|
|
let ids = this.editForm.startJumpIds.split(',')
|