Commit f94fa56e authored by 仇晓婷's avatar 仇晓婷

报价单bug

parent 094fd58a
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.$Message.success('订单报价送审成功!') this.$Message.success('订单报价送审成功!')
this.$emit('on-close') this.$emit("update")
this.modalShow = false this.modalShow = false
this.easySearch('') this.easySearch('')
} else { } else {
......
...@@ -105,9 +105,9 @@ ...@@ -105,9 +105,9 @@
</div> </div>
</template> </template>
<script> <script>
import Process from '@/components/orderOperator/process' import Process from "@/components/orderOperator/process";
export default { export default {
name: '', name: "",
components: { components: {
Process Process
}, },
...@@ -118,149 +118,147 @@ export default { ...@@ -118,149 +118,147 @@ export default {
}, },
data() { data() {
return { return {
model1: '', model1: "",
modalShow: false, modalShow: false,
columns: [ columns: [
{ {
title: '序号', title: "序号",
type: 'index', type: "index",
width: 50, width: 50,
align: 'center' align: "center"
}, },
{ {
title: '订单编号', title: "订单编号",
key: 'mesCode', key: "mesCode",
align: 'center', align: "center",
minWidth: 120 minWidth: 120
}, },
{ {
title: '产品名称', title: "产品名称",
key: 'productName', key: "productName",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '重量(g)', title: "重量(g)",
key: 'materialWeight', key: "materialWeight",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '单价(元/g)', title: "单价(元/g)",
key: 'materialUnitPrice', key: "materialUnitPrice",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '3D打印费', title: "3D打印费",
key: 'printPrice', key: "printPrice",
align: 'center', align: "center",
minWidth: 60 minWidth: 60
}, },
{ {
title: '尺寸检测费', title: "尺寸检测费",
key: 'sizeCheckPrice', key: "sizeCheckPrice",
align: 'center', align: "center",
minWidth: 60 minWidth: 60
}, },
{ {
title: '单价(元)', title: "单价(元)",
key: 'unitPrice', key: "unitPrice",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '数量', title: "数量",
key: 'num', key: "num",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '价格(元)', title: "价格(元)",
key: 'unitPrice', key: "unitPrice",
align: 'center', align: "center",
minWidth: 80 minWidth: 80
}, },
{ {
title: '备注', title: "备注",
key: 'itemremark', key: "itemremark",
align: 'center', align: "center",
minWidth: 60 minWidth: 60
} }
], ],
dataTable: [], dataTable: [],
dataListRetrunNew: { dataListRetrunNew: {
schemaId: 'cf192e27-1e81-4000-98ee-392eeb539616', //订单报价的schemaId schemaId: "cf192e27-1e81-4000-98ee-392eeb539616", //订单报价的schemaId
idList: [], //订单id List idList: [], //订单id List
codeList: [], //订单编号List codeList: [], //订单编号List
operatorIdList: [] //操作员id operatorIdList: [] //操作员id
} //确定后返回数据 } //确定后返回数据
} };
}, },
created() {}, created() {},
methods: { methods: {
submitCensorship() { submitCensorship() {
//alert(JSON.stringify(this.childData)) //alert(JSON.stringify(this.childData))
this.dataListRetrunNew.idList = [] this.dataListRetrunNew.idList = [];
this.dataListRetrunNew.codeList = [] this.dataListRetrunNew.codeList = [];
this.dataListRetrunNew.operatorIdList = [] this.dataListRetrunNew.operatorIdList = [];
this.dataListRetrunNew.idList.push(this.childData.result[0].quotationId) this.dataListRetrunNew.idList.push(this.childData.result[0].quotationId);
this.dataListRetrunNew.codeList.push(this.childData.result[0].code) this.dataListRetrunNew.codeList.push(this.childData.result[0].code);
let ues = this.$refs.userProcess let ues = this.$refs.userProcess;
this.dataListRetrunNew.operatorIdList = ues.immutData this.dataListRetrunNew.operatorIdList = ues.immutData;
// alert('photo__' + JSON.stringify(this.dataListRetrunNew)) // alert('photo__' + JSON.stringify(this.dataListRetrunNew))
this.$http.order this.$http.order.batchstart(this.dataListRetrunNew).then(res => {
.batchstart(this.dataListRetrunNew) if (res.success) {
.then((res) => { this.$Message.success("订单报价送审成功!");
if (res.success) { this.$emit("update");
this.$Message.success('订单报价送审成功!') this.easySearch("");
this.$emit('on-close') this.modalShow = false;
this.easySearch('') } else {
this.modalShow = false this.$Message.error("订单报价送审失败!");
} else { }
this.$Message.error('订单报价送审失败!') });
} // .catch((error) => {
}) // this.$Message.error('送审失败')
// .catch((error) => { // })
// this.$Message.error('送审失败')
// })
}, },
//老的报价 //老的报价
submitCensorship1() { submitCensorship1() {
var str = '' var str = "";
this.childData.result.forEach((element) => { this.childData.result.forEach(element => {
console.log(element.orderId) console.log(element.orderId);
str += element.orderId + ',' str += element.orderId + ",";
}) });
str = str.substr(0, str.length - 1) str = str.substr(0, str.length - 1);
var data = { var data = {
id: this.childData.result[0].quotationId, id: this.childData.result[0].quotationId,
auditUser: this.model1, auditUser: this.model1,
orderIds: str, orderIds: str,
status: 2 status: 2
} };
var url = `${PlanUrl}/quotationmain/submit` var url = `${PlanUrl}/quotationmain/submit`;
this.$api this.$api
.post(url, data) .post(url, data)
.then((res) => { .then(res => {
this.$Message.success('送审成功') this.$Message.success("送审成功");
})
.catch((error) => {
this.$Message.error('送审失败')
}) })
.catch(error => {
this.$Message.error("送审失败");
});
}, },
previousStep() { previousStep() {
this.modalShow = false this.modalShow = false;
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -126,8 +126,8 @@ ...@@ -126,8 +126,8 @@
<Metal-Details ref="metalDetail" :resultDetils="resultDetils"></Metal-Details> <Metal-Details ref="metalDetail" :resultDetils="resultDetils"></Metal-Details>
<Photosensitive-Details ref="photosensitiveDetail" :resultDetils="resultDetils"></Photosensitive-Details> <Photosensitive-Details ref="photosensitiveDetail" :resultDetils="resultDetils"></Photosensitive-Details>
<!-- 报价记录里送审 --> <!-- 报价记录里送审 -->
<MetalQuotation-Generation ref="metalQuotationExamine" :childData="zPhotosensitive"></MetalQuotation-Generation> <MetalQuotation-Generation ref="metalQuotationExamine" :childData="zPhotosensitive" @update="update"></MetalQuotation-Generation>
<Photosensitive-Generation ref="photosensitiveExamine" :childData="zPhotosensitive"></Photosensitive-Generation> <Photosensitive-Generation ref="photosensitiveExamine" :childData="zPhotosensitive" @update="update"></Photosensitive-Generation>
</Layout> </Layout>
</template> </template>
......
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 to comment