|
@@ -359,6 +359,22 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="选择信息模板" prop="userTempId">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="form.userTempId"
|
|
|
|
|
+ placeholder="请选择信息模板"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ filterable
|
|
|
|
|
+ style="width: 240px;"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in userTempOptions"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -377,6 +393,7 @@ import {
|
|
|
} from '@/api/hisStore/pickupGoods'
|
|
} from '@/api/hisStore/pickupGoods'
|
|
|
import { getAllStoreProductCategory } from '@/api/hisStore/storeProductCategory'
|
|
import { getAllStoreProductCategory } from '@/api/hisStore/storeProductCategory'
|
|
|
import { getCompanyList } from '@/api/company/company'
|
|
import { getCompanyList } from '@/api/company/company'
|
|
|
|
|
+import { listFsStoreProductUserTemp } from '@/api/hisStore/storeProductUserTemp'
|
|
|
import Treeselect from '@riophae/vue-treeselect'
|
|
import Treeselect from '@riophae/vue-treeselect'
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
import Editor from '@/components/Editor/wang'
|
|
import Editor from '@/components/Editor/wang'
|
|
@@ -416,6 +433,7 @@ export default {
|
|
|
isShowOptions: [],
|
|
isShowOptions: [],
|
|
|
categoryOptions: [],
|
|
categoryOptions: [],
|
|
|
companyOptions: [],
|
|
companyOptions: [],
|
|
|
|
|
+ userTempOptions: [],
|
|
|
companyId: null,
|
|
companyId: null,
|
|
|
photoArr: [],
|
|
photoArr: [],
|
|
|
imageArr: [],
|
|
imageArr: [],
|
|
@@ -489,6 +507,7 @@ export default {
|
|
|
getCompanyList().then(response => {
|
|
getCompanyList().then(response => {
|
|
|
this.companyOptions = response.data
|
|
this.companyOptions = response.data
|
|
|
})
|
|
})
|
|
|
|
|
+ this.loadUserTempOptions()
|
|
|
this.getTreeselect()
|
|
this.getTreeselect()
|
|
|
this.getList()
|
|
this.getList()
|
|
|
},
|
|
},
|
|
@@ -538,6 +557,14 @@ export default {
|
|
|
this.categoryOptions = this.handleTree(response.data, 'cateId', 'pid')
|
|
this.categoryOptions = this.handleTree(response.data, 'cateId', 'pid')
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ loadUserTempOptions() {
|
|
|
|
|
+ listFsStoreProductUserTemp({
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 1000
|
|
|
|
|
+ }).then(response => {
|
|
|
|
|
+ this.userTempOptions = response.rows || []
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
listPickupGoods(this.queryParams).then(response => {
|
|
listPickupGoods(this.queryParams).then(response => {
|
|
@@ -573,6 +600,7 @@ export default {
|
|
|
isDrug: '0',
|
|
isDrug: '0',
|
|
|
drugImage: null,
|
|
drugImage: null,
|
|
|
purchaseLimit: null,
|
|
purchaseLimit: null,
|
|
|
|
|
+ userTempId: null,
|
|
|
tuiCateId: null
|
|
tuiCateId: null
|
|
|
}
|
|
}
|
|
|
this.drugImageArr = []
|
|
this.drugImageArr = []
|
|
@@ -638,6 +666,9 @@ export default {
|
|
|
if (this.form.tuiCateId != null) {
|
|
if (this.form.tuiCateId != null) {
|
|
|
this.form.tuiCateId = response.data.tuiCateId.toString()
|
|
this.form.tuiCateId = response.data.tuiCateId.toString()
|
|
|
}
|
|
}
|
|
|
|
|
+ this.form.userTempId = response.data.userTempId != null
|
|
|
|
|
+ ? response.data.userTempId
|
|
|
|
|
+ : (response.data.user_temp_id != null ? response.data.user_temp_id : null)
|
|
|
this.form.isDrug = response.data.isDrug === 0 ? '0' : (response.data.isDrug ? response.data.isDrug.toString() : '0')
|
|
this.form.isDrug = response.data.isDrug === 0 ? '0' : (response.data.isDrug ? response.data.isDrug.toString() : '0')
|
|
|
if (this.form.drugImage != null) {
|
|
if (this.form.drugImage != null) {
|
|
|
this.drugImageArr = this.form.drugImage.split(',')
|
|
this.drugImageArr = this.form.drugImage.split(',')
|
|
@@ -679,6 +710,8 @@ export default {
|
|
|
this.form.items = []
|
|
this.form.items = []
|
|
|
this.form.values = this.oneFormValidate
|
|
this.form.values = this.oneFormValidate
|
|
|
const params = { ...this.form }
|
|
const params = { ...this.form }
|
|
|
|
|
+ params.user_temp_id = this.form.userTempId
|
|
|
|
|
+ delete params.userTempId
|
|
|
if (params.companyIds != null && params.companyIds.length) {
|
|
if (params.companyIds != null && params.companyIds.length) {
|
|
|
params.companyIds = params.companyIds.join(',')
|
|
params.companyIds = params.companyIds.join(',')
|
|
|
}
|
|
}
|