|
|
@@ -185,6 +185,7 @@
|
|
|
amount: '{{old('amount')}}',
|
|
|
unit_price: '{{old('unit_price')}}',
|
|
|
total_price: '{{old('total_price')}}',
|
|
|
+ remark: '{{old('remark')}}',
|
|
|
procurement_id:'',supplier:'',offer:'',supplier_id:'',
|
|
|
ownerMaterials: [],
|
|
|
errors: {},
|
|
|
@@ -200,6 +201,7 @@
|
|
|
[
|
|
|
{name: 'created_at_start', type: 'dateTime', tip: '选择显示指定日期的起始时间'},
|
|
|
{name: 'created_at_end', type: 'dateTime', tip: '选择显示指定日期的结束时间'},
|
|
|
+ {name:'code',type:'input',tip:'可支持多采购编号,模糊搜索可在两侧增加百分号(%)进行',placeholder: '采购编号'},
|
|
|
{
|
|
|
name: 'owner_id', type: 'select_multiple_select', tip: ['输入关键词快速定位下拉列表,回车确定', '选择要显示的项目'],
|
|
|
placeholder: ['项目', '定位或多选项目'], data: this.owners
|
|
|
@@ -357,7 +359,8 @@
|
|
|
owner_material_id: _this.owner_material_id,
|
|
|
quantity: _this.quantity,
|
|
|
amount: _this.amount,
|
|
|
- unit_price: _this.unit_price
|
|
|
+ unit_price: _this.unit_price,
|
|
|
+ remark: _this.remark
|
|
|
};
|
|
|
window.axios.post(url, params).then(function (res) {
|
|
|
if (!res.data.success) {
|
|
|
@@ -377,7 +380,7 @@
|
|
|
createEnquiry() {
|
|
|
let _this = this;
|
|
|
let url = '{{url('procurement/procurement/createEnquiry')}}';
|
|
|
- let params = {owner_id: _this.owner_id, owner_material_id: _this.owner_material_id};
|
|
|
+ let params = {owner_id: _this.owner_id, owner_material_id: _this.owner_material_id,remark: _this.remark};
|
|
|
window.axios.post(url, params).then(function (res) {
|
|
|
if (!res.data.success) {
|
|
|
_this.errors = res.data.errors;
|
|
|
@@ -397,7 +400,7 @@
|
|
|
createProof() {
|
|
|
let _this = this;
|
|
|
let url = '{{url('procurement/procurement/createProof')}}';
|
|
|
- let params = {owner_id: _this.owner_id, owner_material_id: _this.owner_material_id};
|
|
|
+ let params = {owner_id: _this.owner_id, owner_material_id: _this.owner_material_id,remark: _this.remark};
|
|
|
window.axios.post(url, params).then(function (res) {
|
|
|
if (!res.data.success) {
|
|
|
_this.errors = res.data.errors;
|