Commit a158d841 by liangjianmin

css

parent 562246da
Showing with 43 additions and 109 deletions
......@@ -15,7 +15,7 @@ let NODE_ENVS = "/";
switch (envs) {
case 'development':
//开发环境
NODE_ENVS = 'http://192.168.2.164:8080';
NODE_ENVS = 'http://192.168.2.142:8080';
break;
case 'test':
//测试环境
......
......@@ -11,12 +11,6 @@
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="formInline.status" placeholder="请选择">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item label="询价日期">
<el-date-picker v-model="formInline.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
......@@ -31,19 +25,18 @@
</div>
<div class="data-box">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column fixed prop="goods_name" label="型号" width="200"></el-table-column>
<el-table-column fixed prop="inquiry_sn" label="供应商内部型号编码" width="200"></el-table-column>
<el-table-column fixed prop="brand_name" label="品牌" width="200"></el-table-column>
<el-table-column prop="batch" label="封装" width="200"></el-table-column>
<el-table-column prop="batch" label="起订量" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="库存数量" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="国内含税价(¥)" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="香港交货价($)" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="大陆交期" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="香港交期" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="状态" width="200"></el-table-column>
<el-table-column type="selection" width="40"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column>
<el-table-column prop="goods_name" label="型号" width="200"></el-table-column>
<el-table-column prop="brand_name" label="品牌" width="200"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="create_time" label="交货日期" width="200"></el-table-column>
<el-table-column prop="status_val" label="状态" width="200"></el-table-column>
<el-table-column prop="quote_count" label="报价数" width="100"></el-table-column>
<el-table-column prop="create_time" label="报价时间" width="200"></el-table-column>
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div>
<!--修改库存弹窗-->
......@@ -144,107 +137,51 @@
name: "inquire",
data() {
return {
dialogVisible: false,
dialogVisible2: false,
total: 0,
limit: 1,
page: 1,
tableData:[],
multipleSelection:[],
formInline: {
goods_name: '',
status: '',
brand: '',
date: ''
},
multipleSelection: [],
updateKc: "",
updateHq: "",
updateHqdl: "",
updateHqdldw: "天",
updateHqhk: "",
updateHqhkdw: "天",
huoqidata: [{
"id": 318,
"inquiry_sn": "X2021050609556",
"goods_name": "M4",
"brand_name": "TR FASTENINGS",
"inquiry_number": 1,
"batch": "1",
"delivery_time": "1天",
"status_val": "已报价(1)",
"quote_count": 1,
"currency": 1,
"status_a": 1,
"user_name": "admin",
"create_name": "admin@ichunt.com",
"create_time": "2021-05-08 09:41:42"
},],
kucundata: [{
"id": 318,
"inquiry_sn": "X2021050609556",
"goods_name": "M4",
"brand_name": "TR FASTENINGS",
"inquiry_number": 1,
"batch": "1",
"delivery_time": "1天",
"status_val": "已报价(1)",
"quote_count": 1,
"currency": 1,
"status_a": 1,
"user_name": "admin",
"create_name": "admin@ichunt.com",
"create_time": "2021-05-08 09:41:42"
},],
tableData: [{
"id": 318,
"inquiry_sn": "X2021050609556",
"goods_name": "M4",
"brand_name": "TR FASTENINGS",
"inquiry_number": 1,
"batch": "1",
"delivery_time": "1天",
"status_val": "已报价(1)",
"quote_count": 1,
"currency": 1,
"status_a": 1,
"user_name": "admin",
"create_name": "admin@ichunt.com",
"create_time": "2021-05-08 09:41:42"
},
{
"id": 318,
"inquiry_sn": "X2021050609556",
"goods_name": "M4",
"brand_name": "TR FASTENINGS",
"inquiry_number": 1,
"batch": "1",
"delivery_time": "1天",
"status_val": "已报价(1)",
"quote_count": 1,
"currency": 1,
"status_a": 1,
"user_name": "admin",
"create_name": "admin@ichunt.com",
"create_time": "2021-05-08 09:41:42"
}
]
}
};
},
watch: {},
created() {
this.getData();
},
computed: {},
methods: {
getData() {
this.$http('get', "/api/inquiry/getlist", {
page: this.page,
limit: this.limit,
goods_name: this.formInline.goods_name,
brand: this.formInline.brand,
start_time: this.formInline.date[0],
end_time: this.formInline.date[1]
}).then(res => {
if (res.err_code === 0) {
this.tableData = res.data.list || [];
this.total = res.data.count || 0;
} else {
Message(res.err_msg);
}
})
},
onSubmit() {
this.page = 1;
this.getData();
},
handleSelectionChange(val) {
this.multipleSelection = val;
console.log(this.multipleSelection)
},
handleCommand(command) {
console.log(command)
if (command == 1) {
//修改库存弹窗
this.dialogVisible = true
} else {
//修改货期弹窗
this.dialogVisible2 = true
}
handleCurrentChange(val) {
this.page = val;
this.getData();
},
handleClose(done) {
MessageBox.confirm('确认关闭?', {
......@@ -253,9 +190,6 @@
done();
}).catch(res => {
});
},
onSubmit() {
console.log('submit!');
}
},
components: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment