|
|
|
@ -12,9 +12,9 @@ |
|
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
|
<el-table-column :label="$t('page.business.resource.sj.bh')" align="left" prop="bh" |
|
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
|
<el-table-column :label="$t('page.business.resource.sj.sjczfs')" align="center" width="250px"> |
|
|
|
<el-table-column :label="$t('page.business.resource.sj.czfs')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<BusinessSelect v-model="scope.row.czfs" dictType="system_business_czfs"></BusinessSelect> |
|
|
|
<BusinessSelect v-model="scope.row.czfs" dictType="business_czfs"></BusinessSelect> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.business.resource.sj.yuanyin')" align="center"> |
|
|
|
@ -72,7 +72,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { sj_plcz } from "@/api/business/sj/sj" |
|
|
|
import { plcz } from "@/api/business/gsp/gsp" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import SelectList from "./SelectList"; |
|
|
|
import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
|
@ -147,10 +147,36 @@ export default { |
|
|
|
save() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
sj_plcz(this.form).then(response => { |
|
|
|
this.open = false |
|
|
|
this.$emit('callback') |
|
|
|
}) |
|
|
|
let params = this.form |
|
|
|
params.list = this.selectList |
|
|
|
if (this.selectList.length <= 0) { |
|
|
|
this.$modal.msgError("请选择要操作的试剂") |
|
|
|
} else { |
|
|
|
for (var i = 0; i < params.list.length; i++) { |
|
|
|
if (!params.list[i].czfs || params.list[i].czfs == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "处置方式不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].czyy || params.list[i].czyy == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "处置原因不能为空") |
|
|
|
return |
|
|
|
} else { |
|
|
|
params.list[i].remark = params.list[i].czyy |
|
|
|
} |
|
|
|
if (!params.list[i].czl || params.list[i].czl == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "处置量不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
this.$modal.loading() |
|
|
|
plcz(params).then(response => { |
|
|
|
this.open = false |
|
|
|
this.$emit('callback') |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|