| | |
| | | <template> |
| | | <div> |
| | | <a-card |
| | | :bordered="true" |
| | | style="height: 50%" |
| | | > |
| | | <a-row type="flex"> |
| | | <a-col><a-button |
| | | type="primary" |
| | | @click="handleAdd(da)" |
| | | >æ°å»º</a-button></a-col> |
| | | <a-col><a-button |
| | | type="primary" |
| | | @click="handleEdit(selectedRows)" |
| | | >ç¼è¾</a-button></a-col> |
| | | <a-col><a-button |
| | | type="primary" |
| | | @click="batchDel(da)" |
| | | >å é¤</a-button></a-col> |
| | | <a-col style="left: 5%"><a-button type="primary">模æ¿</a-button></a-col> |
| | | <a-col style="left: 5%"><a-button type="primary">导å
¥</a-button></a-col> |
| | | <a-col style="left: 5%"><a-button type="primary">导åº</a-button></a-col> |
| | | </a-row> |
| | | </a-card> |
| | | <a-row |
| | | type="flex" |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="5" |
| | | :sm="24" |
| | | <a-card :bordered="false" title='计éåä½'> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | Â Â Â |
| | | <MomUnitListLeft |
| | | ref="MomUnitListLeft" |
| | | class="MomUnitListLeft" |
| | | @treeSelect="treeSelect" |
| | | /> |
| | | Â Â |
| | | </a-col> |
| | | <a-col |
| | | :md="24 - 5" |
| | | :sm="24" |
| | | <a-row :gutter="24"> |
| | | |
| | | <a-col |
| | | :xl="6" |
| | | :lg="7" |
| | | :md="8" |
| | | :sm="24" |
| | | > |
| | | <a-form-item label="åä½ç¼ç "> |
| | | <j-input |
| | | placeholder="请è¾å
¥åä½ç¼ç " |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template> |
| | | <a-col |
| | | :xl="6" |
| | | :lg="7" |
| | | :md="8" |
| | | :sm="24" |
| | | > |
| | | <a-form-item label="åä½åç§°"> |
| | | <j-input |
| | | placeholder="请è¾å
¥åä½åç§°" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col |
| | | :xl="6" |
| | | :lg="7" |
| | | :md="8" |
| | | :sm="24" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | >æ°å¢</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item |
| | | key="1" |
| | | @click="batchDel" |
| | | ><a-icon type="delete" />å é¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | | <MomUnitListRight |
| | | ref="MomUnitListRight" |
| | | class="MomUnitListRight" |
| | | @searchkeys="selectedKeys" |
| | | /> |
| | | </a-col> |
| | | </a-row> |
| | | <mom-unit-modal |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange" |
| | | > |
| | | |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <unit-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></mom-unit-modal> |
| | | </div> |
| | | ></unit-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import MomUnitListLeft from './modules/unit/MomUnitListLeft' |
| | | import MomUnitListRight from './modules/unit/MomUnitListRight' |
| | | import MomUnitModal from './modules/unit/MomUnitModal' |
| | | |
| | | import '@assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { deleteAction } from '@/api/manage' |
| | | import UnitModal from './modules/unit/UnitModal' |
| | | |
| | | export default { |
| | | name: 'MomUnitList', |
| | | mixins: [JeecgListMixin], |
| | | components: { MomUnitListLeft, MomUnitListRight, MomUnitModal }, |
| | | name: 'EquipmentImportanceList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | UnitModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '计éåä½é¡µé¢', |
| | | currentOrgCode: '', |
| | | selectedRowKeys: [], |
| | | selectedRows: [], |
| | | description: '计éåä½ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | { |
| | | title: ' 计éåä½ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'num' |
| | | }, |
| | | { |
| | | title: '计éåä½åç§°', |
| | | align: "center", |
| | | dataIndex: 'name' |
| | | }, |
| | | { |
| | | title: 'å建人', |
| | | align: "center", |
| | | dataIndex: 'createBy' |
| | | }, |
| | | { |
| | | title: 'åå»ºæ¥æ', |
| | | align: "center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title: 'æ´æ°äºº', |
| | | align: "center", |
| | | dataIndex: 'updateBy' |
| | | }, |
| | | { |
| | | title: 'æ´æ°æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'updateTime' |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: "center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/base/getTree', |
| | | deleteBatch: '/base/unit/deleteMomUnit', |
| | | list: "/base/unit/list", |
| | | delete: "/base/unit/delete", |
| | | deleteBatch: "/base/unit/deleteBatch", |
| | | exportXlsUrl: "/eam/equipmentImportance/exportXls", |
| | | importExcelUrl: "/eam/equipmentImportance/importExcel", |
| | | |
| | | }, |
| | | da: [], |
| | | dictOptions: {}, |
| | | superFieldList: [], |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | //æ°å¢æ°æ®ï¼æ°å»ºæé®è§¦åï¼ |
| | | handleAdd(da) { |
| | | if (this.da.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸ä¸ªæ èç¹ï¼') |
| | | return |
| | | } else { |
| | | this.$refs.modalForm.add(da, { cb: this.callback }) |
| | | } |
| | | }, |
| | | //ä¿®æ¹æ°æ®ï¼ä¿®æ¹æé®è§¦åï¼ |
| | | handleEdit(selectedRows) { |
| | | if (this.selectedRows.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡éè¦ä¿®æ¹ç计éåä½ï¼') |
| | | return |
| | | } else if (this.selectedRows.length > 1) { |
| | | this.$message.warning('注æï¼åªè½éæ©ä¸æ¡è®¡éåä½è¿è¡ä¿®æ¹ï¼') |
| | | return |
| | | } else { |
| | | this.$refs.modalForm.edit(selectedRows, { cb: this.callback }) |
| | | } |
| | | }, |
| | | //æ¹éå é¤å³ä¾§æ°æ®ï¼å 餿é®è§¦åï¼ |
| | | batchDel(da) { |
| | | if (!this.url.deleteBatch) { |
| | | this.$message.error('请设置url.deleteBatch屿§!') |
| | | return |
| | | } |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡è®°å½ï¼') |
| | | return |
| | | } else { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认å é¤', |
| | | content: 'æ¯å¦å é¤é䏿°æ®?', |
| | | onOk: function () { |
| | | that.loading = true |
| | | deleteAction(that.url.deleteBatch, { ids: ids }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.loading = false |
| | | //éæ°è®¡ç®å页é®é¢ |
| | | that.reCalculatePage(that.selectedRowKeys.length) |
| | | that.onClearSelected() |
| | | that.$refs.MomUnitListRight.loadData({ id: da.id }) |
| | | that.loadTree() |
| | | }) |
| | | }, |
| | | }) |
| | | } |
| | | }, |
| | | //éæ°è®¡ç®å页 |
| | | reCalculatePage(count) { |
| | | //æ»æ°é-count |
| | | let total = this.ipagination.total - count |
| | | //è·åå é¤åçåé¡µæ° |
| | | let currentIndex = Math.ceil(total / this.ipagination.pageSize) |
| | | //å é¤åçå页æ°<æå¨å½å页 |
| | | if (currentIndex < this.ipagination.current) { |
| | | this.ipagination.current = currentIndex |
| | | } |
| | | console.log('currentIndex', currentIndex) |
| | | }, |
| | | //æ¸
é¤å³ä¾§éä¸é¡¹ |
| | | onClearSelected() { |
| | | this.selectedRowKeys = [] |
| | | this.selectedRows = [] |
| | | }, |
| | | //å·¦å³èå¨ï¼da为左侧é䏿 çæ°æ®ï¼åæ§ä»¶ä¸è¿åï¼ |
| | | treeSelect(da) { |
| | | let id = da.id |
| | | this.da = da |
| | | this.onClearSelected() |
| | | this.$refs.MomUnitListRight.loadData({ unitCategoryId: id }) |
| | | }, |
| | | //å³ä¾§å表éä¸äºä»¶ |
| | | selectedKeys(selectedRowKeys, selectedRows) { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectedRows = selectedRows |
| | | }, |
| | | //å 载左侧æ |
| | | loadTree() { |
| | | this.$refs.MomUnitListLeft.queryTreeData() |
| | | }, |
| | | //æ°å¢ç¼è¾ä¿åååè°å½æ°åæ¾é¡µé¢æ°æ® |
| | | callback(id) { |
| | | this.$refs.MomUnitListRight.loadData({ id: id }) |
| | | this.$refs.MomUnitListRight.getList() |
| | | created() { |
| | | // this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | // initDictConfig() { |
| | | // }, |
| | | // getSuperFieldList() { |
| | | // let fieldList = []; |
| | | // fieldList.push({ type: 'string', value: 'num', text: 'éè¦åº¦ç¼ç ', dictCode: '' }) |
| | | // fieldList.push({ type: 'string', value: 'name', text: 'éè¦åº¦åç§°', dictCode: '' }) |
| | | // fieldList.push({ type: 'string', value: 'remark', text: '夿³¨', dictCode: '' }) |
| | | // fieldList.push({ type: 'string', value: 'createBy', text: 'å建人', dictCode: '' }) |
| | | // fieldList.push({ type: 'datetime', value: 'createTime', text: 'åå»ºæ¥æ' }) |
| | | // fieldList.push({ type: 'string', value: 'updateBy', text: 'æ´æ°äºº', dictCode: '' }) |
| | | // fieldList.push({ type: 'datetime', value: 'updateTime', text: 'æ´æ°æ¥æ' }) |
| | | // this.superFieldList = fieldList |
| | | // } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning='confirmLoading'> |
| | | <j-form-container :disabled='formDisabled'> |
| | | <a-form-model ref='form' :model='model' :rules='validatorRules' slot='detail'> |
| | | <a-row :span='24'> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='åä½ç¼ç ' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder='请è¾å
¥åä½ç¼ç '></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='åä½åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='name'> |
| | | <a-input v-model='model.name' placeholder='请è¾å
¥åä½åç§°'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :span='24'> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='夿³¨' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='remark'> |
| | | <a-textarea v-model='model.remark' placeholder='请è¾å
¥å¤æ³¨'></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | |
| | | |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'UnitForm', |
| | | components: {}, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请è¾å
¥åä½ç¼ç !' }, |
| | | { validator: (rule, value, callback) => validateDuplicateValue('mom_base_unit', 'num', value, this.model.id, callback) } |
| | | ], |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥åä½åç§°!' }, |
| | | { validator: (rule, value, callback) => validateDuplicateValue('mom_base_unit', 'name', value, this.model.id, callback) } |
| | | ] |
| | | }, |
| | | url: { |
| | | add: '/base/unit/add', |
| | | edit: '/base/unit/edit', |
| | | queryById: '/base/unit/queryById' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disabled |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)) |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.edit(this.modelDefault) |
| | | }, |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | | }, |
| | | submitForm() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let httpurl = '' |
| | | let method = '' |
| | | if (!this.model.id) { |
| | | httpurl += this.url.add |
| | | method = 'post' |
| | | } else { |
| | | httpurl += this.url.edit |
| | | method = 'put' |
| | | } |
| | | httpAction(httpurl, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <unit-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></unit-form> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import UnitForm from './UnitForm' |
| | | export default { |
| | | name: 'UnitModal', |
| | | components: { |
| | | UnitForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | dataIndex: 'constructorId_dictText', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: "center", |
| | | dataIndex: 'mainUnitId_dictText', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | }, |
| | | }, */ |
| | | // { |
| | | // title: '主æ°é', |
| | | // align: "center", |
| | |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="主åä½" |
| | | label="åä½" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©ä¸»åä½'" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©åä½'" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_unit,name,id,status!='0' and del_flag!='1'" |
| | | v-decorator="['mainUnitId', validatorRules.mainUnitId]" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24 / 2"> |
| | | <!-- <a-col :span="24 / 2"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | @change="(e)=>handle3Change(e)" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col>--> |
| | | <a-col :span="24 / 2 "> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | <!-- hidden --> |
| | | <!-- <a-row style="width: 100%"> |
| | | <!– hidden –> |
| | | <a-col :span="24 / 2 "> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row>--> |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24 / 2"> |
| | | <a-form-item |
| | |
| | | dataIndex: 'supplierName' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'åºåºæ°é', |
| | | align: 'center', |
| | | dataIndex: 'outboundMainQuantity' |
| | | }, |
| | | { |
| | | title: 'éåºä¸»æ°é', |
| | | title: 'éåºæ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity' |
| | | }, |
| | |
| | | dataIndex: 'warehouseLocationNum' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | |
| | | align: 'center', |
| | | dataIndex: 'outboundMainQuantity' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'éåºæ°é', |
| | | align: 'center', |
| | |
| | | model: data[i].model, |
| | | mainUnitId: data[i].mainUnitId, |
| | | mainUnitName: data[i].mainUnitName, |
| | | auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, |
| | | conversionRatio: data[i].conversionRatio, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, */ |
| | | /* conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | supplierId: data[i].supplierId, |
| | |
| | | align: 'center', |
| | | dataIndex: 'warehouseLocationNum' |
| | | },*/ |
| | | { |
| | | /* { |
| | | |
| | | title: 'è®¡ç®æ¯ä¾', |
| | | align: "center", |
| | | dataIndex: 'conversionRatio', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'ä¾åºå', |
| | | align: "center", |
| | |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | | { |
| | | title: 'åºåºä¸»æ°é', |
| | | title: 'åºåºæ°é', |
| | | align: 'center', |
| | | dataIndex: 'outboundMainQuantity' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | | }, |
| | | }, */ |
| | | /* { |
| | | title: 'åºåè¾
æ°é', |
| | | align: 'center', |
| | |
| | | dataIndex: 'constructorId_dictText', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: "center", |
| | | dataIndex: 'mainUnitId_dictText', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'æ»ä¸»æ°é', |
| | | title: 'æ»æ°é', |
| | | align: "center", |
| | | dataIndex: 'totalMainQuantity', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'æ»è¾
æ°é', |
| | | align: "center", |
| | | dataIndex: 'totalAuxiliaryQuantity', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'æææ', |
| | | align: "center", |
| | |
| | | dataIndex: 'batchNum', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: "center", |
| | | dataIndex: 'mainUnitName', |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: "center", |
| | | dataIndex: 'mainQuantity', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryUnitName', |
| | |
| | | title: 'è¾
æ°é', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryQuantity', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'ä»åº', |
| | | align: "center", |
| | |
| | | dataIndex: 'manufactureDate' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | | |
| | | { |
| | | title: 'åºå主æ°é', |
| | | title: 'åºåæ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | |
| | | title: 'åºåè¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity' |
| | | }, |
| | | }, */ |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | dataIndex: 'supplierName', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: "center", |
| | | dataIndex: 'mainUnitName', |
| | | }, |
| | | { |
| | | title: 'åºåºä¸»æ°é', |
| | | title: 'åºåºæ°é', |
| | | align: "center", |
| | | dataIndex: 'outboundMainQuantity', |
| | | }, |
| | |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | /> |
| | | <!-- <a-select |
| | | :placeholder="'è¯·éæ©é¢ç¨é¨é¨'" |
| | | :disabled="disableSubmit" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©é¢ç¨é¨é¨'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | dataIndex: 'warehouseLocationNum' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | |
| | | title: 'è¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'åºåºä¸»æ°é', |
| | | title: 'åºåºæ°é', |
| | | align: 'center', |
| | | dataIndex: 'outboundMainQuantity', |
| | | scopedSlots: { customRender: 'outboundMainQuantity' } |
| | |
| | | mainQuantity: data[i].mainQuantity, |
| | | mainUnitId: data[i].mainUnitId, |
| | | mainUnitName: data[i].mainUnitName, |
| | | auxiliaryQuantity: data[i].auxiliaryQuantity, |
| | | auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, |
| | | conversionRatio: data[i].conversionRatio, |
| | | /* auxiliaryQuantity: data[i].auxiliaryQuantity, */ |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, */ |
| | | /* conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | supplierId: data[i].supplierId, |
| | |
| | | if (target) { |
| | | if (column.dataIndex == 'outboundMainQuantity') { |
| | | target[column.dataIndex] = value; |
| | | target["outboundAuxiliaryQuantity"] = value * target.conversionRatio |
| | | /* target["outboundAuxiliaryQuantity"] = value * target.conversionRatio */ |
| | | } |
| | | //æ¾ç¤ºå¸¦è¿æ¥çæ°æ® |
| | | that.dataSource = temp; |
| | |
| | | dataIndex: 'constructorId_dictText' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitId_dictText' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText' |
| | | }, |
| | | }, */ |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | dataIndex: 'supplierName', |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: "center", |
| | | dataIndex: 'mainUnitName', |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: "center", |
| | | dataIndex: 'mainQuantity', |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryUnitName', |
| | |
| | | title: 'è¾
æ°é', |
| | | align: "center", |
| | | dataIndex: 'auxiliaryQuantity', |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'åºåº', |
| | | align: "center", |
| | |
| | | :labelCol='labelCol' |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled='disableSubmit' |
| | | :placeholder="disableSubmit?'':'è¯·éæ©éè´é¨é¨'" |
| | | :triggerChange='true' |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | /> |
| | | <!-- <a-select |
| | | :placeholder="'è¯·éæ©éè´é¨é¨'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | scopedSlots: { customRender: 'manufactureDate' } |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | scopedSlots: { customRender: 'mainQuantity' } |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | |
| | | title: 'è¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | |
| | | model: data[i].model, |
| | | mainUnitId: data[i].mainUnitId, |
| | | mainUnitName: data[i].mainUnitId_dictText, |
| | | auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitId_dictText, |
| | | conversionRatio: data[i].conversionRatio, |
| | | conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorId_dictText, |
| | | suppliers: this.suppliers, |
| | |
| | | |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitIdName', |
| | | |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitIdName', |
| | |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'é¢ç¨æ°é', |
| | | align: 'center', |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitIdName', |
| | | type: JVXETypes.normal, |
| | | align:'center', |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitId', |
| | | type: JVXETypes.hidden, |
| | | align:'center', |
| | |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | key: 'auxiliaryUnitIdName', |
| | | type: JVXETypes.normal, |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | key: 'mainQuantity', |
| | | type: JVXETypes.normal, |
| | | align:'center', |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0, |
| | | formatter({ cellValue, row, column }) { |
| | | /* formatter({ cellValue, row, column }) { |
| | | |
| | | if (cellValue != null) { |
| | | let conversionRatio = row.conversionRatio |
| | |
| | | } |
| | | return cellValue |
| | | |
| | | }, |
| | | }, */ |
| | | validateRules: [ |
| | | { |
| | | required: true, |
| | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | /* { |
| | | title: 'è¾
æ°é', |
| | | key: 'auxiliaryQuantity', |
| | | align:'center', |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0 |
| | | }, |
| | | }, */ |
| | | |
| | | { |
| | | title: 'é¢ç¨ä¸»æ°é', |
| | | title: 'é¢ç¨æ°é', |
| | | key: 'receiveMainQuantity', |
| | | align:'center', |
| | | type: JVXETypes.inputNumber, |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0, |
| | | formatter({ cellValue, row, column }) { |
| | | /* formatter({ cellValue, row, column }) { |
| | | if (cellValue != null) { |
| | | let conversionRatio = row.conversionRatio |
| | | console.log(conversionRatio) |
| | |
| | | } |
| | | return cellValue |
| | | |
| | | }, |
| | | }, */ |
| | | validateRules: [ |
| | | { |
| | | required: true, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'é¢ç¨è¾
æ°é', |
| | | align:'center', |
| | | key: 'receiveMainQuantity', |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | |
| | | |
| | | |
| | |
| | | model: data[i].model, |
| | | specification: data[i].specification, |
| | | mainUnitId: data[i].mainUnitId, |
| | | auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, */ |
| | | mainUnitIdName: data[i].mainUnitId_dictText, |
| | | auxiliaryUnitIdName: data[i].auxiliaryUnitId_dictText, |
| | | /* auxiliaryUnitIdName: data[i].auxiliaryUnitId_dictText, */ |
| | | mainQuantity: data[i].mainQuantity, |
| | | auxiliaryQuantity: data[i].auxiliaryQuantity, |
| | | /* auxiliaryQuantity: data[i].auxiliaryQuantity, */ |
| | | manufactureDate: data[i].manufactureDate, |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | batchNum: data[i].batchNum, |
| | | ReceiveReason: data[i].ReceiveReason, |
| | | validityPeriod:data[i].validityPeriod, |
| | | conversionRatio:data[i].conversionRatio |
| | | /* conversionRatio:data[i].conversionRatio */ |
| | | } |
| | | } |
| | | addRows.push(sparesReceiveDetail) |
| | |
| | | width: 150, |
| | | |
| | | }, |
| | | { title: '主åä½', |
| | | { title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitId_dictText', |
| | | width: 150, |
| | | |
| | | }, |
| | | { title: 'è¾
åä½', |
| | | /* { title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | width: 150 |
| | | |
| | | }, |
| | | { title: '主æ°é', |
| | | }, */ |
| | | { title: 'æ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | width: 150 |
| | | |
| | | }, |
| | | { title: 'è¾
æ°é', |
| | | /* { title: 'è¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | width: 150 |
| | | |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | title: 'æ¢ç®æ¯ä¾', |
| | | align: 'center', |
| | | dataIndex: 'conversionRatio', |
| | | width: 150 |
| | | } |
| | | } */ |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | ellipsis: true |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitIdName', |
| | | |
| | | }, |
| | | { |
| | | title: 'åºå主æ°é', |
| | | title: 'åºåæ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitIdName', |
| | | |
| | | ellipsis: true |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | title: 'åºåè¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | |
| | | }, |
| | | }, */ |
| | | |
| | | { |
| | | title: 'æ¥åºä¸»æ°é', |
| | | title: 'æ¥åºæ°é', |
| | | align: 'center', |
| | | dataIndex: 'scrapMainQuantity', |
| | | |
| | | }, |
| | | |
| | | { |
| | | /* { |
| | | title: 'æ¥åºè¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'scrapAuxiliaryQuantity', |
| | | |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'æ¥åºåå ', |
| | | align: 'center', |
| | |
| | | :columns='sparesScrapDetailTable.columns' |
| | | :dataSource='sparesScrapDetailTable.dataSource' |
| | | :maxHeight='300' |
| | | @valueChange="changeAuxiliaryQuantity" |
| | | :disabled='formDisabled' |
| | | :rowNumber='true' |
| | | :rowSelection='true' |
| | |
| | | ] |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitIdName', |
| | | type: JVXETypes.normal, |
| | | width: '200px', |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitId', |
| | | type: JVXETypes.hidden, |
| | | align:'center', |
| | |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | key: 'auxiliaryUnitIdName', |
| | | type: JVXETypes.normal, |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | key: 'mainQuantity', |
| | | align:'center', |
| | | type: JVXETypes.normal, |
| | |
| | | defaultValue: '' |
| | | }, |
| | | |
| | | { |
| | | /* { |
| | | title: 'è¾
æ°é', |
| | | key: 'auxiliaryQuantity', |
| | | type: JVXETypes.normal, |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'å¤ä»¶id', |
| | | key: 'sparePartId', |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: 'æ¥åºä¸»æ°é', |
| | | title: 'æ¥åºæ°é', |
| | | key: 'scrapMainQuantity', |
| | | align:'center', |
| | | type: JVXETypes.inputNumber, |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0, |
| | | formatter({ cellValue, row, column }) { |
| | | /* formatter({ cellValue, row, column }) { |
| | | if (cellValue != null) { |
| | | let conversionRatio = row.conversionRatio |
| | | console.log(conversionRatio) |
| | |
| | | } |
| | | return cellValue |
| | | |
| | | }, |
| | | }, */ |
| | | validateRules: [ |
| | | { |
| | | required: true, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'æ¥åºè¾
æ°é', |
| | | align:'center', |
| | | key: 'scrapAuxiliaryQuantity', |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'åºåº', |
| | | align:'center', |
| | |
| | | model: data[i].model, |
| | | specification: data[i].specification, |
| | | mainUnitId: data[i].mainUnitId, |
| | | auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, */ |
| | | mainUnitIdName: data[i].mainUnitId_dictText, |
| | | auxiliaryUnitIdName: data[i].auxiliaryUnitId_dictText, |
| | | /* auxiliaryUnitIdName: data[i].auxiliaryUnitId_dictText, */ |
| | | mainQuantity: data[i].mainQuantity, |
| | | auxiliaryQuantity: data[i].auxiliaryQuantity, |
| | | /* auxiliaryQuantity: data[i].auxiliaryQuantity, */ |
| | | scrapMainQuantity: data[i].scrapMainQuantity, |
| | | scrapAuxiliaryQuantity: data[i].scrapAuxiliaryQuantity, |
| | | /* scrapAuxiliaryQuantity: data[i].scrapAuxiliaryQuantity, */ |
| | | manufactureDate: data[i].manufactureDate, |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | |
| | | this.$emit('close') |
| | | this.$refs.form.clearValidate() |
| | | }, |
| | | changeAuxiliaryQuantity(target){ |
| | | /* changeAuxiliaryQuantity(target){ |
| | | console.log(target.columnIndex) |
| | | let num=target.columnIndex |
| | | if (target.columnIndex ===num){ |
| | | target.row.scrapAuxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.scrapMainQuantity) |
| | | } |
| | | } |
| | | } */ |
| | | } |
| | | } |
| | | </script> |
| | |
| | | width: 150, |
| | | |
| | | }, |
| | | { title: '主åä½', |
| | | { title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitId_dictText', |
| | | width: 150, |
| | | |
| | | }, |
| | | { title: 'è¾
åä½', |
| | | /* { title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | width: 150 |
| | | |
| | | }, |
| | | { title: 'åºå主æ°é', |
| | | }, */ |
| | | { title: 'åºåæ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | width: 150 |
| | | |
| | | }, |
| | | { title: 'åºåè¾
æ°é', |
| | | /* { title: 'åºåè¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | width: 150 |
| | | |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | title: 'æ¢ç®æ¯ä¾', |
| | | align: 'center', |
| | | dataIndex: 'conversionRatio' |
| | | } |
| | | } */ |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitIdName', |
| | | |
| | | }, |
| | | { |
| | | title: '主æ°é', |
| | | title: 'æ°é', |
| | | align: 'center', |
| | | dataIndex: 'mainQuantity', |
| | | |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
æ°é', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryQuantity', |
| | | |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitIdName', |
| | | |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'éæ±æ¥æ', |
| | | align: 'center', |
| | |
| | | :dataSource='sparesScrapRequirementDetailTable.dataSource' |
| | | :maxHeight='300' |
| | | :disabled='formDisabled' |
| | | @valueChange="changeAuxiliaryQuantity" |
| | | :alwaysEdit='true' |
| | | :rowNumber='true' |
| | | :bordered='bordered' |
| | |
| | | }, |
| | | |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitIdName', |
| | | type: JVXETypes.normal, |
| | | align:'center', |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '主åä½', |
| | | title: 'åä½', |
| | | key: 'mainUnitId', |
| | | type: JVXETypes.hidden, |
| | | align:'center', |
| | |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | key: 'auxiliaryUnitIdName', |
| | | align:'center', |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '主æ°é', |
| | | key: 'mainQuantity', |
| | |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0, |
| | | Function({cellValue, row, column}){ |
| | | /* Function({cellValue, row, column}){ |
| | | console.log(cellValue) |
| | | console.log(row) |
| | | console.log(column) |
| | |
| | | } |
| | | console.log(cellValue) |
| | | return cellValue |
| | | }, |
| | | }, */ |
| | | validateRules: [ |
| | | { |
| | | required: true, |
| | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | /* { |
| | | title: 'è¾
æ°é', |
| | | key: 'auxiliaryQuantity', |
| | | type: JVXETypes.normal, |
| | |
| | | align:'center', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: 0 |
| | | }, |
| | | }, */ |
| | | { |
| | | title: 'å¤ä»¶id', |
| | | key: 'sparePartId', |
| | |
| | | this.$emit('close') |
| | | this.$refs.form.clearValidate() |
| | | }, |
| | | changeAuxiliaryQuantity(target){ |
| | | /* changeAuxiliaryQuantity(target){ |
| | | console.log(target.columnIndex) |
| | | let num=target.columnIndex |
| | | if (target.columnIndex ===num){ |
| | | target.row.auxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.mainQuantity) |
| | | } |
| | | } |
| | | } */ |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </a-row> |
| | | <a-row style='width: 100%'> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='主åä½' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='mainUnitId'> |
| | | <a-form-model-item label='åä½' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='mainUnitId'> |
| | | <!-- <a-input v-model='model.mainUnitId' placeholder='请è¾å
¥ä¸»åä½' />--> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :placeholder="'è¯·éæ©ä¸»åä½'" |
| | | :placeholder="'è¯·éæ©åä½'" |
| | | v-model='model.departId' |
| | | dictCode="mom_base_unit,name,id,del_flag!='1'" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <!-- <a-col :span='12'> |
| | | <a-form-model-item label='è¾
åä½' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='auxiliaryUnitId'> |
| | | <!-- <a-input v-model='model.auxiliaryUnitId' placeholder='请è¾å
¥è¾
åä½' />--> |
| | | <!– <a-input v-model='model.auxiliaryUnitId' placeholder='请è¾å
¥è¾
åä½' />–> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :placeholder="'è¯·éæ©è¾
åä½'" |
| | |
| | | dictCode="mom_base_unit,name,id,del_flag!='1'" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-col>--> |
| | | </a-row> |
| | | <a-row style='width: 100%'> |
| | | <a-col :span='12'> |
| | |
| | | width: 150 |
| | | |
| | | }, |
| | | { |
| | | /* { |
| | | title: 'è¾
åä½', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitId_dictText', |
| | | width: 150 |
| | | |
| | | }, |
| | | { |
| | | }, */ |
| | | /* { |
| | | title: 'æ¢ç®æ¯ä¾', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'conversionRatio' |
| | | |
| | | } |
| | | } */ |
| | | |
| | | ], |
| | | selectedRowKeys: [], |