修改bug

ywj_dev
wangwei 2 years ago
parent d5c4b9b376
commit 8f3887bc61

@ -108,14 +108,14 @@
</el-table-column> </el-table-column>
<el-table-column label="注册/备案号" width="150" prop="certCode"></el-table-column> <el-table-column label="注册/备案号" width="150" prop="certCode"></el-table-column>
<el-table-column label="销售清单号(第二票)" width="180" prop="secSalesListNo"> <!--<el-table-column label="销售清单号(第二票)" width="180" prop="secSalesListNo">-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="销售发票号(第一票)" width="180" prop="firstSalesInvNo"> <!--<el-table-column label="销售发票号(第一票)" width="180" prop="firstSalesInvNo">-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="销售发票号(第二票)" width="180" prop="secSalesInvNo"> <!--<el-table-column label="销售发票号(第二票)" width="180" prop="secSalesInvNo">-->
</el-table-column> <!--</el-table-column>-->
<el-table-column label="发票日期" width="150" prop="invoiceDate"> <!--<el-table-column label="发票日期" width="150" prop="invoiceDate">-->
</el-table-column> <!--</el-table-column>-->
</el-table> </el-table>
</el-card> </el-card>
</div> </div>

@ -166,6 +166,13 @@ export default {
getInfoByInvId({invId: this.invId}).then((res) => { getInfoByInvId({invId: this.invId}).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
this.formData = res.data; this.formData = res.data;
if(res.data.lowStock==null || res.data.lackStock==null || res.data.overStock==null || res.data.expireDate==null || res.data.recentDate==null){
this.formData.lowStock=false;
this.formData.lackStock=false;
this.formData.overStock=false;
this.formData.expireDate=false;
this.formData.recentDate=false;
}
} else { } else {
this.$message.error(res.meesage); this.$message.error(res.meesage);
} }

@ -103,7 +103,7 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item> <el-form-item>
<el-checkbox v-model="formData.autoPurchase"></el-checkbox> <el-checkbox v-model="formData.autoPurchase" >是否生成采购入库单</el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11" v-show="formData.autoPurchase"> <el-col :span="11" v-show="formData.autoPurchase">
@ -279,7 +279,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
saveOrder(status) { saveOrder(status) {
let tip = '' let tip = ''
if (status == '1') { if (status == '1') {
@ -502,7 +501,8 @@ export default {
this.formData.targetInv = 1000 this.formData.targetInv = 1000
this.orderEditor = true this.orderEditor = true
this.sValue = this.formData.corpName this.sValue = this.formData.corpName
this.formData.autoPurchase = true; this.formData.autoPurchase = true
console.log(this.formData)
this.getStockOrderDetailList() this.getStockOrderDetailList()
} else { } else {
this.formData = { this.formData = {

Loading…
Cancel
Save