luojie 2 weeks ago
parent
commit
01b7f535ff
34 changed files with 317 additions and 210 deletions
  1. +12
    -0
      src/components/Template/Step.vue
  2. +93
    -0
      src/components/Template/StepComponents/ry/csqx.vue
  3. +109
    -0
      src/components/Template/StepComponents/ry/rj.vue
  4. +1
    -1
      src/lang/en/template/dl.js
  5. +1
    -1
      src/lang/zh/template/dl.js
  6. +32
    -72
      src/views/business/comps/template/comps/dl/DL016.vue
  7. +13
    -72
      src/views/business/comps/template/comps/dl/DL017.vue
  8. +8
    -43
      src/views/business/comps/template/comps/dl/DL018.vue
  9. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Gd.vue
  10. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Jd.vue
  11. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Jq.vue
  12. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Js.vue
  13. +1
    -0
      src/views/business/resource/gsp/comps/ffjl/Jy.vue
  14. +2
    -0
      src/views/business/resource/gsp/comps/ffjl/Sd.vue
  15. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Cc.vue
  16. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Cz.vue
  17. +1
    -0
      src/views/business/resource/gsp/comps/gsp/CzBatch.vue
  18. +3
    -3
      src/views/business/resource/gsp/comps/gsp/Ff.vue
  19. +2
    -0
      src/views/business/resource/gsp/comps/gsp/Gd.vue
  20. +9
    -16
      src/views/business/resource/gsp/comps/gsp/Gh.vue
  21. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Js.vue
  22. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Jy.vue
  23. +2
    -0
      src/views/business/resource/gsp/comps/gsp/Sd.vue
  24. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Xz.vue
  25. +1
    -0
      src/views/business/resource/gsp/comps/gsp/Ysff.vue
  26. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Bj.vue
  27. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Gd.vue
  28. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Jd.vue
  29. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Js.vue
  30. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Jy.vue
  31. +3
    -1
      src/views/business/resource/gsp/comps/rkjl/RkjlImport.vue
  32. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Sd.vue
  33. +1
    -0
      src/views/business/resource/gsp/comps/rkjl/Xz.vue
  34. +3
    -1
      src/views/business/storageLocation/comps/StorageLocationImport.vue

+ 12
- 0
src/components/Template/Step.vue View File

@ -82,6 +82,11 @@ import kbsjgsp from "./StepComponents/ry/kbsjgsp.vue";//溶液-空白(试剂/
import kb from "./StepComponents/ry/kb.vue";//-
import jr from "./StepComponents/ry/jr.vue";//-
import fz from "./StepComponents/ry/fz.vue";//-
//-使-
//-使-
//-使-
import csqx from "./StepComponents/ry/csqx.vue";//-
import rj from "./StepComponents/ry/rj.vue";//-
//
//
@ -445,6 +450,8 @@ export default {
kb,
jr,
fz,
csqx,
rj,
//
//
@ -644,6 +651,11 @@ export default {
'kb': 'kb',
'jr': 'jr',
'fz': 'fz',
'ypfz': 'fz',
'gyzjfz': 'fz',
'gspypfz': 'fz',
'csqx': 'csqx',
'rj': 'rj',
//
//

+ 93
- 0
src/components/Template/StepComponents/ry/csqx.vue View File

@ -0,0 +1,93 @@
<!-- 超声清洗 -->
<template>
<StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ry_csqx'" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'csqx',
},
},
components: {
StepFormPackage
},
computed: {
formConfig() {
let config = [{
config: {
text1: {
label: "使用超声波清洗机",
type: "text",
},
yq: {
type: "yq",
fillType: "actFill",
},
text2: {
label: "仪器,设置预计频率为",
type: "text",
},
yjpl: {
type: "inputNumber",
fillType: "preFill",
},
text3: {
label: "Hz,实际设置频率为",
type: "text",
},
sjpl: {
type: "inputNumber",
fillType: "actFill",
compareTo: "yjpl",
copyFrom: "yjpl",
},
text4: {
label: "Hz,设置预计时长为",
type: "text",
},
yjsc: {
type: "inputNumber",
fillType: "preFill",
},
yjscdw: {
type: "select",
options: this.getDictOptions("business_yqscdw"),
selectTo: "sjscdw",
fillType: "preFill",
},
text5: {
label: ",实际设置时长为",
type: "text",
},
sjsc: {
type: "inputNumber",
fillType: "actFill",
compareTo: "yjsc",
copyFrom: "yjsc",
},
sjscdw: {
type: "select",
options: this.getDictOptions("business_yqscdw"),
fillType: "preFill",
},
text6: {
label: ",进行超声。",
type: "text",
},
}
}]
return config
}
},
}
</script>
<style lang="scss" scoped></style>

+ 109
- 0
src/components/Template/StepComponents/ry/rj.vue View File

@ -0,0 +1,109 @@
<!-- 融解 -->
<template>
<StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ry_rj'" @resetRecord="resetRecord" :form-config="formConfig"
@select="select"
:formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'rj',
},
},
components: {
StepFormPackage
},
methods: {
select(data) {
const {value,key} = data;
if(key==='sjccwz'){
this.updateWcData("sjwd",value);
}
}
},
computed: {
formConfig() {
let config = [{
config: {
text1: {
label: "将",
type: "text",
},
ypmc:{
type:"input",
fillType:"preFill",
},
sj:{
type:"sj",
fillType:"actFill",
},
text2: {
label: "预计放置于",
type: "text",
},
ccwz: {
type: "input",
// options: this.getDictOptions("business_ccwz"),
fillType: "preFill",
otherCode: "ccwzOther",
},
text3: {
label: "实际放置于",
type: "text",
},
sjccwz: {
type: "select",
options: this.getDictOptions("business_ccwz"),
fillType: "actFill",
otherCode: "sjccwzOther",
compareTo: "ccwz",
},
text4: {
label: "位置,其环境条件预计为",
type: "text",
},
yjwd: {
type: "select",
options: this.getDictOptions("business_cctj"),
multiple: true,
fillType: "preFill",
otherCode: "yjwdOther",
},
text5: {
label: ",实际条件为",
type: "text",
},
sjwd: {
type: "select",
options: this.getDictOptions("business_cctj"),
multiple: true,
fillType: "actFill",
otherCode: "sjwdOther",
compareTo: "yjwd",
},
text6: {
label: "进行融解",
type: "text",
},
text9: {
type: "text",
label: "。",
},
}
}]
return config
}
},
}
</script>
<style lang="scss" scoped></style>

+ 1
- 1
src/lang/en/template/dl.js View File

@ -288,7 +288,7 @@ export default {
},
dl018: {
xbxx: '细胞信息',
sydd: '试验地点',
sydd: '测定地点',
czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',

+ 1
- 1
src/lang/zh/template/dl.js View File

@ -282,7 +282,7 @@ export default {
},
dl018: {
xbxx: '细胞信息',
sydd: '试验地点',
sydd: '测定地点',
czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',

+ 32
- 72
src/views/business/comps/template/comps/dl/DL016.vue View File

@ -15,12 +15,12 @@
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
@onRegentSubmit="onRegentSubmit" />
<LineLabel label="template.dl.dl016.qcxjjyqk" />
<CustomTable @headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord="beforeSaveRecord" :showAddRow="false" :showOperation="false"
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="formData">
</CustomTable>
<LineLabel label="template.dl.dl016.qcxjjyqk" />
<CustomTable
fieldItemLabel="template.dl.dl016.qcxjjyqk"
:showAddRow="false" :showOperation="false"
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="formData">
</CustomTable>
<LineLabel label="template.dl.dl016.czbz" />
<Step ref="stepRef" :formData="formData.stepData"></Step>
@ -59,13 +59,6 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData || [],
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -181,20 +174,18 @@ export default {
// width: 180,
// bodyFillType: "actFill",
// bodyMaxlength: 10,
// headerSelectKey: 'qsxjjrldw',
// fillType: "actFill",
// headerOptions: this.getDictOptions('business_nddw'),
// bodyType: 'inputNumber',
label: "template.dl.dl016.qsxjjrl",
prop: 'qsxjjrl',
width: 280,
headerSelectKey: 'qsxjjrldw',
fillType: "preFill",
headerOptions: this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
copyFrom: 'ysqyl',
compareTo: 'ysqyl',
// headerSelectKey: 'qsxjjrldw',
// fillType: "actFill",
// headerOptions: this.getDictOptions('business_nddw'),
// bodyType: 'inputNumber',
label: "template.dl.dl016.qsxjjrl",
prop: 'qsxjjrl',
width: 180,
headerSelectKey: 'qsxjjrldw',
fillType: "preFill",
headerOptions: this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
}
]
},
@ -215,51 +206,20 @@ export default {
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
xybh: item.xybh || '', //
qsxjjrl: '', //
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
} catch (error) {
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
}
},
//table header
onHeaderSelectChange(data) {
const { key, headerSelectFields, dataSource = [] } = data;
const keys = [
'targetStartSolutionVolumeUnit',
'targetDiluentVolumeUnit',
'targetSolutionConcentrationUnit',
'targetSolutionVolumeUnit',
]
if (keys.includes(key)) {
const { targetStartSolution, subTargetStartSolution } = this.$refs.swypyjInfoRef?.getFilledFormData();
const params = {
subTargetStartSolution,
headerSelectFields
}
this.batchUpdateTargetStartSolutionVolume(dataSource, targetStartSolution, params)
}
},
beforeSaveRecord(data) {
const formFields = this.$refs.swypyjInfoRef?.getFilledFormData();
this.onCommonVerifyNdException(formFields, data);
},
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
xybh: item.xybh || '', //
qsxjjrl: '', //
id:this.getuuid(),
}))
this.$refs.qcxjjyqkTableRef.updateDataSource(itemData);
} catch (error) {
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef", "remarkRef"])

+ 13
- 72
src/views/business/comps/template/comps/dl/DL017.vue View File

@ -17,11 +17,9 @@
<LineLabel label="template.dl.dl017.xbczqk" />
<CustomTable
@headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
fieldItemLabel="template.common.operationSteps"
:showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="tableFormData">
ref="stepTableRef" :columns="stepColumns" :formData="formData">
</CustomTable>
<LineLabel label="template.dl.dl017.czbz" />
@ -62,13 +60,6 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData,
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -206,56 +197,56 @@ export default {
},{
label: "template.dl.dl017.ddpyy",
prop: "ddpyy",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.xd",
prop: "xd",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.sj",
prop: "sj",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.ds",
prop: "ds",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.dy1gd",
prop: "dy1gd",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.dy2gd",
prop: "dy2gd",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.dy3gd",
prop: "dy3gd",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
},{
label: "template.dl.dl017.dy4gd",
prop: "dy4gd",
width: 180,
width: 100,
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
@ -282,13 +273,6 @@ export default {
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '',
@ -303,60 +287,17 @@ export default {
dy1gd: '',
dy2gd: '',
dy3gd: '',
dy4gd: ''
dy4gd: '',
id:this.getuuid(),
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
this.$refs.stepTableRef.updateDataSource(itemData);
} catch (error) {
this.$set(this.formData, 'stepTableFormData', [])
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
}
},
//table header
onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data;
const keys = [
'targetStartSolutionVolumeUnit',
'targetDiluentVolumeUnit',
'targetSolutionConcentrationUnit',
'targetSolutionVolumeUnit',
]
if(keys.includes(key)){
const {targetStartSolution,subTargetStartSolution} = this.$refs.swypyjInfoRef?.getFilledFormData();
const params = {
subTargetStartSolution,
headerSelectFields
}
this.batchUpdateTargetStartSolutionVolume(dataSource,targetStartSolution,params)
}
},
beforeSaveRecord(data){
const formFields = this.$refs.swypyjInfoRef?.getFilledFormData();
this.onCommonVerifyNdException(formFields,data);
},
configComplete(val) {
const { rowData, headerSelectFields } = val;
//(+)
const { total, unit } = addTj([rowData.actStartSolutionVolume, rowData.actDiluentVolume], [headerSelectFields.actStartSolutionVolumeUnit, headerSelectFields.actDiluentVolumeUnit])
let postData = {
mc: null,
bh: rowData.targetSolutionCode + rowData.subTargetSolutionCode,
nd: rowData.actSolutionConcentration,//
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
studyId:this.formData.studyId,
kc: total,
kcdw: unit,
}
this.configCompleteRequest(postData);
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])

+ 8
- 43
src/views/business/comps/template/comps/dl/DL018.vue View File

@ -17,10 +17,10 @@
<LineLabel label="template.dl.dl018.xbczqk" />
<CustomTable
fieldItemLabel="template.common.operationSteps"
fieldItemLabel="template.dl.dl018.xbczqk"
@clickButton="handleClickButton"
:showAddRow="false" :showOperation="false"
ref="stepTableRef" :prefixKey = "`tableSecond`" :columns="stepColumns" :formData="tableFormData">
ref="stepTableRef" :prefixKey = "`tableSecond`" :columns="stepColumns" :formData="formData">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow(rowIndex,'secondTable')" ></TableOpertaionDelete>
</template>
@ -65,13 +65,6 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData || [],
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -193,6 +186,7 @@ export default {
bodySubFillType: 'actFill',
bodyFillType: 'actFill',
bodyDisabled: true,
bodySubDisabled:this.fillType !== 'actFill',
width: 280,
bodyMaxlength: 50,
},
@ -205,6 +199,7 @@ export default {
bodySubKey: 'rsjs1',
bodySubFillType: 'actFill',
bodyFillType: 'actFill',
bodySubDisabled:this.fillType !== 'actFill',
bodyDisabled: true,
width: 280,
bodyMaxlength: 50,
@ -256,11 +251,10 @@ export default {
},
methods: {
//
handleClickButton(e, rowIndex) {
handleClickButton(e, rowIndex,colIndex,key,data) {
const arrStr = typeof e === 'string' ? e.slice(0, -1) : '';
const updateData = { [arrStr]: moment().format('YYYY/MM/DD HH:mm') };
this.$refs.stepTableRef?.updateDataSourceByRowIndex(rowIndex, updateData);
// console.log(this.getFilledFormData())
this.$refs.stepTableRef?.updateDataSourceByRowIndex(rowIndex, updateData,{signData:data,updateFields:[arrStr]});
},
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
@ -272,13 +266,6 @@ export default {
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
@ -290,37 +277,15 @@ export default {
zy: '', //
yx: '', //
tj: '', //
id:this.getuuid(),
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
this.$refs.stepTableRef.updateDataSource(itemData);
} catch (error) {
this.$set(this.formData, 'stepTableFormData', [])
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
}
},
//table header
onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data;
const keys = [
'targetStartSolutionVolumeUnit',
'targetDiluentVolumeUnit',
'targetSolutionConcentrationUnit',
'targetSolutionVolumeUnit',
]
if(keys.includes(key)){
const {targetStartSolution,subTargetStartSolution} = this.$refs.swypyjInfoRef?.getFilledFormData();
const params = {
subTargetStartSolution,
headerSelectFields
}
this.batchUpdateTargetStartSolutionVolume(dataSource,targetStartSolution,params)
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])

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

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

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

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

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

@ -117,6 +117,7 @@ export default {
if (valid) {
js(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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 => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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) {
plsd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
} else {
sd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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 => {
this.open = false
this.$emit('callback')
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()

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

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

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

@ -30,11 +30,10 @@
</template>
</el-table-column>
<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">
<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>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px">
@ -427,6 +426,7 @@ export default {
} else {
ff(params).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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) {
plgd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
} else {
gd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
}

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

@ -68,7 +68,7 @@
</el-col>
<el-col :span="12">
<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-col>
</el-row>
@ -172,10 +172,11 @@
import { gh, info } from "@/api/business/gsp/gsp"
import { mapGetters } from 'vuex'
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
export default {
name: "GspGh",
components: { SelectDeptUser },
components: { SelectDeptUser, BusinessSelect },
data() {
return {
isBatch: false,
@ -275,20 +276,12 @@ export default {
},
show(row) {
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() {
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) {
js(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
}

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

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

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

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

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

@ -214,6 +214,7 @@ export default {
if (valid) {
bj(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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) {
plgd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
} else {
gd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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) {
jdBatch(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
} else {
jd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
}

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

@ -117,6 +117,7 @@ export default {
if (valid) {
js(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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 => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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.isUploading = false
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) {
this.$modal.msgSuccess("导入成功");
this.$emit('callback')
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) {
plsd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
} else {
sd(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
this.$emit('callback')
})
}

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

@ -221,6 +221,7 @@ export default {
if (valid) {
xz(this.form).then(response => {
this.open = false
this.$modal.msgSuccess(this.$t('form.operationSuccess'))
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.isUploading = false
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) {
this.$modal.msgSuccess("导入成功");
this.$emit('callback')
this.cancel()
} else {
this.$modal.alertError(response.msg);
}
},
//

Loading…
Cancel
Save