农场图片显示优化;加工产品管理去除导入功能;修复加工、销售、出库、损耗记录表的查询功能
| | |
| | | this.loginInfoByToken(); |
| | | }else{ |
| | | //跳转到本地登录页时跳转到统一登录 |
| | | window.location.replace('http://dev.jxpskj.com:8020/ncny/login.html') |
| | | // window.location.replace('http://dev.jxpskj.com:8020/ncny/login.html') |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | addBtn: true, |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | menuWidth: 300, |
| | | menuWidth: 250, |
| | | border: true, |
| | | viewBtn: false, |
| | | align: "center", |
| | |
| | | prop: "farmName", |
| | | labelWidth: 145, |
| | | maxlength:40, |
| | | width: 200, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入农场名称", |
| | |
| | | label: "农场面积", |
| | | prop: "farmArea", |
| | | labelWidth: 145, |
| | | width:70, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入农场面积", |
| | |
| | | column: [ |
| | | { |
| | | label: "品种", |
| | | prop: "strainId", |
| | | prop: "kind", |
| | | search: true, |
| | | hide: true, |
| | | display: true, |
| | | display: false, |
| | | type: "select", |
| | | dicUrl: '/api/strain/strain-tree', |
| | | dicUrl: '/api/strain/kind-tree', |
| | | dicFormatter:(res)=>{ |
| | | this.kindList = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: "strainName", |
| | | value: "id" |
| | | label: "kindName", |
| | | value: "id" |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | if (params.kind){ |
| | | this.kindList.forEach(e=>{ |
| | | if (e.id == params.kind){ |
| | | params.type = e.type |
| | | } |
| | | }) |
| | | } |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | column: [ |
| | | { |
| | | label: "品种", |
| | | prop: "strainId", |
| | | prop: "kind", |
| | | search: true, |
| | | hide: true, |
| | | display: false, |
| | | type: "select", |
| | | dicUrl: '/api/strain/strain-tree', |
| | | dicUrl: '/api/strain/kind-tree', |
| | | dicFormatter:(res)=>{ |
| | | this.kindList = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: "strainName", |
| | | value: "id" |
| | | label: "kindName", |
| | | value: "id" |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.onLoad(this.page) |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | currentChange (currentPage) { |
| | | this.page.currentPage = currentPage |
| | |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | | </style> |
| | |
| | | column: [ |
| | | { |
| | | label: "品种", |
| | | prop: "strainId", |
| | | prop: "kind", |
| | | search: true, |
| | | hide: true, |
| | | display: true, |
| | | display: false, |
| | | type: "select", |
| | | dicUrl: '/api/strain/strain-tree', |
| | | dicUrl: '/api/strain/kind-tree', |
| | | dicFormatter:(res)=>{ |
| | | this.kindList = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: "strainName", |
| | | value: "id" |
| | | label: "kindName", |
| | | value: "id" |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | if (params.kind){ |
| | | this.kindList.forEach(e=>{ |
| | | if (e.id == params.kind){ |
| | | params.type = e.type |
| | | } |
| | | }) |
| | | } |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | |
| | | total: 0, |
| | | }, |
| | | selectionList: [], |
| | | //种类集合 |
| | | kindList:[], |
| | | option: { |
| | | tip: false, |
| | | searchShow: true, |
| | |
| | | column: [ |
| | | { |
| | | label: "品种", |
| | | prop: "strainId", |
| | | prop: "kind", |
| | | search: true, |
| | | hide: true, |
| | | display: false, |
| | | type: "select", |
| | | dicUrl: '/api/strain/strain-tree', |
| | | dicUrl: '/api/strain/kind-tree', |
| | | dicFormatter:(res)=>{ |
| | | this.kindList = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: "strainName", |
| | | label: "kindName", |
| | | value: "id" |
| | | } |
| | | }, |
| | |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | if (params.kind){ |
| | | this.kindList.forEach(e=>{ |
| | | if (e.id == params.kind){ |
| | | params.type = e.type |
| | | } |
| | | }) |
| | | } |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | |
| | | v-if="permission.machining_delete" |
| | | @click="handleDelete" |
| | | >删 除</el-button> |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | @click="handleImport" |
| | | >导入</el-button> |
| | | <!-- <el-button--> |
| | | <!-- type="success"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-upload2"--> |
| | | <!-- @click="handleImport"--> |
| | | <!-- >导入</el-button>--> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="用户数据导入" append-to-body :visible.sync="excelBox" width="555px"> |
| | | <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | 点击下载 |
| | | <i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <!-- <el-dialog title="用户数据导入" append-to-body :visible.sync="excelBox" width="555px">--> |
| | | <!-- <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">--> |
| | | <!-- <template slot="excelTemplate">--> |
| | | <!-- <el-button type="primary" @click="handleTemplate">--> |
| | | <!-- 点击下载--> |
| | | <!-- <i class="el-icon-download el-icon--right"></i>--> |
| | | <!-- </el-button>--> |
| | | <!-- </template>--> |
| | | <!-- </avue-form>--> |
| | | <!-- </el-dialog>--> |
| | | </basic-container> |
| | | </template> |
| | | |