|
|
@ -74,10 +74,10 @@
|
|
|
|
:data="list"
|
|
|
|
:data="list"
|
|
|
|
style="width: 100%; " highlight-current-row
|
|
|
|
style="width: 100%; " highlight-current-row
|
|
|
|
@row-click="getStockOrderDetailList" ref="multipleTable">
|
|
|
|
@row-click="getStockOrderDetailList" ref="multipleTable">
|
|
|
|
<el-table-column
|
|
|
|
<!--<el-table-column
|
|
|
|
type="selection"
|
|
|
|
type="selection"
|
|
|
|
width="55">
|
|
|
|
width="55">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>-->
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
|
|
|
@ -147,18 +147,68 @@
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
|
|
|
<el-row style="margin-bottom: 20px;">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="batchSetParams(null,'salesListNo')">批量设置销售清单</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="batchSetParams(null, 'firstSalesInvNo')">批量设置销售发票第一票</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="batchSetParams(null, 'secSalesInvNo')">批量设置销售发票第二票</el-button>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="detailLoading"
|
|
|
|
<el-table v-loading="detailLoading"
|
|
|
|
:data="detailList"
|
|
|
|
:data="detailList"
|
|
|
|
|
|
|
|
@selection-change="changeFun"
|
|
|
|
style="width: 100%">
|
|
|
|
style="width: 100%">
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
type="selection"
|
|
|
|
|
|
|
|
width="55">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column label="产品通用名" prop="productName"></el-table-column>
|
|
|
|
<el-table-column label="产品通用名" prop="productName"></el-table-column>
|
|
|
|
<el-table-column label="包装规格" prop="spec"></el-table-column>
|
|
|
|
<el-table-column label="包装规格" prop="spec"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="销售清单号(第二票)" prop="secSalesListNo">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.secSalesListNo"
|
|
|
|
|
|
|
|
placeholder="请输入"></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="销售发票号(第一票)" prop="firstSalesInvNo">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.firstSalesInvNo"
|
|
|
|
|
|
|
|
placeholder="请输入"></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="销售发票号(第二票)" prop="secSalesInvNo">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.secSalesInvNo"
|
|
|
|
|
|
|
|
placeholder="请输入"></el-input>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="发票日期" prop="invoiceDate">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-date-picker :disabled="scope.$index !== currentCheckIndex" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" v-model="scope.row.invoiceDate" style="width: 100%;"></el-date-picker>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productDate"></el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productDate"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="单据数量" prop="count"></el-table-column>
|
|
|
|
<el-table-column label="单据数量" prop="count"></el-table-column>
|
|
|
|
<el-table-column label="实际数量" prop="reCount"></el-table-column>
|
|
|
|
<el-table-column label="实际数量" prop="reCount"></el-table-column>
|
|
|
|
<el-table-column label="价格" prop="price"></el-table-column>
|
|
|
|
<el-table-column label="价格" prop="price"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="操作" prop="price">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click="handleEdit(scope.$index, scope.row)"
|
|
|
|
|
|
|
|
>编辑
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click="handleSave(scope.$index, scope.row)"
|
|
|
|
|
|
|
|
>保存
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
@ -171,158 +221,197 @@
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog :visible.sync="salesListNoFormVisible">
|
|
|
|
title="配货"
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
:visible.sync="distributionVisible"
|
|
|
|
<label></label>
|
|
|
|
width="60%"
|
|
|
|
<el-form-item label="销售清单:" :label-width="formLabelWidth">
|
|
|
|
v-if="distributionVisible"
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.secSalesListNo" autocomplete="off"></el-input>
|
|
|
|
@close='closeDialog'
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<stockOrderDistribution
|
|
|
|
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
|
|
|
|
:idQuery="idQuery"
|
|
|
|
|
|
|
|
></stockOrderDistribution>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="编辑"
|
|
|
|
|
|
|
|
:visible.sync="detailFormVisible"
|
|
|
|
|
|
|
|
:before-close="hideDetailForm"
|
|
|
|
|
|
|
|
width="85%"
|
|
|
|
|
|
|
|
top="5vh"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form :model="detailFormData" :rules="detailFormRules" ref="dataForm">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>产品通用名:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="productName">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.productName" auto-complete="off"
|
|
|
|
|
|
|
|
:disabled="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>包装规格:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="spec">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.spec" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-form>
|
|
|
|
</el-row>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-button @click="salesListNoFormVisible = false">取 消</el-button>
|
|
|
|
<el-col :span="3">
|
|
|
|
<el-button type="primary" @click="batchSetParams('1','salesListNo')">确 定</el-button>
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>单据数量:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="count">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>实际数量:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="reCount">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.reCount" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>生产日期:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="productDate">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.productDate" auto-complete="off"
|
|
|
|
|
|
|
|
:disabled="false"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>失效日期:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="expireDate">
|
|
|
|
|
|
|
|
<el-input v-model="detailFormData.expireDate" auto-complete="off"
|
|
|
|
|
|
|
|
:disabled="false"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
|
|
|
<span>批次号:</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-dialog>
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="batchNo">
|
|
|
|
<el-dialog :visible.sync="firstSalesInvNoFormVisible">
|
|
|
|
<el-input v-model="detailFormData.batchNo" auto-complete="off" :disabled="false"></el-input>
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
|
|
|
|
<label></label>
|
|
|
|
|
|
|
|
<el-form-item label="销售发票第一票:" :label-width="formLabelWidth">
|
|
|
|
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.firstSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-form>
|
|
|
|
<el-col :span="3">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div class="ao-text">
|
|
|
|
<el-button @click="firstSalesInvNoFormVisible = false">取 消</el-button>
|
|
|
|
<span>扫码数量:</span>
|
|
|
|
<el-button type="primary" @click="batchSetParams('1','firstSalesInvNo')">确 定</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-dialog>
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
|
|
<el-form-item prop="sweepCount">
|
|
|
|
<el-dialog :visible.sync="secSalesInvNoFormVisible">
|
|
|
|
<el-input v-model="detailFormData.sweepCount" auto-complete="off" :disabled="false"
|
|
|
|
<el-form :model="batchForm">
|
|
|
|
oninput="value=value.replace(/[^\d]/g,'')"></el-input>
|
|
|
|
<label></label>
|
|
|
|
|
|
|
|
<el-form-item label="销售发票第二票:" :label-width="formLabelWidth">
|
|
|
|
|
|
|
|
<el-input style="width: 50%;" v-model="batchForm.secSalesInvNo" autocomplete="off"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button @click.native="hideDetailForm">取消</el-button>
|
|
|
|
<el-button @click="secSalesInvNoFormVisible = false">取 消</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button type="primary" @click="batchSetParams('1','secSalesInvNo')">确 定</el-button>
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click.native="submitUploadDetail()"
|
|
|
|
|
|
|
|
:loading="detailFormLoading"
|
|
|
|
|
|
|
|
>提交
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<!--<el-dialog-->
|
|
|
|
title="码详情"
|
|
|
|
<!-- title="配货"-->
|
|
|
|
:visible.sync="qrcodeDetailVisible"
|
|
|
|
<!-- :visible.sync="distributionVisible"-->
|
|
|
|
width="70%"
|
|
|
|
<!-- width="60%"-->
|
|
|
|
v-if="qrcodeDetailVisible"
|
|
|
|
<!-- v-if="distributionVisible"-->
|
|
|
|
@close='closeQRCodeDetailDialog'
|
|
|
|
<!-- @close='closeDialog'-->
|
|
|
|
>
|
|
|
|
<!-->-->
|
|
|
|
<stockOrderQRCodeDetail
|
|
|
|
<!-- <stockOrderDistribution-->
|
|
|
|
:closeDialog="closeQRCodeDetailDialog"
|
|
|
|
<!-- :closeDialog="closeDialog"-->
|
|
|
|
:idQuery="idQuery"
|
|
|
|
<!-- :idQuery="idQuery"-->
|
|
|
|
></stockOrderQRCodeDetail>
|
|
|
|
<!-- ></stockOrderDistribution>-->
|
|
|
|
</el-dialog>
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<!--<el-dialog-->
|
|
|
|
title="码管理"
|
|
|
|
<!-- title="编辑"-->
|
|
|
|
:visible.sync="qrcodeExportVisible"
|
|
|
|
<!-- :visible.sync="detailFormVisible"-->
|
|
|
|
width="60%"
|
|
|
|
<!-- :before-close="hideDetailForm"-->
|
|
|
|
v-if="qrcodeExportVisible"
|
|
|
|
<!-- width="85%"-->
|
|
|
|
@close='closeQRCodeExportDialog'
|
|
|
|
<!-- top="5vh"-->
|
|
|
|
>
|
|
|
|
<!-->-->
|
|
|
|
<stockQRCodeExport
|
|
|
|
<!-- <el-form :model="detailFormData" :rules="detailFormRules" ref="dataForm">-->
|
|
|
|
:closeDialog="closeQRCodeExportDialog"
|
|
|
|
|
|
|
|
:idQuery="idQuery"
|
|
|
|
<!-- <el-row :gutter="20">-->
|
|
|
|
></stockQRCodeExport>
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
</el-dialog>
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>产品通用名:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="productName">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.productName" auto-complete="off"-->
|
|
|
|
|
|
|
|
<!-- :disabled="true"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>包装规格:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="spec">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.spec" auto-complete="off" :disabled="true"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="20">-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>单据数量:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="count">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.count" auto-complete="off" :disabled="true"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>实际数量:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="reCount">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.reCount" auto-complete="off" :disabled="true"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="20">-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>生产日期:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="productDate">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.productDate" auto-complete="off"-->
|
|
|
|
|
|
|
|
<!-- :disabled="false"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>失效日期:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="expireDate">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.expireDate" auto-complete="off"-->
|
|
|
|
|
|
|
|
<!-- :disabled="false"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="20">-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>批次号:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="batchNo">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.batchNo" auto-complete="off" :disabled="false"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="3">-->
|
|
|
|
|
|
|
|
<!-- <div class="ao-text">-->
|
|
|
|
|
|
|
|
<!-- <span>扫码数量:</span>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="7">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="sweepCount">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="detailFormData.sweepCount" auto-complete="off" :disabled="false"-->
|
|
|
|
|
|
|
|
<!-- oninput="value=value.replace(/[^\d]/g,'')"></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
<!-- </el-form>-->
|
|
|
|
|
|
|
|
<!-- <div slot="footer" class="dialog-footer">-->
|
|
|
|
|
|
|
|
<!-- <el-button @click.native="hideDetailForm">取消</el-button>-->
|
|
|
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
|
|
|
<!-- @click.native="submitUploadDetail()"-->
|
|
|
|
|
|
|
|
<!-- :loading="detailFormLoading"-->
|
|
|
|
|
|
|
|
<!-- >提交-->
|
|
|
|
|
|
|
|
<!-- </el-button-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-dialog-->
|
|
|
|
|
|
|
|
<!-- title="码详情"-->
|
|
|
|
|
|
|
|
<!-- :visible.sync="qrcodeDetailVisible"-->
|
|
|
|
|
|
|
|
<!-- width="70%"-->
|
|
|
|
|
|
|
|
<!-- v-if="qrcodeDetailVisible"-->
|
|
|
|
|
|
|
|
<!-- @close='closeQRCodeDetailDialog'-->
|
|
|
|
|
|
|
|
<!-->-->
|
|
|
|
|
|
|
|
<!-- <stockOrderQRCodeDetail-->
|
|
|
|
|
|
|
|
<!-- :closeDialog="closeQRCodeDetailDialog"-->
|
|
|
|
|
|
|
|
<!-- :idQuery="idQuery"-->
|
|
|
|
|
|
|
|
<!-- ></stockOrderQRCodeDetail>-->
|
|
|
|
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-dialog-->
|
|
|
|
|
|
|
|
<!-- title="码管理"-->
|
|
|
|
|
|
|
|
<!-- :visible.sync="qrcodeExportVisible"-->
|
|
|
|
|
|
|
|
<!-- width="60%"-->
|
|
|
|
|
|
|
|
<!-- v-if="qrcodeExportVisible"-->
|
|
|
|
|
|
|
|
<!-- @close='closeQRCodeExportDialog'-->
|
|
|
|
|
|
|
|
<!-->-->
|
|
|
|
|
|
|
|
<!-- <stockQRCodeExport-->
|
|
|
|
|
|
|
|
<!-- :closeDialog="closeQRCodeExportDialog"-->
|
|
|
|
|
|
|
|
<!-- :idQuery="idQuery"-->
|
|
|
|
|
|
|
|
<!-- ></stockQRCodeExport>-->
|
|
|
|
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -332,7 +421,8 @@ import {
|
|
|
|
deleteStockOrderById, deleteStockOrderDetailById,
|
|
|
|
deleteStockOrderById, deleteStockOrderDetailById,
|
|
|
|
copyStockOrderDetail, submitStockOrder,
|
|
|
|
copyStockOrderDetail, submitStockOrder,
|
|
|
|
uploadStockOrderDetail, uploadStockOrderDetailCount,
|
|
|
|
uploadStockOrderDetail, uploadStockOrderDetailCount,
|
|
|
|
generateStockOrderQRCodeText, supplementOrder
|
|
|
|
generateStockOrderQRCodeText, supplementOrder,
|
|
|
|
|
|
|
|
updateStockOrderDetail
|
|
|
|
} from "../../api/warehouse/stockOrder";
|
|
|
|
} from "../../api/warehouse/stockOrder";
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
@ -366,6 +456,17 @@ export default {
|
|
|
|
busTypes: [],
|
|
|
|
busTypes: [],
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
detailList: [],
|
|
|
|
detailList: [],
|
|
|
|
|
|
|
|
currentCheckIndex: -1,
|
|
|
|
|
|
|
|
multipId: [],
|
|
|
|
|
|
|
|
batchForm: {
|
|
|
|
|
|
|
|
secSalesListNo: '',
|
|
|
|
|
|
|
|
firstSalesInvNo: '',
|
|
|
|
|
|
|
|
secSalesInvNo: ''
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
salesListNoFormVisible: false,
|
|
|
|
|
|
|
|
firstSalesInvNoFormVisible: false,
|
|
|
|
|
|
|
|
secSalesInvNoFormVisible: false,
|
|
|
|
|
|
|
|
formLabelWidth: '120px',
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
detailTotal: 0,
|
|
|
|
detailTotal: 0,
|
|
|
|
storageList: [],
|
|
|
|
storageList: [],
|
|
|
@ -431,7 +532,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -470,6 +571,80 @@ export default {
|
|
|
|
this.query.page = val;
|
|
|
|
this.query.page = val;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleEdit(index, row) {
|
|
|
|
|
|
|
|
this.currentCheckIndex = index;
|
|
|
|
|
|
|
|
console.log(this.currentCheckIndex)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleSave(index, row) {
|
|
|
|
|
|
|
|
this.currentCheckIndex = -1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateStockOrderDetail(row).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.$message.success(res.data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
changeFun(row) {
|
|
|
|
|
|
|
|
let _this = this;
|
|
|
|
|
|
|
|
_this.multipId = []; //每次改动重置ID
|
|
|
|
|
|
|
|
row.forEach((item) => {
|
|
|
|
|
|
|
|
_this.multipId.push(item.id);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
batchSetParams(flag, type) {
|
|
|
|
|
|
|
|
if (flag == '1' && type == 'salesListNo') {
|
|
|
|
|
|
|
|
this.salesListNoFormVisible = false;
|
|
|
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
|
|
|
|
if (data.id == id) {
|
|
|
|
|
|
|
|
data.secSalesListNo = this.batchForm.secSalesListNo;
|
|
|
|
|
|
|
|
//更新到数据库
|
|
|
|
|
|
|
|
updateStockOrderDetail(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (flag == '1' && type == 'firstSalesInvNo') {
|
|
|
|
|
|
|
|
this.firstSalesInvNoFormVisible = false;
|
|
|
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
|
|
|
|
if (data.id == id) {
|
|
|
|
|
|
|
|
data.firstSalesInvNo = this.batchForm.firstSalesInvNo;
|
|
|
|
|
|
|
|
//更新到数据库
|
|
|
|
|
|
|
|
updateStockOrderDetail(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (flag == '1' && type == 'secSalesInvNo') {
|
|
|
|
|
|
|
|
this.secSalesInvNoFormVisible = false;
|
|
|
|
|
|
|
|
this.detailList.forEach(data => {
|
|
|
|
|
|
|
|
this.multipId.forEach(id => {
|
|
|
|
|
|
|
|
if (data.id == id) {
|
|
|
|
|
|
|
|
data.secSalesInvNo = this.batchForm.secSalesInvNo;
|
|
|
|
|
|
|
|
//更新到数据库
|
|
|
|
|
|
|
|
updateStockOrderDetail(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (this.multipId.length == 0) {
|
|
|
|
|
|
|
|
this.$message.warning("请选择数据");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
switch (type) {
|
|
|
|
|
|
|
|
case 'salesListNo':
|
|
|
|
|
|
|
|
this.salesListNoFormVisible = true;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
case 'firstSalesInvNo':
|
|
|
|
|
|
|
|
this.firstSalesInvNoFormVisible = true;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
case 'secSalesInvNo':
|
|
|
|
|
|
|
|
this.secSalesInvNoFormVisible = true;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
detailHandleCurrentChange(val) {
|
|
|
|
detailHandleCurrentChange(val) {
|
|
|
|
this.query.page = val;
|
|
|
|
this.query.page = val;
|
|
|
|
this.getStockOrderDetailList();
|
|
|
|
this.getStockOrderDetailList();
|
|
|
@ -576,9 +751,11 @@ export default {
|
|
|
|
this.detailLoading = true;
|
|
|
|
this.detailLoading = true;
|
|
|
|
stockOrderDetail(this.detailQuery)
|
|
|
|
stockOrderDetail(this.detailQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
this.detailLoading = false;
|
|
|
|
this.detailLoading = false;
|
|
|
|
this.detailList = response.data.list || [];
|
|
|
|
this.detailList = response.data.list || [];
|
|
|
|
|
|
|
|
/*this.detailList.forEach(data => {
|
|
|
|
|
|
|
|
data['edit'] = false;
|
|
|
|
|
|
|
|
});*/
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.detailLoading = false;
|
|
|
|
this.detailLoading = false;
|
|
|
@ -801,6 +978,5 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|