123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221 |
- <template>
- <view>
- <!-- //查找 -->
- <view class="search">
- <view class="search-title">
- {{$t('dosugar.equipmentClientID')}}
- </view>
- <view class="search-input">
- <input type="text" :placeholder="$t('dosugar.placeholder')" v-model="searchClientId" />
- </view>
- <view class="search-button">
- <button type="primary" size="mini" class="" @click="search()">
- <p class="">{{$t('alarmClock.add')}}</P>
- </button>
- </view>
- </view>
- <!-- //多选下拉框 -->
- <view class="select-item">
- <ld-select :multiple="true" :list="equipmentNameList" label-key="label" value-key="value"
- :placeholder="$t('alarmClock.placeholder')" clearable v-model="equipmentIds" @change="selectChange2"></ld-select>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.name')}}:
- </view>
- <view class="search-input3">
- {{$t('updatePrice.price')}}:
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A01')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A01" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A02')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A02" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A03')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A03" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A04')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A04" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A05')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A05" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A06')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A06" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A07')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A07" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A08')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A08" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A09')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A09" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A10')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A10" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A11')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A11" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A12')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A12" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A13')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A13" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A14')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A14" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A15')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A15" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A16')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A16" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A17')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A17" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A18')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A18" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A19')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A19" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A20')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A20" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A21')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A21" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A22')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A22" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A23')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A23" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A24')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A24" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A25')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A25" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A26')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A26" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A27')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A27" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A28')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A28" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A29')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A29" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A30')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A30" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A31')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A31" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A32')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A32" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A33')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A33" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A34')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A34" />
- </view>
- </view>
- <view class="line"></view>
- <view class="search">
- <view class="search-title">
- {{$t('updatePrice.A35')}}:
- </view>
- <view class="search-input2">
- <input type="text" v-model="A35" />
- </view>
- </view>
- <view class="line"></view>
- <!-- //提交按钮 -->
- <view class="tr">
- <button type="primary" formType="submit" @click="update()" class="button">
- <p class="p1">{{$t('alarmClock.update')}}</p>
- </button>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapActions,
- mapMutations
- } from 'vuex'
- import MxDatePicker from "../../components/mx-datepicker/mx-datepicker.vue";
- // import ldSelect from "../../components/ld-select/ld-select.vue";
- import ldSelect from "../../components/ld-select/ld-select.vue"
- import likeButton from "../../components/like-button/like-button.vue";
- export default {
- components: {
- MxDatePicker,
- ldSelect,
- likeButton
- },
- data() {
- return {
- value: '',
- searchClientId: null,
- equipmentName: null,
- equipmentNameList: [],
- globalUser: {},
- equipmentIds: [],
- A01:'',
- A02:'',
- A03:'',
- A04:'',
- A05:'',
- A06:'',
- A07:'',
- A08:'',
- A09:'',
- A10:'',
- A11:'',
- A12:'',
- A13:'',
- A14:'',
- A15:'',
- A16:'',
- A17:'',
- A18:'',
- A19:'',
- A20:'',
- A21:'',
- A22:'',
- A23:'',
- A24:'',
- A25:'',
- A26:'',
- A27:'',
- A28:'',
- A29:'',
- A30:'',
- A31:'',
- A32:'',
- A33:'',
- A34:'',
- A35:'',
- }
- },
- onShow() {
- this.globalUser = uni.getStorageSync("globalUser");
- uni.setNavigationBarTitle({
- title: this.$t('remoteList.price')
- });
- var token = uni.getStorageSync("token");
- if (token.length > 1) {
- this.getEquipmentListData();
- } else {
- uni.reLaunch({
- url: '../../../pages/Login/Login',
- });
- }
- },
- onLoad() {
- },
- methods: {
- ...mapActions('chart', ['getEquipmentListByUser', 'addAlarmClock', 'addAlarmClockItem', 'updateAlarmClock']),
- getEquipmentListData() {
- this.getEquipmentListByUser(this.globalUser)
- .then(data => {
- // this.merchantList = data;
- // console.log("1223");
- var listName = data[0].equipmentList;
- var equipmentNameList = this.equipmentNameList;
- var co = {};
- co["value"] = 'all';
- co["label"] = '全部机器ALL machine';
- equipmentNameList.push(co);
- for (var i = 0; i < listName.length; i++) {
- var cov = {};
- cov["value"] = listName[i].id;
- cov["label"] = this.$t('common.name') + listName[i].name + ' , '+ this.$t('common.ID') + listName[i].clientId.substring(
- listName[i].clientId.length - 6, listName[i].clientId.length);
- equipmentNameList.push(cov);
- }
- this.equipmentNameList = equipmentNameList;
- var listId = data[0].id;
- if (listId != null && listId != '1') {
- uni.setStorageSync("listName", listName);
- }
- uni.stopPullDownRefresh();
- }, _ => void uni.stopPullDownRefresh());
- },
- onSelected(e) { //选择
- this.showPicker = false;
- if (e) {
- this[this.type] = e.value;
- //选择的值
- // console.log('value => ' + e.value);
- //原始的Date对象
- // console.log('date => ' + e.date);
- }
- },
- // bindPickerChange: function(e) {
- // this.indexType = e.target.value
- // },
- addEids(equipmentIds) {
- // console.log('equipmentIds' + equipmentIds);
- var eids = equipmentIds.split(",");
- var idss = this.equipmentIds;
- var is = this.equipmentNameList
- for (var k = 0; k < eids.length; k++) {
- var id = eids[k];
- if (id != "" && id != '') {
- this.equipmentIds.push(parseInt(id));
- }
- }
- },
- search() {
- // console.log("search");
- var clientId = this.searchClientId;
- var list = uni.getStorageSync("listName");
- var n = 0;
- for (var i = 0; i < list.length; i++) {
- var code = list[i].clientId.substring(list[i].clientId.length - 6, list[i].clientId.length);
- if (code == clientId) {
- n++;
- var id = list[i].id;
- this.equipmentIds.push(id);
- break;
- }
- }
- if (n == 0) {
- uni.showModal({
- title: "提示",
- content: "找不到该机器",
- success: (res) => {
- }
- })
- }
- if (n > 0) {
- uni.showModal({
- title: "提示",
- content: "已添加该机器",
- success: (res) => {
- }
- })
- }
- },
- selectChange2(val) {
- //有改动文件 import likeButton from "../../components/like-button/like-button.vue";
- if (val == "all") {
- this.equipmentIds = [];
- var list = uni.getStorageSync("listName");
- for (var i = 0; i < list.length; i++) {
- this.equipmentIds.push(list[i].id);
- }
- } else {
- this.equipmentIds = val
- }
- console.log('this.equipmentIds => ' + this.equipmentIds);
- if(val.length==1){
- setTimeout(() => {
- this.getProduct();
- }, 2000);
- }
- },
- getProduct(){
- if(this.equipmentIds.length!=1){
- return;
- }
- var serverurl = this.serverurl;
- var token = uni.getStorageSync("token");
- uni.request({
- url: serverurl + '/TProduct/selectProducts?equimentId='+this.equipmentIds,
- // data: {
- // "equipmentIds": that.equipmentIds,
- // "guestPwd": that.guestPwd,
- // "adminPwd": that.adminPwd,
- // },
- method: "GET",
- header: {
- 'token': token
- },
- success: (res) => {
- if(res.data.code){
- var list = res.data.data;
- var ifForeign = this.globalUser.ifForeign;
- if(ifForeign==0){
- for (var i = 0; i < list.length; i++) {
- var no = list[i].no;
- switch(no){
- case "A01":
- this.A01 = list[i].rmbPrice;
- break;
- case "A02":
- this.A02 = list[i].rmbPrice;
- break;
- case "A03":
- this.A03 = list[i].rmbPrice;
- break;
- case "A04":
- this.A04 = list[i].rmbPrice;
- break;
- case "A05":
- this.A05 = list[i].rmbPrice;
- break;
- case "A06":
- this.A06 = list[i].rmbPrice;
- break;
- case "A07":
- this.A07 = list[i].rmbPrice;
- break;
- case "A07":
- this.A07 = list[i].rmbPrice;
- break;
- case "A08":
- this.A08 = list[i].rmbPrice;
- break;
- case "A09":
- this.A09 = list[i].rmbPrice;
- break;
- case "A10":
- this.A10 = list[i].rmbPrice;
- break;
- case "A11":
- this.A11 = list[i].rmbPrice;
- break;
- case "A12":
- this.A12 = list[i].rmbPrice;
- break;
- case "A13":
- this.A13 = list[i].rmbPrice;
- break;
- case "A14":
- this.A14 = list[i].rmbPrice;
- break;
- case "A15":
- this.A15 = list[i].rmbPrice;
- break;
- case "A16":
- this.A16 = list[i].rmbPrice;
- break;
- case "A17":
- this.A17 = list[i].rmbPrice;
- break;
- case "A18":
- this.A18 = list[i].rmbPrice;
- break;
- case "A19":
- this.A19 = list[i].rmbPrice;
- break;
- case "A20":
- this.A20 = list[i].rmbPrice;
- break;
- case "A21":
- this.A21 = list[i].rmbPrice;
- break;
- case "A22":
- this.A22 = list[i].rmbPrice;
- break;
- case "A23":
- this.A23 = list[i].rmbPrice;
- break;
- case "A24":
- this.A24 = list[i].rmbPrice;
- break;
- case "A25":
- this.A25 = list[i].rmbPrice;
- break;
- case "A26":
- this.A26 = list[i].rmbPrice;
- break;
- case "A27":
- this.A27 = list[i].rmbPrice;
- break;
- case "A28":
- this.A28 = list[i].rmbPrice;
- break;
- case "A29":
- this.A29 = list[i].rmbPrice;
- break;
- case "A30":
- this.A30 = list[i].rmbPrice;
- break;
- case "A31":
- this.A31 = list[i].rmbPrice;
- break;
- case "A32":
- this.A32 = list[i].rmbPrice;
- break;
- case "A33":
- this.A33 = list[i].rmbPrice;
- break;
- case "A34":
- this.A34 = list[i].rmbPrice;
- break;
- case "A35":
- this.A35 = list[i].rmbPrice;
- break;
- }
- }
- }else{
- for (var i = 0; i < list.length; i++) {
- var no = list[i].no;
- switch(no){
- case "A01":
- this.A01 = list[i].codePrice;
- break;
- case "A02":
- this.A02 = list[i].codePrice;
- break;
- case "A03":
- this.A03 = list[i].codePrice;
- break;
- case "A04":
- this.A04 = list[i].codePrice;
- break;
- case "A05":
- this.A05 = list[i].codePrice;
- break;
- case "A06":
- this.A06 = list[i].codePrice;
- break;
- case "A07":
- this.A07 = list[i].codePrice;
- break;
- case "A07":
- this.A07 = list[i].codePrice;
- break;
- case "A08":
- this.A08 = list[i].codePrice;
- break;
- case "A09":
- this.A09 = list[i].codePrice;
- break;
- case "A10":
- this.A10 = list[i].codePrice;
- break;
- case "A11":
- this.A11 = list[i].codePrice;
- break;
- case "A12":
- this.A12 = list[i].codePrice;
- break;
- case "A13":
- this.A13 = list[i].codePrice;
- break;
- case "A14":
- this.A14 = list[i].codePrice;
- break;
- case "A15":
- this.A15 = list[i].codePrice;
- break;
- case "A16":
- this.A16 = list[i].codePrice;
- break;
- case "A17":
- this.A17 = list[i].codePrice;
- break;
- case "A18":
- this.A18 = list[i].codePrice;
- break;
- case "A19":
- this.A19 = list[i].codePrice;
- break;
- case "A20":
- this.A20 = list[i].codePrice;
- break;
- case "A21":
- this.A21 = list[i].codePrice;
- break;
- case "A22":
- this.A22 = list[i].codePrice;
- break;
- case "A23":
- this.A23 = list[i].codePrice;
- break;
- case "A24":
- this.A24 = list[i].codePrice;
- break;
- case "A25":
- this.A25 = list[i].codePrice;
- break;
- case "A26":
- this.A26 = list[i].codePrice;
- break;
- case "A27":
- this.A27 = list[i].codePrice;
- break;
- case "A28":
- this.A28 = list[i].codePrice;
- break;
- case "A29":
- this.A29 = list[i].codePrice;
- break;
- case "A30":
- this.A30 = list[i].codePrice;
- break;
- case "A31":
- this.A31 = list[i].codePrice;
- break;
- case "A32":
- this.A32 = list[i].codePrice;
- break;
- case "A33":
- this.A33 = list[i].codePrice;
- break;
- case "A34":
- this.A34 = list[i].codePrice;
- break;
- case "A35":
- this.A35 = list[i].codePrice;
- break;
- }
- }
- }
- }
- }
- });
- },
- switchChange: function(e) {
- this.status = e.target.value;
- },
- update() {
- if(this.equipmentIds==''||this.equipmentIds.length==0){
- return;
- }
- var that = this;
- uni.showModal({
- title: that.$t('equipmentStatusList.tip'),
- content:that.$t('updatePassword.sure') ,
- success: (re) => {
- if (re.confirm) {
- var serverurl = that.serverurl;
- var token = uni.getStorageSync("token");
- var products = [];
-
- var product ={
- showType:'',
- no:'',
- rmbPrice:''
- }
- if(that.equipmentIds!=''){
- product.showType = that.equipmentIds;
- }
-
- if(that.A01!=''){
- product.showType = that.equipmentIds;
- product.no = 'A01';
- product.rmbPrice = that.A01;
- products.push(product);
- product={};
- }
- if(that.A02!=''){
- product.showType = that.equipmentIds;
- product.no = 'A02';
- product.rmbPrice = that.A02;
- products.push(product);
- product={};
- }
- if(that.A03!=''){
- product.showType = that.equipmentIds;
- product.no = 'A03';
- product.rmbPrice = that.A03;
- products.push(product);
- product={};
- }
- if(that.A04!=''){
- product.showType = that.equipmentIds;
- product.no = 'A04';
- product.rmbPrice = that.A04;
- products.push(product);
- product={};
- }
- if(that.A05!=''){
- product.showType = that.equipmentIds;
- product.no = 'A05';
- product.rmbPrice = that.A05;
- products.push(product);
- product={};
- }
- if(that.A06!=''){
- product.showType = that.equipmentIds;
- product.no = 'A06';
- product.rmbPrice = that.A06;
- products.push(product);
- product={};
- }
- if(that.A07!=''){
- product.showType = that.equipmentIds;
- product.no = 'A07';
- product.rmbPrice = that.A07;
- products.push(product);
- product={};
- }
- if(that.A08!=''){
- product.showType = that.equipmentIds;
- product.no = 'A08';
- product.rmbPrice = that.A08;
- products.push(product);
- product={};
- }
- if(that.A09!=''){
- product.showType = that.equipmentIds;
- product.no = 'A09';
- product.rmbPrice = that.A09;
- products.push(product);
- product={};
- }
- if(that.A10!=''){
- product.showType = that.equipmentIds;
- product.no = 'A10';
- product.rmbPrice = that.A10;
- products.push(product);
- product={};
- }
- if(that.A11!=''){
- product.showType = that.equipmentIds;
- product.no = 'A11';
- product.rmbPrice = that.A11;
- products.push(product);
- product={};
- }
- if(that.A12!=''){
- product.showType = that.equipmentIds;
- product.no = 'A12';
- product.rmbPrice = that.A12;
- products.push(product);
- product={};
- }
- if(that.A13!=''){
- product.showType = that.equipmentIds;
- product.no = 'A13';
- product.rmbPrice = that.A13;
- products.push(product);
- product={};
- }
- if(that.A14!=''){
- product.showType = that.equipmentIds;
- product.no = 'A14';
- product.rmbPrice = that.A14;
- products.push(product);
- product={};
- }
- if(that.A15!=''){
- product.showType = that.equipmentIds;
- product.no = 'A15';
- product.rmbPrice = that.A15;
- products.push(product);
- product={};
- }
- if(that.A16!=''){
- product.showType = that.equipmentIds;
- product.no = 'A16';
- product.rmbPrice = that.A16;
- products.push(product);
- product={};
- }
- if(that.A17!=''){
- product.showType = that.equipmentIds;
- product.no = 'A17';
- product.rmbPrice = that.A17;
- products.push(product);
- product={};
- }
- if(that.A18!=''){
- product.showType = that.equipmentIds;
- product.no = 'A18';
- product.rmbPrice = that.A18;
- products.push(product);
- product={};
- }
- if(that.A19!=''){
- product.showType = that.equipmentIds;
- product.no = 'A19';
- product.rmbPrice = that.A19;
- products.push(product);
- product={};
- }
- if(that.A20!=''){
- product.showType = that.equipmentIds;
- product.no = 'A20';
- product.rmbPrice = that.A20;
- products.push(product);
- product={};
- }
- if(that.A21!=''){
- product.showType = that.equipmentIds;
- product.no = 'A21';
- product.rmbPrice = that.A21;
- products.push(product);
- product={};
- }
- if(that.A22!=''){
- product.showType = that.equipmentIds;
- product.no = 'A22';
- product.rmbPrice = that.A22;
- products.push(product);
- product={};
- }
- if(that.A23!=''){
- product.showType = that.equipmentIds;
- product.no = 'A23';
- product.rmbPrice = that.A23;
- products.push(product);
- product={};
- }
- if(that.A24!=''){
- product.showType = that.equipmentIds;
- product.no = 'A24';
- product.rmbPrice = that.A24;
- products.push(product);
- product={};
- }
- if(that.A25!=''){
- product.showType = that.equipmentIds;
- product.no = 'A25';
- product.rmbPrice = that.A25;
- products.push(product);
- product={};
- }
- if(that.A26!=''){
- product.showType = that.equipmentIds;
- product.no = 'A26';
- product.rmbPrice = that.A26;
- products.push(product);
- product={};
- }
- if(that.A27!=''){
- product.showType = that.equipmentIds;
- product.no = 'A27';
- product.rmbPrice = that.A27;
- products.push(product);
- product={};
- }
- if(that.A28!=''){
- product.showType = that.equipmentIds;
- product.no = 'A28';
- product.rmbPrice = that.A28;
- products.push(product);
- product={};
- }
- if(that.A29!=''){
- product.showType = that.equipmentIds;
- product.no = 'A29';
- product.rmbPrice = that.A29;
- products.push(product);
- product={};
- }
- if(that.A30!=''){
- product.showType = that.equipmentIds;
- product.no = 'A30';
- product.rmbPrice = that.A30;
- products.push(product);
- product={};
- }
- if(that.A31!=''){
- product.showType = that.equipmentIds;
- product.no = 'A31';
- product.rmbPrice = that.A31;
- products.push(product);
- product={};
- }
- if(that.A32!=''){
- product.showType = that.equipmentIds;
- product.no = 'A32';
- product.rmbPrice = that.A32;
- products.push(product);
- product={};
- }
- if(that.A33!=''){
- product.showType = that.equipmentIds;
- product.no = 'A33';
- product.rmbPrice = that.A33;
- products.push(product);
- product={};
- }
- if(that.A34!=''){
- product.showType = that.equipmentIds;
- product.no = 'A34';
- product.rmbPrice = that.A34;
- products.push(product);
- product={};
- }
- if(that.A35!=''){
- product.showType = that.equipmentIds;
- product.no = 'A35';
- product.rmbPrice = that.A35;
- products.push(product);
- product={};
- }
- var list = JSON.stringify(products);
- uni.request({
- url: serverurl + '/TProduct/updateProductsById',
- data: {
- "products": list
- },
- header: {
- 'token': token
- },
- method: "POST",
- success: (res) => {
- if(res.data.code){
- uni.showToast({
- title: res.data.message,
- duration: 1000
- });
- }
- }
- });
- }
- }
- })
- },
- }
- }
- </script>
- <style>
- .test {
- text-align: center;
- padding: 10px 0;
- }
- .time {
- font-size: 78upx;
- }
- .btime {
- margin: 20upx;
- font-size: 28upx;
- }
- /* button {
- margin: 20upx;
- font-size: 28upx;
- } */
- /* #ifdef MP-ALIPAY */
- .uni-badge {
- margin-left: 20rpx;
- }
- /* #endif */
- .uni-badge {
- font-size: 40upx;
- }
- .example-body {
- flex-direction: row;
- justify-content: flex-start;
- padding-bottom: 15upx;
- font-size: 40upx;
- }
- .uni-badge-left-margin {
- font-size: 40upx;
- margin-left: 50upx;
- }
- .uni-list-cell {
- padding-top: 20upx;
- padding-bottom: 10upx;
- font-size: 35upx;
- }
- .line {
- height: 2upx;
- background: #8C959F;
- }
- .search {
- width: 100%;
- padding-top: 15upx;
- padding-bottom: 15upx;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- }
- .search-title {
- width: 28%;
- text-align: center;
- font-size: 26upx;
- font-family: "PingFang-SC-Bold";
- }
- .search-input{
- width: 48%;
- height: 25px;
- text-align: center;
- font-size: 26upx;
- /* font-family: "PingFang-SC-Bold"; */
- box-shadow: 0upx 0upx 20upx #D3D3D3;
- border-radius: 5upx;
- }
- .search-input2 {
- width: 65%;
- text-align: center;
- font-size: 26upx;
- font-family: "PingFang-SC-Bold";
- box-shadow: 0upx 0upx 20upx #D3D3D3;
- border-radius: 5upx;
- }
- .search-input3 {
- width: 65%;
- text-align: center;
- font-size: 26upx;
- font-family: "PingFang-SC-Bold";
- }
- .search-button{
- width: 20%;
- padding-left: 10px;
- padding-bottom: 5px;
- text-align: center;
- height: 60upx;
- text-align: left;
- }
- .select-item {
- /* padding-top: 20upx; */
- }
- .tr {
- padding-top: 15upx;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- font-size: 48upx;
- font-family: "PingFang-SC-Bold";
- /* position: fixed; */
- bottom: 100upx;
- width: 100%;
- }
- .button {
- margin: auto;
- width: 60%;
- height: 100upx;
- }
- .p1 {
- font-size: 48upx;
- }
- </style>
|