Compare commits
2 Commits
c7a585e69a
...
xiaozy_产品列
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56cf799cfb | ||
|
|
0b9076df67 |
@@ -66,7 +66,8 @@ export default {
|
||||
handler(nval, oval) {
|
||||
this.list = [];
|
||||
// this.isDisabled = !!this.config.isDisabled;
|
||||
if (nval) {
|
||||
let type = this.$utils.typeJudgment(this.config.echoName);
|
||||
if (nval && ["String"].includes(type)) {
|
||||
let resultName = this.config.echoName.replace(/\s*/g, "");
|
||||
if (!resultName) return;
|
||||
this.remoteMethod(resultName);
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
|
||||
<el-select
|
||||
<!-- <el-select
|
||||
v-model="parameter.params.companyType"
|
||||
placeholder="账户类型"
|
||||
clearable
|
||||
@@ -67,7 +67,7 @@
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
|
||||
<!-- 企业负责人或联系方式 -->
|
||||
<autocomplete
|
||||
@@ -332,13 +332,13 @@
|
||||
</p>
|
||||
</template>
|
||||
<template #companyNature>
|
||||
<!-- <p v-if="oilCompanyMatch[0]">
|
||||
<p v-if="oilCompanyMatch[0]">
|
||||
{{
|
||||
companyNatureEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].companyNature
|
||||
).label
|
||||
}}
|
||||
</p> -->
|
||||
</p>
|
||||
</template>
|
||||
<template #companyDockType>
|
||||
<p>
|
||||
@@ -501,7 +501,8 @@ export default {
|
||||
querykey: "companyName",
|
||||
},
|
||||
configAutocompleteHead: {
|
||||
serveTarget: commonServe.getCompanyNames,
|
||||
serveTarget: commonServe.getRefineryCompanyList,
|
||||
autocompleteKey: "name",
|
||||
labelKey: "name",
|
||||
valueKey: "name",
|
||||
placeholder: "总公司名称",
|
||||
@@ -693,6 +694,7 @@ export default {
|
||||
this.getByPage();
|
||||
},
|
||||
getByPage() {
|
||||
this.parameter.params.companyType = "4";
|
||||
serve.getByPage(this.parameter).then((res) => {
|
||||
this.tableData = res.data.list;
|
||||
this.parameter.total = res.data.totalCount;
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<el-button @click="closeWindow()">取消 </el-button>
|
||||
<el-button @click="controlWindows.bill = false">取消 </el-button>
|
||||
<el-button v-show="billData.orderInfo&&billData.orderInfo.orderStatus&&billData.orderInfo.orderStatus=='DELIVERING'" @click="submit">订单确认</el-button>
|
||||
</div>
|
||||
<el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd">
|
||||
@@ -286,6 +286,7 @@ export default {
|
||||
order.billSave(this.billAddData).then(res=>{
|
||||
if(res.code == 20000){
|
||||
this.billAddData.deliveryStatus = 'SUBMITED'
|
||||
this.billData.list.push(this.billAddData)
|
||||
this.billListMeth()
|
||||
this.$message.success(res.msg)
|
||||
this.dialogBillAdd = false
|
||||
@@ -304,7 +305,6 @@ export default {
|
||||
}
|
||||
}
|
||||
})
|
||||
this.$emit('billOfLading',this.billAddData.orderId)
|
||||
},
|
||||
//更新提货单数据
|
||||
billListMeth(){
|
||||
@@ -313,10 +313,6 @@ export default {
|
||||
this.billData.list = res.data
|
||||
this.$forceUpdate()
|
||||
});
|
||||
order.findByOrderId(this.controlWindows.addInfo.id).then((res) => {
|
||||
this.billData.orderInfo = res.data
|
||||
this.$forceUpdate()
|
||||
});
|
||||
},200)
|
||||
},
|
||||
//删除提货单
|
||||
@@ -329,6 +325,7 @@ export default {
|
||||
this.billListMeth()
|
||||
}
|
||||
})
|
||||
this.$set(this.billData.list,index,'')
|
||||
})
|
||||
},
|
||||
openDrawer() {
|
||||
@@ -351,23 +348,7 @@ export default {
|
||||
throw new Error()
|
||||
}
|
||||
});
|
||||
let titleConfirm = ['是否确认订单已完成?','一旦确认,该订单无法再被提货,且未提货的金额将自行退回。']
|
||||
const newDatas = []
|
||||
const h = this.$createElement
|
||||
for (const i in titleConfirm) {
|
||||
newDatas.push(h('p', null, titleConfirm[i]))
|
||||
}
|
||||
this.$confirm(
|
||||
'提示',
|
||||
{
|
||||
title: '提示',
|
||||
message: h('div', null, newDatas),
|
||||
showCancelButton: true,
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}
|
||||
).then(() => {
|
||||
this.$confirm('确定下单?', '提示', { type: 'success' }).then(() => {
|
||||
let data={
|
||||
id:this.controlWindows.addInfo.id,
|
||||
actQuantity:this.quantity,
|
||||
@@ -390,6 +371,7 @@ export default {
|
||||
this.$emit("closeWindow");
|
||||
this.form = {};
|
||||
this.controlWindows.bill = false;
|
||||
this.$refs.form.clearValidate();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<el-link type="primary" :underline="false" @click="detail(row)"
|
||||
>详情</el-link
|
||||
>
|
||||
<el-link v-show="row.orderStatus!=='SUBMITED'&&row.orderStatus!=='ORDER_LOCKED'" type="primary" :underline="false" @click="billOfLading(row)"
|
||||
<el-link v-show="row.orderStatus!=='SUBMITED'&&row.orderStatus!=='ORDER_LOCKED'&&row.payStatus!=='REFUNDED'" type="primary" :underline="false" @click="billOfLading(row)"
|
||||
>提货单</el-link
|
||||
>
|
||||
<el-popconfirm
|
||||
|
||||
@@ -36,7 +36,11 @@
|
||||
placeholder="请选择炼厂"
|
||||
></el-autocomplete> -->
|
||||
|
||||
<autocomplete :params="form" :config="configAutocomplete" />
|
||||
<autocomplete
|
||||
ref="autocomplete"
|
||||
:params="form"
|
||||
:config="configAutocomplete"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属炼厂库名" prop="belongLibrary">
|
||||
<el-input
|
||||
@@ -203,6 +207,7 @@ export default {
|
||||
this.form = {};
|
||||
this.controlWindows.addInfo = {};
|
||||
this.$nextTick(() => {
|
||||
this.$refs.autocomplete.list = [];
|
||||
this.$refs.form.clearValidate();
|
||||
this.controlWindows.add = false;
|
||||
});
|
||||
|
||||
@@ -41,14 +41,28 @@ export default {
|
||||
controlWindows: Object,
|
||||
},
|
||||
data() {
|
||||
let validatorFloorPrice = (rule, value, callback) => {
|
||||
if (!value || !+value) return callback("成本价价不能为0或空");
|
||||
callback();
|
||||
};
|
||||
let validatorSalePrice2company = (rule, value, callback) => {
|
||||
if (!value || !+value) return callback("企业销售价不能为0或空");
|
||||
if (value < this.form.floorPrice)
|
||||
return callback("企业销售价不能低于成本价");
|
||||
callback();
|
||||
};
|
||||
return {
|
||||
form: {},
|
||||
rules: {
|
||||
floorPrice: [
|
||||
{ required: true, message: "请输入成本价", trigger: "blur" },
|
||||
{ required: true, validator: validatorFloorPrice, trigger: "change" },
|
||||
],
|
||||
salePrice2company: [
|
||||
{ required: true, message: "请输入企业销售价", trigger: "blur" },
|
||||
{
|
||||
required: true,
|
||||
validator: validatorSalePrice2company,
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
</p></template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="个人销售价">
|
||||
<!-- <el-table-column label="个人销售价">
|
||||
<template slot-scope="{ row }">
|
||||
<p v-if="row.salePrice2personal">
|
||||
{{ row.salePrice2personal }}/{{ row.measurement }}
|
||||
@@ -79,7 +79,7 @@
|
||||
{{ row.lastSalePrice2personal }}/{{ row.measurement }}
|
||||
</p></template
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="时间" width="235">
|
||||
<template slot-scope="{ row }">
|
||||
<p class="gray">
|
||||
|
||||
@@ -97,17 +97,17 @@
|
||||
</el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="refineryLevel" label="成本价" width="70">
|
||||
<el-table-column prop="refineryLevel" label="成本价" width="110">
|
||||
<template slot-scope="{ row }">
|
||||
{{ row.floorPrice | toNumberFixed }}/{{ row.measurement }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="refineryLevel" label="企业销售价" width="100">
|
||||
<el-table-column prop="refineryLevel" label="企业销售价" width="110">
|
||||
<template slot-scope="{ row }">
|
||||
{{ row.salePrice2company | toNumberFixed }}/{{ row.measurement }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="refineryLevel" label="个人销售价" width="100">
|
||||
<el-table-column prop="refineryLevel" label="个人销售价" width="110">
|
||||
<template slot-scope="{ row }">
|
||||
{{ row.salePrice2personal | toNumberFixed }}/{{ row.measurement }}
|
||||
</template>
|
||||
|
||||
@@ -27,7 +27,11 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="炼厂名称" prop="refineryId">
|
||||
<autocomplete :params="form" :config="configAutocomplete" />
|
||||
<autocomplete
|
||||
ref="autocomplete"
|
||||
:params="form"
|
||||
:config="configAutocomplete"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -104,6 +108,7 @@ export default {
|
||||
this.form = {};
|
||||
this.controlWindows.addInfo = {};
|
||||
this.$nextTick(() => {
|
||||
this.$refs.autocomplete.list = [];
|
||||
this.$refs.form.clearValidate();
|
||||
this.controlWindows.add = false;
|
||||
});
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="table">
|
||||
<div class="operation">
|
||||
<!-- <el-button @click="addition">新增炼厂账户</el-button> -->
|
||||
<!-- <el-button @click="addition">充值</el-button> -->
|
||||
<el-button @click="addition">充值</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
v-if="tableHeight"
|
||||
|
||||
Reference in New Issue
Block a user