| | |
| | | <el-input v-model="formParam.lev" placeholder="层"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="formParam" label-position="top" :inline="true" class="demo-form-inline"> |
| | | <el-form-item label="测试库位数量"> |
| | | <el-input v-model="formParam.locMastDemoCount" placeholder="测试库位数量"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="测试库位"> |
| | | <el-input v-model="formParam.locMastDemo" placeholder="测试库位 分隔符;"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="目标站/目标库位"> |
| | | <el-input v-model="formParam.staOutDemo" placeholder="堆垛机放货站点"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="目标站/目标库位"> |
| | | <el-input v-model="formParam.staIntDemo" placeholder="堆垛机取货站点"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form label-position="top" :inline="true" class="demo-form-inline"> |
| | | <el-form-item label=""> |
| | | <el-checkbox @change="updateEnableInOut('in')" v-model="enableIn">可入</el-checkbox> |
| | |
| | | <el-checkbox @change="updateEnableInOut('out')" v-model="enableOut">可出</el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item label=""> |
| | | <el-checkbox @change="updateEnableInOut('demo')" v-model="hpMkDemo">演示</el-checkbox> |
| | | <el-checkbox @change="updateDemo('demo')" v-model="hpMkDemo">演示</el-checkbox> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div> |
| | |
| | | sourceBay: 0, |
| | | sourceLev: 1, |
| | | staNo: null, |
| | | locMastDemoCount: 3, |
| | | locMastDemo: null, |
| | | staOutDemo: null, |
| | | staIntDemo: null, |
| | | row: 1, |
| | | bay: 0, |
| | | lev: 1 |
| | |
| | | inEnable: this.enableIn ? "Y" : "N", |
| | | crnNo: this.formParam.crnNo |
| | | } |
| | | } else if (type == "demo") { |
| | | param = { |
| | | hpMk: this.hpMkDemo ? "Y" : "N", |
| | | crnNo: this.formParam.crnNo |
| | | } |
| | | } else { |
| | | param = { |
| | | outEnable: this.enableOut ? "Y" : "N", |
| | |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | updateDemo(type) { |
| | | let that = this |
| | | let param = {} |
| | | that.$confirm('将启动演示模式,是否继续','提示',{ |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(()=>{ |
| | | if (type == "demo") { |
| | | param = { |
| | | hpMk: this.hpMkDemo ? "Y" : "N", |
| | | staOutDemo: this.formParam.staOutDemo, |
| | | staIntDemo: this.formParam.staIntDemo, |
| | | locMastDemo: this.formParam.locMastDemo, |
| | | locMastDemoCount: this.formParam.locMastDemoCount, |
| | | crnNo: this.formParam.crnNo |
| | | } |
| | | } else { |
| | | param = { |
| | | crnNo: this.formParam.crnNo |
| | | } |
| | | } |
| | | |
| | | |
| | | $.ajax({ |
| | | url: baseUrl + "/basCrnp/update/demo/auth", |
| | | headers: { |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | | data: param, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | } |
| | | }) |