| | |
| | | ENV = 'development' |
| | | |
| | | # 智云迈思L-MOM管理系统/开发环境 |
| | | VUE_APP_BASE_API = 'http://localhost:81/API/' |
| | | # VUE_APP_BASE_API = 'http://47.96.97.237/API/' |
| | | # VUE_APP_BASE_API = 'http://localhost:81/API/' |
| | | VUE_APP_BASE_API = 'http://47.96.97.237/API/' |
| | | # VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/' |
| | | # VUE_APP_BASE_API = 'http://localhost:8082/LuBaoAPI/' |
| | | # VUE_APP_BASE_API = 'http://192.168.1.11/API/' |
| | |
| | | ], |
| | | HStockOrgID: [ |
| | | { required: true, message: "组织不能为空", trigger: "blur" } |
| | | ], |
| | | HEmpName: [ |
| | | { required: true, message: "业务员不能为空", trigger: "blur" } |
| | | ], |
| | | HMangerName: [ |
| | | { required: true, message: "主管不能为空", trigger: "blur" } |
| | | ], |
| | | HSecManagerName: [ |
| | | { required: true, message: "验收员不能为空", trigger: "blur" } |
| | | ], |
| | | HKeeperName: [ |
| | | { required: true, message: "保管员不能为空", trigger: "blur" } |
| | | ] |
| | | } |
| | | }; |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | option.data = data1.data |
| | | this.dataList = option |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | ], |
| | | HStockOutOrgID: [ |
| | | { required: true, message: "调出组织不能为空", trigger: "blur" } |
| | | ], |
| | | HEmpName: [ |
| | | { required: true, message: "业务员不能为空", trigger: "blur" } |
| | | ], |
| | | HMangerName: [ |
| | | { required: true, message: "主管不能为空", trigger: "blur" } |
| | | ], |
| | | HSecManagerName: [ |
| | | { required: true, message: "验收员不能为空", trigger: "blur" } |
| | | ], |
| | | HKeeperName: [ |
| | | { required: true, message: "保管员不能为空", trigger: "blur" } |
| | | ] |
| | | } |
| | | }; |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | option.data = data1.data |
| | | this.dataList = option |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | ], |
| | | HStockOrgID: [ |
| | | { required: true, message: "组织不能为空", trigger: "blur" } |
| | | ], |
| | | HEmpName: [ |
| | | { required: true, message: "业务员不能为空", trigger: "blur" } |
| | | ], |
| | | HMangerName: [ |
| | | { required: true, message: "主管不能为空", trigger: "blur" } |
| | | ], |
| | | HSecManagerName: [ |
| | | { required: true, message: "验收员不能为空", trigger: "blur" } |
| | | ], |
| | | HKeeperName: [ |
| | | { required: true, message: "保管员不能为空", trigger: "blur" } |
| | | ] |
| | | } |
| | | }; |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.HSourceBillTypes = response.data.data |
| | | this.form.HSourceBillType = this.HSourceBillTypes[0].HSourceBillType |
| | | this.form.HSourceBillTypeName = this.HSourceBillTypes[0].HSourceBillTypeName |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | option.data = data1.data |
| | | this.dataList = option |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | <el-table-column align="center" label="序号" type="index" width="80" /> |
| | | <el-table-column align="center" label="容器代码" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HMaterCode" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)" |
| | | <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)" |
| | | @dblclick.native="openDataDialog(8, scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="仓库代码" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HWHCode" placeholder="请输入" @keyup.native.f7="openDataDialog(2, scope.row ,eHWHType=2)" |
| | | <el-input v-model="scope.row.HWHNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(2, scope.row ,eHWHType=2)" |
| | | @dblclick.native="openDataDialog(2, scope.row ,eHWHType=2)" /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.HSourceBillTypes = response.data.data |
| | | this.form.HSourceBillType = this.HSourceBillTypes[0].HSourceBillType |
| | | this.form.HSourceBillTypeName = this.HSourceBillTypes[0].HSourceBillTypeName |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | resolve(response.data.data[0]); |
| | | } else { |
| | | this.$modal.msgError("未查询到数据!"); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.form.HSupTypeID = data.HSupTypeID |
| | | this.form.HSupID = data.HSupID |
| | | this.form.HSupName = data.HSupName |
| | | this.form.HSecManagerId = data.HSecManagerID |
| | | this.form.HSecManagerName = data.HSecManagerName |
| | | this.form.HDeptID = data.HDeptID |
| | | this.form.HDeptName = data.HDeptName |
| | | this.form.HStockOrgID = data.HStockOrgID == null ? 0 : data.HStockOrgID |
| | |
| | | this.form.HWHNumber = deptRow.仓库代码 |
| | | }else{ |
| | | this.editData[this.zbIndex].HWHID = deptRow.HItemID |
| | | this.editData[this.zbIndex].HWHCode = deptRow.仓库代码 |
| | | this.editData[this.zbIndex].HWHNumber = deptRow.仓库代码 |
| | | this.editData[this.zbIndex].HWHName = deptRow.仓库名称 |
| | | } |
| | | this.warehouseShow = false |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button> |
| | | @click="handleEdit(row = rowForm, OperationType = 2)">编辑</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single" |
| | |
| | | <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox> |
| | | <div :style="item.style"> |
| | | <span v-if="column.property.includes('日期')">{{ parseTime(row[column.property], '{y}-{m}-{d}') }}</span> |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 3)" |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 2)" |
| | | v-else-if="column.property == '单据号'">{{ |
| | | row.单据号 |
| | | }}</el-button> |
| | |
| | | HStatusList: [{name:'全部',value:'-1'},{name:'未审核',value:'0'},{name:'已审核',value:'1'},{name:'已关闭',value:'2'}], |
| | | addBtnShow: false, |
| | | dialogTitle: '', |
| | | OperationType: null,//保存类型(新增1修改3) |
| | | OperationType: null,//保存类型(新增1修改2) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | |
| | | option.data = data1.data |
| | | this.dataList = option |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }, |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3 |
| | | this.OperationType = 2 |
| | | this.handleEdit(row) |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | HSecManagerName: [ |
| | | { required: true, message: "验收员不能为空", trigger: "blur" } |
| | | ], |
| | | HEmpName: [ |
| | | { required: true, message: "业务员不能为空", trigger: "blur" } |
| | | ], |
| | | HKeeperName: [ |
| | | { required: true, message: "保管员不能为空", trigger: "blur" } |
| | | ] |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.HSourceBillTypes = response.data.data |
| | | this.form.HSourceBillType = this.HSourceBillTypes[0].HSourceBillType |
| | | this.form.HSourceBillTypeName = this.HSourceBillTypes[0].HSourceBillTypeName |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | resolve(response.data.data[0]); |
| | | } else { |
| | | this.$modal.msgError("未查询到数据!"); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | } else if (num == 9){ |
| | | if(this.HSPType == 1){ |
| | | this.editData[this.zbIndex].HSPID = deptRow.HMainID |
| | | this.editData[this.zbIndex].HSPCode = deptRow.仓位代码 |
| | | this.editData[this.zbIndex].HSPNumber = deptRow.仓位代码 |
| | | this.editData[this.zbIndex].HSPName = deptRow.仓位名称 |
| | | }else{ |
| | | this.editData[this.zbIndex].HSCSPID = deptRow.HMainID |
| | | this.editData[this.zbIndex].HSCSPCode = deptRow.仓位代码 |
| | | this.editData[this.zbIndex].HSCSPNumber = deptRow.仓位代码 |
| | | this.editData[this.zbIndex].HSCSPName = deptRow.仓位名称 |
| | | } |
| | | this.gyStockPlaceShow = false |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button> |
| | | @click="handleEdit(row = rowForm, OperationType = 2)">编辑</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single" |
| | |
| | | <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox> |
| | | <div :style="item.style"> |
| | | <span v-if="column.property.includes('日期')">{{ parseTime(row[column.property], '{y}-{m}-{d}') }}</span> |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 3)" |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 2)" |
| | | v-else-if="column.property == '单据号'">{{ |
| | | row.单据号 |
| | | }}</el-button> |
| | |
| | | HStatusList: [{name:'全部',value:'-1'},{name:'未审核',value:'0'},{name:'已审核',value:'1'},{name:'已关闭',value:'2'}], |
| | | addBtnShow: false, |
| | | dialogTitle: '', |
| | | OperationType: null,//保存类型(新增1修改3) |
| | | OperationType: null,//保存类型(新增1修改2) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * this.queryParams.HInitTimeCycle); |
| | | end.setTime(end.getTime() - 3600 * 1000 * 24); |
| | | const yyyyS = start.getFullYear(); |
| | | const mmS = String(start.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的 |
| | | const ddS = String(start.getDate()).padStart(2, '0'); |
| | |
| | | option.data = data1.data |
| | | this.dataList = option |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }, |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3 |
| | | this.OperationType = 2 |
| | | this.handleEdit(row) |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | <el-table-column align="center" label="序号" type="index" width="80" /> |
| | | <el-table-column align="center" label="容器代码" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HMaterCode" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)" |
| | | <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)" |
| | | @dblclick.native="openDataDialog(8, scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="仓库代码" width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.HWHCode" placeholder="请输入" @keyup.native.f7="openDataDialog(2, scope.row ,eHWHType=2)" |
| | | <el-input v-model="scope.row.HWHNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(2, scope.row ,eHWHType=2)" |
| | | @dblclick.native="openDataDialog(2, scope.row ,eHWHType=2)" /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.HSourceBillTypes = response.data.data |
| | | this.form.HSourceBillType = this.HSourceBillTypes[0].HSourceBillType |
| | | this.form.HSourceBillTypeName = this.HSourceBillTypes[0].HSourceBillTypeName |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | resolve(response.data.data[0]); |
| | | } else { |
| | | this.$modal.msgError("未查询到数据!"); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | this.form.HSupTypeID = data.HSupTypeID |
| | | this.form.HSupID = data.HSupID |
| | | this.form.HSupName = data.HSupName |
| | | this.form.HSecManagerId = data.HSecManagerID |
| | | this.form.HSecManagerName = data.HSecManagerName |
| | | this.form.HDeptID = data.HDeptID |
| | | this.form.HDeptName = data.HDeptName |
| | | this.form.HStockOrgID = data.HStockOrgID == null ? 0 : data.HStockOrgID |
| | |
| | | this.form.HWHNumber = deptRow.仓库代码 |
| | | }else{ |
| | | this.editData[this.zbIndex].HWHID = deptRow.HItemID |
| | | this.editData[this.zbIndex].HWHCode = deptRow.仓库代码 |
| | | this.editData[this.zbIndex].HWHNumber = deptRow.仓库代码 |
| | | this.editData[this.zbIndex].HWHName = deptRow.仓库名称 |
| | | } |
| | | this.warehouseShow = false |
| | |
| | | } |
| | | this.formShow = true |
| | | this.formLoading = false |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button> |
| | | @click="handleEdit(row = rowForm, OperationType = 2)">编辑</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single" |
| | |
| | | <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox> |
| | | <div :style="item.style"> |
| | | <span v-if="column.property.includes('日期')">{{ parseTime(row[column.property], '{y}-{m}-{d}') }}</span> |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 3)" |
| | | <el-button type="text" @click="handleEdit(row, OperationType = 2)" |
| | | v-else-if="column.property == '单据号'">{{ |
| | | row.单据号 |
| | | }}</el-button> |
| | |
| | | HStatusList: [{name:'全部',value:'-1'},{name:'未审核',value:'0'},{name:'已审核',value:'1'},{name:'已关闭',value:'2'}], |
| | | addBtnShow: false, |
| | | dialogTitle: '', |
| | | OperationType: null,//保存类型(新增1修改3) |
| | | OperationType: null,//保存类型(新增1修改2) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | |
| | | this.dataList = option |
| | | |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | }else{ |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }, |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3 |
| | | this.OperationType = 2 |
| | | this.handleEdit(row) |
| | | }, |
| | | // 多选框选中数据 |