modified: src/assets/api/controller.js
modified: src/components/view/sale.vue
modified: src/components/view/standard.vue
modified: src/main.js
modified: src/view/index.vue
| | |
| | | selectSaleDatilById: "sale/selectSaleDatilById", //根据销售单id查看详情, |
| | | addSale: "sale/addSale", //新增销售单 |
| | | saleCheck: "sale/check", //审核销售单 |
| | | exportSale: "sale/exportSale",//导出销售订单 |
| | | synchronization: "sale/synchronization", //同步 |
| | | updateSaleById: "sale/updateSaleById", //根据销售单id修改详情信息 |
| | | delSale: "sale/delSale", //根据销售单id删除 |
| | |
| | | :icon="isSync ? 'el-icon-loading' : 'el-icon-refresh'">同步</el-button> |
| | | <el-button type="primary" icon="el-icon-plus" @click="openAddDia">新增</el-button> |
| | | <el-button icon="el-icon-delete" @click="delSales">删除</el-button> |
| | | <el-button icon="el-icon-download">导出</el-button> |
| | | <el-button icon="el-icon-download" @click="exportSale">导出</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | <el-tag effect="dark" size="mini" style="font-size: 8px;">{{scope.row.order_type}}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="合同编号" width="220"> |
| | | <el-table-column prop="code" label="合同编号" > |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="工程名称" width="120"> |
| | | </el-table-column> |
| | |
| | | <template slot-scope="scope"> |
| | | <span style="color: #34BD66;" v-if="scope.row.type == 1">通过</span> |
| | | <span style="color: #E84738;" v-else-if="scope.row.type == 0">不通过</span> |
| | | <span v-else>{{null}}</span> |
| | | <span style="color: #ff9900;" v-else>未审核</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="220"> |
| | |
| | | this.selectRawInspectsList() |
| | | }, |
| | | methods: { |
| | | //销售订单导出 |
| | | exportSale(){ |
| | | this.$axios.post(this.$api.url.exportSale,{ |
| | | delTime: this.search.delTime, |
| | | name: this.search.name, |
| | | type: this.search.type, |
| | | orderNumber: this.search.code |
| | | },{responseType:'blob',headers:{"Content-Type":"application/json"}}).then((res)=>{ |
| | | const result = res; |
| | | var nameList = result.headers['content-disposition']; |
| | | nameList = decodeURI(nameList); |
| | | var fileName = nameList.split('=')[1]; |
| | | const blob = new Blob([result.data,{type: 'application/vnd.ms-excel'}]); |
| | | const link = document.createElement('a'); |
| | | link.download = fileName; |
| | | const URL = window.URL || window.webkitURL; |
| | | link.href= URL.createObjectURL(blob); |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | }).catch() |
| | | }, |
| | | closeDialog() { |
| | | this.addData = { |
| | | orderNumber: null, |
| | |
| | | <el-option :value="0" label="工艺路线"></el-option> |
| | | <el-option :value="1" label="技术指标"></el-option> |
| | | <el-option :value="2" label="物料清单"></el-option> |
| | | <!-- <el-option :value="3" label="生产工艺"></el-option> --> |
| | | <el-option :value="3" label="生产工艺"></el-option> |
| | | </el-select> |
| | | <span>版本:</span> |
| | | <el-select v-model="versionVal" @change="verevent" size="small" style="width: 13vw;margin-right: 15px;" placeholder="请选择"> |
| | |
| | | Vue.use(qs); |
| | | Vue.use(api); |
| | | |
| | | const javaApi = 'http://192.168.14.249:8001' |
| | | const javaApi = 'http://localhost:8001' |
| | | |
| | | // const javaApi = 'http://127.0.0.1:8001/' |
| | | |
| | |
| | | }) |
| | | |
| | | axios.interceptors.response.use(res => { |
| | | if(res.config.responseType === 'blob'){ |
| | | return res; |
| | | } |
| | | return res.data |
| | | }, async function(err) { |
| | | if (JSON.stringify(err).indexOf('timeout of') > -1) { |
| | |
| | | v: "WMS管理", |
| | | i: "font icon-a-Inventorydumprequest", |
| | | c: [{ |
| | | k: 15, |
| | | v: "原材料库存", |
| | | i: "font icon-shouye", |
| | | u: "" |
| | | }, |
| | | { |
| | | k: 16, |
| | | v: "回单管理", |
| | | i: "font icon-shouye", |
| | | u: "" |
| | | }, |
| | | { |
| | | k: 17, |
| | | v: "半成品库存", |
| | | i: "font icon-shouye", |
| | |
| | | }, |
| | | { |
| | | k: 6, |
| | | v: "产品检验", |
| | | v: "成品检验", |
| | | i: "font icon-shouye", |
| | | u: "finishedProductInspection" |
| | | }, |
| | |
| | | u: "record-content" |
| | | }, |
| | | { |
| | | k: 24, |
| | | v: "自检项目维护", |
| | | i: "font icon-shouye", |
| | | u: "self-inspection" |
| | | }, |
| | | { |
| | | k: 25, |
| | | v: "技术指标维护", |
| | | i: "font icon-shouye", |
| | |
| | | v: "物料清单维护", |
| | | i: "font icon-shouye", |
| | | u: "mbom" |
| | | }, |
| | | { |
| | | k: 30, |
| | | v: "生产工艺维护", |
| | | i: "font icon-shouye", |
| | | u: "equipmentmaintain" |
| | | } |
| | | ] |
| | | } |