Ver código fonte

修改经销商名称

chenrui 2 anos atrás
pai
commit
cdca7828b8
1 arquivos alterados com 69 adições e 70 exclusões
  1. 69 70
      public/dzd/index.html

+ 69 - 70
public/dzd/index.html

@@ -209,7 +209,7 @@
 						<span class="amount" v-else
 							:style="{color:!info.discountAmount ? '#f0ad4e':'#333333'}">¥0.00</span>
 					</div>
-					<div v-if="info.discountAmount && info.discountAmount*1 !=0">
+					<div v-if="info.discountAmount && info.discountAmount*1!=0">
 						<div class="amount_list flex align_center flex-between">
 							<span class="amountName">折让金额</span>
 							<span class="amount"
@@ -283,76 +283,75 @@
 	</body>
 	<script>
 		new Vue({
-			el: '#app',
-			data: {
-				ajaxUrl: 'http://p.iscm.360arrow.com/qpls-md/',
-				saleList: [],
-				saleDetailList: [],
-				info: {},
-				flag: false
-			},
-			created() {
-				this.loadData()
-				console.log('title:',decodeURIComponent(this.getUrlParam(2)))
-				document.title = decodeURIComponent(this.getUrlParam(2))
-				
-			},
-			methods: {
-				loadData() {
-					const ajaxData = {
-						verifySn: this.getUrlParam(1),
-						dealerSn: this.getUrlParam(0)
-					}
-					axios.post(this.ajaxUrl + 'verify/findBySn', ajaxData).then((res) => {
-						this.info = res.data.data
-						res.data.data.detailList.forEach(item => {
-							item.isShow = false
-							item.list = []
-						})
-						this.saleList = res.data.data.detailList
-						this.getALlList(res.data.data.detailList)
-					}).catch((error) => {
-						console.log(error)
-					})
-				},
-				handleShow(con, i) {
-					const req_data = {
-						salesBillSn: con.bizSn
-					}
-					axios.post(this.ajaxUrl + 'salesDetail/queryList', req_data).then((res) => {
-						this.saleList[i].list = res.data.data
-					}).catch((error) => {
-						console.log(error)
-					})
-				},
-				openInfoList(i) {
-					this.saleList[i].isShow = !this.saleList[i].isShow
-					this.saleList.splice()
-				},
-				downLoad() {
-					window.location.href = this.ajaxUrl + 'verify/exportExcel?verifySn=' + this.getUrlParam(1) +
+		  el: '#app',
+		  data: {
+		    ajaxUrl: 'http://192.168.0.103:8503/qpls-md/',
+		    saleList: [],
+		    saleDetailList: [],
+		    info: {},
+		    flag: false
+		  },
+		  created () {
+		    this.loadData()
+		  },
+		  methods: {
+		    loadData () {
+		      const ajaxData = {
+		        verifySn: this.getUrlParam(1),
+		        tenantId: this.getUrlParam(0)
+		      }
+		      axios.post(this.ajaxUrl + 'verify/findBySn', ajaxData).then((res) => {
+		        this.info = res.data.data
+		        document.title = res.data.data.dealerName
+		        res.data.data.detailList.forEach(item => {
+		          item.isShow = false
+		          item.list = []
+		        })
+		        this.saleList = res.data.data.detailList
+		
+		        this.getALlList(res.data.data.detailList)
+		      }).catch((error) => {
+		        console.log(error)
+		      })
+		    },
+		    handleShow (con, i) {
+		      const req_data = {
+		        salesBillSn: con.bizSn
+		      }
+		      axios.post(this.ajaxUrl + 'salesDetail/queryList', req_data).then((res) => {
+		        this.saleList[i].list = res.data.data
+		      }).catch((error) => {
+		        console.log(error)
+		      })
+		    },
+		    openInfoList (i) {
+		      this.saleList[i].isShow = !this.saleList[i].isShow
+		      this.saleList.splice()
+		    },
+		    downLoad () {
+		      window.location.href = this.ajaxUrl + 'verify/exportExcel?verifySn=' + this.getUrlParam(1) +
 						'&dealerSn=' + this.getUrlParam(0)
-				},
-		 	getUrlParam(index) {
-					let urlArr = window.location.search.substr(1).split('&');
-					return urlArr[index] // 返回参数值
-				},
-				openAll() {
-					this.flag = !this.flag
-					this.saleList.forEach((item, i) => {
-						if (this.flag) {
-							item.isShow = true
-						} else {
-							item.isShow = false
-						}
-					})
-				},
-				getALlList(list) {
-					list.forEach((item, i) => {
-						this.handleShow(item, i)
-					})
-				}
-			}
+		    },
+		 	getUrlParam (index) {
+		      const urlArr = window.location.search.substr(1).split('&')
+		      return urlArr[index] // 返回参数值
+		    },
+		    openAll () {
+		      this.flag = !this.flag
+		      this.saleList.forEach((item, i) => {
+		        if (this.flag) {
+		          item.isShow = true
+		        } else {
+		          item.isShow = false
+		        }
+		      })
+		    },
+		    getALlList (list) {
+		      list.forEach((item, i) => {
+		        this.handleShow(item, i)
+		      })
+		    }
+		  }
 		})
 	</script>