|
|
|
|
@ -12,8 +12,8 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="入库单号"> |
|
|
|
|
<el-input v-model="sizeForm.code" disabled></el-input> |
|
|
|
|
<el-form-item label="入库单号" v-if="sizeForm.option == 1"> |
|
|
|
|
<el-input v-model="sizeForm.orderNo" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
@ -24,80 +24,81 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="事由"> |
|
|
|
|
<el-input v-model="sizeForm.argument" :disabled="inDialogType != 'add'"></el-input> |
|
|
|
|
<el-input v-model="sizeForm.reason" :disabled="inDialogType != 'add'"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="物资类型"> |
|
|
|
|
<el-select v-model="sizeForm.type" placeholder="请选择" style="width: 100%;" |
|
|
|
|
<el-select v-model="sizeForm.materialType" placeholder="请选择" style="width: 100%;" |
|
|
|
|
:disabled="inDialogType != 'add'"> |
|
|
|
|
<el-option label="办公室物资" value="1"></el-option> |
|
|
|
|
<el-option label="其他物资" value="2"></el-option> |
|
|
|
|
<el-option label="耐用品" value="1"></el-option> |
|
|
|
|
<el-option label="易耗品" value="2"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
<el-form-item label="填报人"> |
|
|
|
|
<el-input v-model="sizeForm.submitName" :disabled="inDialogType != 'add'"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
</el-col> --> |
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
<el-form-item label="审批人"> |
|
|
|
|
<el-input v-model="sizeForm.applyNmae" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-col> --> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项"> |
|
|
|
|
<el-radio-group v-model="sizeForm.radio" @change="radioChange()" :disabled="inDialogType != 'add'"> |
|
|
|
|
<el-radio-group v-model="sizeForm.option" @change="radioChange()" :disabled="inDialogType != 'add'"> |
|
|
|
|
<el-radio :label="1" :disabled="sizeForm.type == 2">批量选择</el-radio> |
|
|
|
|
<el-radio :label="2">单项选择</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" v-if="sizeForm.radio==1"> |
|
|
|
|
<el-col :span="12" v-if="sizeForm.option == 1"> |
|
|
|
|
<el-form-item label="采购单名称"> |
|
|
|
|
<el-input v-model="sizeForm.caigoudanmingcheng" disabled></el-input> |
|
|
|
|
<el-input v-model="sizeForm.quarterName" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<div class="form-title">2025年04月05日入库信息:</div> |
|
|
|
|
<el-button type="primary" size="mini" style="margin-bottom: 18px;" @click="inTableAdd()" v-if="!allDisabled">新增</el-button> |
|
|
|
|
<div class="form-title">{{ inDate }}</div> |
|
|
|
|
<el-button type="primary" size="mini" style="margin-bottom: 18px;" @click="inTableAdd()" |
|
|
|
|
v-if="!allDisabled && sizeForm.option == 2">新增</el-button> |
|
|
|
|
<el-table :data="sizeForm.inTableData" border style="width: 100%"> |
|
|
|
|
|
|
|
|
|
<el-table-column prop="str1" label="编码" > |
|
|
|
|
<el-table-column prop="materialId" label="物资ID"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str2" label="名称" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-select v-model="scope.row.str2" placeholder="请选择" style="width: 100%;" size="mini" |
|
|
|
|
@change="changeName(scope.$index)" :disabled="allDisabled"> |
|
|
|
|
<el-option label="物资1" value="1"></el-option> |
|
|
|
|
<el-option label="物资2" value="2"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column prop="materialName" label="名称" v-if="sizeForm.option == 1"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str3" label="规格"> |
|
|
|
|
<el-table-column prop="materialName" label="名称" v-if="sizeForm.option == 2"> |
|
|
|
|
<el-select v-model="batchType" placeholder="请选择物资名称" style="width: 100%;"> |
|
|
|
|
<el-option v-for="item in materials" :key="item.materialId" :label="item.materialName" :value="item.materialId"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str4" label="类别" > |
|
|
|
|
<el-table-column prop="model" label="规格"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str5" label="单位" > |
|
|
|
|
<el-table-column prop="type" label="类别"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str6" label="计划采购数量" > |
|
|
|
|
<el-table-column prop="unit" label="单位"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str6" label="已入库数量" > |
|
|
|
|
<el-table-column prop="requiredQuantity" label="计划采购数量" v-if="sizeForm.option == 1"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column prop="str6" label="本次入库数量" width="100"> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
<el-table-column prop="str7" label="本次入库数量" > |
|
|
|
|
<el-table-column prop="inboundQuantity" label="已入库数量" v-if="sizeForm.option == 1"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column prop="str7" label="本次入库数量"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-input-number size="mini" v-model="scope.row.str7" :min="1" style="width: 100%;" |
|
|
|
|
:disabled="(scope.row.status != 1)||(allDisabled)" ></el-input-number> |
|
|
|
|
:disabled="(scope.row.status != 1) || (allDisabled)"></el-input-number> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
<el-table-column prop="theInboundQuantity" label="本次入库数量"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-input-number size="mini" v-model="scope.row.theInboundQuantity" :min="1" style="width: 100%;" |
|
|
|
|
@change="syncInboundQuantity(scope.row)"></el-input-number> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column prop="str6" label="需求数量" > |
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="str8" label="单价" > |
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column prop="str9" label="需求部门" width="100"> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
@ -108,51 +109,54 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
<div class="form-title">入库账目表格:</div> |
|
|
|
|
<el-table :data="sizeForm.inAccountsTableData" border style="width: 100%"> |
|
|
|
|
<el-table-column prop="date" label="当前库存" > |
|
|
|
|
<el-table-column prop="str1" label="编码" > |
|
|
|
|
<el-table :data="sizeForm.inTableData" border style="width: 100%"> |
|
|
|
|
<el-table-column prop="date" label="当前库存"> |
|
|
|
|
<el-table-column prop="materialId" label="物资ID"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str2" label="名称" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-select v-if="sizeForm.radio == 2" v-model="sizeForm.type" placeholder="请选择" style="width: 100%;" |
|
|
|
|
:disabled="inDialogType != 'add'"> |
|
|
|
|
<el-option label="办公室物资" value="1"></el-option> |
|
|
|
|
<el-option label="其他物资" value="2"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<span v-else>{{ scope.row.str2 }}</span> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column prop="materialName" label="名称" v-if=> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str3" label="规格" > |
|
|
|
|
<el-table-column prop="model" label="规格"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str4" label="类别" > |
|
|
|
|
<el-table-column prop="type" label="类别"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str5" label="单位" > |
|
|
|
|
<el-table-column prop="unit" label="单位"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str6" label="数量" > |
|
|
|
|
<el-table-column prop="inboundQuantity" label="数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str7" label="单价" > |
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库信息" > |
|
|
|
|
<el-table-column prop="str8" label="数量" > |
|
|
|
|
<el-table-column prop="date" label="入库信息"> |
|
|
|
|
<el-table-column prop="theInboundQuantity" label="数量"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str9" label="单价" > |
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库后库存" > |
|
|
|
|
<el-table-column prop="str10" label="数量" > |
|
|
|
|
<el-table-column prop="date" label="入库后库存"> |
|
|
|
|
<el-table-column label="数量"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ Number(scope.row.inboundQuantity || 0) + Number(scope.row.theInboundQuantity || 0) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str11" label="单价" > |
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="date" label="入库信息" > |
|
|
|
|
<el-table-column prop="str12" label="入库人" > |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="str13" label="入库时间" > |
|
|
|
|
<el-table-column prop="date" label="入库信息"> |
|
|
|
|
<el-table-column label="入库人"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.userInfoVO ? scope.row.userInfoVO.name : (sizeForm.submitName || '') }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="inDate" label="入库时间" width="150"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ inDate }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer" v-if="!allDisabled"> |
|
|
|
|
@ -164,20 +168,20 @@ |
|
|
|
|
|
|
|
|
|
<!-- 批量出库 选择 --> |
|
|
|
|
<el-dialog :close-on-click-modal="false" title="选择数据来源" :visible.sync="inBatchDialogVisible" :append-to-body="true" |
|
|
|
|
width="40%" @close="handleBatchClose"> |
|
|
|
|
width="40%" @close="handleBatchClose" @open="getBatchOptions"> |
|
|
|
|
<el-select v-model="batchType" placeholder="请选择数据来源" style="width: 100%;"> |
|
|
|
|
<el-option label="2025年1季度" value="1"></el-option> |
|
|
|
|
<el-option label="2025年2季度" value="2"></el-option> |
|
|
|
|
<el-option label="2025年3季度" value="3"></el-option> |
|
|
|
|
<el-option v-for="item in batchOptions" :key="item.ids" :label="item.quarterName" :value="item.ids"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="handleBatchClose()">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="batchSumbit()">确 定</el-button> |
|
|
|
|
<el-button type="primary" @click="batchSubmit()">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getAllQuarter, getPurchasesByIds, getMaterialList } from "@/api/firstOrder/inbound"; |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
repairVisible: { |
|
|
|
|
@ -201,19 +205,31 @@ export default { |
|
|
|
|
return { |
|
|
|
|
inDialogVisible: false, |
|
|
|
|
sizeForm: { |
|
|
|
|
code: '',//入库单号 |
|
|
|
|
orderNo: '',//入库单号 |
|
|
|
|
applyNmae: '',//审批人 |
|
|
|
|
submitName: '',//填报人 |
|
|
|
|
waNmae: '',//仓库名称 |
|
|
|
|
argument: '',//事由 |
|
|
|
|
reason: '',//事由 |
|
|
|
|
inAccountsTableData: [],//总计 |
|
|
|
|
inTableData: [], |
|
|
|
|
}, |
|
|
|
|
inTableData: [], |
|
|
|
|
inBatchDialogVisible: false,//选择采购单的数据 |
|
|
|
|
batchType: '',//批量选择类型 |
|
|
|
|
|
|
|
|
|
allDisabled:false, |
|
|
|
|
allDisabled: false, |
|
|
|
|
userInfoVO: { |
|
|
|
|
userId: "用户ID", |
|
|
|
|
name: "用户名称" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
inDate() { |
|
|
|
|
const now = new Date(); |
|
|
|
|
const year = now.getFullYear(); |
|
|
|
|
const month = String(now.getMonth() + 1).padStart(2, '0'); |
|
|
|
|
const day = String(now.getDate()).padStart(2, '0'); |
|
|
|
|
return `${year}年${month}月${day}日`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
@ -223,41 +239,73 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
this.inInit() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.inDialogType == 'details') { |
|
|
|
|
this.allDisabled = true |
|
|
|
|
} |
|
|
|
|
this.getBatchOptions() |
|
|
|
|
this.getMaterialList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
syncInboundQuantity(row) { |
|
|
|
|
// 确保数值类型一致(避免字符串类型问题) |
|
|
|
|
row.theInboundQuantity = Number(row.theInboundQuantity); |
|
|
|
|
}, |
|
|
|
|
async getBatchOptions() { |
|
|
|
|
this.loading = true |
|
|
|
|
try { |
|
|
|
|
const res = await getAllQuarter(); |
|
|
|
|
this.batchOptions = res.data.result |
|
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
this.$message.error("获取数据来源失败,请重试"); |
|
|
|
|
console.error("下拉选项请求失败:", error); |
|
|
|
|
} finally { |
|
|
|
|
this.loading = false; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
async getMaterialList() { |
|
|
|
|
this.loading = true |
|
|
|
|
try { |
|
|
|
|
const res = await getAllQuarter(); |
|
|
|
|
this.materials = res.data.result |
|
|
|
|
console.log(this.materials, '获99来源') |
|
|
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
this.$message.error("获取数据来源失败,请重试"); |
|
|
|
|
console.error("下拉选项请求失败:", error); |
|
|
|
|
} finally { |
|
|
|
|
this.loading = false; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
inInit() { |
|
|
|
|
const randomNum = Math.floor(Math.random() * 100000000) + 1; |
|
|
|
|
this.sizeForm.code = String(randomNum).padStart(8, '0');//入库单号 |
|
|
|
|
this.sizeForm.orderNo = String(randomNum).padStart(8, '0');//入库单号 |
|
|
|
|
this.sizeForm.applyNmae = '审批人一' |
|
|
|
|
this.sizeForm.submitName = '填报人一' |
|
|
|
|
this.sizeForm.radio = 1 |
|
|
|
|
this.sizeForm.option = 1 |
|
|
|
|
this.sizeForm.waNmae = '仓库一' |
|
|
|
|
this.sizeForm.argument = '入库' |
|
|
|
|
this.sizeForm.type = '1' |
|
|
|
|
this.sizeForm.reason = '入库' |
|
|
|
|
this.sizeForm.materialType = '1' |
|
|
|
|
this.sizeForm.inDate = new Date()//入库时间 |
|
|
|
|
|
|
|
|
|
this.sizeForm.inTableData.push({ |
|
|
|
|
str1: '000001', |
|
|
|
|
str2: '物品1', |
|
|
|
|
str3: '规格1', |
|
|
|
|
str4: '类别1', |
|
|
|
|
str5: '单位1', |
|
|
|
|
str6: '11', |
|
|
|
|
str7: '22', |
|
|
|
|
str8: '3', |
|
|
|
|
str9: '部门一', |
|
|
|
|
name: '审批人', |
|
|
|
|
status: '1',// |
|
|
|
|
}) |
|
|
|
|
// this.sizeForm.inTableData.push({ |
|
|
|
|
// str1: '000001', |
|
|
|
|
// str2: '物品1', |
|
|
|
|
// str3: '规格1', |
|
|
|
|
// type: '类别1', |
|
|
|
|
// unit: '单位1', |
|
|
|
|
// str6: '11', |
|
|
|
|
// str7: '22', |
|
|
|
|
// str8: '3', |
|
|
|
|
// str9: '部门一', |
|
|
|
|
// name: '审批人', |
|
|
|
|
// status: '1',// |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
addInit() { |
|
|
|
|
// 生成入库单号 |
|
|
|
|
const randomNum = Math.floor(Math.random() * 100000000) + 1; |
|
|
|
|
this.sizeForm.code = String(randomNum).padStart(8, '0');//入库单号 |
|
|
|
|
this.sizeForm.orderNo = String(randomNum).padStart(8, '0');//入库单号 |
|
|
|
|
this.sizeForm.inDate = new Date()//入库时间 |
|
|
|
|
if (this.type == '一级库') { |
|
|
|
|
this.sizeForm.waNmae = '仓库一' |
|
|
|
|
@ -267,8 +315,7 @@ export default { |
|
|
|
|
this.inDialogVisible = false |
|
|
|
|
this.$emit('handleCloseDetail') |
|
|
|
|
}, |
|
|
|
|
// 添加入库数据 |
|
|
|
|
inTableAdd() { |
|
|
|
|
async inTableAdd() { |
|
|
|
|
this.sizeForm.inTableData.push({ |
|
|
|
|
str1: '', |
|
|
|
|
str2: '', |
|
|
|
|
@ -301,7 +348,6 @@ export default { |
|
|
|
|
str11: "3", |
|
|
|
|
str12: "审批人1", |
|
|
|
|
str13: "2025-04-05", |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 采购单选择弹框关闭 |
|
|
|
|
@ -309,35 +355,28 @@ export default { |
|
|
|
|
this.inBatchDialogVisible = false |
|
|
|
|
}, |
|
|
|
|
// 采购单选择确定 |
|
|
|
|
batchSumbit() { |
|
|
|
|
this.sizeForm.caigoudanmingcheng='2025年一季度' |
|
|
|
|
this.sizeForm.inTableData.push({ |
|
|
|
|
str1: '000001', |
|
|
|
|
str2: '物品1', |
|
|
|
|
str3: '规格1', |
|
|
|
|
str4: '类别1', |
|
|
|
|
str5: '单位1', |
|
|
|
|
str6: '11', |
|
|
|
|
str7: '22', |
|
|
|
|
str8: '3', |
|
|
|
|
str9: '部门一', |
|
|
|
|
name: '审批人', |
|
|
|
|
status: '1',// |
|
|
|
|
},{ |
|
|
|
|
str1: '000001', |
|
|
|
|
str2: '物品1', |
|
|
|
|
str3: '规格1', |
|
|
|
|
str4: '类别1', |
|
|
|
|
str5: '单位1', |
|
|
|
|
str6: '11', |
|
|
|
|
str7: '22', |
|
|
|
|
str8: '3', |
|
|
|
|
str9: '部门一', |
|
|
|
|
name: '审批人', |
|
|
|
|
status: '1',// |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.inBatchDialogVisible = false |
|
|
|
|
async batchSubmit() { |
|
|
|
|
if (!this.batchType) { |
|
|
|
|
this.$message.warning("请选择数据来源") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
const selectedOption = this.batchOptions.find(option => option.ids === this.batchType); |
|
|
|
|
if (!selectedOption) { |
|
|
|
|
this.$message.error("未找到对应的采购单信息"); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.sizeForm.quarterName = selectedOption.quarterName |
|
|
|
|
this.loading = true |
|
|
|
|
const res = await getPurchasesByIds(this.batchType); |
|
|
|
|
console.log("res", res) |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.sizeForm.inTableData = res.data.result; |
|
|
|
|
this.$message.success("数据获取成功"); |
|
|
|
|
this.inBatchDialogVisible = false; |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.data.message || "获取数据失败"); |
|
|
|
|
} |
|
|
|
|
this.loading = false; |
|
|
|
|
}, |
|
|
|
|
changeName(index) { |
|
|
|
|
console.log(9999, index) |
|
|
|
|
@ -371,7 +410,7 @@ export default { |
|
|
|
|
sumbit() { |
|
|
|
|
// status ==1 展示入库 |
|
|
|
|
let flag = this.sizeForm.inTableData.some(item => item.status == 1) |
|
|
|
|
if(flag){ |
|
|
|
|
if (flag) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "warning", |
|
|
|
|
message: "" |
|
|
|
|
@ -387,7 +426,7 @@ export default { |
|
|
|
|
// 选项选择 |
|
|
|
|
radioChange(val) { |
|
|
|
|
this.sizeForm.inTableData = [] |
|
|
|
|
if (this.sizeForm.radio == 1) { |
|
|
|
|
if (this.sizeForm.option == 1) { |
|
|
|
|
this.inBatchDialogVisible = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|