| | |
| | | @selection-change="handleSelectionChange" |
| | | :row-key="(row) => row.productId" |
| | | > |
| | | <el-table-column v-if="selectBox" type="selection" :reserve-selection="true" width="40" align="center"> |
| | | <el-table-column v-if="selectBox" type="selection" :selectable="isDisabled" :reserve-selection="true" width="40" align="center"> |
| | | |
| | | </el-table-column> |
| | | <el-table-column v-if="tableList.isReturn" type="index" label="#" width="50" align="center"></el-table-column> |
| | |
| | | <!-- column样式 --> |
| | | <template slot-scope="scope"> |
| | | <template v-if="!detailEnter || isOperate"> |
| | | |
| | | <el-form-item |
| | | v-if="item.input" |
| | | label=" " |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <span v-else-if="item.compute">{{ calculateDifference(scope.row) }}</span> |
| | | |
| | | <!-- 调用方法显示文字 --> |
| | | <div v-else-if="item.isCallMethod"> |
| | | <span :class="item.isClass ? item.getClassName(scope.row[item.prop], scope.row) : ''">{{ |
| | | item.getCallMethod(scope.row[item.prop], scope.row) |
| | | }}</span> |
| | | </div> |
| | | <el-form-item |
| | | v-else-if="item.productName" |
| | | label=" " |
| | |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | // selection 选择状态 页面 |
| | | name: { |
| | | type: String, |
| | | default: "", |
| | | }, |
| | | isBoder:{ |
| | | type: Boolean, |
| | | default: false |
| | |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | isDisabled(row){ |
| | | if (this.name == "rework") { |
| | | if (row.status == 1) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | }else { |
| | | return true; |
| | | } |
| | | }, |
| | | calculateDifference(row) { |
| | | if (row.notReceiveAmount !== null && row.nowReceiveAmount !== null) { |
| | | row.surplusReceiveAmount=row.notReceiveAmount - row.nowReceiveAmount; |
| | |
| | | style="height: 60vh; overflow-x: hidden"> |
| | | <div class="basic-info"> |
| | | <div class="product-view"> |
| | | <CommonFormTableView :isBoder="true" :selectBox="true" :detailEnter="true" :recalculateShow="false" |
| | | <CommonFormTableView :isBoder="true" |
| | | name="rework" :selectBox="true" :detailEnter="true" :recalculateShow="false" |
| | | :addTypeIdMultiple="true" :product-table-list="productTableList" sign="purchase" @rowClick="rowClick" |
| | | @getSelectArray="getSelectArray" @toFiltering="toFiltering"> |
| | | |
| | |
| | | savePurchaseQualityInspectionInfo |
| | | } from "@/api/purchaseManage/purchase" |
| | | import CommonFormTableView from "@/components/makepager/CommonFormTableView" |
| | | import { getDataByType } from "@/api/data" |
| | | export default { |
| | | name: "ArrivalConfirmation", |
| | | components: { CommonFormTableView }, |
| | |
| | | ], |
| | | thatStatus: [], |
| | | thatTimes: [], |
| | | selectList: [] |
| | | selectList: [], |
| | | qualityStatusList: getDataByType("qualityStatus"), |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { |
| | | label: "状态", prop: "status", |
| | | label: "状态", |
| | | prop: "status", |
| | | isFilter: true, |
| | | isFilterList: this.statusList, |
| | | selectedListDefault: this.getSelectedOperateStatus([], this.statusList), |
| | | isCallMethod: true, |
| | | getCallMethod: this.getpurchaseStatus |
| | | }, |
| | | ] |
| | | } |
| | |
| | | falseClick(row) { |
| | | console.log(row, "row") |
| | | |
| | | }, |
| | | getpurchaseStatus(val) { |
| | | if (val) { |
| | | for (let i in this.qualityStatusList) { |
| | | if (this.qualityStatusList[i].id == val) { |
| | | return this.qualityStatusList[i].name |
| | | } |
| | | } |
| | | } else { |
| | | return "--" |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | getPurchaseInfo, |
| | | newSubmitPurchase, |
| | | deletePurchase, |
| | | getPurchaseQualityInspectionInfo, |
| | | getOperationInfo |
| | | } from "@/api/purchaseManage/purchase" |
| | | import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier" |
| | |
| | | ] |
| | | // 收货信息 |
| | | const recriveColumn = [ |
| | | { label: "收货时间", prop: "operationNumber", default: true }, |
| | | { label: "收货时间", prop: "createTime", default: true }, |
| | | { label: "收货人", prop: "principal" }, |
| | | { label: "产品名称", prop: "name" }, |
| | | { label: "产品编码", prop: "number" }, |
| | | { label: "规格", prop: "warehouseName" }, |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品编码", prop: "productId" }, |
| | | { label: "规格", prop: "specs" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "单位", prop: "overTime" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus } |
| | | ] |
| | | // 入库信息 |
| | |
| | | }, |
| | | // 获取产品/收货信息 |
| | | async getProductInventoryInfo(row) { |
| | | console.log(row) |
| | | if (this.TabsIndex == 0 && row.status == 1) { |
| | | getPurchaseInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | }) |
| | | } else if (this.TabsIndex == 1 && row.status == 1) { |
| | | this.productTableList.tableInfomation = [] |
| | | } else if(this.TabsIndex==1 && row.status==7||row.status==8){ |
| | | getPurchaseQualityInspectionInfo({ |
| | | purchaseNumber: row.number, |
| | | }).then((res)=>{ |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | }"" |
| | | }) |
| | | }else if(this.TabsIndex==2){ |
| | | getOperationInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | | }) |
| | | }else{ |
| | | this.productTableList.tableInfomation =[] |
| | | } |
| | | } |
| | | } |