Browse Source

fix:[资源库管理][供试品]

luojie
HanLong 2 weeks ago
parent
commit
0402b3648f
26 changed files with 48 additions and 21 deletions
  1. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Gd.vue
  2. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Jd.vue
  3. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Jq.vue
  4. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Js.vue
  5. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Jy.vue
  6. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Sd.vue
  7. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Cc.vue
  8. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Cz.vue
  9. +1
    -0
      src/views/business/resource/gsp/comps/gsp/CzBatch.vue
  10. +3
    -3
      src/views/business/resource/gsp/comps/gsp/Ff.vue
  11. +2
    -0
      src/views/business/resource/gsp/comps/gsp/Gd.vue
  12. +9
    -16
      src/views/business/resource/gsp/comps/gsp/Gh.vue
  13. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Js.vue
  14. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Jy.vue
  15. +2
    -0
      src/views/business/resource/gsp/comps/gsp/Sd.vue
  16. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Xz.vue
  17. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Ysff.vue
  18. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Bj.vue
  19. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Gd.vue
  20. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Jd.vue
  21. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Js.vue
  22. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Jy.vue
  23. +3
    -1
      src/views/business/resource/gsp/comps/rkjl/RkjlImport.vue
  24. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Sd.vue
  25. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Xz.vue
  26. +3
    -1
      src/views/business/storageLocation/comps/StorageLocationImport.vue

+ 2
- 0
src/views/business/resource/gsp/comps/ffjl/Gd.vue View File

@ -141,11 +141,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plgd(this.form).then(response => { plgd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
gd(this.form).then(response => { gd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 2
- 0
src/views/business/resource/gsp/comps/ffjl/Jd.vue View File

@ -130,11 +130,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
jdBatch(this.form).then(response => { jdBatch(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
jd(this.form).then(response => { jd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/ffjl/Jq.vue View File

@ -114,6 +114,7 @@ export default {
if (valid) { if (valid) {
jq(this.form).then(response => { jq(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/ffjl/Js.vue View File

@ -117,6 +117,7 @@ export default {
if (valid) { if (valid) {
js(this.form).then(response => { js(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/ffjl/Jy.vue View File

@ -149,6 +149,7 @@ export default {
jy(this.form).then(response => { jy(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 2
- 0
src/views/business/resource/gsp/comps/ffjl/Sd.vue View File

@ -141,11 +141,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plsd(this.form).then(response => { plsd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
sd(this.form).then(response => { sd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Cc.vue View File

@ -176,6 +176,7 @@ export default {
cc(this.form).then(response => { cc(this.form).then(response => {
this.open = false this.open = false
this.$emit('callback') this.$emit('callback')
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$modal.closeLoading() this.$modal.closeLoading()
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Cz.vue View File

@ -152,6 +152,7 @@ export default {
if (valid) { if (valid) {
cz(this.form).then(response => { cz(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/CzBatch.vue View File

@ -172,6 +172,7 @@ export default {
plcz(params).then(response => { plcz(params).then(response => {
this.open = false this.open = false
this.$emit('callback') this.$emit('callback')
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$modal.closeLoading() this.$modal.closeLoading()
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

+ 3
- 3
src/views/business/resource/gsp/comps/gsp/Ff.vue View File

@ -30,11 +30,10 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.resource.gsp.zysx')" align="center" prop="zysx" <el-table-column :label="$t('page.business.resource.gsp.zysx')" align="center" prop="zysx"
width="130px" />
width="130px" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('page.business.resource.gsp.zytj')" align="center" width="250px"> <el-table-column :label="$t('page.business.resource.gsp.zytj')" align="center" width="250px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input type="text" v-model="scope.row.zytj" maxlength="50"
:placeholder="$t('form.placeholderInput')" />
<BusinessSelect v-model="scope.row.zytj" dictType="business_zytj"></BusinessSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px"> <el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px">
@ -427,6 +426,7 @@ export default {
} else { } else {
ff(params).then(response => { ff(params).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 2
- 0
src/views/business/resource/gsp/comps/gsp/Gd.vue View File

@ -117,11 +117,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plgd(this.form).then(response => { plgd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
gd(this.form).then(response => { gd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 9
- 16
src/views/business/resource/gsp/comps/gsp/Gh.vue View File

@ -68,7 +68,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('page.business.resource.gsp.zytj')" prop="ghzytj"> <el-form-item :label="$t('page.business.resource.gsp.zytj')" prop="ghzytj">
<el-input type="text" v-model="form.ghzytj" maxlength="50" />
<BusinessSelect v-model="form.ghzytj" dictType="business_zytj"></BusinessSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -172,10 +172,11 @@
import { gh, info } from "@/api/business/gsp/gsp" import { gh, info } from "@/api/business/gsp/gsp"
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
export default { export default {
name: "GspGh", name: "GspGh",
components: { SelectDeptUser },
components: { SelectDeptUser, BusinessSelect },
data() { data() {
return { return {
isBatch: false, isBatch: false,
@ -275,20 +276,12 @@ export default {
}, },
show(row) { show(row) {
this.reset() this.reset()
this.form.id = row.id
this.form.mc = row.mc
this.form.bh = row.bh
this.form.ph = row.ph
this.form.gg = row.gg
this.form.ggdw = row.ggdw
this.form.yxq = row.yxq
this.form.jsrq = row.jsrq
this.form.ffrq = row.ffrq
this.form.cctj = row.cctj
this.form.kc = row.kc
this.form.kcdw = row.kcdw
this.form.zysx = row.zysx
this.open = true
info({id: row.id}).then(response => {
this.form = response.data
this.open = true
})
}, },
save() { save() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Js.vue View File

@ -117,6 +117,7 @@ export default {
if (valid) { if (valid) {
js(this.form).then(response => { js(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Jy.vue View File

@ -175,6 +175,7 @@ export default {
if (valid) { if (valid) {
jy(this.form).then(response => { jy(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })

+ 2
- 0
src/views/business/resource/gsp/comps/gsp/Sd.vue View File

@ -116,11 +116,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plsd(this.form).then(response => { plsd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
sd(this.form).then(response => { sd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Xz.vue View File

@ -226,6 +226,7 @@ export default {
if (valid) { if (valid) {
save(this.form).then(response => { save(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/gsp/Ysff.vue View File

@ -207,6 +207,7 @@ export default {
params.list = this.selectList params.list = this.selectList
ysff(params).then(response => { ysff(params).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/rkjl/Bj.vue View File

@ -214,6 +214,7 @@ export default {
if (valid) { if (valid) {
bj(this.form).then(response => { bj(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 2
- 0
src/views/business/resource/gsp/comps/rkjl/Gd.vue View File

@ -141,11 +141,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plgd(this.form).then(response => { plgd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
gd(this.form).then(response => { gd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 2
- 0
src/views/business/resource/gsp/comps/rkjl/Jd.vue View File

@ -131,11 +131,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
jdBatch(this.form).then(response => { jdBatch(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
jd(this.form).then(response => { jd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/rkjl/Js.vue View File

@ -117,6 +117,7 @@ export default {
if (valid) { if (valid) {
js(this.form).then(response => { js(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/rkjl/Jy.vue View File

@ -149,6 +149,7 @@ export default {
jy(this.form).then(response => { jy(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 3
- 1
src/views/business/resource/gsp/comps/rkjl/RkjlImport.vue View File

@ -118,10 +118,12 @@ export default {
this.upload.open = false this.upload.open = false
this.upload.isUploading = false this.upload.isUploading = false
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
if(response.code == 200) { if(response.code == 200) {
this.$modal.msgSuccess("导入成功");
this.$emit('callback') this.$emit('callback')
this.cancel() this.cancel()
} else {
this.$modal.alertError(response.msg);
} }
}, },
// //

+ 2
- 0
src/views/business/resource/gsp/comps/rkjl/Sd.vue View File

@ -141,11 +141,13 @@ export default {
if (this.isBatch) { if (this.isBatch) {
plsd(this.form).then(response => { plsd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} else { } else {
sd(this.form).then(response => { sd(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 1
- 0
src/views/business/resource/gsp/comps/rkjl/Xz.vue View File

@ -221,6 +221,7 @@ export default {
if (valid) { if (valid) {
xz(this.form).then(response => { xz(this.form).then(response => {
this.open = false this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback') this.$emit('callback')
}) })
} }

+ 3
- 1
src/views/business/storageLocation/comps/StorageLocationImport.vue View File

@ -118,10 +118,12 @@ export default {
this.upload.open = false this.upload.open = false
this.upload.isUploading = false this.upload.isUploading = false
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
if(response.code == 200) { if(response.code == 200) {
this.$modal.msgSuccess("导入成功");
this.$emit('callback') this.$emit('callback')
this.cancel() this.cancel()
} else {
this.$modal.alertError(response.msg);
} }
}, },
// //

Loading…
Cancel
Save