| | |
| | | style="width: 90%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.jointName" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | style="width: 90%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.jointName" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | updateOperation, |
| | | updateStatus, |
| | | deleteOperation, |
| | | getOperationType |
| | | getListTransfer |
| | | } from "@/api/overview/overview" |
| | | import { getCompanyList } from "@/api/common/other" |
| | | export default { |
| | |
| | | this.getLocationList() |
| | | this.receiptType = this.editConfig.title === "查看" ? this.editConfig.infomation.operationTypeName : this.addName |
| | | if (this.showOperationType) { |
| | | this.getOperationType() |
| | | this.getListTransfer() |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | async getCompanyList() { |
| | | await getCompanyList().then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 200) { |
| | | this.companyOptions = res.data.data |
| | | if (res.code === 200) { |
| | | this.companyOptions = res.data |
| | | } |
| | | }) |
| | | }, |
| | |
| | | async getLocationList() { |
| | | await getLocationList({ |
| | | keyWord: "", |
| | | jointName:this.editConfig.code, |
| | | page: 0, |
| | | pageSize: 0 |
| | | }).then((res) => { |
| | |
| | | }) |
| | | }, |
| | | // 获取仓库类型 |
| | | async getOperationType() { |
| | | await getOperationType({ |
| | | async getListTransfer() { |
| | | await getListTransfer({ |
| | | keyword: "", |
| | | page: 0, |
| | | pageSize: 0 |
| | | }).then((res) => { |
| | | console.log(res.data.data) |
| | | if (res.data.code === 200) { |
| | | const list = res.data.data.map((item) => { |
| | | console.log(res.data) |
| | | if (res.code === 200) { |
| | | const list = res.data.map((item) => { |
| | | return { |
| | | name: item.name, |
| | | id: item.id |
| | |
| | | contacterName = Object.keys(this.contacterObj).length === 0 ? data.contacterName : this.contacterObj.label |
| | | } |
| | | let params = { |
| | | baseOperationType:data.baseOperationType, |
| | | comment: data.comment || "", |
| | | companyID: companyID, |
| | | companyName: companyName, |
| | |
| | | // { label: "说明", prop: "number", input: true }, |
| | | // { label: "日期", prop: "amount", date: true, isRequird: true }, |
| | | // { label: "截止日期", prop: "price", date: true }, |
| | | { label: "完成", prop: "amount", inputFloat: true }, |
| | | { label: "数量", prop: "amount", inputFloat: true }, |
| | | { label: "计量单位", prop: "unit" } |
| | | ] |
| | | } |