| | |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: '管çå¶åº¦', |
| | | align: 'center', |
| | | dataIndex: 'disUda1', |
| | | }, |
| | | { |
| | | title: 'ç¾å®¡ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'approvalStatusName', |
| | |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='设å¤åç§°'> |
| | | <a-form-item label='ç»ä¸ç¼å·'> |
| | | <a-input |
| | | placeholder='请è¾å
¥è®¾å¤åç§°' |
| | | v-model='queryParam.name' |
| | | placeholder='请è¾å
¥ç»ä¸ç¼å·' |
| | | v-model='queryParam.equipmentNum' |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | :md='8' |
| | | :sm='24' |
| | | > |
| | | <a-form-item label='设å¤åç§°'> |
| | | <a-form-item label='ç»ä¸ç¼å·'> |
| | | <a-input |
| | | placeholder='请è¾å
¥è®¾å¤åç§°' |
| | | v-model='queryParam.name' |
| | | placeholder='请è¾å
¥ç»ä¸ç¼å·' |
| | | v-model='queryParam.equipmentNum' |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | debugger |
| | | if (record.receipts == "" || record.receipts == null) { |
| | | this.getSysFileName() |
| | | } |
| | |
| | | |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = that.dataSource[i] |
| | | if (o.firstInspect == "2" && o.secondInspect == "2") { |
| | | that.$message.warning("éªæ¶å第" + (i + 1) + "è¡ï¼ä¸¤æ¬¡æ£éªå为ä¸éè¿ï¼è¯·éæ°æ£éªè¯¥é¡¹ä¿å
Ȍ
容ï¼"); |
| | | return |
| | | } |
| | | } |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.$confirm({ |
| | |
| | | <template> |
| | | <a-modal |
| | | :width="800" |
| | | :width="1000" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | |
| | | |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥é¨ä½</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥æ å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ(åæ ¼/ä¸åæ ¼)</span> |
| | | >ææ æ¤é¡¹</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æçºµææåå¼å
³</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãæ ç ´æ</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_8 == '0'" |
| | | @change="handle8Switch(model.result_8)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_1 == '0'" |
| | | @change="handleSwitch(model.result_1)" |
| | | :hidden="model.hidden1Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ä¼ å¨ç³»ç»</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ´»ãæ å¼å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_9 == '0'" |
| | | @change="handle9Switch(model.result_9)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_2 == '0'" |
| | | @change="handle2Switch(model.result_2)" |
| | | :hidden="model.hidden2Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨è£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãçµæãå¯é </span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_10 == '0'" |
| | | @change="handle10Switch(model.result_10)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_3 == '0'" |
| | | @change="handle3Switch(model.result_3)" |
| | | :hidden="model.hidden3Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤å¤è§</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ´æ´</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_11 == '0'" |
| | | @change="handle11Switch(model.result_11)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_4 == '0'" |
| | | @change="handle4Switch(model.result_4)" |
| | | :hidden="model.hidden4Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ°çº¿è·¯</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >线路æ´é½ãæ¥çº¿æ£ç¡®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_12 == '0'" |
| | | @change="handle12Switch(model.result_12)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_5 == '0'" |
| | | @change="handle5Switch(model.result_5)" |
| | | :hidden="model.hidden5Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥åç´§åºè£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ æ¾å¨</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_13 == '0'" |
| | | @change="handle13Switch(model.result_13)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_6 == '0'" |
| | | @change="handle6Switch(model.result_6)" |
| | | :hidden="model.hidden6Switch" |
| | | /> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '50%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;float: center" |
| | | >æ¯å¦æ»¡è¶³ç产å å·¥è¦æ±</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_14 == '0'" |
| | | @change="handle14Switch(model.result_14)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_7 == '0'" |
| | | @change="handle7Switch(model.result_7)" |
| | | :hidden="model.hidden7Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | validatorRules: { |
| | | num: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ä¿å
»å·¥åç¼ç !' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | add: "/eam/technologyStatus/technologyStatusAuthenticate", |
| | | getTechnologyStatus: "/eam/technologyStatus/getTechnologyStatus", |
| | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle8Switch(result_8) { |
| | | if ('0' == result_8) { |
| | | this.model.result_8 = '1' |
| | | this.model.hidden1Switch = true |
| | | } else { |
| | | this.model.result_8 = '0' |
| | | this.model.hidden1Switch = false |
| | | } |
| | | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle9Switch(result_9) { |
| | | if ('0' == result_9) { |
| | | this.model.result_9 = '1' |
| | | this.model.hidden2Switch = true |
| | | } else { |
| | | this.model.result_9 = '0' |
| | | this.model.hidden2Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle10Switch(result_10) { |
| | | |
| | | if ('0' == result_10) { |
| | | this.model.result_10 = '1' |
| | | this.model.hidden3Switch = true |
| | | } else { |
| | | this.model.result_10 = '0' |
| | | this.model.hidden3Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle11Switch(result_11) { |
| | | if ('0' == result_11) { |
| | | this.model.result_11 = '1' |
| | | this.model.hidden4Switch = true |
| | | } else { |
| | | this.model.result_11 = '0' |
| | | this.model.hidden4Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle12Switch(result_12) { |
| | | if ('0' == result_12) { |
| | | this.model.result_12 = '1' |
| | | this.model.hidden5Switch = true |
| | | } else { |
| | | this.model.result_12 = '0' |
| | | this.model.hidden5Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle13Switch(result_13) { |
| | | if ('0' == result_13) { |
| | | this.model.result_13 = '1' |
| | | this.model.hidden6Switch = true |
| | | } else { |
| | | this.model.result_13 = '0' |
| | | this.model.hidden6Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle14Switch(result_14) { |
| | | if ('0' == result_14) { |
| | | this.model.result_14 = '1' |
| | | this.model.hidden7Switch = true |
| | | } else { |
| | | this.model.result_14 = '0' |
| | | this.model.hidden7Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | |
| | | |
| | | // handle21Switch(result_21) { |
| | |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: "center", |
| | | dataIndex: 'location', |
| | | }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: "center", |
| | | // dataIndex: 'location', |
| | | // }, |
| | | // { |
| | | // title: '示æå¾', |
| | | // align: "center", |
| | |
| | | |
| | | }, |
| | | { |
| | | title: 'æ£æµæ å', |
| | | title: 'å®ææ°æ®/è¦æ±', |
| | | align: "center", |
| | | dataIndex: 'detectionStandard', |
| | | |
| | |
| | | url: { |
| | | list: "/eam/inspectionStandardDetail/getInspectionStandardList",//æ°æ®æ¥æºmom_eam_daily_inspection_standard_detail |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 20, |
| | | pageSizeOptions: ['5', '10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <!-- <a-col :span="12"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="派工æ¹å¼" |
| | | label="管çå¶åº¦" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | <a-input |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ´¾å·¥æ¹å¼'" |
| | | :triggerChange="true" |
| | | dictCode="assign_mode" |
| | | v-decorator="['assignMode', validatorRules.assignMode]" |
| | | :disabled="false" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥ç®¡çå¶åº¦'" |
| | | v-decorator="['disUda1', validatorRules.disUda1 ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="çæ¬" |
| | |
| | | dataIndex: 'name' |
| | | }, |
| | | { |
| | | title: 'æ£æµæ å', |
| | | title: 'å®ææ°æ®/è¦æ±', |
| | | align: 'center', |
| | | dataIndex: 'detectionStandard' |
| | | }, |
| | |
| | | align: 'center', |
| | | dataIndex: 'inspectionCycleId', |
| | | scopedSlots: { customRender: 'inspectionCycleId' }, |
| | | width: 170, |
| | | }, |
| | | // { |
| | | // title: '示æå¾', |
| | |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // width: 170, |
| | | // }, |
| | | { |
| | | title: 'é¨ä½', |
| | | align: 'center', |
| | | dataIndex: 'location', |
| | | scopedSlots: { customRender: 'location' }, |
| | | width: 170, |
| | | }, |
| | | // { |
| | | // title: 'é¨ä½', |
| | | // align: 'center', |
| | | // dataIndex: 'location', |
| | | // scopedSlots: { customRender: 'location' }, |
| | | // width: 170, |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | |
| | | historyVersion: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥åå²çæ¬!' }, |
| | | ] |
| | | }, |
| | | disUda1: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ç®¡çå¶åº¦!' }, |
| | | ] |
| | | }, |
| | | }, |
| | |
| | | that.dataSource = temp; |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark')); |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'disUda1', 'useId', 'teamName', 'assignMode', 'version', 'remark')); |
| | | }); |
| | | if (record.id) { |
| | | that.codeDisable = true; |
| | |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentList", |
| | | list: "/eam/equipment/showEquipmentList", |
| | | }, |
| | | } |
| | | }, |
| | |
| | | // return |
| | | // } |
| | | this.$refs.DailyMaintenanceStandardList.list(data.useId); |
| | | this.$refs.DailyMaintenanceStandardList.title = "éæ©æ¥å¸¸ä¿å
»æ å"; |
| | | this.$refs.DailyMaintenanceStandardList.title = "éæ©äºçº§ä¿å
»æ å"; |
| | | }, |
| | | sendMaintenanceStandardRecord(data) { |
| | | let record = data.record; |
| | |
| | | url: { |
| | | list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//æ°æ®æ¥æºmom_eam_daily_inspection_standard_detail |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 20, |
| | | pageSizeOptions: ['5', '10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | url: { |
| | | list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//æ°æ®æ¥æºmom_eam_daily_inspection_standard_detail |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 20, |
| | | pageSizeOptions: ['5', '10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | import Vue from 'vue' |
| | | import PdfView from '@views/common/PdfView' |
| | | import { getFileAccessHttpUrl } from '@/api/manage'; |
| | | import EquipmentList from '.././dailyInspectionStandard/EquipmentList' |
| | | import EquipmentList from './EquipmentList' |
| | | import DepartList from '.././dailyInspectionStandard/DepartList' |
| | | |
| | | export default { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="1250" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ props: {disabled: disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <a-input |
| | | placeholder="请è¾å
¥ç»ä¸ç¼ç æ£ç´¢" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="设å¤åç§°"> |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ£ç´¢" |
| | | v-model="queryParam.name" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left:8px;" |
| | | >éç½®</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <div style="margin-top:8px;"> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :customRow="clickThenCheck" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:type}" |
| | | > |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { postAction, getAction } from '@/api/manage' |
| | | import JDate from '@/components/jeecg/JDate' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis'//å¼å
¥è¿é¿è£åª |
| | | import store from '@/store' |
| | | |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JDate, |
| | | Tooltip, |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "设å¤ä¿¡æ¯", |
| | | visible: false, |
| | | model: {}, |
| | | dataSource: [], |
| | | disableSubmit: false, |
| | | type: "radio", |
| | | /* å页忰 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | 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: 'model' |
| | | }, |
| | | { |
| | | title: '设å¤è§æ ¼', |
| | | align: "center", |
| | | dataIndex: 'specification' |
| | | }, |
| | | { |
| | | title: '设å¤ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'equipmentStatus_dictText' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/findEquipmentList", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | | searchQuery() { |
| | | this.loadData(1); |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = { equipmentStatus: '1' }; |
| | | this.loadData(1) |
| | | }, |
| | | list(params) { |
| | | this.selectedRowKeys = []; |
| | | this.selectedRowRecord = []; |
| | | this.visible = true; |
| | | if (params == null || params == "") { |
| | | this.queryParam.useId = "" |
| | | } else { |
| | | this.queryParam.useId = params |
| | | } |
| | | this.queryParam.equipmentStatus = '1' |
| | | this.loadData(1); |
| | | }, |
| | | clickThenCheck(record) { |
| | | return { |
| | | on: { |
| | | click: (e) => { |
| | | this.selectedRowRecord = record; |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectedRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectedRowRecord = selectedRows[0]; |
| | | }, |
| | | close() { |
| | | this.queryParam = {}; |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | if (that.selectedRowKeys.length > 0) { |
| | | if (that.selectedRowRecord.id != null && that.selectedRowRecord.id != "") { |
| | | that.$emit('sendEquipmentRecord', { record: that.selectedRowRecord }); |
| | | that.close(); |
| | | } else { |
| | | that.$message.error("è¯·éæ©è®¾å¤ä¿¡æ¯ï¼") |
| | | } |
| | | } else { |
| | | that.$message.error("è¯·éæ©è®¾å¤ä¿¡æ¯ï¼") |
| | | } |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | .ant-table-tbody .ant-table-row td { |
| | | padding-top: 10px; |
| | | padding-bottom: 10px; |
| | | } |
| | | |
| | | .anty-row-operator button { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .ant-btn-danger { |
| | | background-color: #ffffff; |
| | | } |
| | | |
| | | .ant-modal-cust-warp { |
| | | height: 100%; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-body { |
| | | height: calc(100% - 110px) !important; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-content { |
| | | height: 90% !important; |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | /deep/ .notshow { |
| | | display: none; |
| | | } |
| | | |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | .hight { |
| | | color: #f5222d; |
| | | } |
| | | .middle { |
| | | color: #fa8c16; |
| | | } |
| | | .low { |
| | | color: #52c41a; |
| | | } |
| | | .dataUnKnow { |
| | | color: #1890ff; |
| | | } |
| | | |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <a-modal |
| | | :width="800" |
| | | :width="1000" |
| | | :visible="visible" |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >{{this.model.equipmentNum}}</span> |
| | | </div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥é¨ä½</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥æ å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ(åæ ¼/ä¸åæ ¼)</span> |
| | | >ææ æ¤é¡¹</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥ç»æ</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æçºµææåå¼å
³</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãæ ç ´æ</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_8 == '0'" |
| | | @change="handle8Switch(model.result_8)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_1 == '0'" |
| | | @change="handleSwitch(model.result_1)" |
| | | :hidden="model.hidden1Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >ä¼ å¨ç³»ç»</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ´»ãæ å¼å</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_9 == '0'" |
| | | @change="handle9Switch(model.result_9)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_2 == '0'" |
| | | @change="handle2Switch(model.result_2)" |
| | | :hidden="model.hidden2Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨è£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >å®å
¨ãçµæãå¯é </span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_10 == '0'" |
| | | @change="handle10Switch(model.result_10)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_3 == '0'" |
| | | @change="handle3Switch(model.result_3)" |
| | | :hidden="model.hidden3Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >设å¤å¤è§</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ´æ´</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_11 == '0'" |
| | | @change="handle11Switch(model.result_11)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_4 == '0'" |
| | | @change="handle4Switch(model.result_4)" |
| | | :hidden="model.hidden4Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >çµæ°çº¿è·¯</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >线路æ´é½ãæ¥çº¿æ£ç¡®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_12 == '0'" |
| | | @change="handle12Switch(model.result_12)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_5 == '0'" |
| | | @change="handle5Switch(model.result_5)" |
| | | :hidden="model.hidden5Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ£æ¥åç´§åºè£
ç½®</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;" |
| | | >æ æ¾å¨</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_13 == '0'" |
| | | @change="handle13Switch(model.result_13)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_6 == '0'" |
| | | @change="handle6Switch(model.result_6)" |
| | | :hidden="model.hidden6Switch" |
| | | /> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <div :style="{height: '45px',float: 'left',width: '50%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <span |
| | | class="ant-descriptions-title" |
| | | style="font-size: large;font-style: normal;font-size: 15px;float: center" |
| | | >æ¯å¦æ»¡è¶³ç产å å·¥è¦æ±</span> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | |
| | | <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="æ" |
| | | un-checked-children="没æ" |
| | | :checked="model.result_14 == '0'" |
| | | @change="handle14Switch(model.result_14)" |
| | | /> |
| | | </div> |
| | | <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}"> |
| | | <a-switch |
| | | checked-children="åæ ¼" |
| | | un-checked-children="ä¸åæ ¼" |
| | | :checked="model.result_7 == '0'" |
| | | @change="handle7Switch(model.result_7)" |
| | | :hidden="model.hidden7Switch" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle8Switch(result_8) { |
| | | if ('0' == result_8) { |
| | | this.model.result_8 = '1' |
| | | this.model.hidden1Switch = true |
| | | } else { |
| | | this.model.result_8 = '0' |
| | | this.model.hidden1Switch = false |
| | | } |
| | | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle9Switch(result_9) { |
| | | if ('0' == result_9) { |
| | | this.model.result_9 = '1' |
| | | this.model.hidden2Switch = true |
| | | } else { |
| | | this.model.result_9 = '0' |
| | | this.model.hidden2Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle10Switch(result_10) { |
| | | |
| | | if ('0' == result_10) { |
| | | this.model.result_10 = '1' |
| | | this.model.hidden3Switch = true |
| | | } else { |
| | | this.model.result_10 = '0' |
| | | this.model.hidden3Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle11Switch(result_11) { |
| | | if ('0' == result_11) { |
| | | this.model.result_11 = '1' |
| | | this.model.hidden4Switch = true |
| | | } else { |
| | | this.model.result_11 = '0' |
| | | this.model.hidden4Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle12Switch(result_12) { |
| | | if ('0' == result_12) { |
| | | this.model.result_12 = '1' |
| | | this.model.hidden5Switch = true |
| | | } else { |
| | | this.model.result_12 = '0' |
| | | this.model.hidden5Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle13Switch(result_13) { |
| | | if ('0' == result_13) { |
| | | this.model.result_13 = '1' |
| | | this.model.hidden6Switch = true |
| | | } else { |
| | | this.model.result_13 = '0' |
| | | this.model.hidden6Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | handle14Switch(result_14) { |
| | | if ('0' == result_14) { |
| | | this.model.result_14 = '1' |
| | | this.model.hidden7Switch = true |
| | | } else { |
| | | this.model.result_14 = '0' |
| | | this.model.hidden7Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
| | | <a-card |
| | | :bordered="false" |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator" v-if="mainId"> |
| | | <div |
| | | class="table-operator" |
| | | v-if="mainId" |
| | | > |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> --> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('设å¤ç²¾åº¦')">导åº</a-button> |
| | | <a-upload |
| | |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> --> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'"> |
| | | <a-dropdown |
| | | v-if="selectedRowKeys.length > 0" |
| | | v-has="'accountSons:add&edit&delete&submit'" |
| | | > |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | <a-menu-item |
| | | key="1" |
| | | @click="batchDel" |
| | | ><a-icon type="delete" />å é¤</a-menu-item> |
| | | <!-- <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />æäº¤</a-menu-item> --> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | | <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> |
| | | <a |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | @change="handleTableChange" |
| | | > |
| | | |
| | | <!-- <template |
| | | v-for="col in columns" |
| | | :slot="col.dataIndex" |
| | | slot-scope='text, record, index' |
| | | > --> |
| | | <!-- <div :key="col.dataIndex"> |
| | | <!-- <div :key="col.dataIndex"> |
| | | <span v-if="col.dataIndex == 'remark'"> |
| | | <j-ellipsis |
| | | :value="text" |
| | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <equipmentPrecisionParameters-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></equipmentPrecisionParameters-modal> |
| | | <equipmentPrecisionParameters-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | :mainId="mainId" |
| | | ></equipmentPrecisionParameters-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentPrecisionParametersModal from './EquipmentPrecisionParametersModal' |
| | | import { postAction, putAction } from '../../../../api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EquipmentPrecisionParametersModal from './EquipmentPrecisionParametersModal' |
| | | import { postAction, putAction } from '../../../../api/manage' |
| | | |
| | | export default { |
| | | name: "EquipmentPrecisionParametersList", |
| | | mixins:[JeecgListMixin], |
| | | components: { EquipmentPrecisionParametersModal }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | }, |
| | | isOpen:{ |
| | | type:Boolean, |
| | | default:true, |
| | | required:false |
| | | } |
| | | export default { |
| | | name: "EquipmentPrecisionParametersList", |
| | | mixins: [JeecgListMixin], |
| | | components: { EquipmentPrecisionParametersModal }, |
| | | props: { |
| | | mainId: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['precisionParametersTemplateId'] = val |
| | | this.loadData(1); |
| | | } |
| | | isOpen: { |
| | | type: Boolean, |
| | | default: true, |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | mainId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.mainId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['precisionParametersTemplateId'] = val |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | disableMixinCreated:true, |
| | | // 表头 |
| | | columns: [ |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:100, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'æ£éªé¡¹ç®åç§°', |
| | | align:"center", |
| | | dataIndex: 'precisionParametersName', |
| | | width:400 |
| | | }, |
| | | { |
| | | title:'ä½ç½®', |
| | | align:"center", |
| | | dataIndex: 'precisionParametersUda1', |
| | | width:400 |
| | | }, |
| | | { |
| | | title:'å
å·®ï¼mmï¼', |
| | | align:"center", |
| | | dataIndex: 'tolerance', |
| | | width:400 |
| | | }, |
| | | { |
| | | title:'宿µå¼', |
| | | align:"center", |
| | | dataIndex: 'actualValue', |
| | | width:400 |
| | | }, |
| | | ], |
| | | url: { |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId', |
| | | edit: "/eam/equipmentPrecisionParameters/edit", |
| | | submitBatch:"/eam/equipmentPrecisionParameters/submitBatch", |
| | | // delete: "/new/equipment/deleteEquipmentPrecisionParameters", |
| | | // deleteBatch: "/new/equipment/deleteBatchEquipmentPrecisionParameters", |
| | | // exportXlsUrl: "/new/equipment/exportEquipmentPrecisionParameters", |
| | | // importUrl: "/new/equipment/importEquipmentPrecisionParameters", |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 100, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | dictOptions:{ |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.selectionRows = [] |
| | | this.ipagination.current = 1 |
| | | { |
| | | title: 'æ£éªé¡¹ç®åç§°', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersName', |
| | | width: 400 |
| | | }, |
| | | { |
| | | title: 'ä½ç½®', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersUda1', |
| | | width: 400 |
| | | }, |
| | | { |
| | | title: 'å
å·®ï¼mmï¼', |
| | | align: "center", |
| | | dataIndex: 'tolerance', |
| | | width: 400 |
| | | }, |
| | | // { |
| | | // title:'宿µå¼', |
| | | // align:"center", |
| | | // dataIndex: 'actualValue', |
| | | // width:400 |
| | | // }, |
| | | ], |
| | | url: { |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId', |
| | | edit: "/eam/equipmentPrecisionParameters/edit", |
| | | submitBatch: "/eam/equipmentPrecisionParameters/submitBatch", |
| | | // delete: "/new/equipment/deleteEquipmentPrecisionParameters", |
| | | // deleteBatch: "/new/equipment/deleteBatchEquipmentPrecisionParameters", |
| | | // exportXlsUrl: "/new/equipment/exportEquipmentPrecisionParameters", |
| | | // importUrl: "/new/equipment/importEquipmentPrecisionParameters", |
| | | }, |
| | | handleChange(value, key, column, index) { |
| | | dictOptions: { |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.selectionRows = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | handleChange(value, key, column, index) { |
| | | let that = this; |
| | | const temp = [...that.dataSource]; |
| | | const target = temp.filter(item => key === item.key)[index]; |
| | |
| | | modalFormOk() { |
| | | this.loadData(1); |
| | | }, |
| | | handleSubmitBatch(){ |
| | | for(var i=0;i<this.selectionRows.length;i++){ |
| | | let upperLimit = this.selectionRows[i].upperLimit; |
| | | let lowerLimit = this.selectionRows[i].lowerLimit; |
| | | let actualValue = this.selectionRows[i].actualValue; |
| | | if(upperLimit==null||upperLimit==undefined||upperLimit==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if(lowerLimit==null||lowerLimit==undefined||lowerLimit==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if(actualValue==null||actualValue==undefined||actualValue==''){ |
| | | this.$message.warning("请å
å¡«å鿩项çå®é
å¼åæäº¤") |
| | | return false; |
| | | } |
| | | } |
| | | let that = this; |
| | | this.$confirm({ |
| | | handleSubmitBatch() { |
| | | for (var i = 0; i < this.selectionRows.length; i++) { |
| | | let upperLimit = this.selectionRows[i].upperLimit; |
| | | let lowerLimit = this.selectionRows[i].lowerLimit; |
| | | let actualValue = this.selectionRows[i].actualValue; |
| | | if (upperLimit == null || upperLimit == undefined || upperLimit == '') { |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if (lowerLimit == null || lowerLimit == undefined || lowerLimit == '') { |
| | | this.$message.warning("请å
å¡«å鿩项çä¸éå¼åæäº¤") |
| | | return false; |
| | | } |
| | | if (actualValue == null || actualValue == undefined || actualValue == '') { |
| | | this.$message.warning("请å
å¡«å鿩项çå®é
å¼åæäº¤") |
| | | return false; |
| | | } |
| | | } |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: '设å¤ç²¾åº¦ç¡®è®¤æäº¤ï¼', |
| | | content: '确认æäº¤åï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | that.loading=true; |
| | | putAction(that.url.submitBatch,that.selectionRows).then((res) => { |
| | | that.loading = true; |
| | | putAction(that.url.submitBatch, that.selectionRows).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æäº¤æåï¼") |
| | | that.loadData(1) |
| | |
| | | }) |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | ids.push(tableData[i].standardId) |
| | | } |
| | | this.$refs.standardSelectModel.showModal(ids) |
| | | this.$refs.standardSelectModel.title = 'éæ©ç²¾åº¦åæ°' |
| | | this.$refs.standardSelectModel.title = 'éæ©è®¾å¤' |
| | | this.$refs.standardSelectModel.disableSubmit = false |
| | | }, |
| | | addSelected(data) { |
| | |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | props: { |
| | | maintenanceType:{ |
| | | type:String, |
| | | default:'', |
| | | required:true |
| | | maintenanceType: { |
| | | type: String, |
| | | default: '', |
| | | required: true |
| | | } |
| | | |
| | | }, |
| | |
| | | key: 'rowIndex', |
| | | width: 50, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | width:200 |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | width:200 |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'model', |
| | | width:200 |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤è§æ ¼', |
| | | align: 'center', |
| | | dataIndex: 'specification', |
| | | width:200 |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | width:100 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | width:100 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '设å¤ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | width:100 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'technologyStatus_dictText', |
| | | width:100 |
| | | width: 100 |
| | | }, |
| | | ], |
| | | selectedRowKeys: [], |
| | |
| | | visible: false, |
| | | loading: false, |
| | | url: { |
| | | list: '/eam/equipment/getEquipmentList', |
| | | getStandards:'/eam/equipmentMaintenancePlan/getStandards' |
| | | list: '/eam/equipment/showEquipmentList', |
| | | getStandards: '/eam/equipmentMaintenancePlan/getStandards' |
| | | }, |
| | | } |
| | | }, |
| | |
| | | this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc'; |
| | | } |
| | | this.ipagination = pagination; |
| | | this.loadData(); |
| | | this.loadData(); |
| | | }, |
| | | handleSubmit() { |
| | | this.loading = true |
| | | let that = this; |
| | | var ids = ''; |
| | | if(this.selectionRows.length==0){ |
| | | if (this.selectionRows.length == 0) { |
| | | that.$message.warning("è¯·éæ©ä¿å
»è®¾å¤"); |
| | | this.loading=false; |
| | | this.loading = false; |
| | | return false; |
| | | } |
| | | for(var i = 0;i<this.selectionRows.length;i++){ |
| | | ids = ids+this.selectionRows[i].id+','; |
| | | for (var i = 0; i < this.selectionRows.length; i++) { |
| | | ids = ids + this.selectionRows[i].id + ','; |
| | | } |
| | | getAction(this.url.getStandards,{ids:ids,maintenanceType:this.maintenanceType}).then(res=>{ |
| | | if(res.success){ |
| | | if(res.result.records.length!==that.selectionRows.length){ |
| | | getAction(this.url.getStandards, { ids: ids, maintenanceType: this.maintenanceType }).then(res => { |
| | | if (res.success) { |
| | | if (res.result.records.length !== that.selectionRows.length) { |
| | | that.$message.warning(res.result.message); |
| | | } |
| | | that.$emit('selectionEquipmentRows', res.result.records); |
| | | that.searchReset(0) |
| | | that.close(); |
| | | } |
| | | }).finally(res=>{ |
| | | this.loading=false; |
| | | }).finally(res => { |
| | | this.loading = false; |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | onSelectChange(selectionRows) { |
| | | this.selectionRows = selectionRows; |
| | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <!-- 主表ååºå --> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | slot="detail" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item |
| | |
| | | prop="num" |
| | | > |
| | | <a-auto-complete |
| | | v-model="model.num" |
| | | :data-source="numList" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥ç²¾åº¦åæ°æ¨¡æ¿ç¼ç " |
| | | @search="onSearchNums" |
| | | v-model="model.num" |
| | | :data-source="numList" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥ç²¾åº¦åæ°æ¨¡æ¿ç¼ç " |
| | | @search="onSearchNums" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12" > |
| | | <a-col :span="12"> |
| | | <a-form-model-item |
| | | label="åç§°" |
| | | :labelCol="labelCol" |
| | |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | <!-- å表ååºå --> |
| | | <a-tabs v-model="activeKey" @change="handleChangeTabs"> |
| | | <a-tab-pane tab="ç²¾åº¦åæ°æç»" :key="refKeys[0]" :forceRender="true"> |
| | | <!-- å表ååºå --> |
| | | <a-tabs |
| | | v-model="activeKey" |
| | | @change="handleChangeTabs" |
| | | > |
| | | <a-tab-pane |
| | | tab="ç²¾åº¦åæ°æç»" |
| | | :key="refKeys[0]" |
| | | :forceRender="true" |
| | | > |
| | | <j-vxe-table |
| | | keep-source |
| | | :ref="refKeys[0]" |
| | |
| | | bordered |
| | | :alwaysEdit="true" |
| | | :toolbarConfig='toolbarConfig' |
| | | > |
| | | > |
| | | <!-- @valueChange="changeDate" --> |
| | | <template slot='toolbarPrefix'> |
| | | <a-button type='primary' @click='precisionParametersDetailSelect' :disabled="formDisabled" icon="plus">éæ©ç²¾åº¦åæ° |
| | | <a-button |
| | | type='primary' |
| | | @click='precisionParametersDetailSelect' |
| | | :disabled="formDisabled" |
| | | icon="plus" |
| | | >éæ©ç²¾åº¦åæ° |
| | | </a-button> |
| | | </template> |
| | | </j-vxe-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <j-select-precision-parameters-modal @selectionRows='selectionRows' ref='JSelectPrecisionParametersModal' ></j-select-precision-parameters-modal> |
| | | <j-select-precision-parameters-modal |
| | | @selectionRows='selectionRows' |
| | | ref='JSelectPrecisionParametersModal' |
| | | ></j-select-precision-parameters-modal> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { getRefPromise,VALIDATE_FAILED} from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import JFormContainer from '@/components/jeecg/JFormContainer' |
| | | |
| | | |
| | | import dayjs from 'dayjs' |
| | | import JSelectPrecisionParametersModal from './JSelectPrecisionParametersModal' |
| | | export default { |
| | | name: 'PrecisionParameters', |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | JFormContainer, |
| | | dayjs, |
| | | JSelectPrecisionParametersModal |
| | | }, |
| | | data() { |
| | | return { |
| | | toolbarConfig: { |
| | | import { getAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import JFormContainer from '@/components/jeecg/JFormContainer' |
| | | |
| | | |
| | | import dayjs from 'dayjs' |
| | | import JSelectPrecisionParametersModal from './JSelectPrecisionParametersModal' |
| | | export default { |
| | | name: 'PrecisionParameters', |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | JFormContainer, |
| | | dayjs, |
| | | JSelectPrecisionParametersModal |
| | | }, |
| | | data() { |
| | | return { |
| | | toolbarConfig: { |
| | | // prefix åç¼ï¼suffix åç¼ |
| | | slot: ['prefix', 'suffix'], |
| | | // add æ°å¢æé®ï¼remove å 餿é®ï¼clearSelection æ¸
ç©ºéæ©æé® |
| | | btn: ['remove', 'clearSelection'] |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | model:{ |
| | | }, |
| | | // æ°å¢æ¶å表é»è®¤æ·»å å è¡ç©ºæ°æ® |
| | | addDefaultRowNum: 0, |
| | | validatorRules: { |
| | | num: [ |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | model: { |
| | | }, |
| | | // æ°å¢æ¶å表é»è®¤æ·»å å è¡ç©ºæ°æ® |
| | | addDefaultRowNum: 0, |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请è¾å
¥ç¼ç !' }, |
| | | { min: 1, max: 30, message: 'é¿åº¦å¨ 2 å° 30 个å符', trigger: 'blur' }, |
| | | { validator: this.validateNum }, |
| | | ], |
| | | name: [ |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥åç§°!' }, |
| | | { min: 1, max: 30, message: 'é¿åº¦å¨ 2 å° 30 个å符', trigger: 'blur' }, |
| | | ], |
| | | }, |
| | | refKeys: ['precisionParametersList', ], |
| | | tableKeys:['precisionParametersList', ], |
| | | activeKey: 'precisionParametersList', |
| | | precisionParameters: { |
| | | loading: false, |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: 'id', |
| | | key: 'id', |
| | | type: JVXETypes.hidden, |
| | | disabled:true, |
| | | align:'center', |
| | | }, |
| | | { |
| | | title: 'æ£éªé¡¹ç®åç§°', |
| | | key: 'precisionParametersName', |
| | | type: JVXETypes.normal, |
| | | width:"350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'æ¹å', |
| | | key: 'precisionParametersUda1', |
| | | type: JVXETypes.normal, |
| | | width:"350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'å
å·®ï¼mmï¼', |
| | | key: 'tolerance', |
| | | type: JVXETypes.input, |
| | | width:"350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | align:'center', |
| | | validateRules: [ |
| | | { handler({ cellValue, row, column }, callback, target) { |
| | | const regex = /^[+]?\d*\.?\d+\/[+]?\d*\.?\d+$/; |
| | | if (!new RegExp(regex).test(cellValue)&&cellValue!=null) { |
| | | callback(false, 'å
å·®è¦ç¬¦åãä¸é/è·ç¦»ãçå¡«åè§åï¼å¦: 0.16/300') // false = æªéè¿ï¼å¯ä»¥è·èªå®ä¹æç¤º |
| | | } else { |
| | | callback(true) // true = éè¿éªè¯ |
| | | } |
| | | }, |
| | | message: '${title}é»è®¤æç¤º' |
| | | }, |
| | | ] |
| | | }, |
| | | ] |
| | | }, |
| | | url: { |
| | | getNums:'/eam/precisionParametersTemplate/getNums', |
| | | add: '/eam/precisionParametersTemplate/addNew', |
| | | edit:'/eam/precisionParametersTemplate/editNew', |
| | | precisionParametersList: { |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId' |
| | | }, |
| | | refKeys: ['precisionParametersList',], |
| | | tableKeys: ['precisionParametersList',], |
| | | activeKey: 'precisionParametersList', |
| | | precisionParameters: { |
| | | loading: false, |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: 'id', |
| | | key: 'id', |
| | | type: JVXETypes.hidden, |
| | | disabled: true, |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'æ£éªé¡¹ç®åç§°', |
| | | key: 'precisionParametersName', |
| | | type: JVXETypes.normal, |
| | | width: "350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled: true, |
| | | align: 'center', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | title: 'æ¹å', |
| | | key: 'precisionParametersUda1', |
| | | type: JVXETypes.normal, |
| | | width: "350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled: true, |
| | | align: 'center', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | title: 'å
å·®ï¼mmï¼', |
| | | key: 'tolerance', |
| | | type: JVXETypes.input, |
| | | width: "350px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | align: 'center', |
| | | // validateRules: [ |
| | | // { handler({ cellValue, row, column }, callback, target) { |
| | | // const regex = /^[+]?\d*\.?\d+\/[+]?\d*\.?\d+$/; |
| | | // if (!new RegExp(regex).test(cellValue)&&cellValue!=null) { |
| | | // callback(false, 'å
å·®è¦ç¬¦åãä¸é/è·ç¦»ãçå¡«åè§åï¼å¦: 0.16/300') // false = æªéè¿ï¼å¯ä»¥è·èªå®ä¹æç¤º |
| | | // } else { |
| | | // callback(true) // true = éè¿éªè¯ |
| | | // } |
| | | // }, |
| | | // message: '${title}é»è®¤æç¤º' |
| | | // }, |
| | | // ] |
| | | }, |
| | | ] |
| | | }, |
| | | url: { |
| | | getNums: '/eam/precisionParametersTemplate/getNums', |
| | | add: '/eam/precisionParametersTemplate/addNew', |
| | | edit: '/eam/precisionParametersTemplate/editNew', |
| | | precisionParametersList: { |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId' |
| | | }, |
| | | numList:[], |
| | | }, |
| | | numList: [], |
| | | } |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | created() { |
| | | }, |
| | | methods: { |
| | | addBefore() { |
| | | this.precisionParameters |
| | | |
| | | }, |
| | | getAllTable() { |
| | | let values = this.tableKeys.map(key => getRefPromise(this, key)) |
| | | return Promise.all(values) |
| | | }, |
| | | /** è°ç¨å®edit()æ¹æ³ä¹åä¼èªå¨è°ç¨æ¤æ¹æ³ */ |
| | | editAfter() { |
| | | this.$nextTick(() => { |
| | | }) |
| | | // å è½½åè¡¨æ°æ® |
| | | if (this.model.id) { |
| | | let params = { |
| | | precisionParametersTemplateId: this.model.id, |
| | | pageSize: 9999, |
| | | } |
| | | this.requestSubTableData(this.url.precisionParametersList.list, params, this.precisionParameters) |
| | | } |
| | | if (this.model.num == '') { |
| | | this.model.id = '' |
| | | } |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | addBefore(){ |
| | | this.precisionParameters |
| | | |
| | | }, |
| | | getAllTable() { |
| | | let values = this.tableKeys.map(key => getRefPromise(this, key)) |
| | | return Promise.all(values) |
| | | }, |
| | | /** è°ç¨å®edit()æ¹æ³ä¹åä¼èªå¨è°ç¨æ¤æ¹æ³ */ |
| | | editAfter() { |
| | | this.$nextTick(() => { |
| | | }) |
| | | // å è½½åè¡¨æ°æ® |
| | | if (this.model.id) { |
| | | let params = { |
| | | precisionParametersTemplateId: this.model.id, |
| | | pageSize:9999, |
| | | //æ ¡éªææä¸å¯¹ä¸å表表å |
| | | validateSubForm(allValues) { |
| | | return new Promise((resolve, reject) => { |
| | | Promise.all([ |
| | | ]).then(() => { |
| | | resolve(allValues) |
| | | }).catch(e => { |
| | | if (e.error === VALIDATE_FAILED) { |
| | | // å¦æææªéè¿è¡¨åéªè¯çå表ï¼å°±èªå¨è·³è½¬å°å®æå¨çtab |
| | | this.activeKey = e.index == null ? this.activeKey : this.refKeys[e.index] |
| | | } else { |
| | | console.error(e) |
| | | } |
| | | this.requestSubTableData(this.url.precisionParametersList.list, params, this.precisionParameters) |
| | | }) |
| | | }) |
| | | }, |
| | | /** æ´çæformData */ |
| | | classifyIntoFormData(allValues) { |
| | | let main = Object.assign(this.model, allValues.formValue) |
| | | let details = allValues.tablesValue[0].tableData; |
| | | for (var i = 0; i < details.length; i++) { |
| | | details[i].sort = i + 1; |
| | | if (details[i].tolerance != null && details[i].tolerance != '' && details[i].tolerance != undefined) { |
| | | var inf = details[i].tolerance.split('/'); |
| | | var distance = inf[1]; |
| | | var upper = inf[0]; |
| | | details[i].distance = parseFloat(distance); |
| | | details[i].upper = parseFloat(upper); |
| | | details[i].lower = 0; |
| | | } |
| | | if(this.model.num==''){ |
| | | this.model.id = '' |
| | | } |
| | | }, |
| | | //æ ¡éªææä¸å¯¹ä¸å表表å |
| | | validateSubForm(allValues){ |
| | | return new Promise((resolve,reject)=>{ |
| | | Promise.all([ |
| | | ]).then(() => { |
| | | resolve(allValues) |
| | | }).catch(e => { |
| | | if (e.error === VALIDATE_FAILED) { |
| | | // å¦æææªéè¿è¡¨åéªè¯çå表ï¼å°±èªå¨è·³è½¬å°å®æå¨çtab |
| | | this.activeKey = e.index == null ? this.activeKey : this.refKeys[e.index] |
| | | } else { |
| | | console.error(e) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | /** æ´çæformData */ |
| | | classifyIntoFormData(allValues) { |
| | | let main = Object.assign(this.model, allValues.formValue) |
| | | let details = allValues.tablesValue[0].tableData; |
| | | for(var i=0;i<details.length;i++){ |
| | | details[i].sort=i+1; |
| | | if(details[i].tolerance!=null&&details[i].tolerance!=''&&details[i].tolerance!=undefined){ |
| | | var inf = details[i].tolerance.split('/'); |
| | | var distance = inf[1]; |
| | | var upper = inf[0]; |
| | | details[i].distance = parseFloat(distance); |
| | | details[i].upper = parseFloat(upper); |
| | | details[i].lower = 0; |
| | | } |
| | | } |
| | | return { |
| | | ...main, // å±å¼ |
| | | precisionParametersTemplateDetailList: details, |
| | | } |
| | | }, |
| | | validateError(msg){ |
| | | this.$message.error(msg) |
| | | }, |
| | | precisionParametersDetailSelect() { |
| | | } |
| | | return { |
| | | ...main, // å±å¼ |
| | | precisionParametersTemplateDetailList: details, |
| | | } |
| | | }, |
| | | validateError(msg) { |
| | | this.$message.error(msg) |
| | | }, |
| | | precisionParametersDetailSelect() { |
| | | let ids = [] |
| | | let tableData = this.$refs.precisionParametersList.getTableData() |
| | | for (let i = 0; i < tableData.length; i++) { |
| | |
| | | var precisionParameters = {} |
| | | if (tableStr.indexOf(data[i].id) == -1) { |
| | | precisionParameters = { |
| | | precisionParametersId:data[i].id, |
| | | precisionParametersId: data[i].id, |
| | | precisionParametersName: data[i].name, |
| | | precisionParametersUda1:data[i].precisionParametersUda1, |
| | | precisionParametersTemplateId:this.model.id, |
| | | precisionParametersUda1: data[i].precisionParametersUda1, |
| | | precisionParametersTemplateId: this.model.id, |
| | | } |
| | | } |
| | | addRows.push(precisionParameters) |
| | |
| | | |
| | | this.addSelected(data) |
| | | }, |
| | | onSearchNums(searchText){ |
| | | getAction(this.url.getNums,{searchText:searchText}).then(res=>{ |
| | | if(res.success){ |
| | | this.numList = res.result |
| | | } |
| | | onSearchNums(searchText) { |
| | | getAction(this.url.getNums, { searchText: searchText }).then(res => { |
| | | if (res.success) { |
| | | this.numList = res.result |
| | | } |
| | | }) |
| | | |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |