|
@@ -15,6 +15,18 @@
|
|
|
<el-form-item label="税率" prop="taxrate">
|
|
|
<el-input v-model="form.taxrate" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="商品编号" prop="itemno">
|
|
|
+ <el-input v-model="form.itemno" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商品名称" prop="itemname">
|
|
|
+ <el-input v-model="form.itemname" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="规格型号" prop="spec">
|
|
|
+ <el-input v-model="form.spec" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="单位" prop="funit">
|
|
|
+ <el-input v-model="form.funit" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="dialogFormVisible = false">取 消</el-button>
|
|
@@ -30,7 +42,18 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
dialogFormVisible:false,
|
|
|
- form:{},
|
|
|
+ form:{
|
|
|
+ "sa_invoicebill_itemid": '',
|
|
|
+ "sa_invoiceapply_orderid":'',
|
|
|
+ "itemno": '',
|
|
|
+ "itemname": '',
|
|
|
+ "spec": '',
|
|
|
+ "price": '',
|
|
|
+ "invoiceaqty": '',
|
|
|
+ "invoiceamount": '',
|
|
|
+ "taxrate":'',
|
|
|
+ "funit":''
|
|
|
+ },
|
|
|
rules: {
|
|
|
price: [
|
|
|
{ required: true, message: '含税单价不能为空', trigger: 'blur' }
|
|
@@ -49,14 +72,16 @@ export default {
|
|
|
this.form = {
|
|
|
"sa_invoicebill_itemid": this.data.sa_invoicebill_itemid,
|
|
|
"sa_invoiceapply_orderid":this.data.sa_invoiceapply_orderid,
|
|
|
- "itemno": this.data.itemno,
|
|
|
- "itemname": this.data.itemname,
|
|
|
- "spec": this.data.spec,
|
|
|
+ "itemno": this.data.goodscode,
|
|
|
+ "itemname": this.data.goodsname,
|
|
|
+ "spec": this.data.spectype,
|
|
|
"price": this.data.price,
|
|
|
"invoiceaqty": this.data.num,
|
|
|
"invoiceamount": this.data.price * this.data.num,
|
|
|
- "taxrate":this.data.taxrate
|
|
|
+ "taxrate":this.data.taxrate,
|
|
|
+ "funit":this.data.unit
|
|
|
}
|
|
|
+ console.log(this.form,this.data);
|
|
|
this.dialogFormVisible = true
|
|
|
},
|
|
|
countInvoiceamount () {
|
|
@@ -76,6 +101,7 @@ export default {
|
|
|
"itemno": this.form.itemno,
|
|
|
"itemname": this.form.itemname,
|
|
|
"spec": this.form.spec,
|
|
|
+ "funit":this.form.funit,
|
|
|
"price": this.form.price,
|
|
|
"invoiceaqty": this.form.invoiceaqty,
|
|
|
"invoiceamount": 0,
|