Browse Source

feat:[资源库管理]新增天平值读取

lkf
15881625488@163.com 2 months ago
parent
commit
5c9c9b28a2
5 changed files with 95 additions and 30 deletions
  1. +2
    -0
      src/lang/en.js
  2. +2
    -1
      src/lang/zh.js
  3. +64
    -0
      src/views/business/comps/select/SelectBalanceValue.vue
  4. +8
    -10
      src/views/business/resource/gyzj/comps/gyzj/Ff.vue
  5. +19
    -19
      src/views/business/resource/mjy/comps/mjy/Ff.vue

+ 2
- 0
src/lang/en.js View File

@ -104,6 +104,8 @@ export default {
reason: 'Reason',
modify: 'Modify',
modifyRecord: 'Change Data',
hqz:'Get the value',
xztp:'选择天平',
lengthLimit: '长度不能超过',
notEmpty: '不能为空',

+ 2
- 1
src/lang/zh.js View File

@ -100,7 +100,8 @@ export default {
reason: '原因',
modify: '修改',
modifyRecord: '修改记录',
hqz:'获取值',
xztp:'选择天平',
lengthLimit: '长度不能超过',
notEmpty: '不能为空',
operationSuccess: '操作成功',

+ 64
- 0
src/views/business/comps/select/SelectBalanceValue.vue View File

@ -0,0 +1,64 @@
<template>
<div>
<div style="display: flex;">
<div>
<el-input v-model="tpName" :placeholder="$t('form.xztp')" readonly
@click.native="showSelectBalance" style="width: 100px;"/>
</div>
<div>
<el-input v-model="tpz" :placeholder="$t('form.placeholderInput')" maxlength="20" @change="tpzChange">
<template slot="append">{{ dw }}
</template>
</el-input>
</div>
<div>
<el-button type="primary" @click="getBalanceValue">{{ $t('form.hqz') }}</el-button>
</div>
</div>
</div>
</template>
<script>
export default {
name: "SelectBalanceValue",
components: {},
props: {
value: {
type: [Number, String],
default: ''
},
dw: {
type: String,
default: ''
},
},
watch: {
value: {
immediate: true,
handler(v) {
this.tpz = v || ''
}
}
},
data() {
return {
tpName: '',
tpz: ''
};
},
mounted() {
},
methods: {
showSelectBalance() {
alert('todo')
},
getBalanceValue() {
alert('todo')
},
tpzChange() {
this.$emit('change', this.tpz)
this.$emit('input', this.tpz)
},
}
};
</script>

+ 8
- 10
src/views/business/resource/gyzj/comps/gyzj/Ff.vue View File

@ -42,10 +42,7 @@
</el-table-column>
<el-table-column :label="$t('page.business.resource.gyzj.ckmz')" align="center" width="250px">
<template slot-scope="scope">
<el-input type="text" v-model="scope.row.ckmz" maxlength="50" > <template slot="append">{{
scope.row.kcdw
}}</template>
</el-input>
<SelectBalanceValue v-model="scope.row.ckmz" :dw="scope.row.kcdw" />
</template>
</el-table-column>
<el-table-column :label="$t('form.remark')" align="center" width="250px">
@ -125,9 +122,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.gyzj.ckmz')" prop="ckmz">
<el-input type="text" v-model="form.ckmz" maxlength="50" > <template slot="append">{{ form.ckldw
}}</template>
</el-input>
<SelectBalanceValue v-model="form.ckmz" :dw="form.ckmzdw" />
</el-form-item>
</el-col>
</el-row>
@ -219,10 +214,11 @@ import SelectList from "./SelectList";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import SelectStudy from '@/views/business/comps/select/SelectStudy';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
import SelectBalanceValue from '@/views/business/comps/select/SelectBalanceValue';
export default {
name: "Ff",
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect },
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect,SelectBalanceValue },
data() {
return {
isBatch: false,
@ -401,8 +397,10 @@ export default {
this.form.nddw = row.nddw
this.form.cctj = row.cctj
this.form.ccwz = row.ccwz
this.form.ckl = row.ckl
this.form.ckldw = row.ckldw
this.form.ckl = row.kc
this.form.ckmz = null
this.form.ckmzdw = row.kcdw
this.form.ckldw = row.kcdw
this.open = true
},
save() {

+ 19
- 19
src/views/business/resource/mjy/comps/mjy/Ff.vue View File

@ -5,7 +5,7 @@
:close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'"
v-if="open">
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<div :style="isBatch ? 'display:block' : 'display:none'">
<el-row style="margin:10px 0px;">
<el-col :span="24">
@ -35,12 +35,9 @@
<BusinessSelect v-model="scope.row.zytj" dictType="business_zytj"></BusinessSelect>
</template>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.ckmz')" align="center" width="250px">
<el-table-column :label="$t('page.business.resource.mjy.ckmz')" align="center" width="400px">
<template slot-scope="scope">
<el-input type="text" v-model="scope.row.ckmz" maxlength="50"
:placeholder="$t('form.placeholderInput')"><template slot="append">{{ scope.row.ckmzdw
}}</template>
</el-input>
<SelectBalanceValue v-model="scope.row.ckmz" :dw="scope.row.ckmzdw" />
</template>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px">
@ -88,7 +85,7 @@
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.nd')">
<el-input type="text" v-model="form.nd" maxlength="50" disabled> <template slot="append">{{ form.nddw
}}</template>
}}</template>
</el-input>
</el-form-item>
</el-col>
@ -109,7 +106,7 @@
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ckjz')">
<el-input type="text" v-model="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw
}}</template>
}}</template>
</el-input>
</el-form-item>
</el-col>
@ -127,9 +124,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ckmz')" prop="ckmz">
<el-input type="number" v-model="form.ckmz" maxlength="20" :placeholder="$t('form.placeholderInput')">
<template slot="append">{{ form.ckmzdw }}</template>
</el-input>
<SelectBalanceValue v-model="form.ckmz" :dw="form.ckmzdw" />
</el-form-item>
</el-col>
</el-row>
@ -152,7 +147,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.lqr1') + $t('form.password')" prop="lqr1mm">
<el-input type="password" show-password v-model="form.lqr1mm" maxlength="20"
<el-input type="password" show-password v-model="form.lqr1mm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -165,7 +160,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.lqr2') + $t('form.password')" prop="lqr2mm">
<el-input type="password" show-password v-model="form.lqr2mm" maxlength="20"
<el-input type="password" show-password v-model="form.lqr2mm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -179,7 +174,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ffr1') + $t('form.password')" prop="ffr1mm">
<el-input type="password" show-password v-model="form.ffr1mm" maxlength="20"
<el-input type="password" show-password v-model="form.ffr1mm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -192,7 +187,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ffr2') + $t('form.password')" prop="ffr2mm">
<el-input type="password" show-password v-model="form.ffr2mm" maxlength="20"
<el-input type="password" show-password v-model="form.ffr2mm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -207,7 +202,8 @@
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="save" :disabled="isBatch && selectList.length == 0">{{ $t('form.confirm') }}</el-button>
<el-button type="primary" @click="save" :disabled="isBatch && selectList.length == 0">{{ $t('form.confirm')
}}</el-button>
<el-button @click="cancel">{{ $t('form.cancel') }}</el-button>
</div>
</el-dialog>
@ -221,10 +217,11 @@ import SelectList from "./SelectList";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import SelectStudy from '@/views/business/comps/select/SelectStudy';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
import SelectBalanceValue from '@/views/business/comps/select/SelectBalanceValue';
export default {
name: "Ff",
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect },
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect, SelectBalanceValue },
data() {
return {
isBatch: false,
@ -312,6 +309,9 @@ export default {
created() {
},
methods: {
getTpValue() {
alert('todo')
},
selectStudyChange(val) {
this.form.mdMcs = val.name
this.form.mdOther = val.mdOther
@ -407,8 +407,8 @@ export default {
this.form.nddw = row.nddw
this.form.cctj = row.cctj
this.form.ccwz = row.ccwz
this.form.ckl = row.ckl
this.form.ckldw = row.ckldw
this.form.ckl = row.kc
this.form.ckldw = row.kcdw
this.open = true
},
save() {

Loading…
Cancel
Save