|
|
@ -1,9 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<!-- 展示员工切换的模块 --> |
|
|
<!-- 展示员工切换的模块 --> |
|
|
|
|
|
<div class="customer-css"> |
|
|
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="280px"> |
|
|
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="280px"> |
|
|
<el-form :inline="true" @submit.native.prevent label-position="top" label-width="100px" style="margin-top: -5px;"> |
|
|
<el-form :inline="true" @submit.native.prevent label-position="top" label-width="100px" style="margin-top: -5px;"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item :label="'操作员:'"> |
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(26)"><a herf="#">操作员:</a></span> |
|
|
<el-input ref="operatorId" @keyup.enter.native="saveOperatorData" @blur="checkOperatorId" |
|
|
<el-input ref="operatorId" @keyup.enter.native="saveOperatorData" @blur="checkOperatorId" |
|
|
v-model="operatorData.operatorId" |
|
|
v-model="operatorData.operatorId" |
|
|
style="width: 110px"> |
|
|
style="width: 110px"> |
|
|
@ -18,25 +20,23 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" |
|
|
<el-form :inline="true" label-position="top" label-width="100px" |
|
|
style="margin-left: 180px; margin-top: -80px; width: 60px;"> |
|
|
style="margin-left: 180px; margin-top: -80px; width: 60px;"> |
|
|
<el-form-item label=""> |
|
|
|
|
|
<el-button type="primary">列表</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="" style="margin-top: 10px; margin-bottom: 0px;"> |
|
|
<el-form-item label="" style="margin-top: 10px; margin-bottom: 0px;"> |
|
|
<el-button type="primary" @click="saveOperatorData">保存</el-button> |
|
|
<el-button type="primary" @click="saveOperatorData">保存</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="" style="margin-top: 15px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-form-item label="" style="margin-top: 25px; margin-bottom: 15px;"> |
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
</el-form> |
|
|
</el-form> |
|
|
<!--列表的组件--> |
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
|
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<!--列表的组件--> |
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/ |
|
|
|
|
|
|
|
|
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/ |
|
|
import { |
|
|
import { |
|
|
getOperatorData, |
|
|
getOperatorData, |
|
|
} from '@/api/yieldReport/produce_order.js' |
|
|
} from '@/api/yieldReport/produce_order.js' |
|
|
@ -153,6 +153,28 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*列表方法的回调*/ |
|
|
|
|
|
getBaseData(val){ |
|
|
|
|
|
if (this.tagNo === 26){ |
|
|
|
|
|
debugger; |
|
|
|
|
|
this.operatorData.operatorId = val.OperatorID; |
|
|
|
|
|
this.operatorData.operatorName = val.OperatorName; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取基础数据列表 |
|
|
|
|
|
getBaseList(val){ |
|
|
|
|
|
this.tagNo = val |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
let strVal = ""; |
|
|
|
|
|
if (val === 26){ |
|
|
|
|
|
strVal = this.operatorData.operatorId; |
|
|
|
|
|
} |
|
|
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
} |
|
|
} |
|
|
|