列表刷新

duizhaopin_ui
cxw 2 years ago
parent a173611c68
commit f426ef8a07

@ -6,7 +6,7 @@
<el-form-item label="试剂名称" prop="name"> <el-form-item label="试剂名称" prop="name">
<!-- <el-input v-model="formData.name" placeholder="请输入试剂名称" clearable :style="{width: '100%'}" /> --> <!-- <el-input v-model="formData.name" placeholder="请输入试剂名称" clearable :style="{width: '100%'}" /> -->
<el-autocomplete <el-autocomplete
v-model="formData.value" v-model="formData.name"
class="inline-input" class="inline-input"
:style="{width: '100%'}" :style="{width: '100%'}"
:fetch-suggestions="querySearchAsync" :fetch-suggestions="querySearchAsync"
@ -286,7 +286,7 @@ export default {
// this.formData['name'] = this.formData.value // this.formData['name'] = this.formData.value
// //
this.$set(this.formData, 'name', this.formData.value) this.$set(this.formData, 'name', this.formData.name)
// delete this.formData['value'] // delete this.formData['value']
console.log(this.formData, '-----------------------') console.log(this.formData, '-----------------------')
this.$emit('handlefunc', this.formData) this.$emit('handlefunc', this.formData)

@ -69,12 +69,24 @@
title="选择审批生效时间" title="选择审批生效时间"
> >
<div class="box"> <div class="box">
<div> <el-form ref="form" :model="form" label-width="80px">
<el-radio v-model="radio1" label="2" border>2小时</el-radio> <el-form-item label="生效时间">
<el-radio v-model="radio1" label="4" border>4小时</el-radio> <el-radio-group v-model="radio1">
<el-radio v-model="radio1" label="6" border>6小时</el-radio> <el-radio label="2" border>2小时</el-radio>
<el-radio v-model="radio1" label="8" border>8小时</el-radio> <el-radio label="4" border>4小时</el-radio>
</div> <el-radio label="6" border>6小时</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="审批意见">
<el-radio-group v-model="radio2">
<el-radio label="1" border>同意</el-radio>
<el-radio label="0" border>驳回</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="备注">
<el-input type="textarea" v-model="information"></el-input>
</el-form-item>
</el-form>
</div> </div>
<div slot="footer" style="text-align: center"> <div slot="footer" style="text-align: center">
<el-button @click="dialogVisible=false"></el-button> <el-button @click="dialogVisible=false"></el-button>
@ -125,6 +137,8 @@ export default {
return { return {
// drugStockForm:[], // drugStockForm:[],
radio1:'2', radio1:'2',
radio2:'1',
information:'',
page: 1, page: 1,
page_size: 10, page_size: 10,
total: 0, total: 0,
@ -175,7 +189,9 @@ export default {
var that=this var that=this
const data={ const data={
id:that.row.id, id:that.row.id,
t:that.radio1 t:that.radio1,
result:that.radio2,
information:that.information
} }
update_solve(stringify(data)).then(rsp => { update_solve(stringify(data)).then(rsp => {
console.log(rsp) console.log(rsp)

@ -298,7 +298,10 @@ export default {
return Object.assign({}, { name: item.name, num: item.num,client_id: item.client_id, purity: item.purity, speci: item.speci}) return Object.assign({}, { name: item.name, num: item.num,client_id: item.client_id, purity: item.purity, speci: item.speci})
}) })
if (pt_from.user_id_pt === '') { if (pt_from.user_id_pt === '') {
alert("请选择陪同人"); that.$message({
type: 'info',
message: '请选择陪同人'
});
}else{ }else{
const data = { const data = {
user_id: this.$store.state.user.id, user_id: this.$store.state.user.id,
@ -312,6 +315,7 @@ export default {
// //
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
that.checkList=[] that.checkList=[]
this.get_apply()
} }
}) })
} }

@ -197,14 +197,15 @@ export default {
this.getDrugInfo(this.barCode) this.getDrugInfo(this.barCode)
if (this.$route.name.indexOf('Receiving') !== -1) { if (this.$route.name.indexOf('Receiving') !== -1) {
use(stringify({ 'bar_code': this.barCode })).then(res => { use(stringify({ 'bar_code': this.barCode })).then(res => {
this.tableData.push(res.data) // this.tableData.push(res.data)
this.getList()
this.$message.success(res.data.name + ' 试剂领用成功!') this.$message.success(res.data.name + ' 试剂领用成功!')
}) })
} }
}, },
getList() { getList() {
const data = { const data = {
status: this.$route.name === 'Receiving' ? 4 : 2, status: this.$route.name === 'Receiving' ? 1 : 2,
page: this.page, page: this.page,
page_size: this.page_size page_size: this.page_size
} }
@ -284,7 +285,8 @@ export default {
'remain': w ? parseFloat(this.inputWeigh).toFixed(2) : this.surplusWeigh 'remain': w ? parseFloat(this.inputWeigh).toFixed(2) : this.surplusWeigh
} }
drug_return(stringify(data)).then(res => { drug_return(stringify(data)).then(res => {
this.tableData.push(res.data) // this.tableData.push(res.data)
this.getList()
this.dialogVisible = false this.dialogVisible = false
this.$message.success('归还成功!') this.$message.success('归还成功!')
}) })

Loading…
Cancel
Save