|
@ -18,10 +18,12 @@ |
|
|
:on-success="handleSuccess" |
|
|
:on-success="handleSuccess" |
|
|
:multiple="false" |
|
|
:multiple="false" |
|
|
:show-file-list="false" |
|
|
:show-file-list="false" |
|
|
:limit="1"> |
|
|
:limit="1" |
|
|
|
|
|
> |
|
|
<el-button type="primary" size="small">导入采购订单表</el-button> |
|
|
<el-button type="primary" size="small">导入采购订单表</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-button type="primary" size="small" :disabled="candownload" @click="downCheckExcel">下载审核结果</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled">提交审核</el-button> |
|
|
<el-button type="primary" size="small" :disabled="submitdisabled">提交审核</el-button> |
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
@ -33,103 +35,103 @@ |
|
|
<!-- Start 新增修改部分 --> |
|
|
<!-- Start 新增修改部分 --> |
|
|
<div class="listconadd"> |
|
|
<div class="listconadd"> |
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" label-position="right" class="formadd"> |
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" label-position="right" class="formadd"> |
|
|
<div class="title"> |
|
|
<div class="title"><div>采购订单信息</div></div> |
|
|
<div>采购订单信息</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>订单编号</span></el-col> |
|
|
<span>订单编号</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.code }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.code }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>填单人</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>填单人</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.buyerName }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.buyerName }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>供货单位</span></el-col> |
|
|
<span>供货单位</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.supplierName }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.supplierName }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>仓位</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>仓位</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.warehousePosition }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.warehousePosition }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>采购员</span></el-col> |
|
|
<span>采购员</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.buyerName }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.buyerName }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>入库单位</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>入库单位</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.purchasingDeptName }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.purchasingDeptName }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>要货单位</span></el-col> |
|
|
<span>要货单位</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.purchasingDeptName }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.purchasingDeptName }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>入库仓位</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>入库仓位</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.warehousePosition }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.warehousePosition }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>填单日期</span></el-col> |
|
|
<span>填单日期</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.purchaseDate }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.purchaseDate }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>到货日期</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>到货日期</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.arrivalDate }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.arrivalDate }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
<el-col :span="4" class="tleftb"><span>单据到效期</span></el-col> |
|
|
<span>单据到效期</span> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.expiryDate }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
</el-col> |
|
|
<span>{{ formobj.expiryDate }}</span> |
|
|
<el-col :span="4" class="tleftb"> |
|
|
</el-form-item> |
|
|
<span>完成状态</span> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4" class="tleftb"><span>完成状态</span></el-col> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-col :span="8" class="trightb"> |
|
|
<el-form-item><span>{{ formobj.completionStatus }}</span></el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span>{{ formobj.completionStatus }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<div class="title"> |
|
|
<div class="title"> |
|
|
<div>采购商品明细</div> |
|
|
<div>采购商品明细</div> |
|
|
<div><span style="padding-right: 20px">合计数量:{{ totalQuantity }}</span><span>合计金额:{{ amountInTotal }}</span></div> |
|
|
<div> |
|
|
|
|
|
<span style="padding-right: 20px">合计数量:{{ totalQuantity }}</span> |
|
|
|
|
|
<span>合计金额:{{ amountInTotal }}</span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<el-table :key="tableKey" :data="formobj.pros" :index="index" border style="width: 100%"> |
|
|
<el-table :key="tableKey" :data="formobj.pros" :index="index" border style="width: 100%"> |
|
|
<el-table-column fixed label="序号" width="80px" type="index" :index="index + 1" align="center"/> |
|
|
<el-table-column fixed label="序号" width="80px" type="index" :index="index + 1" align="center" /> |
|
|
<el-table-column fixed label="操作" width="100px" align="center" header-align="center"> |
|
|
<el-table-column fixed label="操作" width="100px" align="center" header-align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|
|
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除</el-button> |
|
|
</el-button> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="商品代码" align="center" width="200"> |
|
|
<el-table-column label="商品代码" align="center" width="200"> |
|
@ -240,6 +242,7 @@ export default { |
|
|
name: 'PurchaseApplicationManagementAdd', |
|
|
name: 'PurchaseApplicationManagementAdd', |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
candownload: true, |
|
|
submitdisabled: false, |
|
|
submitdisabled: false, |
|
|
viewTitle: '', |
|
|
viewTitle: '', |
|
|
tableKey: 0, |
|
|
tableKey: 0, |
|
@ -319,7 +322,9 @@ export default { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
|
this.viewTitle = '【审核编号】' |
|
|
this.viewTitle = '【审核编号】' |
|
|
req.fetchBySid(row.sid).then((resp) => { |
|
|
req |
|
|
|
|
|
.fetchBySid(row.sid) |
|
|
|
|
|
.then(resp => { |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
this.formobj = resp.data |
|
|
this.formobj = resp.data |
|
|
if (this.formobj.pros.length > 0) { |
|
|
if (this.formobj.pros.length > 0) { |
|
@ -335,10 +340,14 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
// 根据resp.code进行异常情况处理 |
|
|
// 根据resp.code进行异常情况处理 |
|
|
} |
|
|
} |
|
|
}).catch(e => { |
|
|
}) |
|
|
|
|
|
.catch(e => { |
|
|
this.formobj = row |
|
|
this.formobj = row |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
downCheckExcel() { |
|
|
|
|
|
window.location.href = process.env.VUE_APP_BASE_API + '/v1/productnum/products?code='+this.formobj.code |
|
|
|
|
|
}, |
|
|
handleDownload() { |
|
|
handleDownload() { |
|
|
window.location.href = process.env.VUE_APP_BASE_API + '/v1/purchaserequisition/yb' |
|
|
window.location.href = process.env.VUE_APP_BASE_API + '/v1/purchaserequisition/yb' |
|
|
}, |
|
|
}, |
|
@ -356,6 +365,11 @@ export default { |
|
|
} |
|
|
} |
|
|
this.amountInTotal = aa |
|
|
this.amountInTotal = aa |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(',,1111',this.formobj.code) |
|
|
|
|
|
if (this.formobj.code) { |
|
|
|
|
|
this.candownload = false |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.$message({ showClose: true, type: 'error', message: resp.msg }) |
|
|
this.$message({ showClose: true, type: 'error', message: resp.msg }) |
|
|
} |
|
|
} |
|
@ -374,7 +388,9 @@ export default { |
|
|
this.$refs['form_obj'].validate(valid => { |
|
|
this.$refs['form_obj'].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.submitdisabled = true |
|
|
this.submitdisabled = true |
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
req |
|
|
|
|
|
.saveOrUpdate(this.formobj) |
|
|
|
|
|
.then(resp => { |
|
|
this.submitdisabled = false |
|
|
this.submitdisabled = false |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|