|
@@ -60,39 +60,6 @@
|
|
|
<superwei-combox :candidates="candidates" :isJSON="true" keyName="value"
|
|
|
placeholder="请选择或输入" v-model="item.model" @input="input_json" @select="select_json">
|
|
|
</superwei-combox>
|
|
|
-
|
|
|
- <!-- <uv-form-item label="预计归还时间" required="required" borderBottom prop="expected_end_time" labelWidth="100" @click="showDateSelect" ref="formdata">
|
|
|
- <uv-input v-model="formdata.expected_end_time" disabled disabledColor="#ffffff" border="none"></uv-input>
|
|
|
- <uv-datetime-picker :minDate="new Date()" ref="datetimePicker" mode="datetime" @confirm="showDateconfirm"></uv-datetime-picker>
|
|
|
- <template v-slot:right>
|
|
|
- <uv-icon name="arrow-right"></uv-icon>
|
|
|
- </template><strong></strong>
|
|
|
- </uv-form-item> -->
|
|
|
-
|
|
|
- <!-- <uni-combox label="所在城市" :candidates="candidates" placeholder="请选择所在城市" v-model="item.model"></uni-combox> -->
|
|
|
- <!-- <superwei-combox :candidates="candidates" :isJSON="true" keyName="model" placeholder="请选择或输入"
|
|
|
- v-model="item.model" @input="input_json" @select="select_json">
|
|
|
- </superwei-combox> -->
|
|
|
- <!-- <uni-combox :candidates="candidates" placeholder="请选择仪器" v-model="item.model"></uni-combox> -->
|
|
|
- <!-- <picker @change="bindPickerChange" :value="index" :range="item.origins">
|
|
|
- <view class="uni-input">{{origins[index]}}</view>
|
|
|
- </picker> -->
|
|
|
-
|
|
|
- <!-- <uni-section title="本地数据" type="line">
|
|
|
- <view class="uni-px-5 uni-pb-5">
|
|
|
- <uni-data-picker
|
|
|
- placeholder="请选择班级"
|
|
|
- popup-title="请选择"
|
|
|
- :localdata="candidates"
|
|
|
- v-model="item.model"
|
|
|
- @change="onchange"
|
|
|
- @nodeclick="onnodeclick"
|
|
|
- @popupopened="onpopupopened"
|
|
|
- @popupclosed="onpopupclosed"
|
|
|
- @inputclick="inputclick"
|
|
|
- ></uni-data-picker>
|
|
|
- </view>
|
|
|
- </uni-section> -->
|
|
|
<uv-input v-model="item.num" placeholder="数量"></uv-input>
|
|
|
<button class="button" size="mini" type="default"
|
|
|
@click="onDelArrayItem(idx)">删除</button>
|
|
@@ -320,7 +287,7 @@
|
|
|
<button type="primary" size="mini" @click="goSign('worker1')" class="add_anniu">去签名</button>
|
|
|
</view>
|
|
|
<!-- <image style="width: 200px; height: 200px; background-color: #eeeeee;" @load='imgOnCan' @error='imgOnError' :src="signSrc" v-if="signShow"></image> -->
|
|
|
- <image style="width: 200px; height: 200px; background-color: #eeeeee;" :src="signSrc"
|
|
|
+ <image style="width: 200px; height: 200px; background-color: #eeeeee;" :src="formdata.sign"
|
|
|
v-show="signShow" @load='imgOnCan' @error='imgOnError'></image>
|
|
|
|
|
|
</uv-form>
|
|
@@ -368,8 +335,8 @@ export default {
|
|
|
this.pImg = data
|
|
|
})
|
|
|
uni.$on('q-sign', data => {
|
|
|
- console.log('tempFilePath', data);
|
|
|
- this.signSrc = data.tempFilePath;
|
|
|
+ // console.log('tempFilePath', data);
|
|
|
+ formdata.sign = data.tempFilePath;
|
|
|
|
|
|
const ctx2 = uni.createCanvasContext('myCanvasr');
|
|
|
ctx2.drawImage(data.tempFilePath, 0, 0, 200, 200);
|
|
@@ -390,31 +357,31 @@ export default {
|
|
|
).then(d => {
|
|
|
var responseObject = JSON.parse(d);
|
|
|
var fileUrl = responseObject.data.file.url;
|
|
|
- // 传图片接口;
|
|
|
- const returndata = requestApi(
|
|
|
- 'admin/ajax/saveSign?server=1',
|
|
|
- {
|
|
|
- sign: fileUrl
|
|
|
- },
|
|
|
- 'POST'
|
|
|
- ).then(ret => {
|
|
|
- this.signShow = true;
|
|
|
- })
|
|
|
+ // // 传图片接口;
|
|
|
+ // const returndata = requestApi(
|
|
|
+ // 'admin/ajax/saveSign?server=1',
|
|
|
+ // {
|
|
|
+ // sign: fileUrl
|
|
|
+ // },
|
|
|
+ // 'POST'
|
|
|
+ // ).then(ret => {
|
|
|
+ // this.signShow = true;
|
|
|
+ // })
|
|
|
})
|
|
|
})
|
|
|
- // 获取电子签字
|
|
|
- const returndata = requestApi(
|
|
|
- 'admin/ajax/getSign?server=1', 'GET'
|
|
|
- ).then(ret => {
|
|
|
- console.log(ret)
|
|
|
- if (ret.code == 1) {
|
|
|
- this.signSrc = "https://yxy.glut.cc/" + ret.data.file.sign
|
|
|
-
|
|
|
- if (ret.data.file.sign !== '') {
|
|
|
- this.signShow = true
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // // 获取电子签字
|
|
|
+ // const returndata = requestApi(
|
|
|
+ // 'admin/ajax/getSign?server=1', 'GET'
|
|
|
+ // ).then(ret => {
|
|
|
+ // console.log(ret)
|
|
|
+ // if (ret.code == 1) {
|
|
|
+ // this.signSrc = "https://yxy.glut.cc/" + ret.data.file.sign
|
|
|
+
|
|
|
+ // if (ret.data.file.sign !== '') {
|
|
|
+ // this.signShow = true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
const getUserData = requestApi(
|
|
|
'admin/borrow.BorrowApp/add?server=1', 'GET'
|