| | |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">进粉上报</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" @click="$refs.ValueTable.openUpload()" v-if="inPower"> |
| | | <i class="el-icon-upload2" style="color: #3A7BFA;"></i> |
| | | <span style="color: #3A7BFA;">导入</span> |
| | | </el-button> |
| | | <el-button size="medium" @click="$refs.ValueTable.openDownDia()" v-if="outPower"> |
| | | <i class="el-icon-download" style="color: #3A7BFA;"></i> |
| | | <span style="color: #3A7BFA;">导出</span> |
| | | </el-button> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">系统日期:</div> |
| | | <div class="search_input"> |
| | | <el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" clearable></el-date-picker> |
| | | <el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="选择日期" |
| | | value-format="yyyy-MM-dd HH:mm:ss" clearable></el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">登记人:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" v-model="componentData.entity.createUserName" clearable placeholder="登记人" @keyup.enter.native="refreshTable()"></el-input> |
| | | <el-input size="small" v-model="componentData.entity.createUserName" clearable placeholder="登记人" |
| | | @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable" :url="$api.dataReporting.selectFansSubmitList" :upUrl="$api.dataReporting.updateFansSubmit" :delUrl="$api.dataReporting.delFansSubmit" :componentData="componentData" :key="upIndex"/> |
| | | <ValueTable ref="ValueTable" :url="$api.dataReporting.selectFansSubmitList" |
| | | :upUrl="$api.dataReporting.updateFansSubmit" :delUrl="$api.dataReporting.delFansSubmit" |
| | | :componentData="componentData" :key="upIndex" :downUrl="$api.dataReporting.downFansSubmitFile" :inputUrl="$api.dataReporting.inputFansSubmitCsv"/> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | product: { |
| | | select: [] |
| | | }, |
| | | custom: {select: []} |
| | | custom: { |
| | | select: [] |
| | | } |
| | | }, |
| | | requiredAdd: ['custom', 'product', 'fansAdd'], |
| | | requiredUp: ['custom', 'product', 'fansAdd'], |
| | | disabledUp: ['custom','product'] |
| | | }, |
| | | entityCopy: {}, |
| | | upIndex: 0, |
| | | product: [], |
| | | custom: [], |
| | | addPower: true |
| | | addPower: true, |
| | | inPower: true, |
| | | outPower: true |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | openUpload() { |
| | | |
| | | } |
| | | } |
| | | } |